From ab93eb2f1e453d1958b39056b3dc67bc5ab649be Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 18 Jun 2026 22:04:49 +0000 Subject: [PATCH 1/2] feat: add a can_edit field to the PropertySummary resource to indicate if a user has permission to edit the property feat: add the UpdateReportingIdentitySettings method to the to allow updating reporting identity settings for a property PiperOrigin-RevId: 934464881 Source-Link: https://github.com/googleapis/googleapis/commit/70b1e9ff15e0fb99a856a858208aef56bd464081 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bcff888aec8176c5dab4a27e98a5aeb93c9b4511 Copy-Tag: eyJwIjoiZ29vZ2xlLWFuYWx5dGljcy1hZG1pbi12MWFscGhhLy5Pd2xCb3QueWFtbCIsImgiOiJiY2ZmODg4YWVjODE3NmM1ZGFiNGEyN2U5OGE1YWViOTNjOWI0NTExIn0= --- .../google-analytics-admin-v1alpha/.gitignore | 22 + .../.repo-metadata.json | 16 + .../.rubocop.yml | 33 + .../google-analytics-admin-v1alpha/.toys.rb | 28 + .../google-analytics-admin-v1alpha/.yardopts | 12 + .../AUTHENTICATION.md | 122 + .../CHANGELOG.md | 2 + .../google-analytics-admin-v1alpha/Gemfile | 14 + .../google-analytics-admin-v1alpha/LICENSE.md | 201 + .../google-analytics-admin-v1alpha/README.md | 151 + .../google-analytics-admin-v1alpha/Rakefile | 169 + .../gapic_metadata.json | 798 + .../google-analytics-admin-v1alpha.gemspec | 28 + .../lib/google-analytics-admin-v1alpha.rb | 21 + .../lib/google/analytics/admin/v1alpha.rb | 45 + .../admin/v1alpha/access_report_pb.rb | 44 + .../admin/v1alpha/analytics_admin_pb.rb | 230 + .../admin/v1alpha/analytics_admin_service.rb | 55 + .../v1alpha/analytics_admin_service/client.rb | 15919 ++++++++++++++++ .../analytics_admin_service/credentials.rb | 54 + .../v1alpha/analytics_admin_service/paths.rb | 665 + .../v1alpha/analytics_admin_service/rest.rb | 52 + .../analytics_admin_service/rest/client.rb | 14830 ++++++++++++++ .../rest/service_stub.rb | 9729 ++++++++++ .../v1alpha/analytics_admin_services_pb.rb | 459 + .../analytics/admin/v1alpha/audience_pb.rb | 46 + .../admin/v1alpha/channel_group_pb.rb | 31 + .../admin/v1alpha/event_create_and_edit_pb.rb | 28 + .../admin/v1alpha/expanded_data_set_pb.rb | 31 + .../analytics/admin/v1alpha/resources_pb.rb | 103 + .../google/analytics/admin/v1alpha/rest.rb | 37 + .../v1alpha/subproperty_event_filter_pb.rb | 31 + .../google/analytics/admin/v1alpha/version.rb | 28 + .../proto_docs/README.md | 4 + .../analytics/admin/v1alpha/access_report.rb | 413 + .../admin/v1alpha/analytics_admin.rb | 2988 +++ .../analytics/admin/v1alpha/audience.rb | 447 + .../analytics/admin/v1alpha/channel_group.rb | 179 + .../admin/v1alpha/event_create_and_edit.rb | 206 + .../admin/v1alpha/expanded_data_set.rb | 166 + .../analytics/admin/v1alpha/resources.rb | 2181 +++ .../admin/v1alpha/subproperty_event_filter.rb | 167 + .../proto_docs/google/api/client.rb | 593 + .../proto_docs/google/api/field_behavior.rb | 85 + .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 + .../proto_docs/google/protobuf/duration.rb | 98 + .../proto_docs/google/protobuf/empty.rb | 34 + .../proto_docs/google/protobuf/field_mask.rb | 229 + .../proto_docs/google/protobuf/timestamp.rb | 127 + .../proto_docs/google/protobuf/wrappers.rb | 148 + .../proto_docs/google/type/date.rb | 56 + .../snippets/Gemfile | 32 + .../acknowledge_user_data_collection.rb | 47 + ...splay_video360_advertiser_link_proposal.rb | 47 + .../archive_audience.rb | 47 + .../archive_custom_dimension.rb | 47 + .../archive_custom_metric.rb | 47 + .../batch_create_access_bindings.rb | 47 + .../batch_delete_access_bindings.rb | 47 + .../batch_get_access_bindings.rb | 47 + .../batch_update_access_bindings.rb | 47 + ...splay_video360_advertiser_link_proposal.rb | 47 + .../create_access_binding.rb | 47 + .../create_ad_sense_link.rb | 47 + .../create_audience.rb | 47 + .../create_big_query_link.rb | 47 + .../create_calculated_metric.rb | 47 + .../create_channel_group.rb | 47 + .../create_conversion_event.rb | 47 + .../create_custom_dimension.rb | 47 + .../create_custom_metric.rb | 47 + .../create_data_stream.rb | 47 + ...create_display_video360_advertiser_link.rb | 47 + ...splay_video360_advertiser_link_proposal.rb | 47 + .../create_event_create_rule.rb | 47 + .../create_event_edit_rule.rb | 47 + .../create_expanded_data_set.rb | 47 + .../create_firebase_link.rb | 47 + .../create_google_ads_link.rb | 47 + .../create_key_event.rb | 47 + .../create_measurement_protocol_secret.rb | 47 + .../create_property.rb | 47 + .../create_reporting_data_annotation.rb | 47 + .../create_rollup_property.rb | 47 + .../create_rollup_property_source_link.rb | 47 + .../create_search_ads360_link.rb | 47 + ...e_sk_ad_network_conversion_value_schema.rb | 47 + .../create_subproperty_event_filter.rb | 47 + .../delete_access_binding.rb | 47 + .../analytics_admin_service/delete_account.rb | 47 + .../delete_ad_sense_link.rb | 47 + .../delete_big_query_link.rb | 47 + .../delete_calculated_metric.rb | 47 + .../delete_channel_group.rb | 47 + .../delete_conversion_event.rb | 47 + .../delete_data_stream.rb | 47 + ...delete_display_video360_advertiser_link.rb | 47 + ...splay_video360_advertiser_link_proposal.rb | 47 + .../delete_event_create_rule.rb | 47 + .../delete_event_edit_rule.rb | 47 + .../delete_expanded_data_set.rb | 47 + .../delete_firebase_link.rb | 47 + .../delete_google_ads_link.rb | 47 + .../delete_key_event.rb | 47 + .../delete_measurement_protocol_secret.rb | 47 + .../delete_property.rb | 47 + .../delete_reporting_data_annotation.rb | 47 + .../delete_rollup_property_source_link.rb | 47 + .../delete_search_ads360_link.rb | 47 + ...e_sk_ad_network_conversion_value_schema.rb | 47 + .../delete_subproperty_event_filter.rb | 47 + .../get_access_binding.rb | 47 + .../analytics_admin_service/get_account.rb | 47 + .../get_ad_sense_link.rb | 47 + .../get_attribution_settings.rb | 47 + .../analytics_admin_service/get_audience.rb | 47 + .../get_big_query_link.rb | 47 + .../get_calculated_metric.rb | 47 + .../get_channel_group.rb | 47 + .../get_conversion_event.rb | 47 + .../get_custom_dimension.rb | 47 + .../get_custom_metric.rb | 47 + .../get_data_redaction_settings.rb | 47 + .../get_data_retention_settings.rb | 47 + .../get_data_sharing_settings.rb | 47 + .../get_data_stream.rb | 47 + .../get_display_video360_advertiser_link.rb | 47 + ...splay_video360_advertiser_link_proposal.rb | 47 + .../get_enhanced_measurement_settings.rb | 47 + .../get_event_create_rule.rb | 47 + .../get_event_edit_rule.rb | 47 + .../get_expanded_data_set.rb | 47 + .../get_global_site_tag.rb | 47 + .../get_google_signals_settings.rb | 47 + .../analytics_admin_service/get_key_event.rb | 47 + .../get_measurement_protocol_secret.rb | 47 + .../analytics_admin_service/get_property.rb | 47 + .../get_reporting_data_annotation.rb | 47 + .../get_reporting_identity_settings.rb | 47 + .../get_rollup_property_source_link.rb | 47 + .../get_search_ads360_link.rb | 47 + ...t_sk_ad_network_conversion_value_schema.rb | 47 + .../get_subproperty_event_filter.rb | 47 + .../get_subproperty_sync_config.rb | 47 + .../get_user_provided_data_settings.rb | 47 + .../list_access_bindings.rb | 51 + .../list_account_summaries.rb | 51 + .../analytics_admin_service/list_accounts.rb | 51 + .../list_ad_sense_links.rb | 51 + .../analytics_admin_service/list_audiences.rb | 51 + .../list_big_query_links.rb | 51 + .../list_calculated_metrics.rb | 51 + .../list_channel_groups.rb | 51 + .../list_conversion_events.rb | 51 + .../list_custom_dimensions.rb | 51 + .../list_custom_metrics.rb | 51 + .../list_data_streams.rb | 51 + ...play_video360_advertiser_link_proposals.rb | 51 + .../list_display_video360_advertiser_links.rb | 51 + .../list_event_create_rules.rb | 51 + .../list_event_edit_rules.rb | 51 + .../list_expanded_data_sets.rb | 51 + .../list_firebase_links.rb | 51 + .../list_google_ads_links.rb | 51 + .../list_key_events.rb | 51 + .../list_measurement_protocol_secrets.rb | 51 + .../list_properties.rb | 51 + .../list_reporting_data_annotations.rb | 51 + .../list_rollup_property_source_links.rb | 51 + .../list_search_ads360_links.rb | 51 + ..._sk_ad_network_conversion_value_schemas.rb | 51 + .../list_subproperty_event_filters.rb | 51 + .../list_subproperty_sync_configs.rb | 51 + .../provision_account_ticket.rb | 47 + .../provision_subproperty.rb | 47 + .../reorder_event_edit_rules.rb | 47 + .../run_access_report.rb | 47 + .../search_change_history_events.rb | 51 + .../submit_user_deletion.rb | 47 + .../update_access_binding.rb | 47 + .../analytics_admin_service/update_account.rb | 47 + .../update_attribution_settings.rb | 47 + .../update_audience.rb | 47 + .../update_big_query_link.rb | 47 + .../update_calculated_metric.rb | 47 + .../update_channel_group.rb | 47 + .../update_conversion_event.rb | 47 + .../update_custom_dimension.rb | 47 + .../update_custom_metric.rb | 47 + .../update_data_redaction_settings.rb | 47 + .../update_data_retention_settings.rb | 47 + .../update_data_stream.rb | 47 + ...update_display_video360_advertiser_link.rb | 47 + .../update_enhanced_measurement_settings.rb | 47 + .../update_event_create_rule.rb | 47 + .../update_event_edit_rule.rb | 47 + .../update_expanded_data_set.rb | 47 + .../update_google_ads_link.rb | 47 + .../update_google_signals_settings.rb | 47 + .../update_key_event.rb | 47 + .../update_measurement_protocol_secret.rb | 47 + .../update_property.rb | 47 + .../update_reporting_data_annotation.rb | 47 + .../update_reporting_identity_settings.rb | 47 + .../update_search_ads360_link.rb | 47 + ...e_sk_ad_network_conversion_value_schema.rb | 47 + .../update_subproperty_event_filter.rb | 47 + .../update_subproperty_sync_config.rb | 47 + ...tadata_google.analytics.admin.v1alpha.json | 6255 ++++++ .../analytics_admin_service_paths_test.rb | 490 + .../analytics_admin_service_rest_test.rb | 8664 +++++++++ .../v1alpha/analytics_admin_service_test.rb | 9580 ++++++++++ .../test/helper.rb | 26 + 214 files changed, 84948 insertions(+) create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/.gitignore create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/.repo-metadata.json create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/.rubocop.yml create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/.toys.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/.yardopts create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/CHANGELOG.md create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/Gemfile create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/LICENSE.md create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/README.md create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/Rakefile create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/gapic_metadata.json create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/google-analytics-admin-v1alpha.gemspec create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google-analytics-admin-v1alpha.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/access_report_pb.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/credentials.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/expanded_data_set_pb.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/rest.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/subproperty_event_filter_pb.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/version.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/README.md create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/access_report.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/subproperty_event_filter.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/empty.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/wrappers.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/type/date.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/Gemfile create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/acknowledge_user_data_collection.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/approve_display_video360_advertiser_link_proposal.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_audience.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_dimension.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_metric.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_create_access_bindings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_delete_access_bindings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_get_access_bindings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_update_access_bindings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/cancel_display_video360_advertiser_link_proposal.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_access_binding.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_ad_sense_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_audience.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_calculated_metric.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_channel_group.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_conversion_event.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_dimension.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_metric.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_data_stream.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link_proposal.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_create_rule.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_expanded_data_set.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_firebase_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_google_ads_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_measurement_protocol_secret.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_property.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_reporting_data_annotation.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property_source_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_search_ads360_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty_event_filter.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_access_binding.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_account.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_ad_sense_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_calculated_metric.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_channel_group.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_conversion_event.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_data_stream.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_create_rule.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_expanded_data_set.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_firebase_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_google_ads_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_measurement_protocol_secret.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_property.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_reporting_data_annotation.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_rollup_property_source_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_search_ads360_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_sk_ad_network_conversion_value_schema.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_subproperty_event_filter.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_access_binding.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_account.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_ad_sense_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_attribution_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_audience.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_big_query_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_calculated_metric.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_channel_group.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_conversion_event.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_dimension.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_metric.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_redaction_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_retention_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_sharing_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_stream.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link_proposal.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_enhanced_measurement_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_create_rule.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_expanded_data_set.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_global_site_tag.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_google_signals_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_measurement_protocol_secret.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_property.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_data_annotation.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_identity_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_rollup_property_source_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_search_ads360_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_sk_ad_network_conversion_value_schema.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_event_filter.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_sync_config.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_user_provided_data_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_access_bindings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_account_summaries.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_accounts.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_ad_sense_links.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_audiences.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_big_query_links.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_calculated_metrics.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_channel_groups.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_conversion_events.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_dimensions.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_metrics.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_data_streams.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_link_proposals.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_links.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_create_rules.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_expanded_data_sets.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_firebase_links.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_google_ads_links.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_measurement_protocol_secrets.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_properties.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_reporting_data_annotations.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_rollup_property_source_links.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_search_ads360_links.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_event_filters.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_sync_configs.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_account_ticket.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/run_access_report.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/search_change_history_events.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/submit_user_deletion.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_access_binding.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_account.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_attribution_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_audience.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_calculated_metric.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_channel_group.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_conversion_event.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_dimension.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_metric.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_redaction_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_retention_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_stream.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_display_video360_advertiser_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_enhanced_measurement_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_create_rule.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_expanded_data_set.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_ads_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_signals_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_measurement_protocol_secret.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_property.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_data_annotation.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_identity_settings.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_search_ads360_link.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_event_filter.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_sync_config.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb create mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/test/helper.rb diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/.gitignore b/owl-bot-staging/google-analytics-admin-v1alpha/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/.repo-metadata.json b/owl-bot-staging/google-analytics-admin-v1alpha/.repo-metadata.json new file mode 100644 index 000000000000..5720aad46754 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "api_id": "analyticsadmin.googleapis.com", + "api_shortname": "analyticsadmin", + "client_documentation": "https://rubydoc.info/gems/google-analytics-admin-v1alpha", + "distribution_name": "google-analytics-admin-v1alpha", + "is_cloud": false, + "language": "ruby", + "name": "analyticsadmin", + "name_pretty": "Google Analytics Admin V1alpha API", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "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. Note that google-analytics-admin-v1alpha is a version-specific client library. For most uses, we recommend installing the main client library google-analytics-admin instead. See the readme for more details.", + "ruby-cloud-env-prefix": "ANALYTICS_ADMIN", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/.rubocop.yml b/owl-bot-staging/google-analytics-admin-v1alpha/.rubocop.yml new file mode 100644 index 000000000000..d63a7b628132 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-analytics-admin-v1alpha.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-analytics-admin-v1alpha.rb" diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/.toys.rb b/owl-bot-staging/google-analytics-admin-v1alpha/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/.yardopts b/owl-bot-staging/google-analytics-admin-v1alpha/.yardopts new file mode 100644 index 000000000000..80e4377a6654 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Google Analytics Admin V1alpha API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/AUTHENTICATION.md b/owl-bot-staging/google-analytics-admin-v1alpha/AUTHENTICATION.md new file mode 100644 index 000000000000..d65a16ea6bb2 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-analytics-admin-v1alpha library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-analytics-admin-v1alpha library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/analytics/admin/v1alpha" + +client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/analytics/admin/v1alpha" + +::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-analytics-admin-v1alpha +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/analytics/admin/v1alpha" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/CHANGELOG.md b/owl-bot-staging/google-analytics-admin-v1alpha/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/Gemfile b/owl-bot-staging/google-analytics-admin-v1alpha/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/LICENSE.md b/owl-bot-staging/google-analytics-admin-v1alpha/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/README.md b/owl-bot-staging/google-analytics-admin-v1alpha/README.md new file mode 100644 index 000000000000..9f1410aaff8a --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/README.md @@ -0,0 +1,151 @@ +# Ruby Client for the Google Analytics Admin V1alpha API + +Manage properties in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning. + +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. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Google Analytics Admin V1alpha API. Most users should consider using +the main client gem, +[google-analytics-admin](https://rubygems.org/gems/google-analytics-admin). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-analytics-admin-v1alpha +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/analyticsadmin.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/analytics/admin/v1alpha" + +client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new +request = ::Google::Analytics::Admin::V1alpha::GetAccountRequest.new # (request fields as keyword arguments...) +response = client.get_account request +``` + +View the [Client Library Documentation](https://rubydoc.info/gems/google-analytics-admin-v1alpha) +for class and method documentation. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/analytics/admin/v1alpha" +require "logger" + +client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.2+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-analytics-admin`, +and lower-level _versioned_ client libraries with names such as +`google-analytics-admin-v1alpha`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-analytics-admin`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-analytics-admin-v1alpha`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/Rakefile b/owl-bot-staging/google-analytics-admin-v1alpha/Rakefile new file mode 100644 index 000000000000..7b154c26b532 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-analytics-admin-v1alpha acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["ANALYTICS_ADMIN_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["ANALYTICS_ADMIN_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["ANALYTICS_ADMIN_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or ANALYTICS_ADMIN_TEST_PROJECT=test123 ANALYTICS_ADMIN_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/analytics/admin/v1alpha/analytics_admin_service/credentials" + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["ANALYTICS_ADMIN_PROJECT"] = project + ENV["ANALYTICS_ADMIN_TEST_PROJECT"] = project + ENV["ANALYTICS_ADMIN_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-analytics-admin-v1alpha gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-analytics-admin-v1alpha gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-analytics-admin-v1alpha gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-analytics-admin-v1alpha gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-analytics-admin-v1alpha" + header "google-analytics-admin-v1alpha rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-analytics-admin-v1alpha yard", "*" + Rake::Task[:yard].invoke + header "google-analytics-admin-v1alpha test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-analytics-admin-v1alpha smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-analytics-admin-v1alpha acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/gapic_metadata.json b/owl-bot-staging/google-analytics-admin-v1alpha/gapic_metadata.json new file mode 100644 index 000000000000..398dc40c6db3 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/gapic_metadata.json @@ -0,0 +1,798 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.analytics.admin.v1alpha", + "libraryPackage": "::Google::Analytics::Admin::V1alpha", + "services": { + "AnalyticsAdminService": { + "clients": { + "grpc": { + "libraryClient": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client", + "rpcs": { + "GetAccount": { + "methods": [ + "get_account" + ] + }, + "ListAccounts": { + "methods": [ + "list_accounts" + ] + }, + "DeleteAccount": { + "methods": [ + "delete_account" + ] + }, + "UpdateAccount": { + "methods": [ + "update_account" + ] + }, + "ProvisionAccountTicket": { + "methods": [ + "provision_account_ticket" + ] + }, + "ListAccountSummaries": { + "methods": [ + "list_account_summaries" + ] + }, + "GetProperty": { + "methods": [ + "get_property" + ] + }, + "ListProperties": { + "methods": [ + "list_properties" + ] + }, + "CreateProperty": { + "methods": [ + "create_property" + ] + }, + "DeleteProperty": { + "methods": [ + "delete_property" + ] + }, + "UpdateProperty": { + "methods": [ + "update_property" + ] + }, + "CreateFirebaseLink": { + "methods": [ + "create_firebase_link" + ] + }, + "DeleteFirebaseLink": { + "methods": [ + "delete_firebase_link" + ] + }, + "ListFirebaseLinks": { + "methods": [ + "list_firebase_links" + ] + }, + "GetGlobalSiteTag": { + "methods": [ + "get_global_site_tag" + ] + }, + "CreateGoogleAdsLink": { + "methods": [ + "create_google_ads_link" + ] + }, + "UpdateGoogleAdsLink": { + "methods": [ + "update_google_ads_link" + ] + }, + "DeleteGoogleAdsLink": { + "methods": [ + "delete_google_ads_link" + ] + }, + "ListGoogleAdsLinks": { + "methods": [ + "list_google_ads_links" + ] + }, + "GetDataSharingSettings": { + "methods": [ + "get_data_sharing_settings" + ] + }, + "GetMeasurementProtocolSecret": { + "methods": [ + "get_measurement_protocol_secret" + ] + }, + "ListMeasurementProtocolSecrets": { + "methods": [ + "list_measurement_protocol_secrets" + ] + }, + "CreateMeasurementProtocolSecret": { + "methods": [ + "create_measurement_protocol_secret" + ] + }, + "DeleteMeasurementProtocolSecret": { + "methods": [ + "delete_measurement_protocol_secret" + ] + }, + "UpdateMeasurementProtocolSecret": { + "methods": [ + "update_measurement_protocol_secret" + ] + }, + "AcknowledgeUserDataCollection": { + "methods": [ + "acknowledge_user_data_collection" + ] + }, + "GetSKAdNetworkConversionValueSchema": { + "methods": [ + "get_sk_ad_network_conversion_value_schema" + ] + }, + "CreateSKAdNetworkConversionValueSchema": { + "methods": [ + "create_sk_ad_network_conversion_value_schema" + ] + }, + "DeleteSKAdNetworkConversionValueSchema": { + "methods": [ + "delete_sk_ad_network_conversion_value_schema" + ] + }, + "UpdateSKAdNetworkConversionValueSchema": { + "methods": [ + "update_sk_ad_network_conversion_value_schema" + ] + }, + "ListSKAdNetworkConversionValueSchemas": { + "methods": [ + "list_sk_ad_network_conversion_value_schemas" + ] + }, + "SearchChangeHistoryEvents": { + "methods": [ + "search_change_history_events" + ] + }, + "GetGoogleSignalsSettings": { + "methods": [ + "get_google_signals_settings" + ] + }, + "UpdateGoogleSignalsSettings": { + "methods": [ + "update_google_signals_settings" + ] + }, + "CreateConversionEvent": { + "methods": [ + "create_conversion_event" + ] + }, + "UpdateConversionEvent": { + "methods": [ + "update_conversion_event" + ] + }, + "GetConversionEvent": { + "methods": [ + "get_conversion_event" + ] + }, + "DeleteConversionEvent": { + "methods": [ + "delete_conversion_event" + ] + }, + "ListConversionEvents": { + "methods": [ + "list_conversion_events" + ] + }, + "CreateKeyEvent": { + "methods": [ + "create_key_event" + ] + }, + "UpdateKeyEvent": { + "methods": [ + "update_key_event" + ] + }, + "GetKeyEvent": { + "methods": [ + "get_key_event" + ] + }, + "DeleteKeyEvent": { + "methods": [ + "delete_key_event" + ] + }, + "ListKeyEvents": { + "methods": [ + "list_key_events" + ] + }, + "GetDisplayVideo360AdvertiserLink": { + "methods": [ + "get_display_video360_advertiser_link" + ] + }, + "ListDisplayVideo360AdvertiserLinks": { + "methods": [ + "list_display_video360_advertiser_links" + ] + }, + "CreateDisplayVideo360AdvertiserLink": { + "methods": [ + "create_display_video360_advertiser_link" + ] + }, + "DeleteDisplayVideo360AdvertiserLink": { + "methods": [ + "delete_display_video360_advertiser_link" + ] + }, + "UpdateDisplayVideo360AdvertiserLink": { + "methods": [ + "update_display_video360_advertiser_link" + ] + }, + "GetDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "get_display_video360_advertiser_link_proposal" + ] + }, + "ListDisplayVideo360AdvertiserLinkProposals": { + "methods": [ + "list_display_video360_advertiser_link_proposals" + ] + }, + "CreateDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "create_display_video360_advertiser_link_proposal" + ] + }, + "DeleteDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "delete_display_video360_advertiser_link_proposal" + ] + }, + "ApproveDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "approve_display_video360_advertiser_link_proposal" + ] + }, + "CancelDisplayVideo360AdvertiserLinkProposal": { + "methods": [ + "cancel_display_video360_advertiser_link_proposal" + ] + }, + "CreateCustomDimension": { + "methods": [ + "create_custom_dimension" + ] + }, + "UpdateCustomDimension": { + "methods": [ + "update_custom_dimension" + ] + }, + "ListCustomDimensions": { + "methods": [ + "list_custom_dimensions" + ] + }, + "ArchiveCustomDimension": { + "methods": [ + "archive_custom_dimension" + ] + }, + "GetCustomDimension": { + "methods": [ + "get_custom_dimension" + ] + }, + "CreateCustomMetric": { + "methods": [ + "create_custom_metric" + ] + }, + "UpdateCustomMetric": { + "methods": [ + "update_custom_metric" + ] + }, + "ListCustomMetrics": { + "methods": [ + "list_custom_metrics" + ] + }, + "ArchiveCustomMetric": { + "methods": [ + "archive_custom_metric" + ] + }, + "GetCustomMetric": { + "methods": [ + "get_custom_metric" + ] + }, + "GetDataRetentionSettings": { + "methods": [ + "get_data_retention_settings" + ] + }, + "UpdateDataRetentionSettings": { + "methods": [ + "update_data_retention_settings" + ] + }, + "CreateDataStream": { + "methods": [ + "create_data_stream" + ] + }, + "DeleteDataStream": { + "methods": [ + "delete_data_stream" + ] + }, + "UpdateDataStream": { + "methods": [ + "update_data_stream" + ] + }, + "ListDataStreams": { + "methods": [ + "list_data_streams" + ] + }, + "GetDataStream": { + "methods": [ + "get_data_stream" + ] + }, + "GetAudience": { + "methods": [ + "get_audience" + ] + }, + "ListAudiences": { + "methods": [ + "list_audiences" + ] + }, + "CreateAudience": { + "methods": [ + "create_audience" + ] + }, + "UpdateAudience": { + "methods": [ + "update_audience" + ] + }, + "ArchiveAudience": { + "methods": [ + "archive_audience" + ] + }, + "GetSearchAds360Link": { + "methods": [ + "get_search_ads360_link" + ] + }, + "ListSearchAds360Links": { + "methods": [ + "list_search_ads360_links" + ] + }, + "CreateSearchAds360Link": { + "methods": [ + "create_search_ads360_link" + ] + }, + "DeleteSearchAds360Link": { + "methods": [ + "delete_search_ads360_link" + ] + }, + "UpdateSearchAds360Link": { + "methods": [ + "update_search_ads360_link" + ] + }, + "GetAttributionSettings": { + "methods": [ + "get_attribution_settings" + ] + }, + "UpdateAttributionSettings": { + "methods": [ + "update_attribution_settings" + ] + }, + "RunAccessReport": { + "methods": [ + "run_access_report" + ] + }, + "CreateAccessBinding": { + "methods": [ + "create_access_binding" + ] + }, + "GetAccessBinding": { + "methods": [ + "get_access_binding" + ] + }, + "UpdateAccessBinding": { + "methods": [ + "update_access_binding" + ] + }, + "DeleteAccessBinding": { + "methods": [ + "delete_access_binding" + ] + }, + "ListAccessBindings": { + "methods": [ + "list_access_bindings" + ] + }, + "BatchCreateAccessBindings": { + "methods": [ + "batch_create_access_bindings" + ] + }, + "BatchGetAccessBindings": { + "methods": [ + "batch_get_access_bindings" + ] + }, + "BatchUpdateAccessBindings": { + "methods": [ + "batch_update_access_bindings" + ] + }, + "BatchDeleteAccessBindings": { + "methods": [ + "batch_delete_access_bindings" + ] + }, + "GetExpandedDataSet": { + "methods": [ + "get_expanded_data_set" + ] + }, + "ListExpandedDataSets": { + "methods": [ + "list_expanded_data_sets" + ] + }, + "CreateExpandedDataSet": { + "methods": [ + "create_expanded_data_set" + ] + }, + "UpdateExpandedDataSet": { + "methods": [ + "update_expanded_data_set" + ] + }, + "DeleteExpandedDataSet": { + "methods": [ + "delete_expanded_data_set" + ] + }, + "GetChannelGroup": { + "methods": [ + "get_channel_group" + ] + }, + "ListChannelGroups": { + "methods": [ + "list_channel_groups" + ] + }, + "CreateChannelGroup": { + "methods": [ + "create_channel_group" + ] + }, + "UpdateChannelGroup": { + "methods": [ + "update_channel_group" + ] + }, + "DeleteChannelGroup": { + "methods": [ + "delete_channel_group" + ] + }, + "CreateBigQueryLink": { + "methods": [ + "create_big_query_link" + ] + }, + "GetBigQueryLink": { + "methods": [ + "get_big_query_link" + ] + }, + "ListBigQueryLinks": { + "methods": [ + "list_big_query_links" + ] + }, + "DeleteBigQueryLink": { + "methods": [ + "delete_big_query_link" + ] + }, + "UpdateBigQueryLink": { + "methods": [ + "update_big_query_link" + ] + }, + "GetEnhancedMeasurementSettings": { + "methods": [ + "get_enhanced_measurement_settings" + ] + }, + "UpdateEnhancedMeasurementSettings": { + "methods": [ + "update_enhanced_measurement_settings" + ] + }, + "GetAdSenseLink": { + "methods": [ + "get_ad_sense_link" + ] + }, + "CreateAdSenseLink": { + "methods": [ + "create_ad_sense_link" + ] + }, + "DeleteAdSenseLink": { + "methods": [ + "delete_ad_sense_link" + ] + }, + "ListAdSenseLinks": { + "methods": [ + "list_ad_sense_links" + ] + }, + "GetEventCreateRule": { + "methods": [ + "get_event_create_rule" + ] + }, + "ListEventCreateRules": { + "methods": [ + "list_event_create_rules" + ] + }, + "CreateEventCreateRule": { + "methods": [ + "create_event_create_rule" + ] + }, + "UpdateEventCreateRule": { + "methods": [ + "update_event_create_rule" + ] + }, + "DeleteEventCreateRule": { + "methods": [ + "delete_event_create_rule" + ] + }, + "GetEventEditRule": { + "methods": [ + "get_event_edit_rule" + ] + }, + "ListEventEditRules": { + "methods": [ + "list_event_edit_rules" + ] + }, + "CreateEventEditRule": { + "methods": [ + "create_event_edit_rule" + ] + }, + "UpdateEventEditRule": { + "methods": [ + "update_event_edit_rule" + ] + }, + "DeleteEventEditRule": { + "methods": [ + "delete_event_edit_rule" + ] + }, + "ReorderEventEditRules": { + "methods": [ + "reorder_event_edit_rules" + ] + }, + "UpdateDataRedactionSettings": { + "methods": [ + "update_data_redaction_settings" + ] + }, + "GetDataRedactionSettings": { + "methods": [ + "get_data_redaction_settings" + ] + }, + "GetCalculatedMetric": { + "methods": [ + "get_calculated_metric" + ] + }, + "CreateCalculatedMetric": { + "methods": [ + "create_calculated_metric" + ] + }, + "ListCalculatedMetrics": { + "methods": [ + "list_calculated_metrics" + ] + }, + "UpdateCalculatedMetric": { + "methods": [ + "update_calculated_metric" + ] + }, + "DeleteCalculatedMetric": { + "methods": [ + "delete_calculated_metric" + ] + }, + "CreateRollupProperty": { + "methods": [ + "create_rollup_property" + ] + }, + "GetRollupPropertySourceLink": { + "methods": [ + "get_rollup_property_source_link" + ] + }, + "ListRollupPropertySourceLinks": { + "methods": [ + "list_rollup_property_source_links" + ] + }, + "CreateRollupPropertySourceLink": { + "methods": [ + "create_rollup_property_source_link" + ] + }, + "DeleteRollupPropertySourceLink": { + "methods": [ + "delete_rollup_property_source_link" + ] + }, + "ProvisionSubproperty": { + "methods": [ + "provision_subproperty" + ] + }, + "CreateSubpropertyEventFilter": { + "methods": [ + "create_subproperty_event_filter" + ] + }, + "GetSubpropertyEventFilter": { + "methods": [ + "get_subproperty_event_filter" + ] + }, + "ListSubpropertyEventFilters": { + "methods": [ + "list_subproperty_event_filters" + ] + }, + "UpdateSubpropertyEventFilter": { + "methods": [ + "update_subproperty_event_filter" + ] + }, + "DeleteSubpropertyEventFilter": { + "methods": [ + "delete_subproperty_event_filter" + ] + }, + "CreateReportingDataAnnotation": { + "methods": [ + "create_reporting_data_annotation" + ] + }, + "GetReportingDataAnnotation": { + "methods": [ + "get_reporting_data_annotation" + ] + }, + "ListReportingDataAnnotations": { + "methods": [ + "list_reporting_data_annotations" + ] + }, + "UpdateReportingDataAnnotation": { + "methods": [ + "update_reporting_data_annotation" + ] + }, + "DeleteReportingDataAnnotation": { + "methods": [ + "delete_reporting_data_annotation" + ] + }, + "SubmitUserDeletion": { + "methods": [ + "submit_user_deletion" + ] + }, + "ListSubpropertySyncConfigs": { + "methods": [ + "list_subproperty_sync_configs" + ] + }, + "UpdateSubpropertySyncConfig": { + "methods": [ + "update_subproperty_sync_config" + ] + }, + "GetSubpropertySyncConfig": { + "methods": [ + "get_subproperty_sync_config" + ] + }, + "GetReportingIdentitySettings": { + "methods": [ + "get_reporting_identity_settings" + ] + }, + "UpdateReportingIdentitySettings": { + "methods": [ + "update_reporting_identity_settings" + ] + }, + "GetUserProvidedDataSettings": { + "methods": [ + "get_user_provided_data_settings" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/google-analytics-admin-v1alpha.gemspec b/owl-bot-staging/google-analytics-admin-v1alpha/google-analytics-admin-v1alpha.gemspec new file mode 100644 index 000000000000..ebca3c4ebffa --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/google-analytics-admin-v1alpha.gemspec @@ -0,0 +1,28 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/analytics/admin/v1alpha/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-analytics-admin-v1alpha" + gem.version = Google::Analytics::Admin::V1alpha::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.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. Note that google-analytics-admin-v1alpha is a version-specific client library. For most uses, we recommend installing the main client library google-analytics-admin instead. See the readme for more details." + gem.summary = "Manage properties in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.3" + gem.add_dependency "google-cloud-errors", "~> 1.0" +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google-analytics-admin-v1alpha.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google-analytics-admin-v1alpha.rb new file mode 100644 index 000000000000..498d3cee2b06 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google-analytics-admin-v1alpha.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/analytics/admin/v1alpha" diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha.rb new file mode 100644 index 000000000000..2ad53a132020 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/analytics/admin/v1alpha/analytics_admin_service" +require "google/analytics/admin/v1alpha/version" + +module Google + module Analytics + module Admin + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/analytics/admin/v1alpha" + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # @example Load this package, including all its services, and instantiate a REST client + # + # require "google/analytics/admin/v1alpha" + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + module V1alpha + end + end + end +end + +helper_path = ::File.join __dir__, "v1alpha", "_helpers.rb" +require "google/analytics/admin/v1alpha/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/access_report_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/access_report_pb.rb new file mode 100644 index 000000000000..52099aedd203 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/access_report_pb.rb @@ -0,0 +1,44 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/analytics/admin/v1alpha/access_report.proto + +require 'google/protobuf' + + +descriptor_data = "\n2google/analytics/admin/v1alpha/access_report.proto\x12\x1egoogle.analytics.admin.v1alpha\")\n\x0f\x41\x63\x63\x65ssDimension\x12\x16\n\x0e\x64imension_name\x18\x01 \x01(\t\"#\n\x0c\x41\x63\x63\x65ssMetric\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\"7\n\x0f\x41\x63\x63\x65ssDateRange\x12\x12\n\nstart_date\x18\x01 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x02 \x01(\t\"\xe4\x02\n\x16\x41\x63\x63\x65ssFilterExpression\x12O\n\tand_group\x18\x01 \x01(\x0b\x32:.google.analytics.admin.v1alpha.AccessFilterExpressionListH\x00\x12N\n\x08or_group\x18\x02 \x01(\x0b\x32:.google.analytics.admin.v1alpha.AccessFilterExpressionListH\x00\x12P\n\x0enot_expression\x18\x03 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpressionH\x00\x12\x45\n\raccess_filter\x18\x04 \x01(\x0b\x32,.google.analytics.admin.v1alpha.AccessFilterH\x00\x42\x10\n\x0eone_expression\"i\n\x1a\x41\x63\x63\x65ssFilterExpressionList\x12K\n\x0b\x65xpressions\x18\x01 \x03(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpression\"\xe9\x02\n\x0c\x41\x63\x63\x65ssFilter\x12K\n\rstring_filter\x18\x02 \x01(\x0b\x32\x32.google.analytics.admin.v1alpha.AccessStringFilterH\x00\x12L\n\x0ein_list_filter\x18\x03 \x01(\x0b\x32\x32.google.analytics.admin.v1alpha.AccessInListFilterH\x00\x12M\n\x0enumeric_filter\x18\x04 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AccessNumericFilterH\x00\x12M\n\x0e\x62\x65tween_filter\x18\x05 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AccessBetweenFilterH\x00\x12\x12\n\nfield_name\x18\x01 \x01(\tB\x0c\n\none_filter\"\x95\x02\n\x12\x41\x63\x63\x65ssStringFilter\x12P\n\nmatch_type\x18\x01 \x01(\x0e\x32<.google.analytics.admin.v1alpha.AccessStringFilter.MatchType\x12\r\n\x05value\x18\x02 \x01(\t\x12\x16\n\x0e\x63\x61se_sensitive\x18\x03 \x01(\x08\"\x85\x01\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0f\n\x0b\x42\x45GINS_WITH\x10\x02\x12\r\n\tENDS_WITH\x10\x03\x12\x0c\n\x08\x43ONTAINS\x10\x04\x12\x0f\n\x0b\x46ULL_REGEXP\x10\x05\x12\x12\n\x0ePARTIAL_REGEXP\x10\x06\"<\n\x12\x41\x63\x63\x65ssInListFilter\x12\x0e\n\x06values\x18\x01 \x03(\t\x12\x16\n\x0e\x63\x61se_sensitive\x18\x02 \x01(\x08\"\xac\x02\n\x13\x41\x63\x63\x65ssNumericFilter\x12P\n\toperation\x18\x01 \x01(\x0e\x32=.google.analytics.admin.v1alpha.AccessNumericFilter.Operation\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.NumericValue\"\x85\x01\n\tOperation\x12\x19\n\x15OPERATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x45QUAL\x10\x01\x12\r\n\tLESS_THAN\x10\x02\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x03\x12\x10\n\x0cGREATER_THAN\x10\x04\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x05\"\x97\x01\n\x13\x41\x63\x63\x65ssBetweenFilter\x12@\n\nfrom_value\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.NumericValue\x12>\n\x08to_value\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.NumericValue\"J\n\x0cNumericValue\x12\x15\n\x0bint64_value\x18\x01 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x42\x0b\n\tone_value\"\xed\x03\n\rAccessOrderBy\x12M\n\x06metric\x18\x01 \x01(\x0b\x32;.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByH\x00\x12S\n\tdimension\x18\x02 \x01(\x0b\x32>.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByH\x00\x12\x0c\n\x04\x64\x65sc\x18\x03 \x01(\x08\x1a$\n\rMetricOrderBy\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\x1a\xf3\x01\n\x10\x44imensionOrderBy\x12\x16\n\x0e\x64imension_name\x18\x01 \x01(\t\x12\\\n\norder_type\x18\x02 \x01(\x0e\x32H.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType\"i\n\tOrderType\x12\x1a\n\x16ORDER_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x41LPHANUMERIC\x10\x01\x12!\n\x1d\x43\x41SE_INSENSITIVE_ALPHANUMERIC\x10\x02\x12\x0b\n\x07NUMERIC\x10\x03\x42\x0e\n\x0cone_order_by\"/\n\x15\x41\x63\x63\x65ssDimensionHeader\x12\x16\n\x0e\x64imension_name\x18\x01 \x01(\t\")\n\x12\x41\x63\x63\x65ssMetricHeader\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\"\xa5\x01\n\tAccessRow\x12N\n\x10\x64imension_values\x18\x01 \x03(\x0b\x32\x34.google.analytics.admin.v1alpha.AccessDimensionValue\x12H\n\rmetric_values\x18\x02 \x03(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessMetricValue\"%\n\x14\x41\x63\x63\x65ssDimensionValue\x12\r\n\x05value\x18\x01 \x01(\t\"\"\n\x11\x41\x63\x63\x65ssMetricValue\x12\r\n\x05value\x18\x01 \x01(\t\"\xab\x03\n\x0b\x41\x63\x63\x65ssQuota\x12I\n\x0etokens_per_day\x18\x01 \x01(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessQuotaStatus\x12J\n\x0ftokens_per_hour\x18\x02 \x01(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessQuotaStatus\x12N\n\x13\x63oncurrent_requests\x18\x03 \x01(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessQuotaStatus\x12]\n\"server_errors_per_project_per_hour\x18\x04 \x01(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessQuotaStatus\x12V\n\x1btokens_per_project_per_hour\x18\x05 \x01(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessQuotaStatus\"8\n\x11\x41\x63\x63\x65ssQuotaStatus\x12\x10\n\x08\x63onsumed\x18\x01 \x01(\x05\x12\x11\n\tremaining\x18\x02 \x01(\x05\x42y\n\"com.google.analytics.admin.v1alphaB\x11\x41\x63\x63\x65ssReportProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Analytics + module Admin + module V1alpha + AccessDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessDimension").msgclass + AccessMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessMetric").msgclass + AccessDateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessDateRange").msgclass + AccessFilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessFilterExpression").msgclass + AccessFilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessFilterExpressionList").msgclass + AccessFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessFilter").msgclass + AccessStringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessStringFilter").msgclass + AccessStringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessStringFilter.MatchType").enummodule + AccessInListFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessInListFilter").msgclass + AccessNumericFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessNumericFilter").msgclass + AccessNumericFilter::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessNumericFilter.Operation").enummodule + AccessBetweenFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessBetweenFilter").msgclass + NumericValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.NumericValue").msgclass + AccessOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessOrderBy").msgclass + AccessOrderBy::MetricOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy").msgclass + AccessOrderBy::DimensionOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy").msgclass + AccessOrderBy::DimensionOrderBy::OrderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType").enummodule + AccessDimensionHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessDimensionHeader").msgclass + AccessMetricHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessMetricHeader").msgclass + AccessRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessRow").msgclass + AccessDimensionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessDimensionValue").msgclass + AccessMetricValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessMetricValue").msgclass + AccessQuota = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessQuota").msgclass + AccessQuotaStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessQuotaStatus").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb new file mode 100644 index 000000000000..19988dbd9e2b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb @@ -0,0 +1,230 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/analytics/admin/v1alpha/analytics_admin.proto + +require 'google/protobuf' + +require 'google/analytics/admin/v1alpha/access_report_pb' +require 'google/analytics/admin/v1alpha/audience_pb' +require 'google/analytics/admin/v1alpha/channel_group_pb' +require 'google/analytics/admin/v1alpha/event_create_and_edit_pb' +require 'google/analytics/admin/v1alpha/expanded_data_set_pb' +require 'google/analytics/admin/v1alpha/resources_pb' +require 'google/analytics/admin/v1alpha/subproperty_event_filter_pb' +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n4google/analytics/admin/v1alpha/analytics_admin.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x32google/analytics/admin/v1alpha/access_report.proto\x1a-google/analytics/admin/v1alpha/audience.proto\x1a\x32google/analytics/admin/v1alpha/channel_group.proto\x1a:google/analytics/admin/v1alpha/event_create_and_edit.proto\x1a\x36google/analytics/admin/v1alpha/expanded_data_set.proto\x1a.google/analytics/admin/v1alpha/resources.proto\x1a=google/analytics/admin/v1alpha/subproperty_event_filter.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe0\x04\n\x16RunAccessReportRequest\x12\x0e\n\x06\x65ntity\x18\x01 \x01(\t\x12\x43\n\ndimensions\x18\x02 \x03(\x0b\x32/.google.analytics.admin.v1alpha.AccessDimension\x12=\n\x07metrics\x18\x03 \x03(\x0b\x32,.google.analytics.admin.v1alpha.AccessMetric\x12\x44\n\x0b\x64\x61te_ranges\x18\x04 \x03(\x0b\x32/.google.analytics.admin.v1alpha.AccessDateRange\x12P\n\x10\x64imension_filter\x18\x05 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpression\x12M\n\rmetric_filter\x18\x06 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpression\x12\x0e\n\x06offset\x18\x07 \x01(\x03\x12\r\n\x05limit\x18\x08 \x01(\x03\x12\x11\n\ttime_zone\x18\t \x01(\t\x12@\n\torder_bys\x18\n \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessOrderBy\x12\x1b\n\x13return_entity_quota\x18\x0b \x01(\x08\x12\x1e\n\x11include_all_users\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rexpand_groups\x18\r \x01(\x08\x42\x03\xe0\x41\x01\"\xbf\x02\n\x17RunAccessReportResponse\x12P\n\x11\x64imension_headers\x18\x01 \x03(\x0b\x32\x35.google.analytics.admin.v1alpha.AccessDimensionHeader\x12J\n\x0emetric_headers\x18\x02 \x03(\x0b\x32\x32.google.analytics.admin.v1alpha.AccessMetricHeader\x12\x37\n\x04rows\x18\x03 \x03(\x0b\x32).google.analytics.admin.v1alpha.AccessRow\x12\x11\n\trow_count\x18\x04 \x01(\x05\x12:\n\x05quota\x18\x05 \x01(\x0b\x32+.google.analytics.admin.v1alpha.AccessQuota\"P\n\x11GetAccountRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\"\\\n\x13ListAccountsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x0cshow_deleted\x18\x03 \x01(\x08\"j\n\x14ListAccountsResponse\x12\x39\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\'.google.analytics.admin.v1alpha.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x14\x44\x65leteAccountRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\"\x8b\x01\n\x14UpdateAccountRequest\x12=\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.AccountB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"o\n\x1dProvisionAccountTicketRequest\x12\x38\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.Account\x12\x14\n\x0credirect_uri\x18\x02 \x01(\t\";\n\x1eProvisionAccountTicketResponse\x12\x19\n\x11\x61\x63\x63ount_ticket_id\x18\x01 \x01(\t\"R\n\x12GetPropertyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"s\n\x15ListPropertiesRequest\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"o\n\x16ListPropertiesResponse\x12<\n\nproperties\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8e\x01\n\x15UpdatePropertyRequest\x12?\n\x08property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"X\n\x15\x43reatePropertyRequest\x12?\n\x08property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\"U\n\x15\x44\x65letePropertyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"\xa9\x01\n\x19\x43reateFirebaseLinkRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/FirebaseLink\x12H\n\rfirebase_link\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLinkB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteFirebaseLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/FirebaseLink\"\x8f\x01\n\x18ListFirebaseLinksRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/FirebaseLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"z\n\x19ListFirebaseLinksResponse\x12\x44\n\x0e\x66irebase_links\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\\\n\x17GetGlobalSiteTagRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/GlobalSiteTag\"\xae\x01\n\x1a\x43reateGoogleAdsLinkRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/GoogleAdsLink\x12K\n\x0fgoogle_ads_link\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLinkB\x03\xe0\x41\x02\"\x9a\x01\n\x1aUpdateGoogleAdsLinkRequest\x12\x46\n\x0fgoogle_ads_link\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLink\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x1a\x44\x65leteGoogleAdsLinkRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/GoogleAdsLink\"\x91\x01\n\x19ListGoogleAdsLinksRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListGoogleAdsLinksResponse\x12G\n\x10google_ads_links\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"h\n\x1dGetDataSharingSettingsRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1analyticsadmin.googleapis.com/DataSharingSettings\"N\n\x1bListAccountSummariesRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x1cListAccountSummariesResponse\x12I\n\x11\x61\x63\x63ount_summaries\x18\x01 \x03(\x0b\x32..google.analytics.admin.v1alpha.AccountSummary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x86\x01\n$AcknowledgeUserDataCollectionRequest\x12@\n\x08property\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12\x1c\n\x0f\x61\x63knowledgement\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\'\n%AcknowledgeUserDataCollectionResponse\"\x83\x04\n SearchChangeHistoryEventsRequest\x12>\n\x07\x61\x63\x63ount\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12@\n\x08property\x18\x02 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12U\n\rresource_type\x18\x03 \x03(\x0e\x32\x39.google.analytics.admin.v1alpha.ChangeHistoryResourceTypeB\x03\xe0\x41\x01\x12?\n\x06\x61\x63tion\x18\x04 \x03(\x0e\x32*.google.analytics.admin.v1alpha.ActionTypeB\x03\xe0\x41\x01\x12\x18\n\x0b\x61\x63tor_email\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12=\n\x14\x65\x61rliest_change_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12;\n\x12latest_change_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\t \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n!SearchChangeHistoryEventsResponse\x12Q\n\x15\x63hange_history_events\x18\x01 \x03(\x0b\x32\x32.google.analytics.admin.v1alpha.ChangeHistoryEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"t\n#GetMeasurementProtocolSecretRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\xde\x01\n&CreateMeasurementProtocolSecretRequest\x12O\n\x06parent\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37\x61nalyticsadmin.googleapis.com/MeasurementProtocolSecret\x12\x63\n\x1bmeasurement_protocol_secret\x18\x02 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\x03\xe0\x41\x02\"w\n&DeleteMeasurementProtocolSecretRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\xc3\x01\n&UpdateMeasurementProtocolSecretRequest\x12\x63\n\x1bmeasurement_protocol_secret\x18\x01 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa9\x01\n%ListMeasurementProtocolSecretsRequest\x12O\n\x06parent\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37\x61nalyticsadmin.googleapis.com/MeasurementProtocolSecret\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa2\x01\n&ListMeasurementProtocolSecretsResponse\x12_\n\x1cmeasurement_protocol_secrets\x18\x01 \x03(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x01\n*GetSKAdNetworkConversionValueSchemaRequest\x12T\n\x04name\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\xfb\x01\n-CreateSKAdNetworkConversionValueSchemaRequest\x12V\n\x06parent\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\x12>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12r\n#skadnetwork_conversion_value_schema\x18\x02 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\x03\xe0\x41\x02\"\x85\x01\n-DeleteSKAdNetworkConversionValueSchemaRequest\x12T\n\x04name\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\xd9\x01\n-UpdateSKAdNetworkConversionValueSchemaRequest\x12r\n#skadnetwork_conversion_value_schema\x18\x01 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb7\x01\n,ListSKAdNetworkConversionValueSchemasRequest\x12V\n\x06parent\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\x12>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xb8\x01\n-ListSKAdNetworkConversionValueSchemasResponse\x12n\n$skadnetwork_conversion_value_schemas\x18\x01 \x03(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"l\n\x1fGetGoogleSignalsSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/GoogleSignalsSettings\"\xb7\x01\n\"UpdateGoogleSignalsSettingsRequest\x12[\n\x17google_signals_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.GoogleSignalsSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb5\x01\n\x1c\x43reateConversionEventRequest\x12N\n\x10\x63onversion_event\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventB\x03\xe0\x41\x02\x12\x45\n\x06parent\x18\x02 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ConversionEvent\"\xa4\x01\n\x1cUpdateConversionEventRequest\x12N\n\x10\x63onversion_event\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"`\n\x19GetConversionEventRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ConversionEvent\"c\n\x1c\x44\x65leteConversionEventRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ConversionEvent\"\x95\x01\n\x1bListConversionEventsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ConversionEvent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x1cListConversionEventsResponse\x12J\n\x11\x63onversion_events\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x99\x01\n\x15\x43reateKeyEventRequest\x12@\n\tkey_event\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventB\x03\xe0\x41\x02\x12>\n\x06parent\x18\x02 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/KeyEvent\"\x8f\x01\n\x15UpdateKeyEventRequest\x12@\n\tkey_event\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"R\n\x12GetKeyEventRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/KeyEvent\"U\n\x15\x44\x65leteKeyEventRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/KeyEvent\"\x87\x01\n\x14ListKeyEventsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/KeyEvent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"n\n\x15ListKeyEventsResponse\x12<\n\nkey_events\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.KeyEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"|\n\'GetDisplayVideo360AdvertiserLinkRequest\x12Q\n\x04name\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\xa7\x01\n)ListDisplayVideo360AdvertiserLinksRequest\x12S\n\x06parent\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\x12;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xb0\x01\n*ListDisplayVideo360AdvertiserLinksResponse\x12i\n\"display_video_360_advertiser_links\x18\x01 \x03(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf0\x01\n*CreateDisplayVideo360AdvertiserLinkRequest\x12S\n\x06parent\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\x12;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12m\n!display_video_360_advertiser_link\x18\x02 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkB\x03\xe0\x41\x02\"\x7f\n*DeleteDisplayVideo360AdvertiserLinkRequest\x12Q\n\x04name\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\xcc\x01\n*UpdateDisplayVideo360AdvertiserLinkRequest\x12h\n!display_video_360_advertiser_link\x18\x01 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x8c\x01\n/GetDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\xb7\x01\n1ListDisplayVideo360AdvertiserLinkProposalsRequest\x12[\n\x06parent\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\x12\x43\x61nalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xc9\x01\n2ListDisplayVideo360AdvertiserLinkProposalsResponse\x12z\n+display_video_360_advertiser_link_proposals\x18\x01 \x03(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x91\x02\n2CreateDisplayVideo360AdvertiserLinkProposalRequest\x12[\n\x06parent\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\x12\x43\x61nalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12~\n*display_video_360_advertiser_link_proposal\x18\x02 \x01(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalB\x03\xe0\x41\x02\"\x8f\x01\n2DeleteDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\x90\x01\n3ApproveDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\xa0\x01\n4ApproveDisplayVideo360AdvertiserLinkProposalResponse\x12h\n!display_video_360_advertiser_link\x18\x01 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\x8f\x01\n2CancelDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"b\n\x1aGetSearchAds360LinkRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/SearchAds360Link\"\x8d\x01\n\x1cListSearchAds360LinksRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/SearchAds360Link\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x88\x01\n\x1dListSearchAds360LinksResponse\x12N\n\x14search_ads_360_links\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360Link\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbb\x01\n\x1d\x43reateSearchAds360LinkRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/SearchAds360Link\x12R\n\x13search_ads_360_link\x18\x02 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360LinkB\x03\xe0\x41\x02\"e\n\x1d\x44\x65leteSearchAds360LinkRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/SearchAds360Link\"\xa4\x01\n\x1dUpdateSearchAds360LinkRequest\x12M\n\x13search_ads_360_link\x18\x01 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360Link\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb5\x01\n\x1c\x43reateCustomDimensionRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/CustomDimension\x12N\n\x10\x63ustom_dimension\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimensionB\x03\xe0\x41\x02\"\x9f\x01\n\x1cUpdateCustomDimensionRequest\x12I\n\x10\x63ustom_dimension\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimension\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x95\x01\n\x1bListCustomDimensionsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/CustomDimension\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x1cListCustomDimensionsResponse\x12J\n\x11\x63ustom_dimensions\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimension\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x1d\x41rchiveCustomDimensionRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/CustomDimension\"`\n\x19GetCustomDimensionRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/CustomDimension\"\xa9\x01\n\x19\x43reateCustomMetricRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/CustomMetric\x12H\n\rcustom_metric\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetricB\x03\xe0\x41\x02\"\x96\x01\n\x19UpdateCustomMetricRequest\x12\x43\n\rcustom_metric\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetric\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x85\x01\n\x18ListCustomMetricsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/CustomMetric\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListCustomMetricsResponse\x12\x44\n\x0e\x63ustom_metrics\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetric\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"^\n\x1a\x41rchiveCustomMetricRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/CustomMetric\"Z\n\x16GetCustomMetricRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/CustomMetric\"\xdc\x01\n\x1d\x43reateCalculatedMetricRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/CalculatedMetric\x12!\n\x14\x63\x61lculated_metric_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x11\x63\x61lculated_metric\x18\x03 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricB\x03\xe0\x41\x02\"\xa7\x01\n\x1dUpdateCalculatedMetricRequest\x12P\n\x11\x63\x61lculated_metric\x18\x01 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"e\n\x1d\x44\x65leteCalculatedMetricRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/CalculatedMetric\"\x97\x01\n\x1cListCalculatedMetricsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/CalculatedMetric\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x86\x01\n\x1dListCalculatedMetricsResponse\x12L\n\x12\x63\x61lculated_metrics\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetric\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"b\n\x1aGetCalculatedMetricRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/CalculatedMetric\"l\n\x1fGetDataRetentionSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/DataRetentionSettings\"\xb7\x01\n\"UpdateDataRetentionSettingsRequest\x12[\n\x17\x64\x61ta_retention_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRetentionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa1\x01\n\x17\x43reateDataStreamRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(analyticsadmin.googleapis.com/DataStream\x12\x44\n\x0b\x64\x61ta_stream\x18\x02 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStreamB\x03\xe0\x41\x02\"Y\n\x17\x44\x65leteDataStreamRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(analyticsadmin.googleapis.com/DataStream\"\x90\x01\n\x17UpdateDataStreamRequest\x12?\n\x0b\x64\x61ta_stream\x18\x01 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStream\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x81\x01\n\x16ListDataStreamsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(analyticsadmin.googleapis.com/DataStream\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x17ListDataStreamsResponse\x12@\n\x0c\x64\x61ta_streams\x18\x01 \x03(\x0b\x32*.google.analytics.admin.v1alpha.DataStream\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x14GetDataStreamRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(analyticsadmin.googleapis.com/DataStream\"R\n\x12GetAudienceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Audience\"}\n\x14ListAudiencesRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"m\n\x15ListAudiencesResponse\x12;\n\taudiences\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.Audience\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x98\x01\n\x15\x43reateAudienceRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\x12?\n\x08\x61udience\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceB\x03\xe0\x41\x02\"\x8e\x01\n\x15UpdateAudienceRequest\x12?\n\x08\x61udience\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"V\n\x16\x41rchiveAudienceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\"h\n\x1dGetAttributionSettingsRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1analyticsadmin.googleapis.com/AttributionSettings\"\xb0\x01\n UpdateAttributionSettingsRequest\x12V\n\x14\x61ttribution_settings\x18\x01 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AttributionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\\\n\x17GetAccessBindingRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"\xa8\x01\n\x1d\x42\x61tchGetAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12\x42\n\x05names\x18\x02 \x03(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"h\n\x1e\x42\x61tchGetAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"\x87\x01\n\x19ListAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"}\n\x1aListAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x01\n\x1a\x43reateAccessBindingRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12J\n\x0e\x61\x63\x63\x65ss_binding\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.AccessBindingB\x03\xe0\x41\x02\"\xba\x01\n BatchCreateAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x03 \x03(\x0b\x32:.google.analytics.admin.v1alpha.CreateAccessBindingRequestB\x03\xe0\x41\x02\"k\n!BatchCreateAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"h\n\x1aUpdateAccessBindingRequest\x12J\n\x0e\x61\x63\x63\x65ss_binding\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.AccessBindingB\x03\xe0\x41\x02\"\xba\x01\n BatchUpdateAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x02 \x03(\x0b\x32:.google.analytics.admin.v1alpha.UpdateAccessBindingRequestB\x03\xe0\x41\x02\"k\n!BatchUpdateAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"_\n\x1a\x44\x65leteAccessBindingRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"\xba\x01\n BatchDeleteAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x02 \x03(\x0b\x32:.google.analytics.admin.v1alpha.DeleteAccessBindingRequestB\x03\xe0\x41\x02\"\xb6\x01\n\x1c\x43reateExpandedDataSetRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ExpandedDataSet\x12O\n\x11\x65xpanded_data_set\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetB\x03\xe0\x41\x02\"\xa5\x01\n\x1cUpdateExpandedDataSetRequest\x12O\n\x11\x65xpanded_data_set\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"c\n\x1c\x44\x65leteExpandedDataSetRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ExpandedDataSet\"`\n\x19GetExpandedDataSetRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ExpandedDataSet\"\x8b\x01\n\x1bListExpandedDataSetsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ExpandedDataSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1cListExpandedDataSetsResponse\x12K\n\x12\x65xpanded_data_sets\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa9\x01\n\x19\x43reateChannelGroupRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/ChannelGroup\x12H\n\rchannel_group\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupB\x03\xe0\x41\x02\"\x9b\x01\n\x19UpdateChannelGroupRequest\x12H\n\rchannel_group\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteChannelGroupRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/ChannelGroup\"Z\n\x16GetChannelGroupRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/ChannelGroup\"\x85\x01\n\x18ListChannelGroupsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/ChannelGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListChannelGroupsResponse\x12\x44\n\x0e\x63hannel_groups\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa9\x01\n\x19\x43reateBigQueryLinkRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/BigQueryLink\x12H\n\rbigquery_link\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkB\x03\xe0\x41\x02\"Z\n\x16GetBigQueryLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/BigQueryLink\"\x85\x01\n\x18ListBigQueryLinksRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/BigQueryLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListBigQueryLinksResponse\x12\x44\n\x0e\x62igquery_links\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9b\x01\n\x19UpdateBigQueryLinkRequest\x12H\n\rbigquery_link\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteBigQueryLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/BigQueryLink\"x\n%GetEnhancedMeasurementSettingsRequest\x12O\n\x04name\x18\x01 \x01(\tBA\xe0\x41\x02\xfa\x41;\n9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\"\xc9\x01\n(UpdateEnhancedMeasurementSettingsRequest\x12g\n\x1d\x65nhanced_measurement_settings\x18\x01 \x01(\x0b\x32;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"l\n\x1fGetDataRedactionSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/DataRedactionSettings\"\xb7\x01\n\"UpdateDataRedactionSettingsRequest\x12[\n\x17\x64\x61ta_redaction_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRedactionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa5\x01\n\x18\x43reateAdSenseLinkRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)analyticsadmin.googleapis.com/AdSenseLink\x12\x46\n\x0c\x61\x64sense_link\x18\x02 \x01(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLinkB\x03\xe0\x41\x02\"X\n\x15GetAdSenseLinkRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)analyticsadmin.googleapis.com/AdSenseLink\"[\n\x18\x44\x65leteAdSenseLinkRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)analyticsadmin.googleapis.com/AdSenseLink\"\x83\x01\n\x17ListAdSenseLinksRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)analyticsadmin.googleapis.com/AdSenseLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"w\n\x18ListAdSenseLinksResponse\x12\x42\n\radsense_links\x18\x01 \x03(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb6\x01\n\x1c\x43reateEventCreateRuleRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/EventCreateRule\x12O\n\x11\x65vent_create_rule\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleB\x03\xe0\x41\x02\"\xa5\x01\n\x1cUpdateEventCreateRuleRequest\x12O\n\x11\x65vent_create_rule\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"c\n\x1c\x44\x65leteEventCreateRuleRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/EventCreateRule\"`\n\x19GetEventCreateRuleRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/EventCreateRule\"\x8b\x01\n\x1bListEventCreateRulesRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/EventCreateRule\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1cListEventCreateRulesResponse\x12K\n\x12\x65vent_create_rules\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xae\x01\n\x1a\x43reateEventEditRuleRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12K\n\x0f\x65vent_edit_rule\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRuleB\x03\xe0\x41\x02\"\x9f\x01\n\x1aUpdateEventEditRuleRequest\x12K\n\x0f\x65vent_edit_rule\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRuleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x1a\x44\x65leteEventEditRuleRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/EventEditRule\"\\\n\x17GetEventEditRuleRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/EventEditRule\"\x91\x01\n\x19ListEventEditRulesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListEventEditRulesResponse\x12G\n\x10\x65vent_edit_rules\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x01\n\x1cReorderEventEditRulesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12\x1d\n\x10\x65vent_edit_rules\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\x85\x01\n\x1b\x43reateRollupPropertyRequest\x12\x46\n\x0frollup_property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12\x1e\n\x11source_properties\x18\x02 \x03(\tB\x03\xe0\x41\x01\"\xc1\x01\n\x1c\x43reateRollupPropertyResponse\x12\x41\n\x0frollup_property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12^\n\x1crollup_property_source_links\x18\x02 \x03(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"r\n\"GetRollupPropertySourceLinkRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\xa7\x01\n$ListRollupPropertySourceLinksRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36\x61nalyticsadmin.googleapis.com/RollupPropertySourceLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa0\x01\n%ListRollupPropertySourceLinksResponse\x12^\n\x1crollup_property_source_links\x18\x01 \x03(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdb\x01\n%CreateRollupPropertySourceLinkRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36\x61nalyticsadmin.googleapis.com/RollupPropertySourceLink\x12\x62\n\x1brollup_property_source_link\x18\x02 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLinkB\x03\xe0\x41\x02\"u\n%DeleteRollupPropertySourceLinkRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\xcb\x02\n\x1bProvisionSubpropertyRequest\x12\x42\n\x0bsubproperty\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12]\n\x18subproperty_event_filter\x18\x03 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x01\x12\x88\x01\n0custom_dimension_and_metric_synchronization_mode\x18\x04 \x01(\x0e\x32I.google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationModeB\x03\xe0\x41\x01\"\xb7\x01\n\x1cProvisionSubpropertyResponse\x12=\n\x0bsubproperty\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12X\n\x18subproperty_event_filter\x18\x02 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"\xd2\x01\n#CreateSubpropertyEventFilterRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x61nalyticsadmin.googleapis.com/SubpropertyEventFilter\x12]\n\x18subproperty_event_filter\x18\x02 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x02\"n\n GetSubpropertyEventFilterRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\xa3\x01\n\"ListSubpropertyEventFiltersRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x61nalyticsadmin.googleapis.com/SubpropertyEventFilter\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n#ListSubpropertyEventFiltersResponse\x12Y\n\x19subproperty_event_filters\x18\x01 \x03(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xba\x01\n#UpdateSubpropertyEventFilterRequest\x12]\n\x18subproperty_event_filter\x18\x01 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"q\n#DeleteSubpropertyEventFilterRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\xd6\x01\n$CreateReportingDataAnnotationRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x61nalyticsadmin.googleapis.com/ReportingDataAnnotation\x12_\n\x19reporting_data_annotation\x18\x02 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationB\x03\xe0\x41\x02\"p\n!GetReportingDataAnnotationRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\xba\x01\n#ListReportingDataAnnotationsRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x61nalyticsadmin.googleapis.com/ReportingDataAnnotation\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x9c\x01\n$ListReportingDataAnnotationsResponse\x12[\n\x1areporting_data_annotations\x18\x01 \x03(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbd\x01\n$UpdateReportingDataAnnotationRequest\x12_\n\x19reporting_data_annotation\x18\x01 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"s\n$DeleteReportingDataAnnotationRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\xc2\x01\n\x19SubmitUserDeletionRequest\x12\x11\n\x07user_id\x18\x02 \x01(\tH\x00\x12\x13\n\tclient_id\x18\x03 \x01(\tH\x00\x12\x19\n\x0f\x61pp_instance_id\x18\x04 \x01(\tH\x00\x12\x1c\n\x12user_provided_data\x18\x05 \x01(\tH\x00\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/PropertyB\x06\n\x04user\"W\n\x1aSubmitUserDeletionResponse\x12\x39\n\x15\x64\x65letion_request_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"l\n\x1fGetSubpropertySyncConfigRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/SubpropertySyncConfig\"\xa1\x01\n!ListSubpropertySyncConfigsRequest\x12K\n\x06parent\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\x12\x33\x61nalyticsadmin.googleapis.com/SubpropertySyncConfig\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\"ListSubpropertySyncConfigsResponse\x12W\n\x18subproperty_sync_configs\x18\x01 \x03(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb7\x01\n\"UpdateSubpropertySyncConfigRequest\x12[\n\x17subproperty_sync_config\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"t\n#GetReportingIdentitySettingsRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/ReportingIdentitySettings\"\xc3\x01\n&UpdateReportingIdentitySettingsRequest\x12\x63\n\x1breporting_identity_settings\x18\x01 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.ReportingIdentitySettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"r\n\"GetUserProvidedDataSettingsRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/UserProvidedDataSettings2\xd3\x9b\x02\n\x15\x41nalyticsAdminService\x12\x93\x01\n\nGetAccount\x12\x31.google.analytics.admin.v1alpha.GetAccountRequest\x1a\'.google.analytics.admin.v1alpha.Account\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c\x12\x1a/v1alpha/{name=accounts/*}\x12\x94\x01\n\x0cListAccounts\x12\x33.google.analytics.admin.v1alpha.ListAccountsRequest\x1a\x34.google.analytics.admin.v1alpha.ListAccountsResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/v1alpha/accounts\x12\x88\x01\n\rDeleteAccount\x12\x34.google.analytics.admin.v1alpha.DeleteAccountRequest\x1a\x16.google.protobuf.Empty\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c*\x1a/v1alpha/{name=accounts/*}\x12\xb9\x01\n\rUpdateAccount\x12\x34.google.analytics.admin.v1alpha.UpdateAccountRequest\x1a\'.google.analytics.admin.v1alpha.Account\"I\xda\x41\x13\x61\x63\x63ount,update_mask\x82\xd3\xe4\x93\x02-2\"/v1alpha/{account.name=accounts/*}:\x07\x61\x63\x63ount\x12\xcc\x01\n\x16ProvisionAccountTicket\x12=.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest\x1a>.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/accounts:provisionAccountTicket:\x01*\x12\xb4\x01\n\x14ListAccountSummaries\x12;.google.analytics.admin.v1alpha.ListAccountSummariesRequest\x1a<.google.analytics.admin.v1alpha.ListAccountSummariesResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1alpha/accountSummaries\x12\x98\x01\n\x0bGetProperty\x12\x32.google.analytics.admin.v1alpha.GetPropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"+\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1alpha/{name=properties/*}\x12\x9c\x01\n\x0eListProperties\x12\x35.google.analytics.admin.v1alpha.ListPropertiesRequest\x1a\x36.google.analytics.admin.v1alpha.ListPropertiesResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/v1alpha/properties\x12\xa3\x01\n\x0e\x43reateProperty\x12\x35.google.analytics.admin.v1alpha.CreatePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"0\xda\x41\x08property\x82\xd3\xe4\x93\x02\x1f\"\x13/v1alpha/properties:\x08property\x12\x9e\x01\n\x0e\x44\x65leteProperty\x12\x35.google.analytics.admin.v1alpha.DeletePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"+\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1e*\x1c/v1alpha/{name=properties/*}\x12\xc1\x01\n\x0eUpdateProperty\x12\x35.google.analytics.admin.v1alpha.UpdatePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"N\xda\x41\x14property,update_mask\x82\xd3\xe4\x93\x02\x31\x32%/v1alpha/{property.name=properties/*}:\x08property\x12\xd9\x01\n\x12\x43reateFirebaseLink\x12\x39.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest\x1a,.google.analytics.admin.v1alpha.FirebaseLink\"Z\xda\x41\x14parent,firebase_link\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/firebaseLinks:\rfirebase_link\x12\xa4\x01\n\x12\x44\x65leteFirebaseLink\x12\x39.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/firebaseLinks/*}\x12\xc7\x01\n\x11ListFirebaseLinks\x12\x38.google.analytics.admin.v1alpha.ListFirebaseLinksRequest\x1a\x39.google.analytics.admin.v1alpha.ListFirebaseLinksResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/firebaseLinks\x12\xc3\x01\n\x10GetGlobalSiteTag\x12\x37.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest\x1a-.google.analytics.admin.v1alpha.GlobalSiteTag\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}\x12\xe1\x01\n\x13\x43reateGoogleAdsLink\x12:.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest\x1a-.google.analytics.admin.v1alpha.GoogleAdsLink\"_\xda\x41\x16parent,google_ads_link\x82\xd3\xe4\x93\x02@\"-/v1alpha/{parent=properties/*}/googleAdsLinks:\x0fgoogle_ads_link\x12\xf6\x01\n\x13UpdateGoogleAdsLink\x12:.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest\x1a-.google.analytics.admin.v1alpha.GoogleAdsLink\"t\xda\x41\x1bgoogle_ads_link,update_mask\x82\xd3\xe4\x93\x02P2=/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}:\x0fgoogle_ads_link\x12\xa7\x01\n\x13\x44\x65leteGoogleAdsLink\x12:.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest\x1a\x16.google.protobuf.Empty\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1alpha/{name=properties/*/googleAdsLinks/*}\x12\xcb\x01\n\x12ListGoogleAdsLinks\x12\x39.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest\x1a:.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1alpha/{parent=properties/*}/googleAdsLinks\x12\xcb\x01\n\x16GetDataSharingSettings\x12=.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.DataSharingSettings\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1alpha/{name=accounts/*/dataSharingSettings}\x12\xf6\x01\n\x1cGetMeasurementProtocolSecret\x12\x43.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\x12G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}\x12\x89\x02\n\x1eListMeasurementProtocolSecrets\x12\x45.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest\x1a\x46.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse\"X\xda\x41\x06parent\x82\xd3\xe4\x93\x02I\x12G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets\x12\xb8\x02\n\x1f\x43reateMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"\x91\x01\xda\x41\"parent,measurement_protocol_secret\x82\xd3\xe4\x93\x02\x66\"G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets:\x1bmeasurement_protocol_secret\x12\xd9\x01\n\x1f\x44\x65leteMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest\x1a\x16.google.protobuf.Empty\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I*G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}\x12\xda\x02\n\x1fUpdateMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"\xb3\x01\xda\x41\'measurement_protocol_secret,update_mask\x82\xd3\xe4\x93\x02\x82\x01\x32\x63/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}:\x1bmeasurement_protocol_secret\x12\xf7\x01\n\x1d\x41\x63knowledgeUserDataCollection\x12\x44.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest\x1a\x45.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse\"I\x82\xd3\xe4\x93\x02\x43\">/v1alpha/{property=properties/*}:acknowledgeUserDataCollection:\x01*\x12\x91\x02\n#GetSKAdNetworkConversionValueSchema\x12J.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\\\xda\x41\x04name\x82\xd3\xe4\x93\x02O\x12M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}\x12\xe3\x02\n&CreateSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\xa7\x01\xda\x41*parent,skadnetwork_conversion_value_schema\x82\xd3\xe4\x93\x02t\"M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema:#skadnetwork_conversion_value_schema\x12\xed\x01\n&DeleteSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest\x1a\x16.google.protobuf.Empty\"\\\xda\x41\x04name\x82\xd3\xe4\x93\x02O*M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}\x12\x8d\x03\n&UpdateSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\xd1\x01\xda\x41/skadnetwork_conversion_value_schema,update_mask\x82\xd3\xe4\x93\x02\x98\x01\x32q/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}:#skadnetwork_conversion_value_schema\x12\xa4\x02\n%ListSKAdNetworkConversionValueSchemas\x12L.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest\x1aM.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse\"^\xda\x41\x06parent\x82\xd3\xe4\x93\x02O\x12M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema\x12\xe4\x01\n\x19SearchChangeHistoryEvents\x12@.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest\x1a\x41.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1alpha/{account=accounts/*}:searchChangeHistoryEvents:\x01*\x12\xd5\x01\n\x18GetGoogleSignalsSettings\x12?.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.GoogleSignalsSettings\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/{name=properties/*/googleSignalsSettings}\x12\xac\x02\n\x1bUpdateGoogleSignalsSettings\x12\x42.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.GoogleSignalsSettings\"\x91\x01\xda\x41#google_signals_settings,update_mask\x82\xd3\xe4\x93\x02\x65\x32J/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}:\x17google_signals_settings\x12\xee\x01\n\x15\x43reateConversionEvent\x12<.google.analytics.admin.v1alpha.CreateConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"f\x88\x02\x01\xda\x41\x17parent,conversion_event\x82\xd3\xe4\x93\x02\x43\"//v1alpha/{parent=properties/*}/conversionEvents:\x10\x63onversion_event\x12\x84\x02\n\x15UpdateConversionEvent\x12<.google.analytics.admin.v1alpha.UpdateConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"|\x88\x02\x01\xda\x41\x1c\x63onversion_event,update_mask\x82\xd3\xe4\x93\x02T2@/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}:\x10\x63onversion_event\x12\xc3\x01\n\x12GetConversionEvent\x12\x39.google.analytics.admin.v1alpha.GetConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"A\x88\x02\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/conversionEvents/*}\x12\xb0\x01\n\x15\x44\x65leteConversionEvent\x12<.google.analytics.admin.v1alpha.DeleteConversionEventRequest\x1a\x16.google.protobuf.Empty\"A\x88\x02\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1alpha/{name=properties/*/conversionEvents/*}\x12\xd6\x01\n\x14ListConversionEvents\x12;.google.analytics.admin.v1alpha.ListConversionEventsRequest\x1a<.google.analytics.admin.v1alpha.ListConversionEventsResponse\"C\x88\x02\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/conversionEvents\x12\xc1\x01\n\x0e\x43reateKeyEvent\x12\x35.google.analytics.admin.v1alpha.CreateKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"N\xda\x41\x10parent,key_event\x82\xd3\xe4\x93\x02\x35\"(/v1alpha/{parent=properties/*}/keyEvents:\tkey_event\x12\xd0\x01\n\x0eUpdateKeyEvent\x12\x35.google.analytics.admin.v1alpha.UpdateKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"]\xda\x41\x15key_event,update_mask\x82\xd3\xe4\x93\x02?22/v1alpha/{key_event.name=properties/*/keyEvents/*}:\tkey_event\x12\xa4\x01\n\x0bGetKeyEvent\x12\x32.google.analytics.admin.v1alpha.GetKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{name=properties/*/keyEvents/*}\x12\x98\x01\n\x0e\x44\x65leteKeyEvent\x12\x35.google.analytics.admin.v1alpha.DeleteKeyEventRequest\x1a\x16.google.protobuf.Empty\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v1alpha/{name=properties/*/keyEvents/*}\x12\xb7\x01\n\rListKeyEvents\x12\x34.google.analytics.admin.v1alpha.ListKeyEventsRequest\x1a\x35.google.analytics.admin.v1alpha.ListKeyEventsResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{parent=properties/*}/keyEvents\x12\xf8\x01\n GetDisplayVideo360AdvertiserLink\x12G.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}\x12\x8b\x02\n\"ListDisplayVideo360AdvertiserLinks\x12I.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest\x1aJ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks\x12\xc6\x02\n#CreateDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\x93\x01\xda\x41(parent,display_video_360_advertiser_link\x82\xd3\xe4\x93\x02\x62\"=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks:!display_video_360_advertiser_link\x12\xd7\x01\n#DeleteDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}\x12\xee\x02\n#UpdateDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\xbb\x01\xda\x41-display_video_360_advertiser_link,update_mask\x82\xd3\xe4\x93\x02\x84\x01\x32_/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}:!display_video_360_advertiser_link\x12\x98\x02\n(GetDisplayVideo360AdvertiserLinkProposal\x12O.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}\x12\xab\x02\n*ListDisplayVideo360AdvertiserLinkProposals\x12Q.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest\x1aR.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals\x12\xf8\x02\n+CreateDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"\xad\x01\xda\x41\x31parent,display_video_360_advertiser_link_proposal\x82\xd3\xe4\x93\x02s\"E/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals:*display_video_360_advertiser_link_proposal\x12\xef\x01\n+DeleteDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest\x1a\x16.google.protobuf.Empty\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G*E/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}\x12\xb3\x02\n,ApproveDisplayVideo360AdvertiserLinkProposal\x12S.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest\x1aT.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve:\x01*\x12\xa1\x02\n+CancelDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"W\x82\xd3\xe4\x93\x02Q\"L/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel:\x01*\x12\xeb\x01\n\x15\x43reateCustomDimension\x12<.google.analytics.admin.v1alpha.CreateCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\"c\xda\x41\x17parent,custom_dimension\x82\xd3\xe4\x93\x02\x43\"//v1alpha/{parent=properties/*}/customDimensions:\x10\x63ustom_dimension\x12\x81\x02\n\x15UpdateCustomDimension\x12<.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\"y\xda\x41\x1c\x63ustom_dimension,update_mask\x82\xd3\xe4\x93\x02T2@/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}:\x10\x63ustom_dimension\x12\xd3\x01\n\x14ListCustomDimensions\x12;.google.analytics.admin.v1alpha.ListCustomDimensionsRequest\x1a<.google.analytics.admin.v1alpha.ListCustomDimensionsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/customDimensions\x12\xba\x01\n\x16\x41rchiveCustomDimension\x12=.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest\x1a\x16.google.protobuf.Empty\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\"7/v1alpha/{name=properties/*/customDimensions/*}:archive:\x01*\x12\xc0\x01\n\x12GetCustomDimension\x12\x39.google.analytics.admin.v1alpha.GetCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/customDimensions/*}\x12\xd9\x01\n\x12\x43reateCustomMetric\x12\x39.google.analytics.admin.v1alpha.CreateCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\"Z\xda\x41\x14parent,custom_metric\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/customMetrics:\rcustom_metric\x12\xec\x01\n\x12UpdateCustomMetric\x12\x39.google.analytics.admin.v1alpha.UpdateCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\"m\xda\x41\x19\x63ustom_metric,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{custom_metric.name=properties/*/customMetrics/*}:\rcustom_metric\x12\xc7\x01\n\x11ListCustomMetrics\x12\x38.google.analytics.admin.v1alpha.ListCustomMetricsRequest\x1a\x39.google.analytics.admin.v1alpha.ListCustomMetricsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/customMetrics\x12\xb1\x01\n\x13\x41rchiveCustomMetric\x12:.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\"4/v1alpha/{name=properties/*/customMetrics/*}:archive:\x01*\x12\xb4\x01\n\x0fGetCustomMetric\x12\x36.google.analytics.admin.v1alpha.GetCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/customMetrics/*}\x12\xd5\x01\n\x18GetDataRetentionSettings\x12?.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRetentionSettings\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/{name=properties/*/dataRetentionSettings}\x12\xac\x02\n\x1bUpdateDataRetentionSettings\x12\x42.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRetentionSettings\"\x91\x01\xda\x41#data_retention_settings,update_mask\x82\xd3\xe4\x93\x02\x65\x32J/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}:\x17\x64\x61ta_retention_settings\x12\xcd\x01\n\x10\x43reateDataStream\x12\x37.google.analytics.admin.v1alpha.CreateDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"T\xda\x41\x12parent,data_stream\x82\xd3\xe4\x93\x02\x39\"*/v1alpha/{parent=properties/*}/dataStreams:\x0b\x64\x61ta_stream\x12\x9e\x01\n\x10\x44\x65leteDataStream\x12\x37.google.analytics.admin.v1alpha.DeleteDataStreamRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1alpha/{name=properties/*/dataStreams/*}\x12\xde\x01\n\x10UpdateDataStream\x12\x37.google.analytics.admin.v1alpha.UpdateDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"e\xda\x41\x17\x64\x61ta_stream,update_mask\x82\xd3\xe4\x93\x02\x45\x32\x36/v1alpha/{data_stream.name=properties/*/dataStreams/*}:\x0b\x64\x61ta_stream\x12\xbf\x01\n\x0fListDataStreams\x12\x36.google.analytics.admin.v1alpha.ListDataStreamsRequest\x1a\x37.google.analytics.admin.v1alpha.ListDataStreamsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1alpha/{parent=properties/*}/dataStreams\x12\xac\x01\n\rGetDataStream\x12\x34.google.analytics.admin.v1alpha.GetDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1alpha/{name=properties/*/dataStreams/*}\x12\xa4\x01\n\x0bGetAudience\x12\x32.google.analytics.admin.v1alpha.GetAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{name=properties/*/audiences/*}\x12\xb7\x01\n\rListAudiences\x12\x34.google.analytics.admin.v1alpha.ListAudiencesRequest\x1a\x35.google.analytics.admin.v1alpha.ListAudiencesResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{parent=properties/*}/audiences\x12\xbf\x01\n\x0e\x43reateAudience\x12\x35.google.analytics.admin.v1alpha.CreateAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"L\xda\x41\x0fparent,audience\x82\xd3\xe4\x93\x02\x34\"(/v1alpha/{parent=properties/*}/audiences:\x08\x61udience\x12\xcd\x01\n\x0eUpdateAudience\x12\x35.google.analytics.admin.v1alpha.UpdateAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"Z\xda\x41\x14\x61udience,update_mask\x82\xd3\xe4\x93\x02=21/v1alpha/{audience.name=properties/*/audiences/*}:\x08\x61udience\x12\x9e\x01\n\x0f\x41rchiveAudience\x12\x36.google.analytics.admin.v1alpha.ArchiveAudienceRequest\x1a\x16.google.protobuf.Empty\";\x82\xd3\xe4\x93\x02\x35\"0/v1alpha/{name=properties/*/audiences/*}:archive:\x01*\x12\xc4\x01\n\x13GetSearchAds360Link\x12:.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/searchAds360Links/*}\x12\xd7\x01\n\x15ListSearchAds360Links\x12<.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest\x1a=.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{parent=properties/*}/searchAds360Links\x12\xf5\x01\n\x16\x43reateSearchAds360Link\x12=.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"j\xda\x41\x1aparent,search_ads_360_link\x82\xd3\xe4\x93\x02G\"0/v1alpha/{parent=properties/*}/searchAds360Links:\x13search_ads_360_link\x12\xb0\x01\n\x16\x44\x65leteSearchAds360Link\x12=.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1alpha/{name=properties/*/searchAds360Links/*}\x12\x8f\x02\n\x16UpdateSearchAds360Link\x12=.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"\x83\x01\xda\x41\x1fsearch_ads_360_link,update_mask\x82\xd3\xe4\x93\x02[2D/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}:\x13search_ads_360_link\x12\xcd\x01\n\x16GetAttributionSettings\x12=.google.analytics.admin.v1alpha.GetAttributionSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.AttributionSettings\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/attributionSettings}\x12\x9b\x02\n\x19UpdateAttributionSettings\x12@.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.AttributionSettings\"\x86\x01\xda\x41 attribution_settings,update_mask\x82\xd3\xe4\x93\x02]2E/v1alpha/{attribution_settings.name=properties/*/attributionSettings}:\x14\x61ttribution_settings\x12\xf0\x01\n\x0fRunAccessReport\x12\x36.google.analytics.admin.v1alpha.RunAccessReportRequest\x1a\x37.google.analytics.admin.v1alpha.RunAccessReportResponse\"l\x82\xd3\xe4\x93\x02\x66\"./v1alpha/{entity=properties/*}:runAccessReport:\x01*Z1\",/v1alpha/{entity=accounts/*}:runAccessReport:\x01*\x12\x9f\x02\n\x13\x43reateAccessBinding\x12:.google.analytics.admin.v1alpha.CreateAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"\x9c\x01\xda\x41\x15parent,access_binding\x82\xd3\xe4\x93\x02~\"+/v1alpha/{parent=accounts/*}/accessBindings:\x0e\x61\x63\x63\x65ss_bindingZ?\"-/v1alpha/{parent=properties/*}/accessBindings:\x0e\x61\x63\x63\x65ss_binding\x12\xe7\x01\n\x10GetAccessBinding\x12\x37.google.analytics.admin.v1alpha.GetAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"k\xda\x41\x04name\x82\xd3\xe4\x93\x02^\x12+/v1alpha/{name=accounts/*/accessBindings/*}Z/\x12-/v1alpha/{name=properties/*/accessBindings/*}\x12\xb7\x02\n\x13UpdateAccessBinding\x12:.google.analytics.admin.v1alpha.UpdateAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"\xb4\x01\xda\x41\x0e\x61\x63\x63\x65ss_binding\x82\xd3\xe4\x93\x02\x9c\x01\x32:/v1alpha/{access_binding.name=accounts/*/accessBindings/*}:\x0e\x61\x63\x63\x65ss_bindingZN2\"9/v1alpha/{parent=properties/*}/accessBindings:batchCreate:\x01*\x12\x8f\x02\n\x16\x42\x61tchGetAccessBindings\x12=.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest\x1a>.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse\"v\x82\xd3\xe4\x93\x02p\x12\x34/v1alpha/{parent=accounts/*}/accessBindings:batchGetZ8\x12\x36/v1alpha/{parent=properties/*}/accessBindings:batchGet\x12\xa5\x02\n\x19\x42\x61tchUpdateAccessBindings\x12@.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest\x1a\x41.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse\"\x82\x01\x82\xd3\xe4\x93\x02|\"7/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate:\x01*Z>\"9/v1alpha/{parent=properties/*}/accessBindings:batchUpdate:\x01*\x12\xfa\x01\n\x19\x42\x61tchDeleteAccessBindings\x12@.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest\x1a\x16.google.protobuf.Empty\"\x82\x01\x82\xd3\xe4\x93\x02|\"7/v1alpha/{parent=accounts/*}/accessBindings:batchDelete:\x01*Z>\"9/v1alpha/{parent=properties/*}/accessBindings:batchDelete:\x01*\x12\xc0\x01\n\x12GetExpandedDataSet\x12\x39.google.analytics.admin.v1alpha.GetExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/expandedDataSets/*}\x12\xd3\x01\n\x14ListExpandedDataSets\x12;.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest\x1a<.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/expandedDataSets\x12\xed\x01\n\x15\x43reateExpandedDataSet\x12<.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\"e\xda\x41\x18parent,expanded_data_set\x82\xd3\xe4\x93\x02\x44\"//v1alpha/{parent=properties/*}/expandedDataSets:\x11\x65xpanded_data_set\x12\x84\x02\n\x15UpdateExpandedDataSet\x12<.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\"|\xda\x41\x1d\x65xpanded_data_set,update_mask\x82\xd3\xe4\x93\x02V2A/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}:\x11\x65xpanded_data_set\x12\xad\x01\n\x15\x44\x65leteExpandedDataSet\x12<.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1alpha/{name=properties/*/expandedDataSets/*}\x12\xb4\x01\n\x0fGetChannelGroup\x12\x36.google.analytics.admin.v1alpha.GetChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/channelGroups/*}\x12\xc7\x01\n\x11ListChannelGroups\x12\x38.google.analytics.admin.v1alpha.ListChannelGroupsRequest\x1a\x39.google.analytics.admin.v1alpha.ListChannelGroupsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/channelGroups\x12\xd9\x01\n\x12\x43reateChannelGroup\x12\x39.google.analytics.admin.v1alpha.CreateChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\"Z\xda\x41\x14parent,channel_group\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/channelGroups:\rchannel_group\x12\xec\x01\n\x12UpdateChannelGroup\x12\x39.google.analytics.admin.v1alpha.UpdateChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\"m\xda\x41\x19\x63hannel_group,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{channel_group.name=properties/*/channelGroups/*}:\rchannel_group\x12\xa4\x01\n\x12\x44\x65leteChannelGroup\x12\x39.google.analytics.admin.v1alpha.DeleteChannelGroupRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/channelGroups/*}\x12\xd9\x01\n\x12\x43reateBigQueryLink\x12\x39.google.analytics.admin.v1alpha.CreateBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\"Z\xda\x41\x14parent,bigquery_link\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/bigQueryLinks:\rbigquery_link\x12\xb4\x01\n\x0fGetBigQueryLink\x12\x36.google.analytics.admin.v1alpha.GetBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/bigQueryLinks/*}\x12\xc7\x01\n\x11ListBigQueryLinks\x12\x38.google.analytics.admin.v1alpha.ListBigQueryLinksRequest\x1a\x39.google.analytics.admin.v1alpha.ListBigQueryLinksResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/bigQueryLinks\x12\xa4\x01\n\x12\x44\x65leteBigQueryLink\x12\x39.google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/bigQueryLinks/*}\x12\xec\x01\n\x12UpdateBigQueryLink\x12\x39.google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\"m\xda\x41\x19\x62igquery_link,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{bigquery_link.name=properties/*/bigQueryLinks/*}:\rbigquery_link\x12\xfb\x01\n\x1eGetEnhancedMeasurementSettings\x12\x45.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest\x1a;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}\x12\xe5\x02\n!UpdateEnhancedMeasurementSettings\x12H.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest\x1a;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings\"\xb8\x01\xda\x41)enhanced_measurement_settings,update_mask\x82\xd3\xe4\x93\x02\x85\x01\x32\x64/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}:\x1d\x65nhanced_measurement_settings\x12\xb0\x01\n\x0eGetAdSenseLink\x12\x35.google.analytics.admin.v1alpha.GetAdSenseLinkRequest\x1a+.google.analytics.admin.v1alpha.AdSenseLink\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1alpha/{name=properties/*/adSenseLinks/*}\x12\xd3\x01\n\x11\x43reateAdSenseLink\x12\x38.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest\x1a+.google.analytics.admin.v1alpha.AdSenseLink\"W\xda\x41\x13parent,adsense_link\x82\xd3\xe4\x93\x02;\"+/v1alpha/{parent=properties/*}/adSenseLinks:\x0c\x61\x64sense_link\x12\xa1\x01\n\x11\x44\x65leteAdSenseLink\x12\x38.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1alpha/{name=properties/*/adSenseLinks/*}\x12\xc3\x01\n\x10ListAdSenseLinks\x12\x37.google.analytics.admin.v1alpha.ListAdSenseLinksRequest\x1a\x38.google.analytics.admin.v1alpha.ListAdSenseLinksResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1alpha/{parent=properties/*}/adSenseLinks\x12\xce\x01\n\x12GetEventCreateRule\x12\x39.google.analytics.admin.v1alpha.GetEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}\x12\xe1\x01\n\x14ListEventCreateRules\x12;.google.analytics.admin.v1alpha.ListEventCreateRulesRequest\x1a<.google.analytics.admin.v1alpha.ListEventCreateRulesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules\x12\xfb\x01\n\x15\x43reateEventCreateRule\x12<.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"s\xda\x41\x18parent,event_create_rule\x82\xd3\xe4\x93\x02R\"=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules:\x11\x65vent_create_rule\x12\x93\x02\n\x15UpdateEventCreateRule\x12<.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"\x8a\x01\xda\x41\x1d\x65vent_create_rule,update_mask\x82\xd3\xe4\x93\x02\x64\x32O/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}:\x11\x65vent_create_rule\x12\xbb\x01\n\x15\x44\x65leteEventCreateRule\x12<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}\x12\xc6\x01\n\x10GetEventEditRule\x12\x37.google.analytics.admin.v1alpha.GetEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}\x12\xd9\x01\n\x12ListEventEditRules\x12\x39.google.analytics.admin.v1alpha.ListEventEditRulesRequest\x1a:.google.analytics.admin.v1alpha.ListEventEditRulesResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules\x12\xef\x01\n\x13\x43reateEventEditRule\x12:.google.analytics.admin.v1alpha.CreateEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"m\xda\x41\x16parent,event_edit_rule\x82\xd3\xe4\x93\x02N\";/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:\x0f\x65vent_edit_rule\x12\x85\x02\n\x13UpdateEventEditRule\x12:.google.analytics.admin.v1alpha.UpdateEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"\x82\x01\xda\x41\x1b\x65vent_edit_rule,update_mask\x82\xd3\xe4\x93\x02^2K/v1alpha/{event_edit_rule.name=properties/*/dataStreams/*/eventEditRules/*}:\x0f\x65vent_edit_rule\x12\xb5\x01\n\x13\x44\x65leteEventEditRule\x12:.google.analytics.admin.v1alpha.DeleteEventEditRuleRequest\x1a\x16.google.protobuf.Empty\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}\x12\xbd\x01\n\x15ReorderEventEditRules\x12<.google.analytics.admin.v1alpha.ReorderEventEditRulesRequest\x1a\x16.google.protobuf.Empty\"N\x82\xd3\xe4\x93\x02H\"C/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:reorder:\x01*\x12\xba\x02\n\x1bUpdateDataRedactionSettings\x12\x42.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRedactionSettings\"\x9f\x01\xda\x41#data_redaction_settings,update_mask\x82\xd3\xe4\x93\x02s2X/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}:\x17\x64\x61ta_redaction_settings\x12\xe3\x01\n\x18GetDataRedactionSettings\x12?.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRedactionSettings\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}\x12\xc4\x01\n\x13GetCalculatedMetric\x12:.google.analytics.admin.v1alpha.GetCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/calculatedMetrics/*}\x12\x86\x02\n\x16\x43reateCalculatedMetric\x12=.google.analytics.admin.v1alpha.CreateCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"{\xda\x41-parent,calculated_metric,calculated_metric_id\x82\xd3\xe4\x93\x02\x45\"0/v1alpha/{parent=properties/*}/calculatedMetrics:\x11\x63\x61lculated_metric\x12\xd7\x01\n\x15ListCalculatedMetrics\x12<.google.analytics.admin.v1alpha.ListCalculatedMetricsRequest\x1a=.google.analytics.admin.v1alpha.ListCalculatedMetricsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{parent=properties/*}/calculatedMetrics\x12\x88\x02\n\x16UpdateCalculatedMetric\x12=.google.analytics.admin.v1alpha.UpdateCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"}\xda\x41\x1d\x63\x61lculated_metric,update_mask\x82\xd3\xe4\x93\x02W2B/v1alpha/{calculated_metric.name=properties/*/calculatedMetrics/*}:\x11\x63\x61lculated_metric\x12\xb0\x01\n\x16\x44\x65leteCalculatedMetric\x12=.google.analytics.admin.v1alpha.DeleteCalculatedMetricRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1alpha/{name=properties/*/calculatedMetrics/*}\x12\xc6\x01\n\x14\x43reateRollupProperty\x12;.google.analytics.admin.v1alpha.CreateRollupPropertyRequest\x1a<.google.analytics.admin.v1alpha.CreateRollupPropertyResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/properties:createRollupProperty:\x01*\x12\xe4\x01\n\x1bGetRollupPropertySourceLink\x12\x42.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest\x1a\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}\x12\xf7\x01\n\x1dListRollupPropertySourceLinks\x12\x44.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest\x1a\x45.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{parent=properties/*}/rollupPropertySourceLinks\x12\xa6\x02\n\x1e\x43reateRollupPropertySourceLink\x12\x45.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest\x1a\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"\x82\x01\xda\x41\"parent,rollup_property_source_link\x82\xd3\xe4\x93\x02W\"8/v1alpha/{parent=properties/*}/rollupPropertySourceLinks:\x1brollup_property_source_link\x12\xc8\x01\n\x1e\x44\x65leteRollupPropertySourceLink\x12\x45.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest\x1a\x16.google.protobuf.Empty\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}\x12\xc6\x01\n\x14ProvisionSubproperty\x12;.google.analytics.admin.v1alpha.ProvisionSubpropertyRequest\x1a<.google.analytics.admin.v1alpha.ProvisionSubpropertyResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/properties:provisionSubproperty:\x01*\x12\x97\x02\n\x1c\x43reateSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"z\xda\x41\x1fparent,subproperty_event_filter\x82\xd3\xe4\x93\x02R\"6/v1alpha/{parent=properties/*}/subpropertyEventFilters:\x18subproperty_event_filter\x12\xdc\x01\n\x19GetSubpropertyEventFilter\x12@.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{name=properties/*/subpropertyEventFilters/*}\x12\xef\x01\n\x1bListSubpropertyEventFilters\x12\x42.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest\x1a\x43.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{parent=properties/*}/subpropertyEventFilters\x12\xb6\x02\n\x1cUpdateSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"\x98\x01\xda\x41$subproperty_event_filter,update_mask\x82\xd3\xe4\x93\x02k2O/v1alpha/{subproperty_event_filter.name=properties/*/subpropertyEventFilters/*}:\x18subproperty_event_filter\x12\xc2\x01\n\x1c\x44\x65leteSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest\x1a\x16.google.protobuf.Empty\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38*6/v1alpha/{name=properties/*/subpropertyEventFilters/*}\x12\x9d\x02\n\x1d\x43reateReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.CreateReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"}\xda\x41 parent,reporting_data_annotation\x82\xd3\xe4\x93\x02T\"7/v1alpha/{parent=properties/*}/reportingDataAnnotations:\x19reporting_data_annotation\x12\xe0\x01\n\x1aGetReportingDataAnnotation\x12\x41.google.analytics.admin.v1alpha.GetReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1alpha/{name=properties/*/reportingDataAnnotations/*}\x12\xf3\x01\n\x1cListReportingDataAnnotations\x12\x43.google.analytics.admin.v1alpha.ListReportingDataAnnotationsRequest\x1a\x44.google.analytics.admin.v1alpha.ListReportingDataAnnotationsResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1alpha/{parent=properties/*}/reportingDataAnnotations\x12\xbd\x02\n\x1dUpdateReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"\x9c\x01\xda\x41%reporting_data_annotation,update_mask\x82\xd3\xe4\x93\x02n2Q/v1alpha/{reporting_data_annotation.name=properties/*/reportingDataAnnotations/*}:\x19reporting_data_annotation\x12\xc5\x01\n\x1d\x44\x65leteReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.DeleteReportingDataAnnotationRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1alpha/{name=properties/*/reportingDataAnnotations/*}\x12\xce\x01\n\x12SubmitUserDeletion\x12\x39.google.analytics.admin.v1alpha.SubmitUserDeletionRequest\x1a:.google.analytics.admin.v1alpha.SubmitUserDeletionResponse\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\"//v1alpha/{name=properties/*}:submitUserDeletion:\x01*\x12\xeb\x01\n\x1aListSubpropertySyncConfigs\x12\x41.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsRequest\x1a\x42.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{parent=properties/*}/subpropertySyncConfigs\x12\xaf\x02\n\x1bUpdateSubpropertySyncConfig\x12\x42.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest\x1a\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\"\x94\x01\xda\x41#subproperty_sync_config,update_mask\x82\xd3\xe4\x93\x02h2M/v1alpha/{subproperty_sync_config.name=properties/*/subpropertySyncConfigs/*}:\x17subproperty_sync_config\x12\xd8\x01\n\x18GetSubpropertySyncConfig\x12?.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest\x1a\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{name=properties/*/subpropertySyncConfigs/*}\x12\xe5\x01\n\x1cGetReportingIdentitySettings\x12\x43.google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest\x1a\x39.google.analytics.admin.v1alpha.ReportingIdentitySettings\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{name=properties/*/reportingIdentitySettings}\x12\xc8\x02\n\x1fUpdateReportingIdentitySettings\x12\x46.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest\x1a\x39.google.analytics.admin.v1alpha.ReportingIdentitySettings\"\xa1\x01\xda\x41\'reporting_identity_settings,update_mask\x82\xd3\xe4\x93\x02q2R/v1alpha/{reporting_identity_settings.name=properties/*/reportingIdentitySettings}:\x1breporting_identity_settings\x12\xe1\x01\n\x1bGetUserProvidedDataSettings\x12\x42.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest\x1a\x38.google.analytics.admin.v1alpha.UserProvidedDataSettings\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{name=properties/*/userProvidedDataSettings}\x1a\xfc\x01\xca\x41\x1d\x61nalyticsadmin.googleapis.com\xd2\x41\xd8\x01https://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB{\n\"com.google.analytics.admin.v1alphaB\x13\x41nalyticsAdminProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Analytics + module Admin + module V1alpha + RunAccessReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.RunAccessReportRequest").msgclass + RunAccessReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.RunAccessReportResponse").msgclass + GetAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAccountRequest").msgclass + ListAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountsRequest").msgclass + ListAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountsResponse").msgclass + DeleteAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteAccountRequest").msgclass + UpdateAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateAccountRequest").msgclass + ProvisionAccountTicketRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ProvisionAccountTicketRequest").msgclass + ProvisionAccountTicketResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ProvisionAccountTicketResponse").msgclass + GetPropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetPropertyRequest").msgclass + ListPropertiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListPropertiesRequest").msgclass + ListPropertiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListPropertiesResponse").msgclass + UpdatePropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdatePropertyRequest").msgclass + CreatePropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreatePropertyRequest").msgclass + DeletePropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeletePropertyRequest").msgclass + CreateFirebaseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateFirebaseLinkRequest").msgclass + DeleteFirebaseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest").msgclass + ListFirebaseLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListFirebaseLinksRequest").msgclass + ListFirebaseLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListFirebaseLinksResponse").msgclass + GetGlobalSiteTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetGlobalSiteTagRequest").msgclass + CreateGoogleAdsLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest").msgclass + UpdateGoogleAdsLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest").msgclass + DeleteGoogleAdsLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest").msgclass + ListGoogleAdsLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest").msgclass + ListGoogleAdsLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse").msgclass + GetDataSharingSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataSharingSettingsRequest").msgclass + ListAccountSummariesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountSummariesRequest").msgclass + ListAccountSummariesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountSummariesResponse").msgclass + AcknowledgeUserDataCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest").msgclass + AcknowledgeUserDataCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse").msgclass + SearchChangeHistoryEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest").msgclass + SearchChangeHistoryEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse").msgclass + GetMeasurementProtocolSecretRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest").msgclass + CreateMeasurementProtocolSecretRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest").msgclass + DeleteMeasurementProtocolSecretRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest").msgclass + UpdateMeasurementProtocolSecretRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest").msgclass + ListMeasurementProtocolSecretsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest").msgclass + ListMeasurementProtocolSecretsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse").msgclass + GetSKAdNetworkConversionValueSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest").msgclass + CreateSKAdNetworkConversionValueSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest").msgclass + DeleteSKAdNetworkConversionValueSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest").msgclass + UpdateSKAdNetworkConversionValueSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest").msgclass + ListSKAdNetworkConversionValueSchemasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest").msgclass + ListSKAdNetworkConversionValueSchemasResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse").msgclass + GetGoogleSignalsSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest").msgclass + UpdateGoogleSignalsSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest").msgclass + CreateConversionEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateConversionEventRequest").msgclass + UpdateConversionEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateConversionEventRequest").msgclass + GetConversionEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetConversionEventRequest").msgclass + DeleteConversionEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteConversionEventRequest").msgclass + ListConversionEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListConversionEventsRequest").msgclass + ListConversionEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListConversionEventsResponse").msgclass + CreateKeyEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateKeyEventRequest").msgclass + UpdateKeyEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateKeyEventRequest").msgclass + GetKeyEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetKeyEventRequest").msgclass + DeleteKeyEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteKeyEventRequest").msgclass + ListKeyEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListKeyEventsRequest").msgclass + ListKeyEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListKeyEventsResponse").msgclass + GetDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest").msgclass + ListDisplayVideo360AdvertiserLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest").msgclass + ListDisplayVideo360AdvertiserLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse").msgclass + CreateDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest").msgclass + DeleteDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest").msgclass + UpdateDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest").msgclass + GetDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest").msgclass + ListDisplayVideo360AdvertiserLinkProposalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest").msgclass + ListDisplayVideo360AdvertiserLinkProposalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse").msgclass + CreateDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest").msgclass + DeleteDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest").msgclass + ApproveDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest").msgclass + ApproveDisplayVideo360AdvertiserLinkProposalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse").msgclass + CancelDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest").msgclass + GetSearchAds360LinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetSearchAds360LinkRequest").msgclass + ListSearchAds360LinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSearchAds360LinksRequest").msgclass + ListSearchAds360LinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSearchAds360LinksResponse").msgclass + CreateSearchAds360LinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest").msgclass + DeleteSearchAds360LinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest").msgclass + UpdateSearchAds360LinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest").msgclass + CreateCustomDimensionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateCustomDimensionRequest").msgclass + UpdateCustomDimensionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateCustomDimensionRequest").msgclass + ListCustomDimensionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCustomDimensionsRequest").msgclass + ListCustomDimensionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCustomDimensionsResponse").msgclass + ArchiveCustomDimensionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest").msgclass + GetCustomDimensionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetCustomDimensionRequest").msgclass + CreateCustomMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateCustomMetricRequest").msgclass + UpdateCustomMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateCustomMetricRequest").msgclass + ListCustomMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCustomMetricsRequest").msgclass + ListCustomMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCustomMetricsResponse").msgclass + ArchiveCustomMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ArchiveCustomMetricRequest").msgclass + GetCustomMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetCustomMetricRequest").msgclass + CreateCalculatedMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateCalculatedMetricRequest").msgclass + UpdateCalculatedMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateCalculatedMetricRequest").msgclass + DeleteCalculatedMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteCalculatedMetricRequest").msgclass + ListCalculatedMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCalculatedMetricsRequest").msgclass + ListCalculatedMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCalculatedMetricsResponse").msgclass + GetCalculatedMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetCalculatedMetricRequest").msgclass + GetDataRetentionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest").msgclass + UpdateDataRetentionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest").msgclass + CreateDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateDataStreamRequest").msgclass + DeleteDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteDataStreamRequest").msgclass + UpdateDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateDataStreamRequest").msgclass + ListDataStreamsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDataStreamsRequest").msgclass + ListDataStreamsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDataStreamsResponse").msgclass + GetDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataStreamRequest").msgclass + GetAudienceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAudienceRequest").msgclass + ListAudiencesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAudiencesRequest").msgclass + ListAudiencesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAudiencesResponse").msgclass + CreateAudienceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateAudienceRequest").msgclass + UpdateAudienceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateAudienceRequest").msgclass + ArchiveAudienceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ArchiveAudienceRequest").msgclass + GetAttributionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAttributionSettingsRequest").msgclass + UpdateAttributionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest").msgclass + GetAccessBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAccessBindingRequest").msgclass + BatchGetAccessBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest").msgclass + BatchGetAccessBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse").msgclass + ListAccessBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccessBindingsRequest").msgclass + ListAccessBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccessBindingsResponse").msgclass + CreateAccessBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateAccessBindingRequest").msgclass + BatchCreateAccessBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest").msgclass + BatchCreateAccessBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse").msgclass + UpdateAccessBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateAccessBindingRequest").msgclass + BatchUpdateAccessBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest").msgclass + BatchUpdateAccessBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse").msgclass + DeleteAccessBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteAccessBindingRequest").msgclass + BatchDeleteAccessBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest").msgclass + CreateExpandedDataSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateExpandedDataSetRequest").msgclass + UpdateExpandedDataSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest").msgclass + DeleteExpandedDataSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest").msgclass + GetExpandedDataSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetExpandedDataSetRequest").msgclass + ListExpandedDataSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListExpandedDataSetsRequest").msgclass + ListExpandedDataSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListExpandedDataSetsResponse").msgclass + CreateChannelGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateChannelGroupRequest").msgclass + UpdateChannelGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateChannelGroupRequest").msgclass + DeleteChannelGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteChannelGroupRequest").msgclass + GetChannelGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetChannelGroupRequest").msgclass + ListChannelGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListChannelGroupsRequest").msgclass + ListChannelGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListChannelGroupsResponse").msgclass + CreateBigQueryLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateBigQueryLinkRequest").msgclass + GetBigQueryLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetBigQueryLinkRequest").msgclass + ListBigQueryLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListBigQueryLinksRequest").msgclass + ListBigQueryLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListBigQueryLinksResponse").msgclass + UpdateBigQueryLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest").msgclass + DeleteBigQueryLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest").msgclass + GetEnhancedMeasurementSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest").msgclass + UpdateEnhancedMeasurementSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest").msgclass + GetDataRedactionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest").msgclass + UpdateDataRedactionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest").msgclass + CreateAdSenseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateAdSenseLinkRequest").msgclass + GetAdSenseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAdSenseLinkRequest").msgclass + DeleteAdSenseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest").msgclass + ListAdSenseLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAdSenseLinksRequest").msgclass + ListAdSenseLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAdSenseLinksResponse").msgclass + CreateEventCreateRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateEventCreateRuleRequest").msgclass + UpdateEventCreateRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest").msgclass + DeleteEventCreateRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest").msgclass + GetEventCreateRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetEventCreateRuleRequest").msgclass + ListEventCreateRulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListEventCreateRulesRequest").msgclass + ListEventCreateRulesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListEventCreateRulesResponse").msgclass + CreateEventEditRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateEventEditRuleRequest").msgclass + UpdateEventEditRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateEventEditRuleRequest").msgclass + DeleteEventEditRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteEventEditRuleRequest").msgclass + GetEventEditRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetEventEditRuleRequest").msgclass + ListEventEditRulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListEventEditRulesRequest").msgclass + ListEventEditRulesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListEventEditRulesResponse").msgclass + ReorderEventEditRulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReorderEventEditRulesRequest").msgclass + CreateRollupPropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateRollupPropertyRequest").msgclass + CreateRollupPropertyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateRollupPropertyResponse").msgclass + GetRollupPropertySourceLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest").msgclass + ListRollupPropertySourceLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest").msgclass + ListRollupPropertySourceLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse").msgclass + CreateRollupPropertySourceLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest").msgclass + DeleteRollupPropertySourceLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest").msgclass + ProvisionSubpropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ProvisionSubpropertyRequest").msgclass + ProvisionSubpropertyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ProvisionSubpropertyResponse").msgclass + CreateSubpropertyEventFilterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest").msgclass + GetSubpropertyEventFilterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest").msgclass + ListSubpropertyEventFiltersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest").msgclass + ListSubpropertyEventFiltersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse").msgclass + UpdateSubpropertyEventFilterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest").msgclass + DeleteSubpropertyEventFilterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest").msgclass + CreateReportingDataAnnotationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateReportingDataAnnotationRequest").msgclass + GetReportingDataAnnotationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetReportingDataAnnotationRequest").msgclass + ListReportingDataAnnotationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListReportingDataAnnotationsRequest").msgclass + ListReportingDataAnnotationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListReportingDataAnnotationsResponse").msgclass + UpdateReportingDataAnnotationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest").msgclass + DeleteReportingDataAnnotationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteReportingDataAnnotationRequest").msgclass + SubmitUserDeletionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubmitUserDeletionRequest").msgclass + SubmitUserDeletionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubmitUserDeletionResponse").msgclass + GetSubpropertySyncConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest").msgclass + ListSubpropertySyncConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSubpropertySyncConfigsRequest").msgclass + ListSubpropertySyncConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSubpropertySyncConfigsResponse").msgclass + UpdateSubpropertySyncConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest").msgclass + GetReportingIdentitySettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest").msgclass + UpdateReportingIdentitySettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest").msgclass + GetUserProvidedDataSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service.rb new file mode 100644 index 000000000000..110e6921b5d8 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/analytics/admin/v1alpha/version" + +require "google/analytics/admin/v1alpha/analytics_admin_service/credentials" +require "google/analytics/admin/v1alpha/analytics_admin_service/paths" +require "google/analytics/admin/v1alpha/analytics_admin_service/client" +require "google/analytics/admin/v1alpha/analytics_admin_service/rest" + +module Google + module Analytics + module Admin + module V1alpha + ## + # Service Interface for the Google Analytics Admin API. + # + # @example Load this service and instantiate a gRPC client + # + # require "google/analytics/admin/v1alpha/analytics_admin_service" + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/analytics/admin/v1alpha/analytics_admin_service/rest" + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + module AnalyticsAdminService + end + end + end + end +end + +helper_path = ::File.join __dir__, "analytics_admin_service", "helpers.rb" +require "google/analytics/admin/v1alpha/analytics_admin_service/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb new file mode 100644 index 000000000000..5e925cdff394 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb @@ -0,0 +1,15919 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/analytics/admin/v1alpha/analytics_admin_pb" + +module Google + module Analytics + module Admin + module V1alpha + module AnalyticsAdminService + ## + # Client for the AnalyticsAdminService service. + # + # Service Interface for the Google Analytics Admin API. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "analyticsadmin.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :analytics_admin_service_stub + + ## + # Configure the AnalyticsAdminService Client class. + # + # See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AnalyticsAdminService clients + # ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Analytics", "Admin", "V1alpha"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + default_config.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2] + } + + default_config.rpcs.get_account.timeout = 60.0 + + default_config.rpcs.list_accounts.timeout = 60.0 + + default_config.rpcs.delete_account.timeout = 60.0 + + default_config.rpcs.update_account.timeout = 60.0 + + default_config.rpcs.provision_account_ticket.timeout = 60.0 + + default_config.rpcs.get_property.timeout = 60.0 + + default_config.rpcs.list_properties.timeout = 60.0 + + default_config.rpcs.create_property.timeout = 60.0 + + default_config.rpcs.delete_property.timeout = 60.0 + + default_config.rpcs.update_property.timeout = 60.0 + + default_config.rpcs.create_firebase_link.timeout = 60.0 + + default_config.rpcs.delete_firebase_link.timeout = 60.0 + + default_config.rpcs.list_firebase_links.timeout = 60.0 + + default_config.rpcs.get_global_site_tag.timeout = 60.0 + + default_config.rpcs.create_google_ads_link.timeout = 60.0 + + default_config.rpcs.update_google_ads_link.timeout = 60.0 + + default_config.rpcs.delete_google_ads_link.timeout = 60.0 + + default_config.rpcs.list_google_ads_links.timeout = 60.0 + + default_config.rpcs.get_enhanced_measurement_settings.timeout = 60.0 + + default_config.rpcs.update_enhanced_measurement_settings.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AnalyticsAdminService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @analytics_admin_service_stub.universe_domain + end + + ## + # Create a new AnalyticsAdminService client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AnalyticsAdminService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/analytics/admin/v1alpha/analytics_admin_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @analytics_admin_service_stub = ::Gapic::ServiceStub.new( + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @analytics_admin_service_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @analytics_admin_service_stub.logger + end + + # Service calls + + ## + # Lookup for a single Account. + # + # @overload get_account(request, options = nil) + # Pass arguments to `get_account` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetAccountRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetAccountRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_account(name: nil) + # Pass arguments to `get_account` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the account to lookup. + # Format: accounts/\\{account} + # Example: "accounts/100" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Account] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::Account] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetAccountRequest.new + # + # # Call the get_account method. + # result = client.get_account request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Account. + # p result + # + def get_account request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAccountRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_account.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_account.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_account.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_account, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns all accounts accessible by the caller. + # + # Note that these accounts might not currently have GA properties. + # Soft-deleted (ie: "trashed") accounts are excluded by default. + # Returns an empty list if no relevant accounts are found. + # + # @overload list_accounts(request, options = nil) + # Pass arguments to `list_accounts` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListAccountsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListAccountsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_accounts(page_size: nil, page_token: nil, show_deleted: nil) + # Pass arguments to `list_accounts` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListAccounts` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListAccounts` must + # match the call that provided the page token. + # @param show_deleted [::Boolean] + # Whether to include soft-deleted (ie: "trashed") Accounts in the + # results. Accounts can be inspected to determine whether they are deleted or + # not. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListAccountsRequest.new + # + # # Call the list_accounts method. + # result = client.list_accounts request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::Account. + # p item + # end + # + def list_accounts request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccountsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_accounts.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_accounts.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_accounts.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_accounts, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_accounts, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Marks target Account as soft-deleted (ie: "trashed") and returns it. + # + # This API does not have a method to restore soft-deleted accounts. + # However, they can be restored using the Trash Can UI. + # + # If the accounts are not restored before the expiration time, the account + # and all child resources (eg: Properties, GoogleAdsLinks, Streams, + # AccessBindings) will be permanently purged. + # https://support.google.com/analytics/answer/6154772 + # + # Returns an error if the target is not found. + # + # @overload delete_account(request, options = nil) + # Pass arguments to `delete_account` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteAccountRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_account(name: nil) + # Pass arguments to `delete_account` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Account to soft-delete. + # Format: accounts/\\{account} + # Example: "accounts/100" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new + # + # # Call the delete_account method. + # result = client.delete_account request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_account request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_account.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_account.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_account.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_account, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an account. + # + # @overload update_account(request, options = nil) + # Pass arguments to `update_account` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateAccountRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_account(account: nil, update_mask: nil) + # Pass arguments to `update_account` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param account [::Google::Analytics::Admin::V1alpha::Account, ::Hash] + # Required. The account to update. + # The account's `name` field is used to identify the account. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (for example, "field_to_update"). Omitted fields will not be updated. + # To replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Account] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::Account] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new + # + # # Call the update_account method. + # result = client.update_account request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Account. + # p result + # + def update_account request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_account.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.account&.name + header_params["account.name"] = request.account.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_account.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_account.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_account, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Requests a ticket for creating an account. + # + # @overload provision_account_ticket(request, options = nil) + # Pass arguments to `provision_account_ticket` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload provision_account_ticket(account: nil, redirect_uri: nil) + # Pass arguments to `provision_account_ticket` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param account [::Google::Analytics::Admin::V1alpha::Account, ::Hash] + # The account to create. + # @param redirect_uri [::String] + # Redirect URI where the user will be sent after accepting Terms of Service. + # Must be configured in Cloud Console as a Redirect URI. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new + # + # # Call the provision_account_ticket method. + # result = client.provision_account_ticket request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse. + # p result + # + def provision_account_ticket request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.provision_account_ticket.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.provision_account_ticket.timeout, + metadata: metadata, + retry_policy: @config.rpcs.provision_account_ticket.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :provision_account_ticket, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns summaries of all accounts accessible by the caller. + # + # @overload list_account_summaries(request, options = nil) + # Pass arguments to `list_account_summaries` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_account_summaries(page_size: nil, page_token: nil) + # Pass arguments to `list_account_summaries` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param page_size [::Integer] + # Optional. The maximum number of AccountSummary resources to return. The + # service may return fewer than this value, even if there are additional + # pages. If unspecified, at most 50 resources will be returned. The maximum + # value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListAccountSummaries` + # call. Provide this to retrieve the subsequent page. When paginating, all + # other parameters provided to `ListAccountSummaries` must match the call + # that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new + # + # # Call the list_account_summaries method. + # result = client.list_account_summaries request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::AccountSummary. + # p item + # end + # + def list_account_summaries request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_account_summaries.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_account_summaries.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_account_summaries.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_account_summaries, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_account_summaries, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single GA Property. + # + # @overload get_property(request, options = nil) + # Pass arguments to `get_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetPropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetPropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_property(name: nil) + # Pass arguments to `get_property` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the property to lookup. + # Format: properties/\\{property_id} + # Example: "properties/1000" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetPropertyRequest.new + # + # # Call the get_property method. + # result = client.get_property request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + # p result + # + def get_property request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetPropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_property.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_property.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_property.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_property, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns child Properties under the specified parent Account. + # + # Properties will be excluded if the caller does not have access. + # Soft-deleted (ie: "trashed") properties are excluded by default. + # Returns an empty list if no relevant properties are found. + # + # @overload list_properties(request, options = nil) + # Pass arguments to `list_properties` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListPropertiesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_properties(filter: nil, page_size: nil, page_token: nil, show_deleted: nil) + # Pass arguments to `list_properties` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param filter [::String] + # Required. An expression for filtering the results of the request. + # Fields eligible for filtering are: + # `parent:`(The resource name of the parent account/property) or + # `ancestor:`(The resource name of the parent account) or + # `firebase_project:`(The id or number of the linked firebase project). + # Some examples of filters: + # + # ``` + # | Filter | Description | + # |-----------------------------|-------------------------------------------| + # | parent:accounts/123 | The account with account id: 123. | + # | parent:properties/123 | The property with property id: 123. | + # | ancestor:accounts/123 | The account with account id: 123. | + # | firebase_project:project-id | The firebase project with id: project-id. | + # | firebase_project:123 | The firebase project with number: 123. | + # ``` + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListProperties` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListProperties` must + # match the call that provided the page token. + # @param show_deleted [::Boolean] + # Whether to include soft-deleted (ie: "trashed") Properties in the + # results. Properties can be inspected to determine whether they are deleted + # or not. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new + # + # # Call the list_properties method. + # result = client.list_properties request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::Property. + # p item + # end + # + def list_properties request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_properties.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_properties.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_properties.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_properties, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_properties, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a Google Analytics property with the specified location and + # attributes. + # + # @overload create_property(request, options = nil) + # Pass arguments to `create_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreatePropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_property(property: nil) + # Pass arguments to `create_property` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] + # Required. The property to create. + # Note: the supplied property must specify its parent. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new + # + # # Call the create_property method. + # result = client.create_property request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + # p result + # + def create_property request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_property.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_property.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_property.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_property, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Marks target Property as soft-deleted (ie: "trashed") and returns it. + # + # This API does not have a method to restore soft-deleted properties. + # However, they can be restored using the Trash Can UI. + # + # If the properties are not restored before the expiration time, the Property + # and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) + # will be permanently purged. + # https://support.google.com/analytics/answer/6154772 + # + # Returns an error if the target is not found. + # + # @overload delete_property(request, options = nil) + # Pass arguments to `delete_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeletePropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_property(name: nil) + # Pass arguments to `delete_property` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Property to soft-delete. + # Format: properties/\\{property_id} + # Example: "properties/1000" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new + # + # # Call the delete_property method. + # result = client.delete_property request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + # p result + # + def delete_property request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_property.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_property.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_property.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_property, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a property. + # + # @overload update_property(request, options = nil) + # Pass arguments to `update_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_property(property: nil, update_mask: nil) + # Pass arguments to `update_property` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] + # Required. The property to update. + # The property's `name` field is used to identify the property to be + # updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new + # + # # Call the update_property method. + # result = client.update_property request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + # p result + # + def update_property request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_property.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.property&.name + header_params["property.name"] = request.property.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_property.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_property.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_property, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a FirebaseLink. + # + # Properties can have at most one FirebaseLink. + # + # @overload create_firebase_link(request, options = nil) + # Pass arguments to `create_firebase_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_firebase_link(parent: nil, firebase_link: nil) + # Pass arguments to `create_firebase_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: properties/\\{property_id} + # + # Example: `properties/1234` + # @param firebase_link [::Google::Analytics::Admin::V1alpha::FirebaseLink, ::Hash] + # Required. The Firebase link to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::FirebaseLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new + # + # # Call the create_firebase_link method. + # result = client.create_firebase_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::FirebaseLink. + # p result + # + def create_firebase_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_firebase_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_firebase_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_firebase_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_firebase_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a FirebaseLink on a property + # + # @overload delete_firebase_link(request, options = nil) + # Pass arguments to `delete_firebase_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_firebase_link(name: nil) + # Pass arguments to `delete_firebase_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Format: properties/\\{property_id}/firebaseLinks/\\{firebase_link_id} + # + # Example: `properties/1234/firebaseLinks/5678` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new + # + # # Call the delete_firebase_link method. + # result = client.delete_firebase_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_firebase_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_firebase_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_firebase_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_firebase_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_firebase_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists FirebaseLinks on a property. + # Properties can have at most one FirebaseLink. + # + # @overload list_firebase_links(request, options = nil) + # Pass arguments to `list_firebase_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_firebase_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_firebase_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: properties/\\{property_id} + # + # Example: `properties/1234` + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListFirebaseLinks` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListFirebaseLinks` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new + # + # # Call the list_firebase_links method. + # result = client.list_firebase_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::FirebaseLink. + # p item + # end + # + def list_firebase_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_firebase_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_firebase_links.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_firebase_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_firebase_links, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_firebase_links, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the Site Tag for the specified web stream. + # Site Tags are immutable singletons. + # + # @overload get_global_site_tag(request, options = nil) + # Pass arguments to `get_global_site_tag` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_global_site_tag(name: nil) + # Pass arguments to `get_global_site_tag` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the site tag to lookup. + # Note that site tags are singletons and do not have unique IDs. + # Format: properties/\\{property_id}/dataStreams/\\{stream_id}/globalSiteTag + # + # Example: `properties/123/dataStreams/456/globalSiteTag` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new + # + # # Call the get_global_site_tag method. + # result = client.get_global_site_tag request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::GlobalSiteTag. + # p result + # + def get_global_site_tag request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_global_site_tag.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_global_site_tag.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_global_site_tag.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_global_site_tag, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a GoogleAdsLink. + # + # @overload create_google_ads_link(request, options = nil) + # Pass arguments to `create_google_ads_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_google_ads_link(parent: nil, google_ads_link: nil) + # Pass arguments to `create_google_ads_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param google_ads_link [::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash] + # Required. The GoogleAdsLink to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new + # + # # Call the create_google_ads_link method. + # result = client.create_google_ads_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. + # p result + # + def create_google_ads_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_google_ads_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_google_ads_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_google_ads_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_google_ads_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a GoogleAdsLink on a property + # + # @overload update_google_ads_link(request, options = nil) + # Pass arguments to `update_google_ads_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_google_ads_link(google_ads_link: nil, update_mask: nil) + # Pass arguments to `update_google_ads_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param google_ads_link [::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash] + # The GoogleAdsLink to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new + # + # # Call the update_google_ads_link method. + # result = client.update_google_ads_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. + # p result + # + def update_google_ads_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_google_ads_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.google_ads_link&.name + header_params["google_ads_link.name"] = request.google_ads_link.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_google_ads_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_google_ads_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_google_ads_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a GoogleAdsLink on a property + # + # @overload delete_google_ads_link(request, options = nil) + # Pass arguments to `delete_google_ads_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_google_ads_link(name: nil) + # Pass arguments to `delete_google_ads_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Example format: properties/1234/googleAdsLinks/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new + # + # # Call the delete_google_ads_link method. + # result = client.delete_google_ads_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_google_ads_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_google_ads_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_google_ads_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_google_ads_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_google_ads_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoogleAdsLinks on a property. + # + # @overload list_google_ads_links(request, options = nil) + # Pass arguments to `list_google_ads_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_google_ads_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_google_ads_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # Optional. A page token, received from a previous `ListGoogleAdsLinks` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListGoogleAdsLinks` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new + # + # # Call the list_google_ads_links method. + # result = client.list_google_ads_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::GoogleAdsLink. + # p item + # end + # + def list_google_ads_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_google_ads_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_google_ads_links.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_google_ads_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_google_ads_links, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_google_ads_links, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get data sharing settings on an account. + # Data sharing settings are singletons. + # + # @overload get_data_sharing_settings(request, options = nil) + # Pass arguments to `get_data_sharing_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_data_sharing_settings(name: nil) + # Pass arguments to `get_data_sharing_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the settings to lookup. + # Format: accounts/\\{account}/dataSharingSettings + # + # Example: `accounts/1000/dataSharingSettings` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataSharingSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataSharingSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new + # + # # Call the get_data_sharing_settings method. + # result = client.get_data_sharing_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataSharingSettings. + # p result + # + def get_data_sharing_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_data_sharing_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_data_sharing_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_data_sharing_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_data_sharing_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single MeasurementProtocolSecret. + # + # @overload get_measurement_protocol_secret(request, options = nil) + # Pass arguments to `get_measurement_protocol_secret` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_measurement_protocol_secret(name: nil) + # Pass arguments to `get_measurement_protocol_secret` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the measurement protocol secret to lookup. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new + # + # # Call the get_measurement_protocol_secret method. + # result = client.get_measurement_protocol_secret request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + # p result + # + def get_measurement_protocol_secret request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_measurement_protocol_secret.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_measurement_protocol_secret.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_measurement_protocol_secret.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_measurement_protocol_secret, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns child MeasurementProtocolSecrets under the specified parent + # Property. + # + # @overload list_measurement_protocol_secrets(request, options = nil) + # Pass arguments to `list_measurement_protocol_secrets` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_measurement_protocol_secrets(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_measurement_protocol_secrets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The resource name of the parent stream. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 10 resources will be returned. + # The maximum value is 10. Higher values will be coerced to the maximum. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListMeasurementProtocolSecrets` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListMeasurementProtocolSecrets` must match the call that provided the page + # token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new + # + # # Call the list_measurement_protocol_secrets method. + # result = client.list_measurement_protocol_secrets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + # p item + # end + # + def list_measurement_protocol_secrets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_measurement_protocol_secrets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_measurement_protocol_secrets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_measurement_protocol_secrets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_measurement_protocol_secrets, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_measurement_protocol_secrets, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a measurement protocol secret. + # + # @overload create_measurement_protocol_secret(request, options = nil) + # Pass arguments to `create_measurement_protocol_secret` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_measurement_protocol_secret(parent: nil, measurement_protocol_secret: nil) + # Pass arguments to `create_measurement_protocol_secret` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this secret will be created. + # Format: properties/\\{property}/dataStreams/\\{dataStream} + # @param measurement_protocol_secret [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret, ::Hash] + # Required. The measurement protocol secret to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new + # + # # Call the create_measurement_protocol_secret method. + # result = client.create_measurement_protocol_secret request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + # p result + # + def create_measurement_protocol_secret request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_measurement_protocol_secret.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_measurement_protocol_secret.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_measurement_protocol_secret.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_measurement_protocol_secret, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes target MeasurementProtocolSecret. + # + # @overload delete_measurement_protocol_secret(request, options = nil) + # Pass arguments to `delete_measurement_protocol_secret` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_measurement_protocol_secret(name: nil) + # Pass arguments to `delete_measurement_protocol_secret` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the MeasurementProtocolSecret to delete. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new + # + # # Call the delete_measurement_protocol_secret method. + # result = client.delete_measurement_protocol_secret request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_measurement_protocol_secret request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_measurement_protocol_secret.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_measurement_protocol_secret.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_measurement_protocol_secret.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_measurement_protocol_secret, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a measurement protocol secret. + # + # @overload update_measurement_protocol_secret(request, options = nil) + # Pass arguments to `update_measurement_protocol_secret` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_measurement_protocol_secret(measurement_protocol_secret: nil, update_mask: nil) + # Pass arguments to `update_measurement_protocol_secret` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param measurement_protocol_secret [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret, ::Hash] + # Required. The measurement protocol secret to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new + # + # # Call the update_measurement_protocol_secret method. + # result = client.update_measurement_protocol_secret request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + # p result + # + def update_measurement_protocol_secret request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_measurement_protocol_secret.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.measurement_protocol_secret&.name + header_params["measurement_protocol_secret.name"] = request.measurement_protocol_secret.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_measurement_protocol_secret.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_measurement_protocol_secret.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_measurement_protocol_secret, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Acknowledges the terms of user data collection for the specified property. + # + # This acknowledgement must be completed (either in the Google Analytics UI + # or through this API) before MeasurementProtocolSecret resources may be + # created. + # + # @overload acknowledge_user_data_collection(request, options = nil) + # Pass arguments to `acknowledge_user_data_collection` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload acknowledge_user_data_collection(property: nil, acknowledgement: nil) + # Pass arguments to `acknowledge_user_data_collection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param property [::String] + # Required. The property for which to acknowledge user data collection. + # @param acknowledgement [::String] + # Required. An acknowledgement that the caller of this method understands the + # terms of user data collection. + # + # This field must contain the exact value: + # "I acknowledge that I have the necessary privacy disclosures and rights + # from my end users for the collection and processing of their data, + # including the association of such data with the visitation information + # Google Analytics collects from my site and/or app property." + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new + # + # # Call the acknowledge_user_data_collection method. + # result = client.acknowledge_user_data_collection request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse. + # p result + # + def acknowledge_user_data_collection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.acknowledge_user_data_collection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.property + header_params["property"] = request.property + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.acknowledge_user_data_collection.timeout, + metadata: metadata, + retry_policy: @config.rpcs.acknowledge_user_data_collection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :acknowledge_user_data_collection, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Looks up a single SKAdNetworkConversionValueSchema. + # + # @overload get_sk_ad_network_conversion_value_schema(request, options = nil) + # Pass arguments to `get_sk_ad_network_conversion_value_schema` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_sk_ad_network_conversion_value_schema(name: nil) + # Pass arguments to `get_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of SKAdNetwork conversion value schema to look + # up. Format: + # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new + # + # # Call the get_sk_ad_network_conversion_value_schema method. + # result = client.get_sk_ad_network_conversion_value_schema request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + # p result + # + def get_sk_ad_network_conversion_value_schema request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_sk_ad_network_conversion_value_schema.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_sk_ad_network_conversion_value_schema.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_sk_ad_network_conversion_value_schema.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_sk_ad_network_conversion_value_schema, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a SKAdNetworkConversionValueSchema. + # + # @overload create_sk_ad_network_conversion_value_schema(request, options = nil) + # Pass arguments to `create_sk_ad_network_conversion_value_schema` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_sk_ad_network_conversion_value_schema(parent: nil, skadnetwork_conversion_value_schema: nil) + # Pass arguments to `create_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this schema will be created. + # Format: properties/\\{property}/dataStreams/\\{dataStream} + # @param skadnetwork_conversion_value_schema [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema, ::Hash] + # Required. SKAdNetwork conversion value schema to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new + # + # # Call the create_sk_ad_network_conversion_value_schema method. + # result = client.create_sk_ad_network_conversion_value_schema request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + # p result + # + def create_sk_ad_network_conversion_value_schema request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_sk_ad_network_conversion_value_schema.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_sk_ad_network_conversion_value_schema.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_sk_ad_network_conversion_value_schema.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_sk_ad_network_conversion_value_schema, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes target SKAdNetworkConversionValueSchema. + # + # @overload delete_sk_ad_network_conversion_value_schema(request, options = nil) + # Pass arguments to `delete_sk_ad_network_conversion_value_schema` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_sk_ad_network_conversion_value_schema(name: nil) + # Pass arguments to `delete_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the SKAdNetworkConversionValueSchema to delete. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new + # + # # Call the delete_sk_ad_network_conversion_value_schema method. + # result = client.delete_sk_ad_network_conversion_value_schema request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_sk_ad_network_conversion_value_schema request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_sk_ad_network_conversion_value_schema.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_sk_ad_network_conversion_value_schema.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_sk_ad_network_conversion_value_schema.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_sk_ad_network_conversion_value_schema, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a SKAdNetworkConversionValueSchema. + # + # @overload update_sk_ad_network_conversion_value_schema(request, options = nil) + # Pass arguments to `update_sk_ad_network_conversion_value_schema` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_sk_ad_network_conversion_value_schema(skadnetwork_conversion_value_schema: nil, update_mask: nil) + # Pass arguments to `update_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param skadnetwork_conversion_value_schema [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema, ::Hash] + # Required. SKAdNetwork conversion value schema to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new + # + # # Call the update_sk_ad_network_conversion_value_schema method. + # result = client.update_sk_ad_network_conversion_value_schema request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + # p result + # + def update_sk_ad_network_conversion_value_schema request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_sk_ad_network_conversion_value_schema.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.skadnetwork_conversion_value_schema&.name + header_params["skadnetwork_conversion_value_schema.name"] = request.skadnetwork_conversion_value_schema.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_sk_ad_network_conversion_value_schema.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_sk_ad_network_conversion_value_schema.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_sk_ad_network_conversion_value_schema, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists SKAdNetworkConversionValueSchema on a stream. + # Properties can have at most one SKAdNetworkConversionValueSchema. + # + # @overload list_sk_ad_network_conversion_value_schemas(request, options = nil) + # Pass arguments to `list_sk_ad_network_conversion_value_schemas` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_sk_ad_network_conversion_value_schemas(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_sk_ad_network_conversion_value_schemas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The DataStream resource to list schemas for. + # Format: + # properties/\\{property_id}/dataStreams/\\{dataStream} + # Example: properties/1234/dataStreams/5678 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListSKAdNetworkConversionValueSchema` must match the call that provided + # the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new + # + # # Call the list_sk_ad_network_conversion_value_schemas method. + # result = client.list_sk_ad_network_conversion_value_schemas request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + # p item + # end + # + def list_sk_ad_network_conversion_value_schemas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_sk_ad_network_conversion_value_schemas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_sk_ad_network_conversion_value_schemas.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_sk_ad_network_conversion_value_schemas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_sk_ad_network_conversion_value_schemas, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_sk_ad_network_conversion_value_schemas, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Searches through all changes to an account or its children given the + # specified set of filters. + # + # Only returns the subset of changes supported by the API. The UI may return + # additional changes. + # + # @overload search_change_history_events(request, options = nil) + # Pass arguments to `search_change_history_events` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload search_change_history_events(account: nil, property: nil, resource_type: nil, action: nil, actor_email: nil, earliest_change_time: nil, latest_change_time: nil, page_size: nil, page_token: nil) + # Pass arguments to `search_change_history_events` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param account [::String] + # Required. The account resource for which to return change history + # resources. Format: accounts/\\{account} + # + # Example: `accounts/100` + # @param property [::String] + # Optional. Resource name for a child property. If set, only return changes + # made to this property or its child resources. + # Format: properties/\\{propertyId} + # + # Example: `properties/100` + # @param resource_type [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryResourceType>] + # Optional. If set, only return changes if they are for a resource that + # matches at least one of these types. + # @param action [::Array<::Google::Analytics::Admin::V1alpha::ActionType>] + # Optional. If set, only return changes that match one or more of these types + # of actions. + # @param actor_email [::Array<::String>] + # Optional. If set, only return changes if they are made by a user in this + # list. + # @param earliest_change_time [::Google::Protobuf::Timestamp, ::Hash] + # Optional. If set, only return changes made after this time (inclusive). + # @param latest_change_time [::Google::Protobuf::Timestamp, ::Hash] + # Optional. If set, only return changes made before this time (inclusive). + # @param page_size [::Integer] + # Optional. The maximum number of ChangeHistoryEvent items to return. + # If unspecified, at most 50 items will be returned. The maximum value is 200 + # (higher values will be coerced to the maximum). + # + # Note that the service may return a page with fewer items than this value + # specifies (potentially even zero), and that there still may be additional + # pages. If you want a particular number of items, you'll need to continue + # requesting additional pages using `page_token` until you get the needed + # number. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + # page. When paginating, all other parameters provided to + # `SearchChangeHistoryEvents` must match the call that provided the page + # token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new + # + # # Call the search_change_history_events method. + # result = client.search_change_history_events request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent. + # p item + # end + # + def search_change_history_events request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.search_change_history_events.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.account + header_params["account"] = request.account + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.search_change_history_events.timeout, + metadata: metadata, + retry_policy: @config.rpcs.search_change_history_events.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :search_change_history_events, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :search_change_history_events, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for Google Signals settings for a property. + # + # @overload get_google_signals_settings(request, options = nil) + # Pass arguments to `get_google_signals_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_google_signals_settings(name: nil) + # Pass arguments to `get_google_signals_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the google signals settings to retrieve. + # Format: properties/\\{property}/googleSignalsSettings + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new + # + # # Call the get_google_signals_settings method. + # result = client.get_google_signals_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. + # p result + # + def get_google_signals_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_google_signals_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_google_signals_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_google_signals_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_google_signals_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates Google Signals settings for a property. + # + # @overload update_google_signals_settings(request, options = nil) + # Pass arguments to `update_google_signals_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_google_signals_settings(google_signals_settings: nil, update_mask: nil) + # Pass arguments to `update_google_signals_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param google_signals_settings [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings, ::Hash] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new + # + # # Call the update_google_signals_settings method. + # result = client.update_google_signals_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. + # p result + # + def update_google_signals_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_google_signals_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.google_signals_settings&.name + header_params["google_signals_settings.name"] = request.google_signals_settings.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_google_signals_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_google_signals_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_google_signals_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprecated: Use `CreateKeyEvent` instead. + # Creates a conversion event with the specified attributes. + # + # @deprecated This method is deprecated and may be removed in the next major version update. + # + # @overload create_conversion_event(request, options = nil) + # Pass arguments to `create_conversion_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_conversion_event(conversion_event: nil, parent: nil) + # Pass arguments to `create_conversion_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param conversion_event [::Google::Analytics::Admin::V1alpha::ConversionEvent, ::Hash] + # Required. The conversion event to create. + # @param parent [::String] + # Required. The resource name of the parent property where this conversion + # event will be created. Format: properties/123 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new + # + # # Call the create_conversion_event method. + # result = client.create_conversion_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. + # p result + # + def create_conversion_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_conversion_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_conversion_event.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_conversion_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_conversion_event, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprecated: Use `UpdateKeyEvent` instead. + # Updates a conversion event with the specified attributes. + # + # @deprecated This method is deprecated and may be removed in the next major version update. + # + # @overload update_conversion_event(request, options = nil) + # Pass arguments to `update_conversion_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_conversion_event(conversion_event: nil, update_mask: nil) + # Pass arguments to `update_conversion_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param conversion_event [::Google::Analytics::Admin::V1alpha::ConversionEvent, ::Hash] + # Required. The conversion event to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new + # + # # Call the update_conversion_event method. + # result = client.update_conversion_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. + # p result + # + def update_conversion_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_conversion_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.conversion_event&.name + header_params["conversion_event.name"] = request.conversion_event.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_conversion_event.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_conversion_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_conversion_event, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprecated: Use `GetKeyEvent` instead. + # Retrieve a single conversion event. + # + # @deprecated This method is deprecated and may be removed in the next major version update. + # + # @overload get_conversion_event(request, options = nil) + # Pass arguments to `get_conversion_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetConversionEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetConversionEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_conversion_event(name: nil) + # Pass arguments to `get_conversion_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the conversion event to retrieve. + # Format: properties/\\{property}/conversionEvents/\\{conversion_event} + # Example: "properties/123/conversionEvents/456" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new + # + # # Call the get_conversion_event method. + # result = client.get_conversion_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. + # p result + # + def get_conversion_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_conversion_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_conversion_event.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_conversion_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_conversion_event, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprecated: Use `DeleteKeyEvent` instead. + # Deletes a conversion event in a property. + # + # @deprecated This method is deprecated and may be removed in the next major version update. + # + # @overload delete_conversion_event(request, options = nil) + # Pass arguments to `delete_conversion_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_conversion_event(name: nil) + # Pass arguments to `delete_conversion_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the conversion event to delete. + # Format: properties/\\{property}/conversionEvents/\\{conversion_event} + # Example: "properties/123/conversionEvents/456" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new + # + # # Call the delete_conversion_event method. + # result = client.delete_conversion_event request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_conversion_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_conversion_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_conversion_event.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_conversion_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_conversion_event, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprecated: Use `ListKeyEvents` instead. + # Returns a list of conversion events in the specified parent property. + # + # Returns an empty list if no conversion events are found. + # + # @deprecated This method is deprecated and may be removed in the next major version update. + # + # @overload list_conversion_events(request, options = nil) + # Pass arguments to `list_conversion_events` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_conversion_events(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_conversion_events` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The resource name of the parent property. + # Example: 'properties/123' + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListConversionEvents` + # call. Provide this to retrieve the subsequent page. When paginating, all + # other parameters provided to `ListConversionEvents` must match the call + # that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new + # + # # Call the list_conversion_events method. + # result = client.list_conversion_events request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::ConversionEvent. + # p item + # end + # + def list_conversion_events request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_conversion_events.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_conversion_events.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_conversion_events.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_conversion_events, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_conversion_events, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a Key Event. + # + # @overload create_key_event(request, options = nil) + # Pass arguments to `create_key_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_key_event(key_event: nil, parent: nil) + # Pass arguments to `create_key_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param key_event [::Google::Analytics::Admin::V1alpha::KeyEvent, ::Hash] + # Required. The Key Event to create. + # @param parent [::String] + # Required. The resource name of the parent property where this Key Event + # will be created. Format: properties/123 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::KeyEvent] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new + # + # # Call the create_key_event method. + # result = client.create_key_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + # p result + # + def create_key_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_key_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_key_event.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_key_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_key_event, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a Key Event. + # + # @overload update_key_event(request, options = nil) + # Pass arguments to `update_key_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_key_event(key_event: nil, update_mask: nil) + # Pass arguments to `update_key_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param key_event [::Google::Analytics::Admin::V1alpha::KeyEvent, ::Hash] + # Required. The Key Event to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::KeyEvent] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new + # + # # Call the update_key_event method. + # result = client.update_key_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + # p result + # + def update_key_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_key_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.key_event&.name + header_params["key_event.name"] = request.key_event.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_key_event.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_key_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_key_event, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single Key Event. + # + # @overload get_key_event(request, options = nil) + # Pass arguments to `get_key_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetKeyEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetKeyEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_key_event(name: nil) + # Pass arguments to `get_key_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the Key Event to retrieve. + # Format: properties/\\{property}/keyEvents/\\{key_event} + # Example: "properties/123/keyEvents/456" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::KeyEvent] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new + # + # # Call the get_key_event method. + # result = client.get_key_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + # p result + # + def get_key_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_key_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_key_event.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_key_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_key_event, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Key Event. + # + # @overload delete_key_event(request, options = nil) + # Pass arguments to `delete_key_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_key_event(name: nil) + # Pass arguments to `delete_key_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the Key Event to delete. + # Format: properties/\\{property}/keyEvents/\\{key_event} + # Example: "properties/123/keyEvents/456" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new + # + # # Call the delete_key_event method. + # result = client.delete_key_event request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_key_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_key_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_key_event.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_key_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_key_event, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns a list of Key Events in the specified parent property. + # Returns an empty list if no Key Events are found. + # + # @overload list_key_events(request, options = nil) + # Pass arguments to `list_key_events` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_key_events(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_key_events` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The resource name of the parent property. + # Example: 'properties/123' + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListKeyEvents` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListKeyEvents` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new + # + # # Call the list_key_events method. + # result = client.list_key_events request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::KeyEvent. + # p item + # end + # + def list_key_events request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_key_events.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_key_events.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_key_events.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_key_events, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_key_events, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Look up a single DisplayVideo360AdvertiserLink + # + # @overload get_display_video360_advertiser_link(request, options = nil) + # Pass arguments to `get_display_video360_advertiser_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_display_video360_advertiser_link(name: nil) + # Pass arguments to `get_display_video360_advertiser_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLink to get. + # Example format: properties/1234/displayVideo360AdvertiserLink/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new + # + # # Call the get_display_video360_advertiser_link method. + # result = client.get_display_video360_advertiser_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # p result + # + def get_display_video360_advertiser_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_display_video360_advertiser_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_display_video360_advertiser_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all DisplayVideo360AdvertiserLinks on a property. + # + # @overload list_display_video360_advertiser_links(request, options = nil) + # Pass arguments to `list_display_video360_advertiser_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_display_video360_advertiser_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_display_video360_advertiser_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new + # + # # Call the list_display_video360_advertiser_links method. + # result = client.list_display_video360_advertiser_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # p item + # end + # + def list_display_video360_advertiser_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_display_video360_advertiser_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_links.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_display_video360_advertiser_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_display_video360_advertiser_links, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_links, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a DisplayVideo360AdvertiserLink. + # This can only be utilized by users who have proper authorization both on + # the Google Analytics property and on the Display & Video 360 advertiser. + # Users who do not have access to the Display & Video 360 advertiser should + # instead seek to create a DisplayVideo360LinkProposal. + # + # @overload create_display_video360_advertiser_link(request, options = nil) + # Pass arguments to `create_display_video360_advertiser_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_display_video360_advertiser_link(parent: nil, display_video_360_advertiser_link: nil) + # Pass arguments to `create_display_video360_advertiser_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash] + # Required. The DisplayVideo360AdvertiserLink to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new + # + # # Call the create_display_video360_advertiser_link method. + # result = client.create_display_video360_advertiser_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # p result + # + def create_display_video360_advertiser_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_display_video360_advertiser_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_display_video360_advertiser_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a DisplayVideo360AdvertiserLink on a property. + # + # @overload delete_display_video360_advertiser_link(request, options = nil) + # Pass arguments to `delete_display_video360_advertiser_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_display_video360_advertiser_link(name: nil) + # Pass arguments to `delete_display_video360_advertiser_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLink to delete. + # Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new + # + # # Call the delete_display_video360_advertiser_link method. + # result = client.delete_display_video360_advertiser_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_display_video360_advertiser_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_display_video360_advertiser_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_display_video360_advertiser_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a DisplayVideo360AdvertiserLink on a property. + # + # @overload update_display_video360_advertiser_link(request, options = nil) + # Pass arguments to `update_display_video360_advertiser_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_display_video360_advertiser_link(display_video_360_advertiser_link: nil, update_mask: nil) + # Pass arguments to `update_display_video360_advertiser_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash] + # The DisplayVideo360AdvertiserLink to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new + # + # # Call the update_display_video360_advertiser_link method. + # result = client.update_display_video360_advertiser_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # p result + # + def update_display_video360_advertiser_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_display_video360_advertiser_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.display_video_360_advertiser_link&.name + header_params["display_video_360_advertiser_link.name"] = request.display_video_360_advertiser_link.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_display_video360_advertiser_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_display_video360_advertiser_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_display_video360_advertiser_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single DisplayVideo360AdvertiserLinkProposal. + # + # @overload get_display_video360_advertiser_link_proposal(request, options = nil) + # Pass arguments to `get_display_video360_advertiser_link_proposal` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_display_video360_advertiser_link_proposal(name: nil) + # Pass arguments to `get_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new + # + # # Call the get_display_video360_advertiser_link_proposal method. + # result = client.get_display_video360_advertiser_link_proposal request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + # p result + # + def get_display_video360_advertiser_link_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_display_video360_advertiser_link_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link_proposal.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_display_video360_advertiser_link_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link_proposal, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists DisplayVideo360AdvertiserLinkProposals on a property. + # + # @overload list_display_video360_advertiser_link_proposals(request, options = nil) + # Pass arguments to `list_display_video360_advertiser_link_proposals` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_display_video360_advertiser_link_proposals(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_display_video360_advertiser_link_proposals` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous + # `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + # the subsequent page. + # + # When paginating, all other parameters provided to + # `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + # provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new + # + # # Call the list_display_video360_advertiser_link_proposals method. + # result = client.list_display_video360_advertiser_link_proposals request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + # p item + # end + # + def list_display_video360_advertiser_link_proposals request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_display_video360_advertiser_link_proposals.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_link_proposals.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_display_video360_advertiser_link_proposals.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_display_video360_advertiser_link_proposals, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_link_proposals, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a DisplayVideo360AdvertiserLinkProposal. + # + # @overload create_display_video360_advertiser_link_proposal(request, options = nil) + # Pass arguments to `create_display_video360_advertiser_link_proposal` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_display_video360_advertiser_link_proposal(parent: nil, display_video_360_advertiser_link_proposal: nil) + # Pass arguments to `create_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param display_video_360_advertiser_link_proposal [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal, ::Hash] + # Required. The DisplayVideo360AdvertiserLinkProposal to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new + # + # # Call the create_display_video360_advertiser_link_proposal method. + # result = client.create_display_video360_advertiser_link_proposal request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + # p result + # + def create_display_video360_advertiser_link_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_display_video360_advertiser_link_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link_proposal.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_display_video360_advertiser_link_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link_proposal, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + # This can only be used on cancelled proposals. + # + # @overload delete_display_video360_advertiser_link_proposal(request, options = nil) + # Pass arguments to `delete_display_video360_advertiser_link_proposal` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_display_video360_advertiser_link_proposal(name: nil) + # Pass arguments to `delete_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new + # + # # Call the delete_display_video360_advertiser_link_proposal method. + # result = client.delete_display_video360_advertiser_link_proposal request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_display_video360_advertiser_link_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_display_video360_advertiser_link_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link_proposal.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_display_video360_advertiser_link_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link_proposal, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Approves a DisplayVideo360AdvertiserLinkProposal. + # The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + # DisplayVideo360AdvertiserLink will be created. + # + # @overload approve_display_video360_advertiser_link_proposal(request, options = nil) + # Pass arguments to `approve_display_video360_advertiser_link_proposal` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload approve_display_video360_advertiser_link_proposal(name: nil) + # Pass arguments to `approve_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new + # + # # Call the approve_display_video360_advertiser_link_proposal method. + # result = client.approve_display_video360_advertiser_link_proposal request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse. + # p result + # + def approve_display_video360_advertiser_link_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.approve_display_video360_advertiser_link_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.approve_display_video360_advertiser_link_proposal.timeout, + metadata: metadata, + retry_policy: @config.rpcs.approve_display_video360_advertiser_link_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :approve_display_video360_advertiser_link_proposal, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Cancels a DisplayVideo360AdvertiserLinkProposal. + # Cancelling can mean either: + # - Declining a proposal initiated from Display & Video 360 + # - Withdrawing a proposal initiated from Google Analytics + # After being cancelled, a proposal will eventually be deleted automatically. + # + # @overload cancel_display_video360_advertiser_link_proposal(request, options = nil) + # Pass arguments to `cancel_display_video360_advertiser_link_proposal` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_display_video360_advertiser_link_proposal(name: nil) + # Pass arguments to `cancel_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new + # + # # Call the cancel_display_video360_advertiser_link_proposal method. + # result = client.cancel_display_video360_advertiser_link_proposal request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + # p result + # + def cancel_display_video360_advertiser_link_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_display_video360_advertiser_link_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_display_video360_advertiser_link_proposal.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_display_video360_advertiser_link_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :cancel_display_video360_advertiser_link_proposal, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a CustomDimension. + # + # @overload create_custom_dimension(request, options = nil) + # Pass arguments to `create_custom_dimension` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_custom_dimension(parent: nil, custom_dimension: nil) + # Pass arguments to `create_custom_dimension` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash] + # Required. The CustomDimension to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new + # + # # Call the create_custom_dimension method. + # result = client.create_custom_dimension request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. + # p result + # + def create_custom_dimension request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_custom_dimension.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_custom_dimension.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_custom_dimension.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_custom_dimension, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a CustomDimension on a property. + # + # @overload update_custom_dimension(request, options = nil) + # Pass arguments to `update_custom_dimension` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_custom_dimension(custom_dimension: nil, update_mask: nil) + # Pass arguments to `update_custom_dimension` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash] + # The CustomDimension to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new + # + # # Call the update_custom_dimension method. + # result = client.update_custom_dimension request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. + # p result + # + def update_custom_dimension request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_custom_dimension.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.custom_dimension&.name + header_params["custom_dimension.name"] = request.custom_dimension.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_custom_dimension.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_custom_dimension.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_custom_dimension, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CustomDimensions on a property. + # + # @overload list_custom_dimensions(request, options = nil) + # Pass arguments to `list_custom_dimensions` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_custom_dimensions(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_custom_dimensions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # Optional. A page token, received from a previous `ListCustomDimensions` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCustomDimensions` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new + # + # # Call the list_custom_dimensions method. + # result = client.list_custom_dimensions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension. + # p item + # end + # + def list_custom_dimensions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_custom_dimensions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_custom_dimensions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_custom_dimensions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_custom_dimensions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_dimensions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Archives a CustomDimension on a property. + # + # @overload archive_custom_dimension(request, options = nil) + # Pass arguments to `archive_custom_dimension` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload archive_custom_dimension(name: nil) + # Pass arguments to `archive_custom_dimension` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CustomDimension to archive. + # Example format: properties/1234/customDimensions/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new + # + # # Call the archive_custom_dimension method. + # result = client.archive_custom_dimension request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def archive_custom_dimension request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.archive_custom_dimension.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.archive_custom_dimension.timeout, + metadata: metadata, + retry_policy: @config.rpcs.archive_custom_dimension.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :archive_custom_dimension, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single CustomDimension. + # + # @overload get_custom_dimension(request, options = nil) + # Pass arguments to `get_custom_dimension` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_custom_dimension(name: nil) + # Pass arguments to `get_custom_dimension` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CustomDimension to get. + # Example format: properties/1234/customDimensions/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new + # + # # Call the get_custom_dimension method. + # result = client.get_custom_dimension request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. + # p result + # + def get_custom_dimension request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_custom_dimension.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_custom_dimension.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_custom_dimension.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_custom_dimension, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a CustomMetric. + # + # @overload create_custom_metric(request, options = nil) + # Pass arguments to `create_custom_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_custom_metric(parent: nil, custom_metric: nil) + # Pass arguments to `create_custom_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param custom_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] + # Required. The CustomMetric to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new + # + # # Call the create_custom_metric method. + # result = client.create_custom_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # p result + # + def create_custom_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_custom_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_custom_metric.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_custom_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_custom_metric, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a CustomMetric on a property. + # + # @overload update_custom_metric(request, options = nil) + # Pass arguments to `update_custom_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_custom_metric(custom_metric: nil, update_mask: nil) + # Pass arguments to `update_custom_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param custom_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] + # The CustomMetric to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new + # + # # Call the update_custom_metric method. + # result = client.update_custom_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # p result + # + def update_custom_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_custom_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.custom_metric&.name + header_params["custom_metric.name"] = request.custom_metric.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_custom_metric.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_custom_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_custom_metric, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CustomMetrics on a property. + # + # @overload list_custom_metrics(request, options = nil) + # Pass arguments to `list_custom_metrics` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_custom_metrics(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_custom_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListCustomMetrics` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCustomMetrics` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new + # + # # Call the list_custom_metrics method. + # result = client.list_custom_metrics request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomMetric. + # p item + # end + # + def list_custom_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_custom_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_custom_metrics.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_custom_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_custom_metrics, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_metrics, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Archives a CustomMetric on a property. + # + # @overload archive_custom_metric(request, options = nil) + # Pass arguments to `archive_custom_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload archive_custom_metric(name: nil) + # Pass arguments to `archive_custom_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CustomMetric to archive. + # Example format: properties/1234/customMetrics/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new + # + # # Call the archive_custom_metric method. + # result = client.archive_custom_metric request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def archive_custom_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.archive_custom_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.archive_custom_metric.timeout, + metadata: metadata, + retry_policy: @config.rpcs.archive_custom_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :archive_custom_metric, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single CustomMetric. + # + # @overload get_custom_metric(request, options = nil) + # Pass arguments to `get_custom_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_custom_metric(name: nil) + # Pass arguments to `get_custom_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CustomMetric to get. + # Example format: properties/1234/customMetrics/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new + # + # # Call the get_custom_metric method. + # result = client.get_custom_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # p result + # + def get_custom_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_custom_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_custom_metric.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_custom_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_custom_metric, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the singleton data retention settings for this property. + # + # @overload get_data_retention_settings(request, options = nil) + # Pass arguments to `get_data_retention_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_data_retention_settings(name: nil) + # Pass arguments to `get_data_retention_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/dataRetentionSettings + # Example: "properties/1000/dataRetentionSettings" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new + # + # # Call the get_data_retention_settings method. + # result = client.get_data_retention_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + # p result + # + def get_data_retention_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_data_retention_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_data_retention_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_data_retention_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_data_retention_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the singleton data retention settings for this property. + # + # @overload update_data_retention_settings(request, options = nil) + # Pass arguments to `update_data_retention_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_data_retention_settings(data_retention_settings: nil, update_mask: nil) + # Pass arguments to `update_data_retention_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param data_retention_settings [::Google::Analytics::Admin::V1alpha::DataRetentionSettings, ::Hash] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new + # + # # Call the update_data_retention_settings method. + # result = client.update_data_retention_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + # p result + # + def update_data_retention_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_data_retention_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.data_retention_settings&.name + header_params["data_retention_settings.name"] = request.data_retention_settings.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_data_retention_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_data_retention_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_data_retention_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a DataStream. + # + # @overload create_data_stream(request, options = nil) + # Pass arguments to `create_data_stream` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_data_stream(parent: nil, data_stream: nil) + # Pass arguments to `create_data_stream` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param data_stream [::Google::Analytics::Admin::V1alpha::DataStream, ::Hash] + # Required. The DataStream to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new + # + # # Call the create_data_stream method. + # result = client.create_data_stream request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + # p result + # + def create_data_stream request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_data_stream.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_data_stream.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_data_stream.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_data_stream, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a DataStream on a property. + # + # @overload delete_data_stream(request, options = nil) + # Pass arguments to `delete_data_stream` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_data_stream(name: nil) + # Pass arguments to `delete_data_stream` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DataStream to delete. + # Example format: properties/1234/dataStreams/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new + # + # # Call the delete_data_stream method. + # result = client.delete_data_stream request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_data_stream request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_data_stream.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_data_stream.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_data_stream.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_data_stream, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a DataStream on a property. + # + # @overload update_data_stream(request, options = nil) + # Pass arguments to `update_data_stream` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_data_stream(data_stream: nil, update_mask: nil) + # Pass arguments to `update_data_stream` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param data_stream [::Google::Analytics::Admin::V1alpha::DataStream, ::Hash] + # The DataStream to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new + # + # # Call the update_data_stream method. + # result = client.update_data_stream request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + # p result + # + def update_data_stream request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_data_stream.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.data_stream&.name + header_params["data_stream.name"] = request.data_stream.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_data_stream.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_data_stream.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_data_stream, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists DataStreams on a property. + # + # @overload list_data_streams(request, options = nil) + # Pass arguments to `list_data_streams` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_data_streams(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_data_streams` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListDataStreams` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListDataStreams` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new + # + # # Call the list_data_streams method. + # result = client.list_data_streams request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::DataStream. + # p item + # end + # + def list_data_streams request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_data_streams.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_data_streams.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_data_streams.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_data_streams, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_data_streams, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single DataStream. + # + # @overload get_data_stream(request, options = nil) + # Pass arguments to `get_data_stream` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDataStreamRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDataStreamRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_data_stream(name: nil) + # Pass arguments to `get_data_stream` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DataStream to get. + # Example format: properties/1234/dataStreams/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new + # + # # Call the get_data_stream method. + # result = client.get_data_stream request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + # p result + # + def get_data_stream request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_data_stream.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_data_stream.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_data_stream.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_data_stream, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single Audience. + # Audiences created before 2020 may not be supported. + # Default audiences will not show filter definitions. + # + # @overload get_audience(request, options = nil) + # Pass arguments to `get_audience` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetAudienceRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetAudienceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_audience(name: nil) + # Pass arguments to `get_audience` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Audience to get. + # Example format: properties/1234/audiences/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetAudienceRequest.new + # + # # Call the get_audience method. + # result = client.get_audience request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + # p result + # + def get_audience request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAudienceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_audience.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_audience.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_audience.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_audience, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Audiences on a property. + # Audiences created before 2020 may not be supported. + # Default audiences will not show filter definitions. + # + # @overload list_audiences(request, options = nil) + # Pass arguments to `list_audiences` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListAudiencesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListAudiencesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_audiences(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_audiences` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListAudiences` call. Provide this + # to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListAudiences` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new + # + # # Call the list_audiences method. + # result = client.list_audiences request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::Audience. + # p item + # end + # + def list_audiences request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_audiences.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_audiences.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_audiences.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_audiences, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_audiences, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an Audience. + # + # @overload create_audience(request, options = nil) + # Pass arguments to `create_audience` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateAudienceRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateAudienceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_audience(parent: nil, audience: nil) + # Pass arguments to `create_audience` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param audience [::Google::Analytics::Admin::V1alpha::Audience, ::Hash] + # Required. The audience to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new + # + # # Call the create_audience method. + # result = client.create_audience request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + # p result + # + def create_audience request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_audience.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_audience.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_audience.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_audience, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an Audience on a property. + # + # @overload update_audience(request, options = nil) + # Pass arguments to `update_audience` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_audience(audience: nil, update_mask: nil) + # Pass arguments to `update_audience` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param audience [::Google::Analytics::Admin::V1alpha::Audience, ::Hash] + # Required. The audience to update. + # The audience's `name` field is used to identify the audience to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new + # + # # Call the update_audience method. + # result = client.update_audience request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + # p result + # + def update_audience request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_audience.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.audience&.name + header_params["audience.name"] = request.audience.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_audience.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_audience.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_audience, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Archives an Audience on a property. + # + # @overload archive_audience(request, options = nil) + # Pass arguments to `archive_audience` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload archive_audience(name: nil) + # Pass arguments to `archive_audience` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Example format: properties/1234/audiences/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new + # + # # Call the archive_audience method. + # result = client.archive_audience request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def archive_audience request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.archive_audience.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.archive_audience.timeout, + metadata: metadata, + retry_policy: @config.rpcs.archive_audience.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :archive_audience, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Look up a single SearchAds360Link + # + # @overload get_search_ads360_link(request, options = nil) + # Pass arguments to `get_search_ads360_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_search_ads360_link(name: nil) + # Pass arguments to `get_search_ads360_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the SearchAds360Link to get. + # Example format: properties/1234/SearchAds360Link/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new + # + # # Call the get_search_ads360_link method. + # result = client.get_search_ads360_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # p result + # + def get_search_ads360_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_search_ads360_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_search_ads360_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_search_ads360_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_search_ads360_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all SearchAds360Links on a property. + # + # @overload list_search_ads360_links(request, options = nil) + # Pass arguments to `list_search_ads360_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_search_ads360_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_search_ads360_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListSearchAds360Links` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListSearchAds360Links` must match the call that provided the + # page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new + # + # # Call the list_search_ads360_links method. + # result = client.list_search_ads360_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::SearchAds360Link. + # p item + # end + # + def list_search_ads360_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_search_ads360_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_search_ads360_links.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_search_ads360_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_search_ads360_links, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_search_ads360_links, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a SearchAds360Link. + # + # @overload create_search_ads360_link(request, options = nil) + # Pass arguments to `create_search_ads360_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_search_ads360_link(parent: nil, search_ads_360_link: nil) + # Pass arguments to `create_search_ads360_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param search_ads_360_link [::Google::Analytics::Admin::V1alpha::SearchAds360Link, ::Hash] + # Required. The SearchAds360Link to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new + # + # # Call the create_search_ads360_link method. + # result = client.create_search_ads360_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # p result + # + def create_search_ads360_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_search_ads360_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_search_ads360_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_search_ads360_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_search_ads360_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a SearchAds360Link on a property. + # + # @overload delete_search_ads360_link(request, options = nil) + # Pass arguments to `delete_search_ads360_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_search_ads360_link(name: nil) + # Pass arguments to `delete_search_ads360_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the SearchAds360Link to delete. + # Example format: properties/1234/SearchAds360Links/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new + # + # # Call the delete_search_ads360_link method. + # result = client.delete_search_ads360_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_search_ads360_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_search_ads360_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_search_ads360_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_search_ads360_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_search_ads360_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a SearchAds360Link on a property. + # + # @overload update_search_ads360_link(request, options = nil) + # Pass arguments to `update_search_ads360_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_search_ads360_link(search_ads_360_link: nil, update_mask: nil) + # Pass arguments to `update_search_ads360_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param search_ads_360_link [::Google::Analytics::Admin::V1alpha::SearchAds360Link, ::Hash] + # The SearchAds360Link to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new + # + # # Call the update_search_ads360_link method. + # result = client.update_search_ads360_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # p result + # + def update_search_ads360_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_search_ads360_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.search_ads_360_link&.name + header_params["search_ads_360_link.name"] = request.search_ads_360_link.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_search_ads360_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_search_ads360_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_search_ads360_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a AttributionSettings singleton. + # + # @overload get_attribution_settings(request, options = nil) + # Pass arguments to `get_attribution_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_attribution_settings(name: nil) + # Pass arguments to `get_attribution_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the attribution settings to retrieve. + # Format: properties/\\{property}/attributionSettings + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new + # + # # Call the get_attribution_settings method. + # result = client.get_attribution_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. + # p result + # + def get_attribution_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_attribution_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_attribution_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_attribution_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_attribution_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates attribution settings on a property. + # + # @overload update_attribution_settings(request, options = nil) + # Pass arguments to `update_attribution_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_attribution_settings(attribution_settings: nil, update_mask: nil) + # Pass arguments to `update_attribution_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param attribution_settings [::Google::Analytics::Admin::V1alpha::AttributionSettings, ::Hash] + # Required. The attribution settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new + # + # # Call the update_attribution_settings method. + # result = client.update_attribution_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. + # p result + # + def update_attribution_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_attribution_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.attribution_settings&.name + header_params["attribution_settings.name"] = request.attribution_settings.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_attribution_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_attribution_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_attribution_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns a customized report of data access records. The report provides + # records of each time a user reads Google Analytics reporting data. Access + # records are retained for up to 2 years. + # + # Data Access Reports can be requested for a property. Reports may be + # requested for any property, but dimensions that aren't related to quota can + # only be requested on Google Analytics 360 properties. This method is only + # available to Administrators. + # + # These data access records include GA UI Reporting, GA UI Explorations, + # GA Data API, and other products like Firebase & Admob that can retrieve + # data from Google Analytics through a linkage. These records don't include + # property configuration changes like adding a stream or changing a + # property's time zone. For configuration change history, see + # [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + # + # To give your feedback on this API, complete the [Google Analytics Access + # Reports + # feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) + # form. + # + # @overload run_access_report(request, options = nil) + # Pass arguments to `run_access_report` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::RunAccessReportRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::RunAccessReportRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload run_access_report(entity: nil, dimensions: nil, metrics: nil, date_ranges: nil, dimension_filter: nil, metric_filter: nil, offset: nil, limit: nil, time_zone: nil, order_bys: nil, return_entity_quota: nil, include_all_users: nil, expand_groups: nil) + # Pass arguments to `run_access_report` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param entity [::String] + # The Data Access Report supports requesting at the property level or account + # level. If requested at the account level, Data Access Reports include all + # access for all properties under that account. + # + # To request at the property level, entity should be for example + # 'properties/123' if "123" is your Google Analytics property ID. To request + # at the account level, entity should be for example 'accounts/1234' if + # "1234" is your Google Analytics Account ID. + # @param dimensions [::Array<::Google::Analytics::Admin::V1alpha::AccessDimension, ::Hash>] + # The dimensions requested and displayed in the response. Requests are + # allowed up to 9 dimensions. + # @param metrics [::Array<::Google::Analytics::Admin::V1alpha::AccessMetric, ::Hash>] + # The metrics requested and displayed in the response. Requests are allowed + # up to 10 metrics. + # @param date_ranges [::Array<::Google::Analytics::Admin::V1alpha::AccessDateRange, ::Hash>] + # Date ranges of access records to read. If multiple date ranges are + # requested, each response row will contain a zero based date range index. If + # two date ranges overlap, the access records for the overlapping days is + # included in the response rows for both date ranges. Requests are allowed up + # to 2 date ranges. + # @param dimension_filter [::Google::Analytics::Admin::V1alpha::AccessFilterExpression, ::Hash] + # Dimension filters let you restrict report response to specific + # dimension values which match the filter. For example, filtering on access + # records of a single user. To learn more, see [Fundamentals of Dimension + # Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + # for examples. Metrics cannot be used in this filter. + # @param metric_filter [::Google::Analytics::Admin::V1alpha::AccessFilterExpression, ::Hash] + # Metric filters allow you to restrict report response to specific metric + # values which match the filter. Metric filters are applied after aggregating + # the report's rows, similar to SQL having-clause. Dimensions cannot be used + # in this filter. + # @param offset [::Integer] + # The row count of the start row. The first row is counted as row 0. If + # offset is unspecified, it is treated as 0. If offset is zero, then this + # method will return the first page of results with `limit` entries. + # + # To learn more about this pagination parameter, see + # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + # @param limit [::Integer] + # The number of rows to return. If unspecified, 10,000 rows are returned. The + # API returns a maximum of 100,000 rows per request, no matter how many you + # ask for. `limit` must be positive. + # + # The API may return fewer rows than the requested `limit`, if there aren't + # as many remaining rows as the `limit`. For instance, there are fewer than + # 300 possible values for the dimension `country`, so when reporting on only + # `country`, you can't get more than 300 rows, even if you set `limit` to a + # higher value. + # + # To learn more about this pagination parameter, see + # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + # @param time_zone [::String] + # This request's time zone if specified. If unspecified, the property's time + # zone is used. The request's time zone is used to interpret the start & end + # dates of the report. + # + # Formatted as strings from the IANA Time Zone database + # (https://www.iana.org/time-zones); for example "America/New_York" or + # "Asia/Tokyo". + # @param order_bys [::Array<::Google::Analytics::Admin::V1alpha::AccessOrderBy, ::Hash>] + # Specifies how rows are ordered in the response. + # @param return_entity_quota [::Boolean] + # Toggles whether to return the current state of this Analytics Property's + # quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + # requests, this field must be false. + # @param include_all_users [::Boolean] + # Optional. Determines whether to include users who have never made an API + # call in the response. If true, all users with access to the specified + # property or account are included in the response, regardless of whether + # they have made an API call or not. If false, only the users who have made + # an API call will be included. + # @param expand_groups [::Boolean] + # Optional. Decides whether to return the users within user groups. This + # field works only when include_all_users is set to true. If true, it will + # return all users with access to the specified property or account. + # If false, only the users with direct access will be returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new + # + # # Call the run_access_report method. + # result = client.run_access_report request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::RunAccessReportResponse. + # p result + # + def run_access_report request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.run_access_report.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.entity + header_params["entity"] = request.entity + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.run_access_report.timeout, + metadata: metadata, + retry_policy: @config.rpcs.run_access_report.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :run_access_report, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an access binding on an account or property. + # + # @overload create_access_binding(request, options = nil) + # Pass arguments to `create_access_binding` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_access_binding(parent: nil, access_binding: nil) + # Pass arguments to `create_access_binding` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] + # Required. The access binding to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new + # + # # Call the create_access_binding method. + # result = client.create_access_binding request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + # p result + # + def create_access_binding request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_access_binding.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_access_binding.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_access_binding.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_access_binding, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about an access binding. + # + # @overload get_access_binding(request, options = nil) + # Pass arguments to `get_access_binding` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_access_binding(name: nil) + # Pass arguments to `get_access_binding` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the access binding to retrieve. + # Formats: + # - accounts/\\{account}/accessBindings/\\{accessBinding} + # - properties/\\{property}/accessBindings/\\{accessBinding} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new + # + # # Call the get_access_binding method. + # result = client.get_access_binding request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + # p result + # + def get_access_binding request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_access_binding.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_access_binding.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_access_binding.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_access_binding, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an access binding on an account or property. + # + # @overload update_access_binding(request, options = nil) + # Pass arguments to `update_access_binding` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_access_binding(access_binding: nil) + # Pass arguments to `update_access_binding` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] + # Required. The access binding to update. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new + # + # # Call the update_access_binding method. + # result = client.update_access_binding request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + # p result + # + def update_access_binding request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_access_binding.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.access_binding&.name + header_params["access_binding.name"] = request.access_binding.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_access_binding.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_access_binding.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_access_binding, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an access binding on an account or property. + # + # @overload delete_access_binding(request, options = nil) + # Pass arguments to `delete_access_binding` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_access_binding(name: nil) + # Pass arguments to `delete_access_binding` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Formats: + # - accounts/\\{account}/accessBindings/\\{accessBinding} + # - properties/\\{property}/accessBindings/\\{accessBinding} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new + # + # # Call the delete_access_binding method. + # result = client.delete_access_binding request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_access_binding request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_access_binding.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_access_binding.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_access_binding.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_access_binding, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all access bindings on an account or property. + # + # @overload list_access_bindings(request, options = nil) + # Pass arguments to `list_access_bindings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_access_bindings(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_access_bindings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param page_size [::Integer] + # The maximum number of access bindings to return. + # The service may return fewer than this value. + # If unspecified, at most 200 access bindings will be returned. + # The maximum value is 500; values above 500 will be coerced to 500. + # @param page_token [::String] + # A page token, received from a previous `ListAccessBindings` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListAccessBindings` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new + # + # # Call the list_access_bindings method. + # result = client.list_access_bindings request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::AccessBinding. + # p item + # end + # + def list_access_bindings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_access_bindings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_access_bindings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_access_bindings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_access_bindings, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_access_bindings, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates information about multiple access bindings to an account or + # property. + # + # This method is transactional. If any AccessBinding cannot be created, none + # of the AccessBindings will be created. + # + # @overload batch_create_access_bindings(request, options = nil) + # Pass arguments to `batch_create_access_bindings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload batch_create_access_bindings(parent: nil, requests: nil) + # Pass arguments to `batch_create_access_bindings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The account or property that owns the access bindings. The parent + # field in the CreateAccessBindingRequest messages must either be empty or + # match this field. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param requests [::Array<::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, ::Hash>] + # Required. The requests specifying the access bindings to create. + # A maximum of 1000 access bindings can be created in a batch. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new + # + # # Call the batch_create_access_bindings method. + # result = client.batch_create_access_bindings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse. + # p result + # + def batch_create_access_bindings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.batch_create_access_bindings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.batch_create_access_bindings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.batch_create_access_bindings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :batch_create_access_bindings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about multiple access bindings to an account or property. + # + # @overload batch_get_access_bindings(request, options = nil) + # Pass arguments to `batch_get_access_bindings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload batch_get_access_bindings(parent: nil, names: nil) + # Pass arguments to `batch_get_access_bindings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The account or property that owns the access bindings. The parent + # of all provided values for the 'names' field must match this field. + # Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param names [::Array<::String>] + # Required. The names of the access bindings to retrieve. + # A maximum of 1000 access bindings can be retrieved in a batch. + # Formats: + # - accounts/\\{account}/accessBindings/\\{accessBinding} + # - properties/\\{property}/accessBindings/\\{accessBinding} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new + # + # # Call the batch_get_access_bindings method. + # result = client.batch_get_access_bindings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse. + # p result + # + def batch_get_access_bindings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.batch_get_access_bindings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.batch_get_access_bindings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.batch_get_access_bindings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :batch_get_access_bindings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates information about multiple access bindings to an account or + # property. + # + # @overload batch_update_access_bindings(request, options = nil) + # Pass arguments to `batch_update_access_bindings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload batch_update_access_bindings(parent: nil, requests: nil) + # Pass arguments to `batch_update_access_bindings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The account or property that owns the access bindings. The parent + # of all provided AccessBinding in UpdateAccessBindingRequest messages must + # match this field. + # Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param requests [::Array<::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, ::Hash>] + # Required. The requests specifying the access bindings to update. + # A maximum of 1000 access bindings can be updated in a batch. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new + # + # # Call the batch_update_access_bindings method. + # result = client.batch_update_access_bindings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse. + # p result + # + def batch_update_access_bindings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.batch_update_access_bindings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.batch_update_access_bindings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.batch_update_access_bindings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :batch_update_access_bindings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes information about multiple users' links to an account or property. + # + # @overload batch_delete_access_bindings(request, options = nil) + # Pass arguments to `batch_delete_access_bindings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload batch_delete_access_bindings(parent: nil, requests: nil) + # Pass arguments to `batch_delete_access_bindings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The account or property that owns the access bindings. The parent + # of all provided values for the 'names' field in DeleteAccessBindingRequest + # messages must match this field. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param requests [::Array<::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, ::Hash>] + # Required. The requests specifying the access bindings to delete. + # A maximum of 1000 access bindings can be deleted in a batch. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new + # + # # Call the batch_delete_access_bindings method. + # result = client.batch_delete_access_bindings request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def batch_delete_access_bindings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.batch_delete_access_bindings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.batch_delete_access_bindings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.batch_delete_access_bindings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :batch_delete_access_bindings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single ExpandedDataSet. + # + # @overload get_expanded_data_set(request, options = nil) + # Pass arguments to `get_expanded_data_set` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_expanded_data_set(name: nil) + # Pass arguments to `get_expanded_data_set` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExpandedDataSet to get. + # Example format: properties/1234/expandedDataSets/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new + # + # # Call the get_expanded_data_set method. + # result = client.get_expanded_data_set request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # p result + # + def get_expanded_data_set request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_expanded_data_set.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_expanded_data_set.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_expanded_data_set.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_expanded_data_set, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists ExpandedDataSets on a property. + # + # @overload list_expanded_data_sets(request, options = nil) + # Pass arguments to `list_expanded_data_sets` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_expanded_data_sets(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_expanded_data_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListExpandedDataSets` call. Provide + # this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListExpandedDataSet` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new + # + # # Call the list_expanded_data_sets method. + # result = client.list_expanded_data_sets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # p item + # end + # + def list_expanded_data_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_expanded_data_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_expanded_data_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_expanded_data_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_expanded_data_sets, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_expanded_data_sets, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a ExpandedDataSet. + # + # @overload create_expanded_data_set(request, options = nil) + # Pass arguments to `create_expanded_data_set` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_expanded_data_set(parent: nil, expanded_data_set: nil) + # Pass arguments to `create_expanded_data_set` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param expanded_data_set [::Google::Analytics::Admin::V1alpha::ExpandedDataSet, ::Hash] + # Required. The ExpandedDataSet to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new + # + # # Call the create_expanded_data_set method. + # result = client.create_expanded_data_set request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # p result + # + def create_expanded_data_set request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_expanded_data_set.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_expanded_data_set.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_expanded_data_set.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_expanded_data_set, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a ExpandedDataSet on a property. + # + # @overload update_expanded_data_set(request, options = nil) + # Pass arguments to `update_expanded_data_set` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_expanded_data_set(expanded_data_set: nil, update_mask: nil) + # Pass arguments to `update_expanded_data_set` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param expanded_data_set [::Google::Analytics::Admin::V1alpha::ExpandedDataSet, ::Hash] + # Required. The ExpandedDataSet to update. + # The resource's `name` field is used to identify the ExpandedDataSet to be + # updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new + # + # # Call the update_expanded_data_set method. + # result = client.update_expanded_data_set request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # p result + # + def update_expanded_data_set request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_expanded_data_set.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.expanded_data_set&.name + header_params["expanded_data_set.name"] = request.expanded_data_set.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_expanded_data_set.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_expanded_data_set.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_expanded_data_set, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a ExpandedDataSet on a property. + # + # @overload delete_expanded_data_set(request, options = nil) + # Pass arguments to `delete_expanded_data_set` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_expanded_data_set(name: nil) + # Pass arguments to `delete_expanded_data_set` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Example format: properties/1234/expandedDataSets/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new + # + # # Call the delete_expanded_data_set method. + # result = client.delete_expanded_data_set request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_expanded_data_set request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_expanded_data_set.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_expanded_data_set.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_expanded_data_set.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_expanded_data_set, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single ChannelGroup. + # + # @overload get_channel_group(request, options = nil) + # Pass arguments to `get_channel_group` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_channel_group(name: nil) + # Pass arguments to `get_channel_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The ChannelGroup to get. + # Example format: properties/1234/channelGroups/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new + # + # # Call the get_channel_group method. + # result = client.get_channel_group request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # p result + # + def get_channel_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_channel_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_channel_group.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_channel_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_channel_group, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists ChannelGroups on a property. + # + # @overload list_channel_groups(request, options = nil) + # Pass arguments to `list_channel_groups` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_channel_groups(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_channel_groups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The property for which to list ChannelGroups. + # Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListChannelGroups` call. Provide + # this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListChannelGroups` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new + # + # # Call the list_channel_groups method. + # result = client.list_channel_groups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::ChannelGroup. + # p item + # end + # + def list_channel_groups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_channel_groups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_channel_groups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_channel_groups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_channel_groups, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_channel_groups, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a ChannelGroup. + # + # @overload create_channel_group(request, options = nil) + # Pass arguments to `create_channel_group` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_channel_group(parent: nil, channel_group: nil) + # Pass arguments to `create_channel_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The property for which to create a ChannelGroup. + # Example format: properties/1234 + # @param channel_group [::Google::Analytics::Admin::V1alpha::ChannelGroup, ::Hash] + # Required. The ChannelGroup to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new + # + # # Call the create_channel_group method. + # result = client.create_channel_group request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # p result + # + def create_channel_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_channel_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_channel_group.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_channel_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_channel_group, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a ChannelGroup. + # + # @overload update_channel_group(request, options = nil) + # Pass arguments to `update_channel_group` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_channel_group(channel_group: nil, update_mask: nil) + # Pass arguments to `update_channel_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param channel_group [::Google::Analytics::Admin::V1alpha::ChannelGroup, ::Hash] + # Required. The ChannelGroup to update. + # The resource's `name` field is used to identify the ChannelGroup to be + # updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new + # + # # Call the update_channel_group method. + # result = client.update_channel_group request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # p result + # + def update_channel_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_channel_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.channel_group&.name + header_params["channel_group.name"] = request.channel_group.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_channel_group.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_channel_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_channel_group, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a ChannelGroup on a property. + # + # @overload delete_channel_group(request, options = nil) + # Pass arguments to `delete_channel_group` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_channel_group(name: nil) + # Pass arguments to `delete_channel_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The ChannelGroup to delete. + # Example format: properties/1234/channelGroups/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new + # + # # Call the delete_channel_group method. + # result = client.delete_channel_group request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_channel_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_channel_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_channel_group.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_channel_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_channel_group, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a BigQueryLink. + # + # @overload create_big_query_link(request, options = nil) + # Pass arguments to `create_big_query_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_big_query_link(parent: nil, bigquery_link: nil) + # Pass arguments to `create_big_query_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param bigquery_link [::Google::Analytics::Admin::V1alpha::BigQueryLink, ::Hash] + # Required. The BigQueryLink to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new + # + # # Call the create_big_query_link method. + # result = client.create_big_query_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + # p result + # + def create_big_query_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_big_query_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_big_query_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_big_query_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_big_query_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single BigQuery Link. + # + # @overload get_big_query_link(request, options = nil) + # Pass arguments to `get_big_query_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_big_query_link(name: nil) + # Pass arguments to `get_big_query_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the BigQuery link to lookup. + # Format: properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id} + # Example: properties/123/bigQueryLinks/456 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new + # + # # Call the get_big_query_link method. + # result = client.get_big_query_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + # p result + # + def get_big_query_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_big_query_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_big_query_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_big_query_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_big_query_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists BigQuery Links on a property. + # + # @overload list_big_query_links(request, options = nil) + # Pass arguments to `list_big_query_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_big_query_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_big_query_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the property to list BigQuery links under. + # Format: properties/\\{property_id} + # Example: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # A page token, received from a previous `ListBigQueryLinks` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListBigQueryLinks` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new + # + # # Call the list_big_query_links method. + # result = client.list_big_query_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::BigQueryLink. + # p item + # end + # + def list_big_query_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_big_query_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_big_query_links.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_big_query_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_big_query_links, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_big_query_links, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a BigQueryLink on a property. + # + # @overload delete_big_query_link(request, options = nil) + # Pass arguments to `delete_big_query_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_big_query_link(name: nil) + # Pass arguments to `delete_big_query_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The BigQueryLink to delete. + # Example format: properties/1234/bigQueryLinks/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new + # + # # Call the delete_big_query_link method. + # result = client.delete_big_query_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_big_query_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_big_query_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_big_query_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_big_query_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_big_query_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a BigQueryLink. + # + # @overload update_big_query_link(request, options = nil) + # Pass arguments to `update_big_query_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_big_query_link(bigquery_link: nil, update_mask: nil) + # Pass arguments to `update_big_query_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param bigquery_link [::Google::Analytics::Admin::V1alpha::BigQueryLink, ::Hash] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new + # + # # Call the update_big_query_link method. + # result = client.update_big_query_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + # p result + # + def update_big_query_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_big_query_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.bigquery_link&.name + header_params["bigquery_link.name"] = request.bigquery_link.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_big_query_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_big_query_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_big_query_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the enhanced measurement settings for this data stream. + # Note that the stream must enable enhanced measurement for these settings to + # take effect. + # + # @overload get_enhanced_measurement_settings(request, options = nil) + # Pass arguments to `get_enhanced_measurement_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_enhanced_measurement_settings(name: nil) + # Pass arguments to `get_enhanced_measurement_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/dataStreams/\\{data_stream}/enhancedMeasurementSettings + # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new + # + # # Call the get_enhanced_measurement_settings method. + # result = client.get_enhanced_measurement_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. + # p result + # + def get_enhanced_measurement_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_enhanced_measurement_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_enhanced_measurement_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_enhanced_measurement_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_enhanced_measurement_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the enhanced measurement settings for this data stream. + # Note that the stream must enable enhanced measurement for these settings to + # take effect. + # + # @overload update_enhanced_measurement_settings(request, options = nil) + # Pass arguments to `update_enhanced_measurement_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_enhanced_measurement_settings(enhanced_measurement_settings: nil, update_mask: nil) + # Pass arguments to `update_enhanced_measurement_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param enhanced_measurement_settings [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings, ::Hash] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new + # + # # Call the update_enhanced_measurement_settings method. + # result = client.update_enhanced_measurement_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. + # p result + # + def update_enhanced_measurement_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_enhanced_measurement_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.enhanced_measurement_settings&.name + header_params["enhanced_measurement_settings.name"] = request.enhanced_measurement_settings.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_enhanced_measurement_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_enhanced_measurement_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_enhanced_measurement_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Looks up a single AdSenseLink. + # + # @overload get_ad_sense_link(request, options = nil) + # Pass arguments to `get_ad_sense_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_ad_sense_link(name: nil) + # Pass arguments to `get_ad_sense_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Unique identifier for the AdSense Link requested. + # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} + # Example: properties/1234/adSenseLinks/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new + # + # # Call the get_ad_sense_link method. + # result = client.get_ad_sense_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. + # p result + # + def get_ad_sense_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_ad_sense_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_ad_sense_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_ad_sense_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_ad_sense_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an AdSenseLink. + # + # @overload create_ad_sense_link(request, options = nil) + # Pass arguments to `create_ad_sense_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_ad_sense_link(parent: nil, adsense_link: nil) + # Pass arguments to `create_ad_sense_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The property for which to create an AdSense Link. + # Format: properties/\\{propertyId} + # Example: properties/1234 + # @param adsense_link [::Google::Analytics::Admin::V1alpha::AdSenseLink, ::Hash] + # Required. The AdSense Link to create + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new + # + # # Call the create_ad_sense_link method. + # result = client.create_ad_sense_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. + # p result + # + def create_ad_sense_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_ad_sense_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_ad_sense_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_ad_sense_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_ad_sense_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an AdSenseLink. + # + # @overload delete_ad_sense_link(request, options = nil) + # Pass arguments to `delete_ad_sense_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_ad_sense_link(name: nil) + # Pass arguments to `delete_ad_sense_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Unique identifier for the AdSense Link to be deleted. + # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} + # Example: properties/1234/adSenseLinks/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new + # + # # Call the delete_ad_sense_link method. + # result = client.delete_ad_sense_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_ad_sense_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_ad_sense_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_ad_sense_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_ad_sense_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_ad_sense_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists AdSenseLinks on a property. + # + # @overload list_ad_sense_links(request, options = nil) + # Pass arguments to `list_ad_sense_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_ad_sense_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_ad_sense_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Resource name of the parent property. + # Format: properties/\\{propertyId} + # Example: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token received from a previous `ListAdSenseLinks` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListAdSenseLinks` must + # match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new + # + # # Call the list_ad_sense_links method. + # result = client.list_ad_sense_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::AdSenseLink. + # p item + # end + # + def list_ad_sense_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_ad_sense_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_ad_sense_links.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_ad_sense_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_ad_sense_links, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_ad_sense_links, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single EventCreateRule. + # + # @overload get_event_create_rule(request, options = nil) + # Pass arguments to `get_event_create_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_event_create_rule(name: nil) + # Pass arguments to `get_event_create_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the EventCreateRule to get. + # Example format: properties/123/dataStreams/456/eventCreateRules/789 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new + # + # # Call the get_event_create_rule method. + # result = client.get_event_create_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # p result + # + def get_event_create_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_event_create_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_event_create_rule.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_event_create_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_event_create_rule, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists EventCreateRules on a web data stream. + # + # @overload list_event_create_rules(request, options = nil) + # Pass arguments to `list_event_create_rules` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_event_create_rules(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_event_create_rules` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/123/dataStreams/456 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListEventCreateRules` call. Provide + # this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListEventCreateRules` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new + # + # # Call the list_event_create_rules method. + # result = client.list_event_create_rules request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::EventCreateRule. + # p item + # end + # + def list_event_create_rules request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_event_create_rules.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_event_create_rules.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_event_create_rules.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_event_create_rules, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_event_create_rules, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an EventCreateRule. + # + # @overload create_event_create_rule(request, options = nil) + # Pass arguments to `create_event_create_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_event_create_rule(parent: nil, event_create_rule: nil) + # Pass arguments to `create_event_create_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/123/dataStreams/456 + # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash] + # Required. The EventCreateRule to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new + # + # # Call the create_event_create_rule method. + # result = client.create_event_create_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # p result + # + def create_event_create_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_event_create_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_event_create_rule.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_event_create_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_event_create_rule, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an EventCreateRule. + # + # @overload update_event_create_rule(request, options = nil) + # Pass arguments to `update_event_create_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_event_create_rule(event_create_rule: nil, update_mask: nil) + # Pass arguments to `update_event_create_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash] + # Required. The EventCreateRule to update. + # The resource's `name` field is used to identify the EventCreateRule to be + # updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new + # + # # Call the update_event_create_rule method. + # result = client.update_event_create_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # p result + # + def update_event_create_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_event_create_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.event_create_rule&.name + header_params["event_create_rule.name"] = request.event_create_rule.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_event_create_rule.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_event_create_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_event_create_rule, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an EventCreateRule. + # + # @overload delete_event_create_rule(request, options = nil) + # Pass arguments to `delete_event_create_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_event_create_rule(name: nil) + # Pass arguments to `delete_event_create_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Example format: + # properties/123/dataStreams/456/eventCreateRules/789 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new + # + # # Call the delete_event_create_rule method. + # result = client.delete_event_create_rule request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_event_create_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_event_create_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_event_create_rule.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_event_create_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_event_create_rule, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single EventEditRule. + # + # @overload get_event_edit_rule(request, options = nil) + # Pass arguments to `get_event_edit_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_event_edit_rule(name: nil) + # Pass arguments to `get_event_edit_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the EventEditRule to get. + # Example format: properties/123/dataStreams/456/eventEditRules/789 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventEditRule] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new + # + # # Call the get_event_edit_rule method. + # result = client.get_event_edit_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + # p result + # + def get_event_edit_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_event_edit_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_event_edit_rule.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_event_edit_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_event_edit_rule, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists EventEditRules on a web data stream. + # + # @overload list_event_edit_rules(request, options = nil) + # Pass arguments to `list_event_edit_rules` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_event_edit_rules(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_event_edit_rules` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/123/dataStreams/456 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # Optional. A page token, received from a previous `ListEventEditRules` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListEventEditRules` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new + # + # # Call the list_event_edit_rules method. + # result = client.list_event_edit_rules request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::EventEditRule. + # p item + # end + # + def list_event_edit_rules request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_event_edit_rules.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_event_edit_rules.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_event_edit_rules.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_event_edit_rules, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_event_edit_rules, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an EventEditRule. + # + # @overload create_event_edit_rule(request, options = nil) + # Pass arguments to `create_event_edit_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_event_edit_rule(parent: nil, event_edit_rule: nil) + # Pass arguments to `create_event_edit_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/123/dataStreams/456 + # @param event_edit_rule [::Google::Analytics::Admin::V1alpha::EventEditRule, ::Hash] + # Required. The EventEditRule to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventEditRule] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new + # + # # Call the create_event_edit_rule method. + # result = client.create_event_edit_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + # p result + # + def create_event_edit_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_event_edit_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_event_edit_rule.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_event_edit_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_event_edit_rule, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an EventEditRule. + # + # @overload update_event_edit_rule(request, options = nil) + # Pass arguments to `update_event_edit_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_event_edit_rule(event_edit_rule: nil, update_mask: nil) + # Pass arguments to `update_event_edit_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param event_edit_rule [::Google::Analytics::Admin::V1alpha::EventEditRule, ::Hash] + # Required. The EventEditRule to update. + # The resource's `name` field is used to identify the EventEditRule to be + # updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventEditRule] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new + # + # # Call the update_event_edit_rule method. + # result = client.update_event_edit_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + # p result + # + def update_event_edit_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_event_edit_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.event_edit_rule&.name + header_params["event_edit_rule.name"] = request.event_edit_rule.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_event_edit_rule.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_event_edit_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_event_edit_rule, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an EventEditRule. + # + # @overload delete_event_edit_rule(request, options = nil) + # Pass arguments to `delete_event_edit_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_event_edit_rule(name: nil) + # Pass arguments to `delete_event_edit_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Example format: properties/123/dataStreams/456/eventEditRules/789 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new + # + # # Call the delete_event_edit_rule method. + # result = client.delete_event_edit_rule request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_event_edit_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_event_edit_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_event_edit_rule.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_event_edit_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_event_edit_rule, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Changes the processing order of event edit rules on the specified stream. + # + # @overload reorder_event_edit_rules(request, options = nil) + # Pass arguments to `reorder_event_edit_rules` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload reorder_event_edit_rules(parent: nil, event_edit_rules: nil) + # Pass arguments to `reorder_event_edit_rules` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/123/dataStreams/456 + # @param event_edit_rules [::Array<::String>] + # Required. EventEditRule resource names for the specified data stream, in + # the needed processing order. All EventEditRules for the stream must be + # present in the list. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new + # + # # Call the reorder_event_edit_rules method. + # result = client.reorder_event_edit_rules request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def reorder_event_edit_rules request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.reorder_event_edit_rules.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.reorder_event_edit_rules.timeout, + metadata: metadata, + retry_policy: @config.rpcs.reorder_event_edit_rules.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :reorder_event_edit_rules, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a DataRedactionSettings on a property. + # + # @overload update_data_redaction_settings(request, options = nil) + # Pass arguments to `update_data_redaction_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_data_redaction_settings(data_redaction_settings: nil, update_mask: nil) + # Pass arguments to `update_data_redaction_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param data_redaction_settings [::Google::Analytics::Admin::V1alpha::DataRedactionSettings, ::Hash] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new + # + # # Call the update_data_redaction_settings method. + # result = client.update_data_redaction_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. + # p result + # + def update_data_redaction_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_data_redaction_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.data_redaction_settings&.name + header_params["data_redaction_settings.name"] = request.data_redaction_settings.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_data_redaction_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_data_redaction_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_data_redaction_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single DataRedactionSettings. + # + # @overload get_data_redaction_settings(request, options = nil) + # Pass arguments to `get_data_redaction_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_data_redaction_settings(name: nil) + # Pass arguments to `get_data_redaction_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/dataStreams/\\{data_stream}/dataRedactionSettings + # Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new + # + # # Call the get_data_redaction_settings method. + # result = client.get_data_redaction_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. + # p result + # + def get_data_redaction_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_data_redaction_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_data_redaction_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_data_redaction_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_data_redaction_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single CalculatedMetric. + # + # @overload get_calculated_metric(request, options = nil) + # Pass arguments to `get_calculated_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_calculated_metric(name: nil) + # Pass arguments to `get_calculated_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CalculatedMetric to get. + # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} + # Example: properties/1234/calculatedMetrics/Metric01 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new + # + # # Call the get_calculated_metric method. + # result = client.get_calculated_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. + # p result + # + def get_calculated_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_calculated_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_calculated_metric.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_calculated_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_calculated_metric, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a CalculatedMetric. + # + # @overload create_calculated_metric(request, options = nil) + # Pass arguments to `create_calculated_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_calculated_metric(parent: nil, calculated_metric_id: nil, calculated_metric: nil) + # Pass arguments to `create_calculated_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: properties/\\{property_id} + # Example: properties/1234 + # @param calculated_metric_id [::String] + # Required. The ID to use for the calculated metric which will become the + # final component of the calculated metric's resource name. + # + # This value should be 1-80 characters and valid characters are + # /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique + # between all calculated metrics under a property. The calculated_metric_id + # is used when referencing this calculated metric from external APIs, for + # example, "calcMetric:\\{calculated_metric_id}". + # @param calculated_metric [::Google::Analytics::Admin::V1alpha::CalculatedMetric, ::Hash] + # Required. The CalculatedMetric to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new + # + # # Call the create_calculated_metric method. + # result = client.create_calculated_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. + # p result + # + def create_calculated_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_calculated_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_calculated_metric.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_calculated_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_calculated_metric, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CalculatedMetrics on a property. + # + # @overload list_calculated_metrics(request, options = nil) + # Pass arguments to `list_calculated_metrics` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_calculated_metrics(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_calculated_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # Optional. A page token, received from a previous `ListCalculatedMetrics` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCalculatedMetrics` + # must match the call that provided the page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CalculatedMetric>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CalculatedMetric>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new + # + # # Call the list_calculated_metrics method. + # result = client.list_calculated_metrics request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::CalculatedMetric. + # p item + # end + # + def list_calculated_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_calculated_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_calculated_metrics.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_calculated_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_calculated_metrics, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_calculated_metrics, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a CalculatedMetric on a property. + # + # @overload update_calculated_metric(request, options = nil) + # Pass arguments to `update_calculated_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_calculated_metric(calculated_metric: nil, update_mask: nil) + # Pass arguments to `update_calculated_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param calculated_metric [::Google::Analytics::Admin::V1alpha::CalculatedMetric, ::Hash] + # Required. The CalculatedMetric to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new + # + # # Call the update_calculated_metric method. + # result = client.update_calculated_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. + # p result + # + def update_calculated_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_calculated_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.calculated_metric&.name + header_params["calculated_metric.name"] = request.calculated_metric.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_calculated_metric.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_calculated_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_calculated_metric, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a CalculatedMetric on a property. + # + # @overload delete_calculated_metric(request, options = nil) + # Pass arguments to `delete_calculated_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_calculated_metric(name: nil) + # Pass arguments to `delete_calculated_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CalculatedMetric to delete. + # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} + # Example: properties/1234/calculatedMetrics/Metric01 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new + # + # # Call the delete_calculated_metric method. + # result = client.delete_calculated_metric request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_calculated_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_calculated_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_calculated_metric.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_calculated_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_calculated_metric, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a roll-up property and all roll-up property source links. + # + # @overload create_rollup_property(request, options = nil) + # Pass arguments to `create_rollup_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_rollup_property(rollup_property: nil, source_properties: nil) + # Pass arguments to `create_rollup_property` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param rollup_property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] + # Required. The roll-up property to create. + # @param source_properties [::Array<::String>] + # Optional. The resource names of properties that will be sources to the + # created roll-up property. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new + # + # # Call the create_rollup_property method. + # result = client.create_rollup_property request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse. + # p result + # + def create_rollup_property request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_rollup_property.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_rollup_property.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_rollup_property.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_rollup_property, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single roll-up property source Link. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + # + # @overload get_rollup_property_source_link(request, options = nil) + # Pass arguments to `get_rollup_property_source_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_rollup_property_source_link(name: nil) + # Pass arguments to `get_rollup_property_source_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the roll-up property source link to lookup. + # Format: + # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} + # Example: properties/123/rollupPropertySourceLinks/456 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new + # + # # Call the get_rollup_property_source_link method. + # result = client.get_rollup_property_source_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. + # p result + # + def get_rollup_property_source_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_rollup_property_source_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_rollup_property_source_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_rollup_property_source_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_rollup_property_source_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists roll-up property source Links on a property. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + # + # @overload list_rollup_property_source_links(request, options = nil) + # Pass arguments to `list_rollup_property_source_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_rollup_property_source_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_rollup_property_source_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the roll-up property to list roll-up property source + # links under. Format: properties/\\{property_id} Example: properties/1234 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListRollupPropertySourceLinks` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListRollupPropertySourceLinks` must match the call that provided the page + # token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new + # + # # Call the list_rollup_property_source_links method. + # result = client.list_rollup_property_source_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. + # p item + # end + # + def list_rollup_property_source_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_rollup_property_source_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_rollup_property_source_links.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_rollup_property_source_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_rollup_property_source_links, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_rollup_property_source_links, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a roll-up property source link. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + # + # @overload create_rollup_property_source_link(request, options = nil) + # Pass arguments to `create_rollup_property_source_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_rollup_property_source_link(parent: nil, rollup_property_source_link: nil) + # Pass arguments to `create_rollup_property_source_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: properties/\\{property_id} + # Example: properties/1234 + # @param rollup_property_source_link [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink, ::Hash] + # Required. The roll-up property source link to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new + # + # # Call the create_rollup_property_source_link method. + # result = client.create_rollup_property_source_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. + # p result + # + def create_rollup_property_source_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_rollup_property_source_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_rollup_property_source_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_rollup_property_source_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_rollup_property_source_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a roll-up property source link. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + # + # @overload delete_rollup_property_source_link(request, options = nil) + # Pass arguments to `delete_rollup_property_source_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_rollup_property_source_link(name: nil) + # Pass arguments to `delete_rollup_property_source_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Format: + # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} + # Example: properties/1234/rollupPropertySourceLinks/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new + # + # # Call the delete_rollup_property_source_link method. + # result = client.delete_rollup_property_source_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_rollup_property_source_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_rollup_property_source_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_rollup_property_source_link.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_rollup_property_source_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_rollup_property_source_link, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a subproperty and a subproperty event filter that applies to the + # created subproperty. + # + # @overload provision_subproperty(request, options = nil) + # Pass arguments to `provision_subproperty` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload provision_subproperty(subproperty: nil, subproperty_event_filter: nil, custom_dimension_and_metric_synchronization_mode: nil) + # Pass arguments to `provision_subproperty` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param subproperty [::Google::Analytics::Admin::V1alpha::Property, ::Hash] + # Required. The subproperty to create. + # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] + # Optional. The subproperty event filter to create on an ordinary property. + # @param custom_dimension_and_metric_synchronization_mode [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig::SynchronizationMode] + # Optional. The subproperty feature synchronization mode for Custom + # Dimensions and Metrics + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new + # + # # Call the provision_subproperty method. + # result = client.provision_subproperty request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse. + # p result + # + def provision_subproperty request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.provision_subproperty.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.provision_subproperty.timeout, + metadata: metadata, + retry_policy: @config.rpcs.provision_subproperty.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :provision_subproperty, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a subproperty Event Filter. + # + # @overload create_subproperty_event_filter(request, options = nil) + # Pass arguments to `create_subproperty_event_filter` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_subproperty_event_filter(parent: nil, subproperty_event_filter: nil) + # Pass arguments to `create_subproperty_event_filter` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The ordinary property for which to create a subproperty event + # filter. Format: properties/property_id Example: properties/123 + # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] + # Required. The subproperty event filter to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new + # + # # Call the create_subproperty_event_filter method. + # result = client.create_subproperty_event_filter request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + # p result + # + def create_subproperty_event_filter request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_subproperty_event_filter.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_subproperty_event_filter.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_subproperty_event_filter.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_subproperty_event_filter, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single subproperty Event Filter. + # + # @overload get_subproperty_event_filter(request, options = nil) + # Pass arguments to `get_subproperty_event_filter` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_subproperty_event_filter(name: nil) + # Pass arguments to `get_subproperty_event_filter` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Resource name of the subproperty event filter to lookup. + # Format: + # properties/property_id/subpropertyEventFilters/subproperty_event_filter + # Example: properties/123/subpropertyEventFilters/456 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new + # + # # Call the get_subproperty_event_filter method. + # result = client.get_subproperty_event_filter request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + # p result + # + def get_subproperty_event_filter request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_subproperty_event_filter.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_subproperty_event_filter.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_subproperty_event_filter.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_subproperty_event_filter, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List all subproperty Event Filters on a property. + # + # @overload list_subproperty_event_filters(request, options = nil) + # Pass arguments to `list_subproperty_event_filters` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_subproperty_event_filters(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_subproperty_event_filters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Resource name of the ordinary property. + # Format: properties/property_id + # Example: properties/123 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. If unspecified, + # at most 50 resources will be returned. The maximum value is 200; (higher + # values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + # page. When paginating, all other parameters provided to + # `ListSubpropertyEventFilters` must match the call that provided the page + # token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new + # + # # Call the list_subproperty_event_filters method. + # result = client.list_subproperty_event_filters request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + # p item + # end + # + def list_subproperty_event_filters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_subproperty_event_filters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_subproperty_event_filters.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_subproperty_event_filters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_subproperty_event_filters, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_event_filters, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a subproperty Event Filter. + # + # @overload update_subproperty_event_filter(request, options = nil) + # Pass arguments to `update_subproperty_event_filter` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_subproperty_event_filter(subproperty_event_filter: nil, update_mask: nil) + # Pass arguments to `update_subproperty_event_filter` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] + # Required. The subproperty event filter to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to update. Field names must be in snake case + # (for example, "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new + # + # # Call the update_subproperty_event_filter method. + # result = client.update_subproperty_event_filter request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + # p result + # + def update_subproperty_event_filter request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_subproperty_event_filter.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.subproperty_event_filter&.name + header_params["subproperty_event_filter.name"] = request.subproperty_event_filter.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_subproperty_event_filter.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_subproperty_event_filter.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_subproperty_event_filter, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a subproperty event filter. + # + # @overload delete_subproperty_event_filter(request, options = nil) + # Pass arguments to `delete_subproperty_event_filter` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_subproperty_event_filter(name: nil) + # Pass arguments to `delete_subproperty_event_filter` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Resource name of the subproperty event filter to delete. + # Format: + # properties/property_id/subpropertyEventFilters/subproperty_event_filter + # Example: properties/123/subpropertyEventFilters/456 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new + # + # # Call the delete_subproperty_event_filter method. + # result = client.delete_subproperty_event_filter request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_subproperty_event_filter request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_subproperty_event_filter.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_subproperty_event_filter.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_subproperty_event_filter.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_subproperty_event_filter, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a Reporting Data Annotation. + # + # @overload create_reporting_data_annotation(request, options = nil) + # Pass arguments to `create_reporting_data_annotation` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_reporting_data_annotation(parent: nil, reporting_data_annotation: nil) + # Pass arguments to `create_reporting_data_annotation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The property for which to create a Reporting Data Annotation. + # Format: properties/property_id + # Example: properties/123 + # @param reporting_data_annotation [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation, ::Hash] + # Required. The Reporting Data Annotation to create. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new + # + # # Call the create_reporting_data_annotation method. + # result = client.create_reporting_data_annotation request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + # p result + # + def create_reporting_data_annotation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_reporting_data_annotation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_reporting_data_annotation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_reporting_data_annotation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :create_reporting_data_annotation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup a single Reporting Data Annotation. + # + # @overload get_reporting_data_annotation(request, options = nil) + # Pass arguments to `get_reporting_data_annotation` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_reporting_data_annotation(name: nil) + # Pass arguments to `get_reporting_data_annotation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Resource name of the Reporting Data Annotation to lookup. + # Format: + # properties/property_id/reportingDataAnnotations/reportingDataAnnotation + # Example: properties/123/reportingDataAnnotations/456 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new + # + # # Call the get_reporting_data_annotation method. + # result = client.get_reporting_data_annotation request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + # p result + # + def get_reporting_data_annotation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_reporting_data_annotation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_reporting_data_annotation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_reporting_data_annotation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_reporting_data_annotation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List all Reporting Data Annotations on a property. + # + # @overload list_reporting_data_annotations(request, options = nil) + # Pass arguments to `list_reporting_data_annotations` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_reporting_data_annotations(parent: nil, filter: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_reporting_data_annotations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Resource name of the property. + # Format: properties/property_id + # Example: properties/123 + # @param filter [::String] + # Optional. Filter that restricts which reporting data annotations under the + # parent property are listed. + # + # Supported fields are: + # + # * 'name' + # * `title` + # * `description` + # * `annotation_date` + # * `annotation_date_range` + # * `color` + # + # Additionally, this API provides the following helper functions: + # + # * annotation_duration() : the duration that this annotation marks, + # [durations](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/duration.proto). + # expect a numeric representation of seconds followed by an `s` suffix. + # * is_annotation_in_range(start_date, end_date) : if the annotation is in + # the range specified by the `start_date` and `end_date`. The dates are in + # ISO-8601 format, for example `2031-06-28`. + # + # Supported operations: + # + # * `=` : equals + # * `!=` : not equals + # * `<` : less than + # * `>` : greater than + # * `<=` : less than or equals + # * `>=` : greater than or equals + # * `:` : has operator + # * `=~` : [regular expression](https://github.com/google/re2/wiki/Syntax) + # match + # * `!~` : [regular expression](https://github.com/google/re2/wiki/Syntax) + # does not match + # * `NOT` : Logical not + # * `AND` : Logical and + # * `OR` : Logical or + # + # Examples: + # + # 1. `title="Holiday Sale"` + # 2. `description=~"[Bb]ig [Gg]ame.*[Ss]ale"` + # 3. `is_annotation_in_range("2025-12-25", "2026-01-16") = true` + # 4. `annotation_duration() >= 172800s AND title:BOGO` + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. If unspecified, + # at most 50 resources will be returned. The maximum value is 200; (higher + # values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListReportingDataAnnotations` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListReportingDataAnnotations` must match the call that provided the page + # token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new + # + # # Call the list_reporting_data_annotations method. + # result = client.list_reporting_data_annotations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + # p item + # end + # + def list_reporting_data_annotations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_reporting_data_annotations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_reporting_data_annotations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_reporting_data_annotations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_reporting_data_annotations, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_reporting_data_annotations, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a Reporting Data Annotation. + # + # @overload update_reporting_data_annotation(request, options = nil) + # Pass arguments to `update_reporting_data_annotation` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_reporting_data_annotation(reporting_data_annotation: nil, update_mask: nil) + # Pass arguments to `update_reporting_data_annotation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param reporting_data_annotation [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation, ::Hash] + # Required. The Reporting Data Annotation to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. Field names must be in snake case + # (for example, "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new + # + # # Call the update_reporting_data_annotation method. + # result = client.update_reporting_data_annotation request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + # p result + # + def update_reporting_data_annotation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_reporting_data_annotation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.reporting_data_annotation&.name + header_params["reporting_data_annotation.name"] = request.reporting_data_annotation.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_reporting_data_annotation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_reporting_data_annotation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_reporting_data_annotation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Reporting Data Annotation. + # + # @overload delete_reporting_data_annotation(request, options = nil) + # Pass arguments to `delete_reporting_data_annotation` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_reporting_data_annotation(name: nil) + # Pass arguments to `delete_reporting_data_annotation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Resource name of the Reporting Data Annotation to delete. + # Format: + # properties/property_id/reportingDataAnnotations/reporting_data_annotation + # Example: properties/123/reportingDataAnnotations/456 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new + # + # # Call the delete_reporting_data_annotation method. + # result = client.delete_reporting_data_annotation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_reporting_data_annotation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_reporting_data_annotation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_reporting_data_annotation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_reporting_data_annotation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :delete_reporting_data_annotation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Submits a request for user deletion for a property. + # + # @overload submit_user_deletion(request, options = nil) + # Pass arguments to `submit_user_deletion` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload submit_user_deletion(user_id: nil, client_id: nil, app_instance_id: nil, user_provided_data: nil, name: nil) + # Pass arguments to `submit_user_deletion` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param user_id [::String] + # Google Analytics [user + # ID](https://firebase.google.com/docs/analytics/userid). + # + # Note: The following parameters are mutually exclusive: `user_id`, `client_id`, `app_instance_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param client_id [::String] + # Google Analytics [client + # ID](https://support.google.com/analytics/answer/11593727). + # + # Note: The following parameters are mutually exclusive: `client_id`, `user_id`, `app_instance_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param app_instance_id [::String] + # Firebase [application instance + # ID](https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.html#getAppInstanceId). + # + # Note: The following parameters are mutually exclusive: `app_instance_id`, `user_id`, `client_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param user_provided_data [::String] + # [User-provided + # data](https://support.google.com/analytics/answer/14077171). May contain + # either one email address or one phone number. + # + # Email addresses should be normalized as such: + # + # * lowercase + # * remove periods before @ for gmail.com/googlemail.com addresses + # * remove all spaces + # + # Phone numbers should be normalized as such: + # + # * remove all non digit characters + # * add + prefix + # + # Note: The following parameters are mutually exclusive: `user_provided_data`, `user_id`, `client_id`, `app_instance_id`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param name [::String] + # Required. The name of the property to submit user deletion for. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new + # + # # Call the submit_user_deletion method. + # result = client.submit_user_deletion request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse. + # p result + # + def submit_user_deletion request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.submit_user_deletion.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.submit_user_deletion.timeout, + metadata: metadata, + retry_policy: @config.rpcs.submit_user_deletion.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :submit_user_deletion, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List all `SubpropertySyncConfig` resources for a property. + # + # @overload list_subproperty_sync_configs(request, options = nil) + # Pass arguments to `list_subproperty_sync_configs` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_subproperty_sync_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_subproperty_sync_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Resource name of the property. + # Format: properties/property_id + # Example: properties/123 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. If unspecified, + # at most 50 resources will be returned. The maximum value is 200; (higher + # values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListSubpropertySyncConfig` call. Provide this to retrieve the subsequent + # page. When paginating, all other parameters provided to + # `ListSubpropertySyncConfig` must match the call that provided the page + # token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new + # + # # Call the list_subproperty_sync_configs method. + # result = client.list_subproperty_sync_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. + # p item + # end + # + def list_subproperty_sync_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_subproperty_sync_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_subproperty_sync_configs.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_subproperty_sync_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :list_subproperty_sync_configs, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_sync_configs, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a `SubpropertySyncConfig`. + # + # @overload update_subproperty_sync_config(request, options = nil) + # Pass arguments to `update_subproperty_sync_config` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_subproperty_sync_config(subproperty_sync_config: nil, update_mask: nil) + # Pass arguments to `update_subproperty_sync_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param subproperty_sync_config [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig, ::Hash] + # Required. The `SubpropertySyncConfig` to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. Field names must be in snake case + # (for example, "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new + # + # # Call the update_subproperty_sync_config method. + # result = client.update_subproperty_sync_config request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. + # p result + # + def update_subproperty_sync_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_subproperty_sync_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.subproperty_sync_config&.name + header_params["subproperty_sync_config.name"] = request.subproperty_sync_config.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_subproperty_sync_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_subproperty_sync_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_subproperty_sync_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single `SubpropertySyncConfig`. + # + # @overload get_subproperty_sync_config(request, options = nil) + # Pass arguments to `get_subproperty_sync_config` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_subproperty_sync_config(name: nil) + # Pass arguments to `get_subproperty_sync_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Resource name of the SubpropertySyncConfig to lookup. + # Format: + # properties/\\{ordinary_property_id}/subpropertySyncConfigs/\\{subproperty_id} + # Example: properties/1234/subpropertySyncConfigs/5678 + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new + # + # # Call the get_subproperty_sync_config method. + # result = client.get_subproperty_sync_config request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. + # p result + # + def get_subproperty_sync_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_subproperty_sync_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_subproperty_sync_config.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_subproperty_sync_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_subproperty_sync_config, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the reporting identity settings for this property. + # + # @overload get_reporting_identity_settings(request, options = nil) + # Pass arguments to `get_reporting_identity_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_reporting_identity_settings(name: nil) + # Pass arguments to `get_reporting_identity_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/reportingIdentitySettings + # Example: "properties/1000/reportingIdentitySettings" + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new + # + # # Call the get_reporting_identity_settings method. + # result = client.get_reporting_identity_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. + # p result + # + def get_reporting_identity_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_reporting_identity_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_reporting_identity_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_reporting_identity_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_reporting_identity_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the reporting identity settings for this property. + # + # @overload update_reporting_identity_settings(request, options = nil) + # Pass arguments to `update_reporting_identity_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_reporting_identity_settings(reporting_identity_settings: nil, update_mask: nil) + # Pass arguments to `update_reporting_identity_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param reporting_identity_settings [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings, ::Hash] + # Required. The reporting identity settings to update. + # The settings' `name` field is used to identify the settings. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to be updated. Field names must be in snake + # case (for example, "field_to_update"). Omitted fields will not be updated. + # To replace the entire entity, use one path with the string "*" to match all + # fields. If omitted, the service will treat it as an implied field mask + # equivalent to all fields that are populated. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new + # + # # Call the update_reporting_identity_settings method. + # result = client.update_reporting_identity_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. + # p result + # + def update_reporting_identity_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_reporting_identity_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.reporting_identity_settings&.name + header_params["reporting_identity_settings.name"] = request.reporting_identity_settings.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_reporting_identity_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_reporting_identity_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_reporting_identity_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Looks up settings related to user-provided data for a property. + # + # @overload get_user_provided_data_settings(request, options = nil) + # Pass arguments to `get_user_provided_data_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_user_provided_data_settings(name: nil) + # Pass arguments to `get_user_provided_data_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the user provided data settings to retrieve. + # Format: properties/\\{property}/userProvidedDataSettings + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new + # + # # Call the get_user_provided_data_settings method. + # result = client.get_user_provided_data_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::UserProvidedDataSettings. + # p result + # + def get_user_provided_data_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_user_provided_data_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_user_provided_data_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_user_provided_data_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :get_user_provided_data_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the AnalyticsAdminService API. + # + # This class represents the configuration for AnalyticsAdminService, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_account to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_account.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_account.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "analyticsadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the AnalyticsAdminService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_account` + # @return [::Gapic::Config::Method] + # + attr_reader :get_account + ## + # RPC-specific configuration for `list_accounts` + # @return [::Gapic::Config::Method] + # + attr_reader :list_accounts + ## + # RPC-specific configuration for `delete_account` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_account + ## + # RPC-specific configuration for `update_account` + # @return [::Gapic::Config::Method] + # + attr_reader :update_account + ## + # RPC-specific configuration for `provision_account_ticket` + # @return [::Gapic::Config::Method] + # + attr_reader :provision_account_ticket + ## + # RPC-specific configuration for `list_account_summaries` + # @return [::Gapic::Config::Method] + # + attr_reader :list_account_summaries + ## + # RPC-specific configuration for `get_property` + # @return [::Gapic::Config::Method] + # + attr_reader :get_property + ## + # RPC-specific configuration for `list_properties` + # @return [::Gapic::Config::Method] + # + attr_reader :list_properties + ## + # RPC-specific configuration for `create_property` + # @return [::Gapic::Config::Method] + # + attr_reader :create_property + ## + # RPC-specific configuration for `delete_property` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_property + ## + # RPC-specific configuration for `update_property` + # @return [::Gapic::Config::Method] + # + attr_reader :update_property + ## + # RPC-specific configuration for `create_firebase_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_firebase_link + ## + # RPC-specific configuration for `delete_firebase_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_firebase_link + ## + # RPC-specific configuration for `list_firebase_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_firebase_links + ## + # RPC-specific configuration for `get_global_site_tag` + # @return [::Gapic::Config::Method] + # + attr_reader :get_global_site_tag + ## + # RPC-specific configuration for `create_google_ads_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_google_ads_link + ## + # RPC-specific configuration for `update_google_ads_link` + # @return [::Gapic::Config::Method] + # + attr_reader :update_google_ads_link + ## + # RPC-specific configuration for `delete_google_ads_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_google_ads_link + ## + # RPC-specific configuration for `list_google_ads_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_google_ads_links + ## + # RPC-specific configuration for `get_data_sharing_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_data_sharing_settings + ## + # RPC-specific configuration for `get_measurement_protocol_secret` + # @return [::Gapic::Config::Method] + # + attr_reader :get_measurement_protocol_secret + ## + # RPC-specific configuration for `list_measurement_protocol_secrets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_measurement_protocol_secrets + ## + # RPC-specific configuration for `create_measurement_protocol_secret` + # @return [::Gapic::Config::Method] + # + attr_reader :create_measurement_protocol_secret + ## + # RPC-specific configuration for `delete_measurement_protocol_secret` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_measurement_protocol_secret + ## + # RPC-specific configuration for `update_measurement_protocol_secret` + # @return [::Gapic::Config::Method] + # + attr_reader :update_measurement_protocol_secret + ## + # RPC-specific configuration for `acknowledge_user_data_collection` + # @return [::Gapic::Config::Method] + # + attr_reader :acknowledge_user_data_collection + ## + # RPC-specific configuration for `get_sk_ad_network_conversion_value_schema` + # @return [::Gapic::Config::Method] + # + attr_reader :get_sk_ad_network_conversion_value_schema + ## + # RPC-specific configuration for `create_sk_ad_network_conversion_value_schema` + # @return [::Gapic::Config::Method] + # + attr_reader :create_sk_ad_network_conversion_value_schema + ## + # RPC-specific configuration for `delete_sk_ad_network_conversion_value_schema` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_sk_ad_network_conversion_value_schema + ## + # RPC-specific configuration for `update_sk_ad_network_conversion_value_schema` + # @return [::Gapic::Config::Method] + # + attr_reader :update_sk_ad_network_conversion_value_schema + ## + # RPC-specific configuration for `list_sk_ad_network_conversion_value_schemas` + # @return [::Gapic::Config::Method] + # + attr_reader :list_sk_ad_network_conversion_value_schemas + ## + # RPC-specific configuration for `search_change_history_events` + # @return [::Gapic::Config::Method] + # + attr_reader :search_change_history_events + ## + # RPC-specific configuration for `get_google_signals_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_google_signals_settings + ## + # RPC-specific configuration for `update_google_signals_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_google_signals_settings + ## + # RPC-specific configuration for `create_conversion_event` + # @return [::Gapic::Config::Method] + # + attr_reader :create_conversion_event + ## + # RPC-specific configuration for `update_conversion_event` + # @return [::Gapic::Config::Method] + # + attr_reader :update_conversion_event + ## + # RPC-specific configuration for `get_conversion_event` + # @return [::Gapic::Config::Method] + # + attr_reader :get_conversion_event + ## + # RPC-specific configuration for `delete_conversion_event` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_conversion_event + ## + # RPC-specific configuration for `list_conversion_events` + # @return [::Gapic::Config::Method] + # + attr_reader :list_conversion_events + ## + # RPC-specific configuration for `create_key_event` + # @return [::Gapic::Config::Method] + # + attr_reader :create_key_event + ## + # RPC-specific configuration for `update_key_event` + # @return [::Gapic::Config::Method] + # + attr_reader :update_key_event + ## + # RPC-specific configuration for `get_key_event` + # @return [::Gapic::Config::Method] + # + attr_reader :get_key_event + ## + # RPC-specific configuration for `delete_key_event` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_key_event + ## + # RPC-specific configuration for `list_key_events` + # @return [::Gapic::Config::Method] + # + attr_reader :list_key_events + ## + # RPC-specific configuration for `get_display_video360_advertiser_link` + # @return [::Gapic::Config::Method] + # + attr_reader :get_display_video360_advertiser_link + ## + # RPC-specific configuration for `list_display_video360_advertiser_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_display_video360_advertiser_links + ## + # RPC-specific configuration for `create_display_video360_advertiser_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_display_video360_advertiser_link + ## + # RPC-specific configuration for `delete_display_video360_advertiser_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_display_video360_advertiser_link + ## + # RPC-specific configuration for `update_display_video360_advertiser_link` + # @return [::Gapic::Config::Method] + # + attr_reader :update_display_video360_advertiser_link + ## + # RPC-specific configuration for `get_display_video360_advertiser_link_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :get_display_video360_advertiser_link_proposal + ## + # RPC-specific configuration for `list_display_video360_advertiser_link_proposals` + # @return [::Gapic::Config::Method] + # + attr_reader :list_display_video360_advertiser_link_proposals + ## + # RPC-specific configuration for `create_display_video360_advertiser_link_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :create_display_video360_advertiser_link_proposal + ## + # RPC-specific configuration for `delete_display_video360_advertiser_link_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_display_video360_advertiser_link_proposal + ## + # RPC-specific configuration for `approve_display_video360_advertiser_link_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :approve_display_video360_advertiser_link_proposal + ## + # RPC-specific configuration for `cancel_display_video360_advertiser_link_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_display_video360_advertiser_link_proposal + ## + # RPC-specific configuration for `create_custom_dimension` + # @return [::Gapic::Config::Method] + # + attr_reader :create_custom_dimension + ## + # RPC-specific configuration for `update_custom_dimension` + # @return [::Gapic::Config::Method] + # + attr_reader :update_custom_dimension + ## + # RPC-specific configuration for `list_custom_dimensions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_custom_dimensions + ## + # RPC-specific configuration for `archive_custom_dimension` + # @return [::Gapic::Config::Method] + # + attr_reader :archive_custom_dimension + ## + # RPC-specific configuration for `get_custom_dimension` + # @return [::Gapic::Config::Method] + # + attr_reader :get_custom_dimension + ## + # RPC-specific configuration for `create_custom_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :create_custom_metric + ## + # RPC-specific configuration for `update_custom_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :update_custom_metric + ## + # RPC-specific configuration for `list_custom_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :list_custom_metrics + ## + # RPC-specific configuration for `archive_custom_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :archive_custom_metric + ## + # RPC-specific configuration for `get_custom_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :get_custom_metric + ## + # RPC-specific configuration for `get_data_retention_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_data_retention_settings + ## + # RPC-specific configuration for `update_data_retention_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_data_retention_settings + ## + # RPC-specific configuration for `create_data_stream` + # @return [::Gapic::Config::Method] + # + attr_reader :create_data_stream + ## + # RPC-specific configuration for `delete_data_stream` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_data_stream + ## + # RPC-specific configuration for `update_data_stream` + # @return [::Gapic::Config::Method] + # + attr_reader :update_data_stream + ## + # RPC-specific configuration for `list_data_streams` + # @return [::Gapic::Config::Method] + # + attr_reader :list_data_streams + ## + # RPC-specific configuration for `get_data_stream` + # @return [::Gapic::Config::Method] + # + attr_reader :get_data_stream + ## + # RPC-specific configuration for `get_audience` + # @return [::Gapic::Config::Method] + # + attr_reader :get_audience + ## + # RPC-specific configuration for `list_audiences` + # @return [::Gapic::Config::Method] + # + attr_reader :list_audiences + ## + # RPC-specific configuration for `create_audience` + # @return [::Gapic::Config::Method] + # + attr_reader :create_audience + ## + # RPC-specific configuration for `update_audience` + # @return [::Gapic::Config::Method] + # + attr_reader :update_audience + ## + # RPC-specific configuration for `archive_audience` + # @return [::Gapic::Config::Method] + # + attr_reader :archive_audience + ## + # RPC-specific configuration for `get_search_ads360_link` + # @return [::Gapic::Config::Method] + # + attr_reader :get_search_ads360_link + ## + # RPC-specific configuration for `list_search_ads360_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_search_ads360_links + ## + # RPC-specific configuration for `create_search_ads360_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_search_ads360_link + ## + # RPC-specific configuration for `delete_search_ads360_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_search_ads360_link + ## + # RPC-specific configuration for `update_search_ads360_link` + # @return [::Gapic::Config::Method] + # + attr_reader :update_search_ads360_link + ## + # RPC-specific configuration for `get_attribution_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_attribution_settings + ## + # RPC-specific configuration for `update_attribution_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_attribution_settings + ## + # RPC-specific configuration for `run_access_report` + # @return [::Gapic::Config::Method] + # + attr_reader :run_access_report + ## + # RPC-specific configuration for `create_access_binding` + # @return [::Gapic::Config::Method] + # + attr_reader :create_access_binding + ## + # RPC-specific configuration for `get_access_binding` + # @return [::Gapic::Config::Method] + # + attr_reader :get_access_binding + ## + # RPC-specific configuration for `update_access_binding` + # @return [::Gapic::Config::Method] + # + attr_reader :update_access_binding + ## + # RPC-specific configuration for `delete_access_binding` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_access_binding + ## + # RPC-specific configuration for `list_access_bindings` + # @return [::Gapic::Config::Method] + # + attr_reader :list_access_bindings + ## + # RPC-specific configuration for `batch_create_access_bindings` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_create_access_bindings + ## + # RPC-specific configuration for `batch_get_access_bindings` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_get_access_bindings + ## + # RPC-specific configuration for `batch_update_access_bindings` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_update_access_bindings + ## + # RPC-specific configuration for `batch_delete_access_bindings` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_delete_access_bindings + ## + # RPC-specific configuration for `get_expanded_data_set` + # @return [::Gapic::Config::Method] + # + attr_reader :get_expanded_data_set + ## + # RPC-specific configuration for `list_expanded_data_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_expanded_data_sets + ## + # RPC-specific configuration for `create_expanded_data_set` + # @return [::Gapic::Config::Method] + # + attr_reader :create_expanded_data_set + ## + # RPC-specific configuration for `update_expanded_data_set` + # @return [::Gapic::Config::Method] + # + attr_reader :update_expanded_data_set + ## + # RPC-specific configuration for `delete_expanded_data_set` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_expanded_data_set + ## + # RPC-specific configuration for `get_channel_group` + # @return [::Gapic::Config::Method] + # + attr_reader :get_channel_group + ## + # RPC-specific configuration for `list_channel_groups` + # @return [::Gapic::Config::Method] + # + attr_reader :list_channel_groups + ## + # RPC-specific configuration for `create_channel_group` + # @return [::Gapic::Config::Method] + # + attr_reader :create_channel_group + ## + # RPC-specific configuration for `update_channel_group` + # @return [::Gapic::Config::Method] + # + attr_reader :update_channel_group + ## + # RPC-specific configuration for `delete_channel_group` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_channel_group + ## + # RPC-specific configuration for `create_big_query_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_big_query_link + ## + # RPC-specific configuration for `get_big_query_link` + # @return [::Gapic::Config::Method] + # + attr_reader :get_big_query_link + ## + # RPC-specific configuration for `list_big_query_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_big_query_links + ## + # RPC-specific configuration for `delete_big_query_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_big_query_link + ## + # RPC-specific configuration for `update_big_query_link` + # @return [::Gapic::Config::Method] + # + attr_reader :update_big_query_link + ## + # RPC-specific configuration for `get_enhanced_measurement_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_enhanced_measurement_settings + ## + # RPC-specific configuration for `update_enhanced_measurement_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_enhanced_measurement_settings + ## + # RPC-specific configuration for `get_ad_sense_link` + # @return [::Gapic::Config::Method] + # + attr_reader :get_ad_sense_link + ## + # RPC-specific configuration for `create_ad_sense_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_ad_sense_link + ## + # RPC-specific configuration for `delete_ad_sense_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_ad_sense_link + ## + # RPC-specific configuration for `list_ad_sense_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_ad_sense_links + ## + # RPC-specific configuration for `get_event_create_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :get_event_create_rule + ## + # RPC-specific configuration for `list_event_create_rules` + # @return [::Gapic::Config::Method] + # + attr_reader :list_event_create_rules + ## + # RPC-specific configuration for `create_event_create_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :create_event_create_rule + ## + # RPC-specific configuration for `update_event_create_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :update_event_create_rule + ## + # RPC-specific configuration for `delete_event_create_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_event_create_rule + ## + # RPC-specific configuration for `get_event_edit_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :get_event_edit_rule + ## + # RPC-specific configuration for `list_event_edit_rules` + # @return [::Gapic::Config::Method] + # + attr_reader :list_event_edit_rules + ## + # RPC-specific configuration for `create_event_edit_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :create_event_edit_rule + ## + # RPC-specific configuration for `update_event_edit_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :update_event_edit_rule + ## + # RPC-specific configuration for `delete_event_edit_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_event_edit_rule + ## + # RPC-specific configuration for `reorder_event_edit_rules` + # @return [::Gapic::Config::Method] + # + attr_reader :reorder_event_edit_rules + ## + # RPC-specific configuration for `update_data_redaction_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_data_redaction_settings + ## + # RPC-specific configuration for `get_data_redaction_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_data_redaction_settings + ## + # RPC-specific configuration for `get_calculated_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :get_calculated_metric + ## + # RPC-specific configuration for `create_calculated_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :create_calculated_metric + ## + # RPC-specific configuration for `list_calculated_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :list_calculated_metrics + ## + # RPC-specific configuration for `update_calculated_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :update_calculated_metric + ## + # RPC-specific configuration for `delete_calculated_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_calculated_metric + ## + # RPC-specific configuration for `create_rollup_property` + # @return [::Gapic::Config::Method] + # + attr_reader :create_rollup_property + ## + # RPC-specific configuration for `get_rollup_property_source_link` + # @return [::Gapic::Config::Method] + # + attr_reader :get_rollup_property_source_link + ## + # RPC-specific configuration for `list_rollup_property_source_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_rollup_property_source_links + ## + # RPC-specific configuration for `create_rollup_property_source_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_rollup_property_source_link + ## + # RPC-specific configuration for `delete_rollup_property_source_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_rollup_property_source_link + ## + # RPC-specific configuration for `provision_subproperty` + # @return [::Gapic::Config::Method] + # + attr_reader :provision_subproperty + ## + # RPC-specific configuration for `create_subproperty_event_filter` + # @return [::Gapic::Config::Method] + # + attr_reader :create_subproperty_event_filter + ## + # RPC-specific configuration for `get_subproperty_event_filter` + # @return [::Gapic::Config::Method] + # + attr_reader :get_subproperty_event_filter + ## + # RPC-specific configuration for `list_subproperty_event_filters` + # @return [::Gapic::Config::Method] + # + attr_reader :list_subproperty_event_filters + ## + # RPC-specific configuration for `update_subproperty_event_filter` + # @return [::Gapic::Config::Method] + # + attr_reader :update_subproperty_event_filter + ## + # RPC-specific configuration for `delete_subproperty_event_filter` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_subproperty_event_filter + ## + # RPC-specific configuration for `create_reporting_data_annotation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_reporting_data_annotation + ## + # RPC-specific configuration for `get_reporting_data_annotation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_reporting_data_annotation + ## + # RPC-specific configuration for `list_reporting_data_annotations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_reporting_data_annotations + ## + # RPC-specific configuration for `update_reporting_data_annotation` + # @return [::Gapic::Config::Method] + # + attr_reader :update_reporting_data_annotation + ## + # RPC-specific configuration for `delete_reporting_data_annotation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_reporting_data_annotation + ## + # RPC-specific configuration for `submit_user_deletion` + # @return [::Gapic::Config::Method] + # + attr_reader :submit_user_deletion + ## + # RPC-specific configuration for `list_subproperty_sync_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_subproperty_sync_configs + ## + # RPC-specific configuration for `update_subproperty_sync_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_subproperty_sync_config + ## + # RPC-specific configuration for `get_subproperty_sync_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_subproperty_sync_config + ## + # RPC-specific configuration for `get_reporting_identity_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_reporting_identity_settings + ## + # RPC-specific configuration for `update_reporting_identity_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_reporting_identity_settings + ## + # RPC-specific configuration for `get_user_provided_data_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_user_provided_data_settings + + # @private + def initialize parent_rpcs = nil + get_account_config = parent_rpcs.get_account if parent_rpcs.respond_to? :get_account + @get_account = ::Gapic::Config::Method.new get_account_config + list_accounts_config = parent_rpcs.list_accounts if parent_rpcs.respond_to? :list_accounts + @list_accounts = ::Gapic::Config::Method.new list_accounts_config + delete_account_config = parent_rpcs.delete_account if parent_rpcs.respond_to? :delete_account + @delete_account = ::Gapic::Config::Method.new delete_account_config + update_account_config = parent_rpcs.update_account if parent_rpcs.respond_to? :update_account + @update_account = ::Gapic::Config::Method.new update_account_config + provision_account_ticket_config = parent_rpcs.provision_account_ticket if parent_rpcs.respond_to? :provision_account_ticket + @provision_account_ticket = ::Gapic::Config::Method.new provision_account_ticket_config + list_account_summaries_config = parent_rpcs.list_account_summaries if parent_rpcs.respond_to? :list_account_summaries + @list_account_summaries = ::Gapic::Config::Method.new list_account_summaries_config + get_property_config = parent_rpcs.get_property if parent_rpcs.respond_to? :get_property + @get_property = ::Gapic::Config::Method.new get_property_config + list_properties_config = parent_rpcs.list_properties if parent_rpcs.respond_to? :list_properties + @list_properties = ::Gapic::Config::Method.new list_properties_config + create_property_config = parent_rpcs.create_property if parent_rpcs.respond_to? :create_property + @create_property = ::Gapic::Config::Method.new create_property_config + delete_property_config = parent_rpcs.delete_property if parent_rpcs.respond_to? :delete_property + @delete_property = ::Gapic::Config::Method.new delete_property_config + update_property_config = parent_rpcs.update_property if parent_rpcs.respond_to? :update_property + @update_property = ::Gapic::Config::Method.new update_property_config + create_firebase_link_config = parent_rpcs.create_firebase_link if parent_rpcs.respond_to? :create_firebase_link + @create_firebase_link = ::Gapic::Config::Method.new create_firebase_link_config + delete_firebase_link_config = parent_rpcs.delete_firebase_link if parent_rpcs.respond_to? :delete_firebase_link + @delete_firebase_link = ::Gapic::Config::Method.new delete_firebase_link_config + list_firebase_links_config = parent_rpcs.list_firebase_links if parent_rpcs.respond_to? :list_firebase_links + @list_firebase_links = ::Gapic::Config::Method.new list_firebase_links_config + get_global_site_tag_config = parent_rpcs.get_global_site_tag if parent_rpcs.respond_to? :get_global_site_tag + @get_global_site_tag = ::Gapic::Config::Method.new get_global_site_tag_config + create_google_ads_link_config = parent_rpcs.create_google_ads_link if parent_rpcs.respond_to? :create_google_ads_link + @create_google_ads_link = ::Gapic::Config::Method.new create_google_ads_link_config + update_google_ads_link_config = parent_rpcs.update_google_ads_link if parent_rpcs.respond_to? :update_google_ads_link + @update_google_ads_link = ::Gapic::Config::Method.new update_google_ads_link_config + delete_google_ads_link_config = parent_rpcs.delete_google_ads_link if parent_rpcs.respond_to? :delete_google_ads_link + @delete_google_ads_link = ::Gapic::Config::Method.new delete_google_ads_link_config + list_google_ads_links_config = parent_rpcs.list_google_ads_links if parent_rpcs.respond_to? :list_google_ads_links + @list_google_ads_links = ::Gapic::Config::Method.new list_google_ads_links_config + get_data_sharing_settings_config = parent_rpcs.get_data_sharing_settings if parent_rpcs.respond_to? :get_data_sharing_settings + @get_data_sharing_settings = ::Gapic::Config::Method.new get_data_sharing_settings_config + get_measurement_protocol_secret_config = parent_rpcs.get_measurement_protocol_secret if parent_rpcs.respond_to? :get_measurement_protocol_secret + @get_measurement_protocol_secret = ::Gapic::Config::Method.new get_measurement_protocol_secret_config + list_measurement_protocol_secrets_config = parent_rpcs.list_measurement_protocol_secrets if parent_rpcs.respond_to? :list_measurement_protocol_secrets + @list_measurement_protocol_secrets = ::Gapic::Config::Method.new list_measurement_protocol_secrets_config + create_measurement_protocol_secret_config = parent_rpcs.create_measurement_protocol_secret if parent_rpcs.respond_to? :create_measurement_protocol_secret + @create_measurement_protocol_secret = ::Gapic::Config::Method.new create_measurement_protocol_secret_config + delete_measurement_protocol_secret_config = parent_rpcs.delete_measurement_protocol_secret if parent_rpcs.respond_to? :delete_measurement_protocol_secret + @delete_measurement_protocol_secret = ::Gapic::Config::Method.new delete_measurement_protocol_secret_config + update_measurement_protocol_secret_config = parent_rpcs.update_measurement_protocol_secret if parent_rpcs.respond_to? :update_measurement_protocol_secret + @update_measurement_protocol_secret = ::Gapic::Config::Method.new update_measurement_protocol_secret_config + acknowledge_user_data_collection_config = parent_rpcs.acknowledge_user_data_collection if parent_rpcs.respond_to? :acknowledge_user_data_collection + @acknowledge_user_data_collection = ::Gapic::Config::Method.new acknowledge_user_data_collection_config + get_sk_ad_network_conversion_value_schema_config = parent_rpcs.get_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :get_sk_ad_network_conversion_value_schema + @get_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new get_sk_ad_network_conversion_value_schema_config + create_sk_ad_network_conversion_value_schema_config = parent_rpcs.create_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :create_sk_ad_network_conversion_value_schema + @create_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new create_sk_ad_network_conversion_value_schema_config + delete_sk_ad_network_conversion_value_schema_config = parent_rpcs.delete_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :delete_sk_ad_network_conversion_value_schema + @delete_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new delete_sk_ad_network_conversion_value_schema_config + update_sk_ad_network_conversion_value_schema_config = parent_rpcs.update_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :update_sk_ad_network_conversion_value_schema + @update_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new update_sk_ad_network_conversion_value_schema_config + list_sk_ad_network_conversion_value_schemas_config = parent_rpcs.list_sk_ad_network_conversion_value_schemas if parent_rpcs.respond_to? :list_sk_ad_network_conversion_value_schemas + @list_sk_ad_network_conversion_value_schemas = ::Gapic::Config::Method.new list_sk_ad_network_conversion_value_schemas_config + search_change_history_events_config = parent_rpcs.search_change_history_events if parent_rpcs.respond_to? :search_change_history_events + @search_change_history_events = ::Gapic::Config::Method.new search_change_history_events_config + get_google_signals_settings_config = parent_rpcs.get_google_signals_settings if parent_rpcs.respond_to? :get_google_signals_settings + @get_google_signals_settings = ::Gapic::Config::Method.new get_google_signals_settings_config + update_google_signals_settings_config = parent_rpcs.update_google_signals_settings if parent_rpcs.respond_to? :update_google_signals_settings + @update_google_signals_settings = ::Gapic::Config::Method.new update_google_signals_settings_config + create_conversion_event_config = parent_rpcs.create_conversion_event if parent_rpcs.respond_to? :create_conversion_event + @create_conversion_event = ::Gapic::Config::Method.new create_conversion_event_config + update_conversion_event_config = parent_rpcs.update_conversion_event if parent_rpcs.respond_to? :update_conversion_event + @update_conversion_event = ::Gapic::Config::Method.new update_conversion_event_config + get_conversion_event_config = parent_rpcs.get_conversion_event if parent_rpcs.respond_to? :get_conversion_event + @get_conversion_event = ::Gapic::Config::Method.new get_conversion_event_config + delete_conversion_event_config = parent_rpcs.delete_conversion_event if parent_rpcs.respond_to? :delete_conversion_event + @delete_conversion_event = ::Gapic::Config::Method.new delete_conversion_event_config + list_conversion_events_config = parent_rpcs.list_conversion_events if parent_rpcs.respond_to? :list_conversion_events + @list_conversion_events = ::Gapic::Config::Method.new list_conversion_events_config + create_key_event_config = parent_rpcs.create_key_event if parent_rpcs.respond_to? :create_key_event + @create_key_event = ::Gapic::Config::Method.new create_key_event_config + update_key_event_config = parent_rpcs.update_key_event if parent_rpcs.respond_to? :update_key_event + @update_key_event = ::Gapic::Config::Method.new update_key_event_config + get_key_event_config = parent_rpcs.get_key_event if parent_rpcs.respond_to? :get_key_event + @get_key_event = ::Gapic::Config::Method.new get_key_event_config + delete_key_event_config = parent_rpcs.delete_key_event if parent_rpcs.respond_to? :delete_key_event + @delete_key_event = ::Gapic::Config::Method.new delete_key_event_config + list_key_events_config = parent_rpcs.list_key_events if parent_rpcs.respond_to? :list_key_events + @list_key_events = ::Gapic::Config::Method.new list_key_events_config + get_display_video360_advertiser_link_config = parent_rpcs.get_display_video360_advertiser_link if parent_rpcs.respond_to? :get_display_video360_advertiser_link + @get_display_video360_advertiser_link = ::Gapic::Config::Method.new get_display_video360_advertiser_link_config + list_display_video360_advertiser_links_config = parent_rpcs.list_display_video360_advertiser_links if parent_rpcs.respond_to? :list_display_video360_advertiser_links + @list_display_video360_advertiser_links = ::Gapic::Config::Method.new list_display_video360_advertiser_links_config + create_display_video360_advertiser_link_config = parent_rpcs.create_display_video360_advertiser_link if parent_rpcs.respond_to? :create_display_video360_advertiser_link + @create_display_video360_advertiser_link = ::Gapic::Config::Method.new create_display_video360_advertiser_link_config + delete_display_video360_advertiser_link_config = parent_rpcs.delete_display_video360_advertiser_link if parent_rpcs.respond_to? :delete_display_video360_advertiser_link + @delete_display_video360_advertiser_link = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_config + update_display_video360_advertiser_link_config = parent_rpcs.update_display_video360_advertiser_link if parent_rpcs.respond_to? :update_display_video360_advertiser_link + @update_display_video360_advertiser_link = ::Gapic::Config::Method.new update_display_video360_advertiser_link_config + get_display_video360_advertiser_link_proposal_config = parent_rpcs.get_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :get_display_video360_advertiser_link_proposal + @get_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new get_display_video360_advertiser_link_proposal_config + list_display_video360_advertiser_link_proposals_config = parent_rpcs.list_display_video360_advertiser_link_proposals if parent_rpcs.respond_to? :list_display_video360_advertiser_link_proposals + @list_display_video360_advertiser_link_proposals = ::Gapic::Config::Method.new list_display_video360_advertiser_link_proposals_config + create_display_video360_advertiser_link_proposal_config = parent_rpcs.create_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :create_display_video360_advertiser_link_proposal + @create_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new create_display_video360_advertiser_link_proposal_config + delete_display_video360_advertiser_link_proposal_config = parent_rpcs.delete_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :delete_display_video360_advertiser_link_proposal + @delete_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_proposal_config + approve_display_video360_advertiser_link_proposal_config = parent_rpcs.approve_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :approve_display_video360_advertiser_link_proposal + @approve_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new approve_display_video360_advertiser_link_proposal_config + cancel_display_video360_advertiser_link_proposal_config = parent_rpcs.cancel_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :cancel_display_video360_advertiser_link_proposal + @cancel_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new cancel_display_video360_advertiser_link_proposal_config + create_custom_dimension_config = parent_rpcs.create_custom_dimension if parent_rpcs.respond_to? :create_custom_dimension + @create_custom_dimension = ::Gapic::Config::Method.new create_custom_dimension_config + update_custom_dimension_config = parent_rpcs.update_custom_dimension if parent_rpcs.respond_to? :update_custom_dimension + @update_custom_dimension = ::Gapic::Config::Method.new update_custom_dimension_config + list_custom_dimensions_config = parent_rpcs.list_custom_dimensions if parent_rpcs.respond_to? :list_custom_dimensions + @list_custom_dimensions = ::Gapic::Config::Method.new list_custom_dimensions_config + archive_custom_dimension_config = parent_rpcs.archive_custom_dimension if parent_rpcs.respond_to? :archive_custom_dimension + @archive_custom_dimension = ::Gapic::Config::Method.new archive_custom_dimension_config + get_custom_dimension_config = parent_rpcs.get_custom_dimension if parent_rpcs.respond_to? :get_custom_dimension + @get_custom_dimension = ::Gapic::Config::Method.new get_custom_dimension_config + create_custom_metric_config = parent_rpcs.create_custom_metric if parent_rpcs.respond_to? :create_custom_metric + @create_custom_metric = ::Gapic::Config::Method.new create_custom_metric_config + update_custom_metric_config = parent_rpcs.update_custom_metric if parent_rpcs.respond_to? :update_custom_metric + @update_custom_metric = ::Gapic::Config::Method.new update_custom_metric_config + list_custom_metrics_config = parent_rpcs.list_custom_metrics if parent_rpcs.respond_to? :list_custom_metrics + @list_custom_metrics = ::Gapic::Config::Method.new list_custom_metrics_config + archive_custom_metric_config = parent_rpcs.archive_custom_metric if parent_rpcs.respond_to? :archive_custom_metric + @archive_custom_metric = ::Gapic::Config::Method.new archive_custom_metric_config + get_custom_metric_config = parent_rpcs.get_custom_metric if parent_rpcs.respond_to? :get_custom_metric + @get_custom_metric = ::Gapic::Config::Method.new get_custom_metric_config + get_data_retention_settings_config = parent_rpcs.get_data_retention_settings if parent_rpcs.respond_to? :get_data_retention_settings + @get_data_retention_settings = ::Gapic::Config::Method.new get_data_retention_settings_config + update_data_retention_settings_config = parent_rpcs.update_data_retention_settings if parent_rpcs.respond_to? :update_data_retention_settings + @update_data_retention_settings = ::Gapic::Config::Method.new update_data_retention_settings_config + create_data_stream_config = parent_rpcs.create_data_stream if parent_rpcs.respond_to? :create_data_stream + @create_data_stream = ::Gapic::Config::Method.new create_data_stream_config + delete_data_stream_config = parent_rpcs.delete_data_stream if parent_rpcs.respond_to? :delete_data_stream + @delete_data_stream = ::Gapic::Config::Method.new delete_data_stream_config + update_data_stream_config = parent_rpcs.update_data_stream if parent_rpcs.respond_to? :update_data_stream + @update_data_stream = ::Gapic::Config::Method.new update_data_stream_config + list_data_streams_config = parent_rpcs.list_data_streams if parent_rpcs.respond_to? :list_data_streams + @list_data_streams = ::Gapic::Config::Method.new list_data_streams_config + get_data_stream_config = parent_rpcs.get_data_stream if parent_rpcs.respond_to? :get_data_stream + @get_data_stream = ::Gapic::Config::Method.new get_data_stream_config + get_audience_config = parent_rpcs.get_audience if parent_rpcs.respond_to? :get_audience + @get_audience = ::Gapic::Config::Method.new get_audience_config + list_audiences_config = parent_rpcs.list_audiences if parent_rpcs.respond_to? :list_audiences + @list_audiences = ::Gapic::Config::Method.new list_audiences_config + create_audience_config = parent_rpcs.create_audience if parent_rpcs.respond_to? :create_audience + @create_audience = ::Gapic::Config::Method.new create_audience_config + update_audience_config = parent_rpcs.update_audience if parent_rpcs.respond_to? :update_audience + @update_audience = ::Gapic::Config::Method.new update_audience_config + archive_audience_config = parent_rpcs.archive_audience if parent_rpcs.respond_to? :archive_audience + @archive_audience = ::Gapic::Config::Method.new archive_audience_config + get_search_ads360_link_config = parent_rpcs.get_search_ads360_link if parent_rpcs.respond_to? :get_search_ads360_link + @get_search_ads360_link = ::Gapic::Config::Method.new get_search_ads360_link_config + list_search_ads360_links_config = parent_rpcs.list_search_ads360_links if parent_rpcs.respond_to? :list_search_ads360_links + @list_search_ads360_links = ::Gapic::Config::Method.new list_search_ads360_links_config + create_search_ads360_link_config = parent_rpcs.create_search_ads360_link if parent_rpcs.respond_to? :create_search_ads360_link + @create_search_ads360_link = ::Gapic::Config::Method.new create_search_ads360_link_config + delete_search_ads360_link_config = parent_rpcs.delete_search_ads360_link if parent_rpcs.respond_to? :delete_search_ads360_link + @delete_search_ads360_link = ::Gapic::Config::Method.new delete_search_ads360_link_config + update_search_ads360_link_config = parent_rpcs.update_search_ads360_link if parent_rpcs.respond_to? :update_search_ads360_link + @update_search_ads360_link = ::Gapic::Config::Method.new update_search_ads360_link_config + get_attribution_settings_config = parent_rpcs.get_attribution_settings if parent_rpcs.respond_to? :get_attribution_settings + @get_attribution_settings = ::Gapic::Config::Method.new get_attribution_settings_config + update_attribution_settings_config = parent_rpcs.update_attribution_settings if parent_rpcs.respond_to? :update_attribution_settings + @update_attribution_settings = ::Gapic::Config::Method.new update_attribution_settings_config + run_access_report_config = parent_rpcs.run_access_report if parent_rpcs.respond_to? :run_access_report + @run_access_report = ::Gapic::Config::Method.new run_access_report_config + create_access_binding_config = parent_rpcs.create_access_binding if parent_rpcs.respond_to? :create_access_binding + @create_access_binding = ::Gapic::Config::Method.new create_access_binding_config + get_access_binding_config = parent_rpcs.get_access_binding if parent_rpcs.respond_to? :get_access_binding + @get_access_binding = ::Gapic::Config::Method.new get_access_binding_config + update_access_binding_config = parent_rpcs.update_access_binding if parent_rpcs.respond_to? :update_access_binding + @update_access_binding = ::Gapic::Config::Method.new update_access_binding_config + delete_access_binding_config = parent_rpcs.delete_access_binding if parent_rpcs.respond_to? :delete_access_binding + @delete_access_binding = ::Gapic::Config::Method.new delete_access_binding_config + list_access_bindings_config = parent_rpcs.list_access_bindings if parent_rpcs.respond_to? :list_access_bindings + @list_access_bindings = ::Gapic::Config::Method.new list_access_bindings_config + batch_create_access_bindings_config = parent_rpcs.batch_create_access_bindings if parent_rpcs.respond_to? :batch_create_access_bindings + @batch_create_access_bindings = ::Gapic::Config::Method.new batch_create_access_bindings_config + batch_get_access_bindings_config = parent_rpcs.batch_get_access_bindings if parent_rpcs.respond_to? :batch_get_access_bindings + @batch_get_access_bindings = ::Gapic::Config::Method.new batch_get_access_bindings_config + batch_update_access_bindings_config = parent_rpcs.batch_update_access_bindings if parent_rpcs.respond_to? :batch_update_access_bindings + @batch_update_access_bindings = ::Gapic::Config::Method.new batch_update_access_bindings_config + batch_delete_access_bindings_config = parent_rpcs.batch_delete_access_bindings if parent_rpcs.respond_to? :batch_delete_access_bindings + @batch_delete_access_bindings = ::Gapic::Config::Method.new batch_delete_access_bindings_config + get_expanded_data_set_config = parent_rpcs.get_expanded_data_set if parent_rpcs.respond_to? :get_expanded_data_set + @get_expanded_data_set = ::Gapic::Config::Method.new get_expanded_data_set_config + list_expanded_data_sets_config = parent_rpcs.list_expanded_data_sets if parent_rpcs.respond_to? :list_expanded_data_sets + @list_expanded_data_sets = ::Gapic::Config::Method.new list_expanded_data_sets_config + create_expanded_data_set_config = parent_rpcs.create_expanded_data_set if parent_rpcs.respond_to? :create_expanded_data_set + @create_expanded_data_set = ::Gapic::Config::Method.new create_expanded_data_set_config + update_expanded_data_set_config = parent_rpcs.update_expanded_data_set if parent_rpcs.respond_to? :update_expanded_data_set + @update_expanded_data_set = ::Gapic::Config::Method.new update_expanded_data_set_config + delete_expanded_data_set_config = parent_rpcs.delete_expanded_data_set if parent_rpcs.respond_to? :delete_expanded_data_set + @delete_expanded_data_set = ::Gapic::Config::Method.new delete_expanded_data_set_config + get_channel_group_config = parent_rpcs.get_channel_group if parent_rpcs.respond_to? :get_channel_group + @get_channel_group = ::Gapic::Config::Method.new get_channel_group_config + list_channel_groups_config = parent_rpcs.list_channel_groups if parent_rpcs.respond_to? :list_channel_groups + @list_channel_groups = ::Gapic::Config::Method.new list_channel_groups_config + create_channel_group_config = parent_rpcs.create_channel_group if parent_rpcs.respond_to? :create_channel_group + @create_channel_group = ::Gapic::Config::Method.new create_channel_group_config + update_channel_group_config = parent_rpcs.update_channel_group if parent_rpcs.respond_to? :update_channel_group + @update_channel_group = ::Gapic::Config::Method.new update_channel_group_config + delete_channel_group_config = parent_rpcs.delete_channel_group if parent_rpcs.respond_to? :delete_channel_group + @delete_channel_group = ::Gapic::Config::Method.new delete_channel_group_config + create_big_query_link_config = parent_rpcs.create_big_query_link if parent_rpcs.respond_to? :create_big_query_link + @create_big_query_link = ::Gapic::Config::Method.new create_big_query_link_config + get_big_query_link_config = parent_rpcs.get_big_query_link if parent_rpcs.respond_to? :get_big_query_link + @get_big_query_link = ::Gapic::Config::Method.new get_big_query_link_config + list_big_query_links_config = parent_rpcs.list_big_query_links if parent_rpcs.respond_to? :list_big_query_links + @list_big_query_links = ::Gapic::Config::Method.new list_big_query_links_config + delete_big_query_link_config = parent_rpcs.delete_big_query_link if parent_rpcs.respond_to? :delete_big_query_link + @delete_big_query_link = ::Gapic::Config::Method.new delete_big_query_link_config + update_big_query_link_config = parent_rpcs.update_big_query_link if parent_rpcs.respond_to? :update_big_query_link + @update_big_query_link = ::Gapic::Config::Method.new update_big_query_link_config + get_enhanced_measurement_settings_config = parent_rpcs.get_enhanced_measurement_settings if parent_rpcs.respond_to? :get_enhanced_measurement_settings + @get_enhanced_measurement_settings = ::Gapic::Config::Method.new get_enhanced_measurement_settings_config + update_enhanced_measurement_settings_config = parent_rpcs.update_enhanced_measurement_settings if parent_rpcs.respond_to? :update_enhanced_measurement_settings + @update_enhanced_measurement_settings = ::Gapic::Config::Method.new update_enhanced_measurement_settings_config + get_ad_sense_link_config = parent_rpcs.get_ad_sense_link if parent_rpcs.respond_to? :get_ad_sense_link + @get_ad_sense_link = ::Gapic::Config::Method.new get_ad_sense_link_config + create_ad_sense_link_config = parent_rpcs.create_ad_sense_link if parent_rpcs.respond_to? :create_ad_sense_link + @create_ad_sense_link = ::Gapic::Config::Method.new create_ad_sense_link_config + delete_ad_sense_link_config = parent_rpcs.delete_ad_sense_link if parent_rpcs.respond_to? :delete_ad_sense_link + @delete_ad_sense_link = ::Gapic::Config::Method.new delete_ad_sense_link_config + list_ad_sense_links_config = parent_rpcs.list_ad_sense_links if parent_rpcs.respond_to? :list_ad_sense_links + @list_ad_sense_links = ::Gapic::Config::Method.new list_ad_sense_links_config + get_event_create_rule_config = parent_rpcs.get_event_create_rule if parent_rpcs.respond_to? :get_event_create_rule + @get_event_create_rule = ::Gapic::Config::Method.new get_event_create_rule_config + list_event_create_rules_config = parent_rpcs.list_event_create_rules if parent_rpcs.respond_to? :list_event_create_rules + @list_event_create_rules = ::Gapic::Config::Method.new list_event_create_rules_config + create_event_create_rule_config = parent_rpcs.create_event_create_rule if parent_rpcs.respond_to? :create_event_create_rule + @create_event_create_rule = ::Gapic::Config::Method.new create_event_create_rule_config + update_event_create_rule_config = parent_rpcs.update_event_create_rule if parent_rpcs.respond_to? :update_event_create_rule + @update_event_create_rule = ::Gapic::Config::Method.new update_event_create_rule_config + delete_event_create_rule_config = parent_rpcs.delete_event_create_rule if parent_rpcs.respond_to? :delete_event_create_rule + @delete_event_create_rule = ::Gapic::Config::Method.new delete_event_create_rule_config + get_event_edit_rule_config = parent_rpcs.get_event_edit_rule if parent_rpcs.respond_to? :get_event_edit_rule + @get_event_edit_rule = ::Gapic::Config::Method.new get_event_edit_rule_config + list_event_edit_rules_config = parent_rpcs.list_event_edit_rules if parent_rpcs.respond_to? :list_event_edit_rules + @list_event_edit_rules = ::Gapic::Config::Method.new list_event_edit_rules_config + create_event_edit_rule_config = parent_rpcs.create_event_edit_rule if parent_rpcs.respond_to? :create_event_edit_rule + @create_event_edit_rule = ::Gapic::Config::Method.new create_event_edit_rule_config + update_event_edit_rule_config = parent_rpcs.update_event_edit_rule if parent_rpcs.respond_to? :update_event_edit_rule + @update_event_edit_rule = ::Gapic::Config::Method.new update_event_edit_rule_config + delete_event_edit_rule_config = parent_rpcs.delete_event_edit_rule if parent_rpcs.respond_to? :delete_event_edit_rule + @delete_event_edit_rule = ::Gapic::Config::Method.new delete_event_edit_rule_config + reorder_event_edit_rules_config = parent_rpcs.reorder_event_edit_rules if parent_rpcs.respond_to? :reorder_event_edit_rules + @reorder_event_edit_rules = ::Gapic::Config::Method.new reorder_event_edit_rules_config + update_data_redaction_settings_config = parent_rpcs.update_data_redaction_settings if parent_rpcs.respond_to? :update_data_redaction_settings + @update_data_redaction_settings = ::Gapic::Config::Method.new update_data_redaction_settings_config + get_data_redaction_settings_config = parent_rpcs.get_data_redaction_settings if parent_rpcs.respond_to? :get_data_redaction_settings + @get_data_redaction_settings = ::Gapic::Config::Method.new get_data_redaction_settings_config + get_calculated_metric_config = parent_rpcs.get_calculated_metric if parent_rpcs.respond_to? :get_calculated_metric + @get_calculated_metric = ::Gapic::Config::Method.new get_calculated_metric_config + create_calculated_metric_config = parent_rpcs.create_calculated_metric if parent_rpcs.respond_to? :create_calculated_metric + @create_calculated_metric = ::Gapic::Config::Method.new create_calculated_metric_config + list_calculated_metrics_config = parent_rpcs.list_calculated_metrics if parent_rpcs.respond_to? :list_calculated_metrics + @list_calculated_metrics = ::Gapic::Config::Method.new list_calculated_metrics_config + update_calculated_metric_config = parent_rpcs.update_calculated_metric if parent_rpcs.respond_to? :update_calculated_metric + @update_calculated_metric = ::Gapic::Config::Method.new update_calculated_metric_config + delete_calculated_metric_config = parent_rpcs.delete_calculated_metric if parent_rpcs.respond_to? :delete_calculated_metric + @delete_calculated_metric = ::Gapic::Config::Method.new delete_calculated_metric_config + create_rollup_property_config = parent_rpcs.create_rollup_property if parent_rpcs.respond_to? :create_rollup_property + @create_rollup_property = ::Gapic::Config::Method.new create_rollup_property_config + get_rollup_property_source_link_config = parent_rpcs.get_rollup_property_source_link if parent_rpcs.respond_to? :get_rollup_property_source_link + @get_rollup_property_source_link = ::Gapic::Config::Method.new get_rollup_property_source_link_config + list_rollup_property_source_links_config = parent_rpcs.list_rollup_property_source_links if parent_rpcs.respond_to? :list_rollup_property_source_links + @list_rollup_property_source_links = ::Gapic::Config::Method.new list_rollup_property_source_links_config + create_rollup_property_source_link_config = parent_rpcs.create_rollup_property_source_link if parent_rpcs.respond_to? :create_rollup_property_source_link + @create_rollup_property_source_link = ::Gapic::Config::Method.new create_rollup_property_source_link_config + delete_rollup_property_source_link_config = parent_rpcs.delete_rollup_property_source_link if parent_rpcs.respond_to? :delete_rollup_property_source_link + @delete_rollup_property_source_link = ::Gapic::Config::Method.new delete_rollup_property_source_link_config + provision_subproperty_config = parent_rpcs.provision_subproperty if parent_rpcs.respond_to? :provision_subproperty + @provision_subproperty = ::Gapic::Config::Method.new provision_subproperty_config + create_subproperty_event_filter_config = parent_rpcs.create_subproperty_event_filter if parent_rpcs.respond_to? :create_subproperty_event_filter + @create_subproperty_event_filter = ::Gapic::Config::Method.new create_subproperty_event_filter_config + get_subproperty_event_filter_config = parent_rpcs.get_subproperty_event_filter if parent_rpcs.respond_to? :get_subproperty_event_filter + @get_subproperty_event_filter = ::Gapic::Config::Method.new get_subproperty_event_filter_config + list_subproperty_event_filters_config = parent_rpcs.list_subproperty_event_filters if parent_rpcs.respond_to? :list_subproperty_event_filters + @list_subproperty_event_filters = ::Gapic::Config::Method.new list_subproperty_event_filters_config + update_subproperty_event_filter_config = parent_rpcs.update_subproperty_event_filter if parent_rpcs.respond_to? :update_subproperty_event_filter + @update_subproperty_event_filter = ::Gapic::Config::Method.new update_subproperty_event_filter_config + delete_subproperty_event_filter_config = parent_rpcs.delete_subproperty_event_filter if parent_rpcs.respond_to? :delete_subproperty_event_filter + @delete_subproperty_event_filter = ::Gapic::Config::Method.new delete_subproperty_event_filter_config + create_reporting_data_annotation_config = parent_rpcs.create_reporting_data_annotation if parent_rpcs.respond_to? :create_reporting_data_annotation + @create_reporting_data_annotation = ::Gapic::Config::Method.new create_reporting_data_annotation_config + get_reporting_data_annotation_config = parent_rpcs.get_reporting_data_annotation if parent_rpcs.respond_to? :get_reporting_data_annotation + @get_reporting_data_annotation = ::Gapic::Config::Method.new get_reporting_data_annotation_config + list_reporting_data_annotations_config = parent_rpcs.list_reporting_data_annotations if parent_rpcs.respond_to? :list_reporting_data_annotations + @list_reporting_data_annotations = ::Gapic::Config::Method.new list_reporting_data_annotations_config + update_reporting_data_annotation_config = parent_rpcs.update_reporting_data_annotation if parent_rpcs.respond_to? :update_reporting_data_annotation + @update_reporting_data_annotation = ::Gapic::Config::Method.new update_reporting_data_annotation_config + delete_reporting_data_annotation_config = parent_rpcs.delete_reporting_data_annotation if parent_rpcs.respond_to? :delete_reporting_data_annotation + @delete_reporting_data_annotation = ::Gapic::Config::Method.new delete_reporting_data_annotation_config + submit_user_deletion_config = parent_rpcs.submit_user_deletion if parent_rpcs.respond_to? :submit_user_deletion + @submit_user_deletion = ::Gapic::Config::Method.new submit_user_deletion_config + list_subproperty_sync_configs_config = parent_rpcs.list_subproperty_sync_configs if parent_rpcs.respond_to? :list_subproperty_sync_configs + @list_subproperty_sync_configs = ::Gapic::Config::Method.new list_subproperty_sync_configs_config + update_subproperty_sync_config_config = parent_rpcs.update_subproperty_sync_config if parent_rpcs.respond_to? :update_subproperty_sync_config + @update_subproperty_sync_config = ::Gapic::Config::Method.new update_subproperty_sync_config_config + get_subproperty_sync_config_config = parent_rpcs.get_subproperty_sync_config if parent_rpcs.respond_to? :get_subproperty_sync_config + @get_subproperty_sync_config = ::Gapic::Config::Method.new get_subproperty_sync_config_config + get_reporting_identity_settings_config = parent_rpcs.get_reporting_identity_settings if parent_rpcs.respond_to? :get_reporting_identity_settings + @get_reporting_identity_settings = ::Gapic::Config::Method.new get_reporting_identity_settings_config + update_reporting_identity_settings_config = parent_rpcs.update_reporting_identity_settings if parent_rpcs.respond_to? :update_reporting_identity_settings + @update_reporting_identity_settings = ::Gapic::Config::Method.new update_reporting_identity_settings_config + get_user_provided_data_settings_config = parent_rpcs.get_user_provided_data_settings if parent_rpcs.respond_to? :get_user_provided_data_settings + @get_user_provided_data_settings = ::Gapic::Config::Method.new get_user_provided_data_settings_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/credentials.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/credentials.rb new file mode 100644 index 000000000000..6b540299bdc9 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/credentials.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Analytics + module Admin + module V1alpha + module AnalyticsAdminService + # Credentials for the AnalyticsAdminService API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.manage.users", + "https://www.googleapis.com/auth/analytics.manage.users.readonly", + "https://www.googleapis.com/auth/analytics.readonly" + ] + self.env_vars = [ + "ANALYTICS_ADMIN_CREDENTIALS", + "ANALYTICS_ADMIN_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "ANALYTICS_ADMIN_CREDENTIALS_JSON", + "ANALYTICS_ADMIN_KEYFILE_JSON", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb new file mode 100644 index 000000000000..f621394047df --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb @@ -0,0 +1,665 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Analytics + module Admin + module V1alpha + module AnalyticsAdminService + # Path helper methods for the AnalyticsAdminService API. + module Paths + ## + # Create a fully-qualified AccessBinding resource string. + # + # @overload access_binding_path(account:, access_binding:) + # The resource will be in the following format: + # + # `accounts/{account}/accessBindings/{access_binding}` + # + # @param account [String] + # @param access_binding [String] + # + # @overload access_binding_path(property:, access_binding:) + # The resource will be in the following format: + # + # `properties/{property}/accessBindings/{access_binding}` + # + # @param property [String] + # @param access_binding [String] + # + # @return [::String] + def access_binding_path **args + resources = { + "access_binding:account" => (proc do |account:, access_binding:| + raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" + + "accounts/#{account}/accessBindings/#{access_binding}" + end), + "access_binding:property" => (proc do |property:, access_binding:| + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/accessBindings/#{access_binding}" + end) + } + + resource = resources[args.keys.sort.join(":")] + raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? + resource.call(**args) + end + + ## + # Create a fully-qualified Account resource string. + # + # The resource will be in the following format: + # + # `accounts/{account}` + # + # @param account [String] + # + # @return [::String] + def account_path account: + "accounts/#{account}" + end + + ## + # Create a fully-qualified AdSenseLink resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/adSenseLinks/{adsense_link}` + # + # @param property [String] + # @param adsense_link [String] + # + # @return [::String] + def ad_sense_link_path property:, adsense_link: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/adSenseLinks/#{adsense_link}" + end + + ## + # Create a fully-qualified AttributionSettings resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/attributionSettings` + # + # @param property [String] + # + # @return [::String] + def attribution_settings_path property: + "properties/#{property}/attributionSettings" + end + + ## + # Create a fully-qualified Audience resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/audiences/{audience}` + # + # @param property [String] + # @param audience [String] + # + # @return [::String] + def audience_path property:, audience: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/audiences/#{audience}" + end + + ## + # Create a fully-qualified BigQueryLink resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/bigQueryLinks/{bigquery_link}` + # + # @param property [String] + # @param bigquery_link [String] + # + # @return [::String] + def big_query_link_path property:, bigquery_link: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/bigQueryLinks/#{bigquery_link}" + end + + ## + # Create a fully-qualified CalculatedMetric resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/calculatedMetrics/{calculated_metric}` + # + # @param property [String] + # @param calculated_metric [String] + # + # @return [::String] + def calculated_metric_path property:, calculated_metric: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/calculatedMetrics/#{calculated_metric}" + end + + ## + # Create a fully-qualified ChannelGroup resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/channelGroups/{channel_group}` + # + # @param property [String] + # @param channel_group [String] + # + # @return [::String] + def channel_group_path property:, channel_group: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/channelGroups/#{channel_group}" + end + + ## + # Create a fully-qualified ConversionEvent resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/conversionEvents/{conversion_event}` + # + # @param property [String] + # @param conversion_event [String] + # + # @return [::String] + def conversion_event_path property:, conversion_event: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/conversionEvents/#{conversion_event}" + end + + ## + # Create a fully-qualified CustomDimension resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/customDimensions/{custom_dimension}` + # + # @param property [String] + # @param custom_dimension [String] + # + # @return [::String] + def custom_dimension_path property:, custom_dimension: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/customDimensions/#{custom_dimension}" + end + + ## + # Create a fully-qualified CustomMetric resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/customMetrics/{custom_metric}` + # + # @param property [String] + # @param custom_metric [String] + # + # @return [::String] + def custom_metric_path property:, custom_metric: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/customMetrics/#{custom_metric}" + end + + ## + # Create a fully-qualified DataRedactionSettings resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/dataStreams/{data_stream}/dataRedactionSettings` + # + # @param property [String] + # @param data_stream [String] + # + # @return [::String] + def data_redaction_settings_path property:, data_stream: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/dataStreams/#{data_stream}/dataRedactionSettings" + end + + ## + # Create a fully-qualified DataRetentionSettings resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/dataRetentionSettings` + # + # @param property [String] + # + # @return [::String] + def data_retention_settings_path property: + "properties/#{property}/dataRetentionSettings" + end + + ## + # Create a fully-qualified DataSharingSettings resource string. + # + # The resource will be in the following format: + # + # `accounts/{account}/dataSharingSettings` + # + # @param account [String] + # + # @return [::String] + def data_sharing_settings_path account: + "accounts/#{account}/dataSharingSettings" + end + + ## + # Create a fully-qualified DataStream resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/dataStreams/{data_stream}` + # + # @param property [String] + # @param data_stream [String] + # + # @return [::String] + def data_stream_path property:, data_stream: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/dataStreams/#{data_stream}" + end + + ## + # Create a fully-qualified DisplayVideo360AdvertiserLink resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}` + # + # @param property [String] + # @param display_video_360_advertiser_link [String] + # + # @return [::String] + def display_video360_advertiser_link_path property:, display_video_360_advertiser_link: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/displayVideo360AdvertiserLinks/#{display_video_360_advertiser_link}" + end + + ## + # Create a fully-qualified DisplayVideo360AdvertiserLinkProposal resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}` + # + # @param property [String] + # @param display_video_360_advertiser_link_proposal [String] + # + # @return [::String] + def display_video360_advertiser_link_proposal_path property:, display_video_360_advertiser_link_proposal: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/displayVideo360AdvertiserLinkProposals/#{display_video_360_advertiser_link_proposal}" + end + + ## + # Create a fully-qualified EnhancedMeasurementSettings resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings` + # + # @param property [String] + # @param data_stream [String] + # + # @return [::String] + def enhanced_measurement_settings_path property:, data_stream: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/dataStreams/#{data_stream}/enhancedMeasurementSettings" + end + + ## + # Create a fully-qualified EventCreateRule resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}` + # + # @param property [String] + # @param data_stream [String] + # @param event_create_rule [String] + # + # @return [::String] + def event_create_rule_path property:, data_stream:, event_create_rule: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/" + + "properties/#{property}/dataStreams/#{data_stream}/eventCreateRules/#{event_create_rule}" + end + + ## + # Create a fully-qualified EventEditRule resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}` + # + # @param property [String] + # @param data_stream [String] + # @param event_edit_rule [String] + # + # @return [::String] + def event_edit_rule_path property:, data_stream:, event_edit_rule: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/" + + "properties/#{property}/dataStreams/#{data_stream}/eventEditRules/#{event_edit_rule}" + end + + ## + # Create a fully-qualified ExpandedDataSet resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/expandedDataSets/{expanded_data_set}` + # + # @param property [String] + # @param expanded_data_set [String] + # + # @return [::String] + def expanded_data_set_path property:, expanded_data_set: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/expandedDataSets/#{expanded_data_set}" + end + + ## + # Create a fully-qualified FirebaseLink resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/firebaseLinks/{firebase_link}` + # + # @param property [String] + # @param firebase_link [String] + # + # @return [::String] + def firebase_link_path property:, firebase_link: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/firebaseLinks/#{firebase_link}" + end + + ## + # Create a fully-qualified GlobalSiteTag resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/dataStreams/{data_stream}/globalSiteTag` + # + # @param property [String] + # @param data_stream [String] + # + # @return [::String] + def global_site_tag_path property:, data_stream: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/dataStreams/#{data_stream}/globalSiteTag" + end + + ## + # Create a fully-qualified GoogleAdsLink resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/googleAdsLinks/{google_ads_link}` + # + # @param property [String] + # @param google_ads_link [String] + # + # @return [::String] + def google_ads_link_path property:, google_ads_link: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/googleAdsLinks/#{google_ads_link}" + end + + ## + # Create a fully-qualified GoogleSignalsSettings resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/googleSignalsSettings` + # + # @param property [String] + # + # @return [::String] + def google_signals_settings_path property: + "properties/#{property}/googleSignalsSettings" + end + + ## + # Create a fully-qualified KeyEvent resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/keyEvents/{key_event}` + # + # @param property [String] + # @param key_event [String] + # + # @return [::String] + def key_event_path property:, key_event: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/keyEvents/#{key_event}" + end + + ## + # Create a fully-qualified MeasurementProtocolSecret resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}` + # + # @param property [String] + # @param data_stream [String] + # @param measurement_protocol_secret [String] + # + # @return [::String] + def measurement_protocol_secret_path property:, data_stream:, measurement_protocol_secret: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/" + + "properties/#{property}/dataStreams/#{data_stream}/measurementProtocolSecrets/#{measurement_protocol_secret}" + end + + ## + # Create a fully-qualified Organization resource string. + # + # The resource will be in the following format: + # + # `organizations/{organization}` + # + # @param organization [String] + # + # @return [::String] + def organization_path organization: + "organizations/#{organization}" + end + + ## + # Create a fully-qualified Property resource string. + # + # The resource will be in the following format: + # + # `properties/{property}` + # + # @param property [String] + # + # @return [::String] + def property_path property: + "properties/#{property}" + end + + ## + # Create a fully-qualified ReportingDataAnnotation resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/reportingDataAnnotations/{reporting_data_annotation}` + # + # @param property [String] + # @param reporting_data_annotation [String] + # + # @return [::String] + def reporting_data_annotation_path property:, reporting_data_annotation: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/reportingDataAnnotations/#{reporting_data_annotation}" + end + + ## + # Create a fully-qualified ReportingIdentitySettings resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/reportingIdentitySettings` + # + # @param property [String] + # + # @return [::String] + def reporting_identity_settings_path property: + "properties/#{property}/reportingIdentitySettings" + end + + ## + # Create a fully-qualified RollupPropertySourceLink resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}` + # + # @param property [String] + # @param rollup_property_source_link [String] + # + # @return [::String] + def rollup_property_source_link_path property:, rollup_property_source_link: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/rollupPropertySourceLinks/#{rollup_property_source_link}" + end + + ## + # Create a fully-qualified SKAdNetworkConversionValueSchema resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}` + # + # @param property [String] + # @param data_stream [String] + # @param skadnetwork_conversion_value_schema [String] + # + # @return [::String] + def sk_ad_network_conversion_value_schema_path property:, data_stream:, skadnetwork_conversion_value_schema: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/" + + "properties/#{property}/dataStreams/#{data_stream}/sKAdNetworkConversionValueSchema/#{skadnetwork_conversion_value_schema}" + end + + ## + # Create a fully-qualified SearchAds360Link resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/searchAds360Links/{search_ads_360_link}` + # + # @param property [String] + # @param search_ads_360_link [String] + # + # @return [::String] + def search_ads360_link_path property:, search_ads_360_link: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/searchAds360Links/#{search_ads_360_link}" + end + + ## + # Create a fully-qualified SubpropertyEventFilter resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/subpropertyEventFilters/{sub_property_event_filter}` + # + # @param property [String] + # @param sub_property_event_filter [String] + # + # @return [::String] + def subproperty_event_filter_path property:, sub_property_event_filter: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/subpropertyEventFilters/#{sub_property_event_filter}" + end + + ## + # Create a fully-qualified SubpropertySyncConfig resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/subpropertySyncConfigs/{subproperty_sync_config}` + # + # @param property [String] + # @param subproperty_sync_config [String] + # + # @return [::String] + def subproperty_sync_config_path property:, subproperty_sync_config: + raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" + + "properties/#{property}/subpropertySyncConfigs/#{subproperty_sync_config}" + end + + ## + # Create a fully-qualified UserProvidedDataSettings resource string. + # + # The resource will be in the following format: + # + # `properties/{property}/userProvidedDataSettings` + # + # @param property [String] + # + # @return [::String] + def user_provided_data_settings_path property: + "properties/#{property}/userProvidedDataSettings" + end + + extend self + end + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest.rb new file mode 100644 index 000000000000..2e6d7492d55d --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest.rb @@ -0,0 +1,52 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/analytics/admin/v1alpha/version" + +require "google/analytics/admin/v1alpha/analytics_admin_service/credentials" +require "google/analytics/admin/v1alpha/analytics_admin_service/paths" +require "google/analytics/admin/v1alpha/analytics_admin_service/rest/client" + +module Google + module Analytics + module Admin + module V1alpha + ## + # Service Interface for the Google Analytics Admin API. + # + # To load this service and instantiate a REST client: + # + # require "google/analytics/admin/v1alpha/analytics_admin_service/rest" + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + module AnalyticsAdminService + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/analytics/admin/v1alpha/analytics_admin_service/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb new file mode 100644 index 000000000000..3af8a444b7b6 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb @@ -0,0 +1,14830 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/analytics/admin/v1alpha/analytics_admin_pb" +require "google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub" + +module Google + module Analytics + module Admin + module V1alpha + module AnalyticsAdminService + module Rest + ## + # REST client for the AnalyticsAdminService service. + # + # Service Interface for the Google Analytics Admin API. + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "analyticsadmin.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :analytics_admin_service_stub + + ## + # Configure the AnalyticsAdminService Client class. + # + # See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all AnalyticsAdminService clients + # ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Analytics", "Admin", "V1alpha"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + default_config.retry_policy = { + initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2] + } + + default_config.rpcs.get_account.timeout = 60.0 + + default_config.rpcs.list_accounts.timeout = 60.0 + + default_config.rpcs.delete_account.timeout = 60.0 + + default_config.rpcs.update_account.timeout = 60.0 + + default_config.rpcs.provision_account_ticket.timeout = 60.0 + + default_config.rpcs.get_property.timeout = 60.0 + + default_config.rpcs.list_properties.timeout = 60.0 + + default_config.rpcs.create_property.timeout = 60.0 + + default_config.rpcs.delete_property.timeout = 60.0 + + default_config.rpcs.update_property.timeout = 60.0 + + default_config.rpcs.create_firebase_link.timeout = 60.0 + + default_config.rpcs.delete_firebase_link.timeout = 60.0 + + default_config.rpcs.list_firebase_links.timeout = 60.0 + + default_config.rpcs.get_global_site_tag.timeout = 60.0 + + default_config.rpcs.create_google_ads_link.timeout = 60.0 + + default_config.rpcs.update_google_ads_link.timeout = 60.0 + + default_config.rpcs.delete_google_ads_link.timeout = 60.0 + + default_config.rpcs.list_google_ads_links.timeout = 60.0 + + default_config.rpcs.get_enhanced_measurement_settings.timeout = 60.0 + + default_config.rpcs.update_enhanced_measurement_settings.timeout = 60.0 + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the AnalyticsAdminService Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @analytics_admin_service_stub.universe_domain + end + + ## + # Create a new AnalyticsAdminService REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the AnalyticsAdminService client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @analytics_admin_service_stub = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @analytics_admin_service_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @analytics_admin_service_stub.logger + end + + # Service calls + + ## + # Lookup for a single Account. + # + # @overload get_account(request, options = nil) + # Pass arguments to `get_account` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetAccountRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetAccountRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_account(name: nil) + # Pass arguments to `get_account` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the account to lookup. + # Format: accounts/\\{account} + # Example: "accounts/100" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Account] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Account] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetAccountRequest.new + # + # # Call the get_account method. + # result = client.get_account request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Account. + # p result + # + def get_account request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAccountRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_account.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_account.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_account.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_account request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns all accounts accessible by the caller. + # + # Note that these accounts might not currently have GA properties. + # Soft-deleted (ie: "trashed") accounts are excluded by default. + # Returns an empty list if no relevant accounts are found. + # + # @overload list_accounts(request, options = nil) + # Pass arguments to `list_accounts` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListAccountsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListAccountsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_accounts(page_size: nil, page_token: nil, show_deleted: nil) + # Pass arguments to `list_accounts` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListAccounts` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListAccounts` must + # match the call that provided the page token. + # @param show_deleted [::Boolean] + # Whether to include soft-deleted (ie: "trashed") Accounts in the + # results. Accounts can be inspected to determine whether they are deleted or + # not. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListAccountsRequest.new + # + # # Call the list_accounts method. + # result = client.list_accounts request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::Account. + # p item + # end + # + def list_accounts request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccountsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_accounts.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_accounts.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_accounts.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_accounts request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_accounts, "accounts", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Marks target Account as soft-deleted (ie: "trashed") and returns it. + # + # This API does not have a method to restore soft-deleted accounts. + # However, they can be restored using the Trash Can UI. + # + # If the accounts are not restored before the expiration time, the account + # and all child resources (eg: Properties, GoogleAdsLinks, Streams, + # AccessBindings) will be permanently purged. + # https://support.google.com/analytics/answer/6154772 + # + # Returns an error if the target is not found. + # + # @overload delete_account(request, options = nil) + # Pass arguments to `delete_account` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteAccountRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_account(name: nil) + # Pass arguments to `delete_account` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Account to soft-delete. + # Format: accounts/\\{account} + # Example: "accounts/100" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new + # + # # Call the delete_account method. + # result = client.delete_account request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_account request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_account.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_account.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_account.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_account request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an account. + # + # @overload update_account(request, options = nil) + # Pass arguments to `update_account` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateAccountRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_account(account: nil, update_mask: nil) + # Pass arguments to `update_account` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param account [::Google::Analytics::Admin::V1alpha::Account, ::Hash] + # Required. The account to update. + # The account's `name` field is used to identify the account. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (for example, "field_to_update"). Omitted fields will not be updated. + # To replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Account] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Account] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new + # + # # Call the update_account method. + # result = client.update_account request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Account. + # p result + # + def update_account request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_account.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_account.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_account.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_account request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Requests a ticket for creating an account. + # + # @overload provision_account_ticket(request, options = nil) + # Pass arguments to `provision_account_ticket` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload provision_account_ticket(account: nil, redirect_uri: nil) + # Pass arguments to `provision_account_ticket` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param account [::Google::Analytics::Admin::V1alpha::Account, ::Hash] + # The account to create. + # @param redirect_uri [::String] + # Redirect URI where the user will be sent after accepting Terms of Service. + # Must be configured in Cloud Console as a Redirect URI. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new + # + # # Call the provision_account_ticket method. + # result = client.provision_account_ticket request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse. + # p result + # + def provision_account_ticket request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.provision_account_ticket.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.provision_account_ticket.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.provision_account_ticket.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.provision_account_ticket request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns summaries of all accounts accessible by the caller. + # + # @overload list_account_summaries(request, options = nil) + # Pass arguments to `list_account_summaries` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_account_summaries(page_size: nil, page_token: nil) + # Pass arguments to `list_account_summaries` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param page_size [::Integer] + # Optional. The maximum number of AccountSummary resources to return. The + # service may return fewer than this value, even if there are additional + # pages. If unspecified, at most 50 resources will be returned. The maximum + # value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListAccountSummaries` + # call. Provide this to retrieve the subsequent page. When paginating, all + # other parameters provided to `ListAccountSummaries` must match the call + # that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new + # + # # Call the list_account_summaries method. + # result = client.list_account_summaries request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::AccountSummary. + # p item + # end + # + def list_account_summaries request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_account_summaries.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_account_summaries.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_account_summaries.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_account_summaries request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_account_summaries, "account_summaries", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single GA Property. + # + # @overload get_property(request, options = nil) + # Pass arguments to `get_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetPropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetPropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_property(name: nil) + # Pass arguments to `get_property` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the property to lookup. + # Format: properties/\\{property_id} + # Example: "properties/1000" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetPropertyRequest.new + # + # # Call the get_property method. + # result = client.get_property request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + # p result + # + def get_property request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetPropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_property.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_property.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_property.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_property request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns child Properties under the specified parent Account. + # + # Properties will be excluded if the caller does not have access. + # Soft-deleted (ie: "trashed") properties are excluded by default. + # Returns an empty list if no relevant properties are found. + # + # @overload list_properties(request, options = nil) + # Pass arguments to `list_properties` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListPropertiesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_properties(filter: nil, page_size: nil, page_token: nil, show_deleted: nil) + # Pass arguments to `list_properties` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param filter [::String] + # Required. An expression for filtering the results of the request. + # Fields eligible for filtering are: + # `parent:`(The resource name of the parent account/property) or + # `ancestor:`(The resource name of the parent account) or + # `firebase_project:`(The id or number of the linked firebase project). + # Some examples of filters: + # + # ``` + # | Filter | Description | + # |-----------------------------|-------------------------------------------| + # | parent:accounts/123 | The account with account id: 123. | + # | parent:properties/123 | The property with property id: 123. | + # | ancestor:accounts/123 | The account with account id: 123. | + # | firebase_project:project-id | The firebase project with id: project-id. | + # | firebase_project:123 | The firebase project with number: 123. | + # ``` + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListProperties` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListProperties` must + # match the call that provided the page token. + # @param show_deleted [::Boolean] + # Whether to include soft-deleted (ie: "trashed") Properties in the + # results. Properties can be inspected to determine whether they are deleted + # or not. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new + # + # # Call the list_properties method. + # result = client.list_properties request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::Property. + # p item + # end + # + def list_properties request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_properties.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_properties.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_properties.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_properties request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_properties, "properties", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a Google Analytics property with the specified location and + # attributes. + # + # @overload create_property(request, options = nil) + # Pass arguments to `create_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreatePropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_property(property: nil) + # Pass arguments to `create_property` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] + # Required. The property to create. + # Note: the supplied property must specify its parent. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new + # + # # Call the create_property method. + # result = client.create_property request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + # p result + # + def create_property request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_property.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_property.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_property.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_property request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Marks target Property as soft-deleted (ie: "trashed") and returns it. + # + # This API does not have a method to restore soft-deleted properties. + # However, they can be restored using the Trash Can UI. + # + # If the properties are not restored before the expiration time, the Property + # and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) + # will be permanently purged. + # https://support.google.com/analytics/answer/6154772 + # + # Returns an error if the target is not found. + # + # @overload delete_property(request, options = nil) + # Pass arguments to `delete_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeletePropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_property(name: nil) + # Pass arguments to `delete_property` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Property to soft-delete. + # Format: properties/\\{property_id} + # Example: "properties/1000" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new + # + # # Call the delete_property method. + # result = client.delete_property request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + # p result + # + def delete_property request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_property.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_property.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_property.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_property request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a property. + # + # @overload update_property(request, options = nil) + # Pass arguments to `update_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_property(property: nil, update_mask: nil) + # Pass arguments to `update_property` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] + # Required. The property to update. + # The property's `name` field is used to identify the property to be + # updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new + # + # # Call the update_property method. + # result = client.update_property request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + # p result + # + def update_property request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_property.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_property.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_property.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_property request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a FirebaseLink. + # + # Properties can have at most one FirebaseLink. + # + # @overload create_firebase_link(request, options = nil) + # Pass arguments to `create_firebase_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_firebase_link(parent: nil, firebase_link: nil) + # Pass arguments to `create_firebase_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: properties/\\{property_id} + # + # Example: `properties/1234` + # @param firebase_link [::Google::Analytics::Admin::V1alpha::FirebaseLink, ::Hash] + # Required. The Firebase link to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::FirebaseLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new + # + # # Call the create_firebase_link method. + # result = client.create_firebase_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::FirebaseLink. + # p result + # + def create_firebase_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_firebase_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_firebase_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_firebase_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_firebase_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a FirebaseLink on a property + # + # @overload delete_firebase_link(request, options = nil) + # Pass arguments to `delete_firebase_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_firebase_link(name: nil) + # Pass arguments to `delete_firebase_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Format: properties/\\{property_id}/firebaseLinks/\\{firebase_link_id} + # + # Example: `properties/1234/firebaseLinks/5678` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new + # + # # Call the delete_firebase_link method. + # result = client.delete_firebase_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_firebase_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_firebase_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_firebase_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_firebase_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_firebase_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists FirebaseLinks on a property. + # Properties can have at most one FirebaseLink. + # + # @overload list_firebase_links(request, options = nil) + # Pass arguments to `list_firebase_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_firebase_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_firebase_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: properties/\\{property_id} + # + # Example: `properties/1234` + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListFirebaseLinks` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListFirebaseLinks` must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new + # + # # Call the list_firebase_links method. + # result = client.list_firebase_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::FirebaseLink. + # p item + # end + # + def list_firebase_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_firebase_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_firebase_links.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_firebase_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_firebase_links request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_firebase_links, "firebase_links", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the Site Tag for the specified web stream. + # Site Tags are immutable singletons. + # + # @overload get_global_site_tag(request, options = nil) + # Pass arguments to `get_global_site_tag` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_global_site_tag(name: nil) + # Pass arguments to `get_global_site_tag` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the site tag to lookup. + # Note that site tags are singletons and do not have unique IDs. + # Format: properties/\\{property_id}/dataStreams/\\{stream_id}/globalSiteTag + # + # Example: `properties/123/dataStreams/456/globalSiteTag` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new + # + # # Call the get_global_site_tag method. + # result = client.get_global_site_tag request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::GlobalSiteTag. + # p result + # + def get_global_site_tag request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_global_site_tag.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_global_site_tag.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_global_site_tag.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_global_site_tag request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a GoogleAdsLink. + # + # @overload create_google_ads_link(request, options = nil) + # Pass arguments to `create_google_ads_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_google_ads_link(parent: nil, google_ads_link: nil) + # Pass arguments to `create_google_ads_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param google_ads_link [::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash] + # Required. The GoogleAdsLink to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new + # + # # Call the create_google_ads_link method. + # result = client.create_google_ads_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. + # p result + # + def create_google_ads_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_google_ads_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_google_ads_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_google_ads_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_google_ads_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a GoogleAdsLink on a property + # + # @overload update_google_ads_link(request, options = nil) + # Pass arguments to `update_google_ads_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_google_ads_link(google_ads_link: nil, update_mask: nil) + # Pass arguments to `update_google_ads_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param google_ads_link [::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash] + # The GoogleAdsLink to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new + # + # # Call the update_google_ads_link method. + # result = client.update_google_ads_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. + # p result + # + def update_google_ads_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_google_ads_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_google_ads_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_google_ads_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_google_ads_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a GoogleAdsLink on a property + # + # @overload delete_google_ads_link(request, options = nil) + # Pass arguments to `delete_google_ads_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_google_ads_link(name: nil) + # Pass arguments to `delete_google_ads_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Example format: properties/1234/googleAdsLinks/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new + # + # # Call the delete_google_ads_link method. + # result = client.delete_google_ads_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_google_ads_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_google_ads_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_google_ads_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_google_ads_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_google_ads_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoogleAdsLinks on a property. + # + # @overload list_google_ads_links(request, options = nil) + # Pass arguments to `list_google_ads_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_google_ads_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_google_ads_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # Optional. A page token, received from a previous `ListGoogleAdsLinks` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListGoogleAdsLinks` must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new + # + # # Call the list_google_ads_links method. + # result = client.list_google_ads_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::GoogleAdsLink. + # p item + # end + # + def list_google_ads_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_google_ads_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_google_ads_links.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_google_ads_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_google_ads_links request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_google_ads_links, "google_ads_links", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Get data sharing settings on an account. + # Data sharing settings are singletons. + # + # @overload get_data_sharing_settings(request, options = nil) + # Pass arguments to `get_data_sharing_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_data_sharing_settings(name: nil) + # Pass arguments to `get_data_sharing_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the settings to lookup. + # Format: accounts/\\{account}/dataSharingSettings + # + # Example: `accounts/1000/dataSharingSettings` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataSharingSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataSharingSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new + # + # # Call the get_data_sharing_settings method. + # result = client.get_data_sharing_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataSharingSettings. + # p result + # + def get_data_sharing_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_data_sharing_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_data_sharing_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_data_sharing_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_data_sharing_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single MeasurementProtocolSecret. + # + # @overload get_measurement_protocol_secret(request, options = nil) + # Pass arguments to `get_measurement_protocol_secret` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_measurement_protocol_secret(name: nil) + # Pass arguments to `get_measurement_protocol_secret` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the measurement protocol secret to lookup. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new + # + # # Call the get_measurement_protocol_secret method. + # result = client.get_measurement_protocol_secret request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + # p result + # + def get_measurement_protocol_secret request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_measurement_protocol_secret.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_measurement_protocol_secret.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_measurement_protocol_secret.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_measurement_protocol_secret request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns child MeasurementProtocolSecrets under the specified parent + # Property. + # + # @overload list_measurement_protocol_secrets(request, options = nil) + # Pass arguments to `list_measurement_protocol_secrets` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_measurement_protocol_secrets(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_measurement_protocol_secrets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The resource name of the parent stream. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 10 resources will be returned. + # The maximum value is 10. Higher values will be coerced to the maximum. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListMeasurementProtocolSecrets` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListMeasurementProtocolSecrets` must match the call that provided the page + # token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new + # + # # Call the list_measurement_protocol_secrets method. + # result = client.list_measurement_protocol_secrets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + # p item + # end + # + def list_measurement_protocol_secrets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_measurement_protocol_secrets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_measurement_protocol_secrets.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_measurement_protocol_secrets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_measurement_protocol_secrets request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_measurement_protocol_secrets, "measurement_protocol_secrets", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a measurement protocol secret. + # + # @overload create_measurement_protocol_secret(request, options = nil) + # Pass arguments to `create_measurement_protocol_secret` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_measurement_protocol_secret(parent: nil, measurement_protocol_secret: nil) + # Pass arguments to `create_measurement_protocol_secret` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this secret will be created. + # Format: properties/\\{property}/dataStreams/\\{dataStream} + # @param measurement_protocol_secret [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret, ::Hash] + # Required. The measurement protocol secret to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new + # + # # Call the create_measurement_protocol_secret method. + # result = client.create_measurement_protocol_secret request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + # p result + # + def create_measurement_protocol_secret request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_measurement_protocol_secret.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_measurement_protocol_secret.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_measurement_protocol_secret.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_measurement_protocol_secret request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes target MeasurementProtocolSecret. + # + # @overload delete_measurement_protocol_secret(request, options = nil) + # Pass arguments to `delete_measurement_protocol_secret` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_measurement_protocol_secret(name: nil) + # Pass arguments to `delete_measurement_protocol_secret` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the MeasurementProtocolSecret to delete. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new + # + # # Call the delete_measurement_protocol_secret method. + # result = client.delete_measurement_protocol_secret request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_measurement_protocol_secret request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_measurement_protocol_secret.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_measurement_protocol_secret.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_measurement_protocol_secret.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_measurement_protocol_secret request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a measurement protocol secret. + # + # @overload update_measurement_protocol_secret(request, options = nil) + # Pass arguments to `update_measurement_protocol_secret` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_measurement_protocol_secret(measurement_protocol_secret: nil, update_mask: nil) + # Pass arguments to `update_measurement_protocol_secret` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param measurement_protocol_secret [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret, ::Hash] + # Required. The measurement protocol secret to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new + # + # # Call the update_measurement_protocol_secret method. + # result = client.update_measurement_protocol_secret request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + # p result + # + def update_measurement_protocol_secret request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_measurement_protocol_secret.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_measurement_protocol_secret.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_measurement_protocol_secret.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_measurement_protocol_secret request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Acknowledges the terms of user data collection for the specified property. + # + # This acknowledgement must be completed (either in the Google Analytics UI + # or through this API) before MeasurementProtocolSecret resources may be + # created. + # + # @overload acknowledge_user_data_collection(request, options = nil) + # Pass arguments to `acknowledge_user_data_collection` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload acknowledge_user_data_collection(property: nil, acknowledgement: nil) + # Pass arguments to `acknowledge_user_data_collection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param property [::String] + # Required. The property for which to acknowledge user data collection. + # @param acknowledgement [::String] + # Required. An acknowledgement that the caller of this method understands the + # terms of user data collection. + # + # This field must contain the exact value: + # "I acknowledge that I have the necessary privacy disclosures and rights + # from my end users for the collection and processing of their data, + # including the association of such data with the visitation information + # Google Analytics collects from my site and/or app property." + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new + # + # # Call the acknowledge_user_data_collection method. + # result = client.acknowledge_user_data_collection request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse. + # p result + # + def acknowledge_user_data_collection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.acknowledge_user_data_collection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.acknowledge_user_data_collection.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.acknowledge_user_data_collection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.acknowledge_user_data_collection request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Looks up a single SKAdNetworkConversionValueSchema. + # + # @overload get_sk_ad_network_conversion_value_schema(request, options = nil) + # Pass arguments to `get_sk_ad_network_conversion_value_schema` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_sk_ad_network_conversion_value_schema(name: nil) + # Pass arguments to `get_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of SKAdNetwork conversion value schema to look + # up. Format: + # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new + # + # # Call the get_sk_ad_network_conversion_value_schema method. + # result = client.get_sk_ad_network_conversion_value_schema request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + # p result + # + def get_sk_ad_network_conversion_value_schema request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_sk_ad_network_conversion_value_schema.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_sk_ad_network_conversion_value_schema.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_sk_ad_network_conversion_value_schema.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_sk_ad_network_conversion_value_schema request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a SKAdNetworkConversionValueSchema. + # + # @overload create_sk_ad_network_conversion_value_schema(request, options = nil) + # Pass arguments to `create_sk_ad_network_conversion_value_schema` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_sk_ad_network_conversion_value_schema(parent: nil, skadnetwork_conversion_value_schema: nil) + # Pass arguments to `create_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this schema will be created. + # Format: properties/\\{property}/dataStreams/\\{dataStream} + # @param skadnetwork_conversion_value_schema [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema, ::Hash] + # Required. SKAdNetwork conversion value schema to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new + # + # # Call the create_sk_ad_network_conversion_value_schema method. + # result = client.create_sk_ad_network_conversion_value_schema request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + # p result + # + def create_sk_ad_network_conversion_value_schema request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_sk_ad_network_conversion_value_schema.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_sk_ad_network_conversion_value_schema.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_sk_ad_network_conversion_value_schema.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_sk_ad_network_conversion_value_schema request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes target SKAdNetworkConversionValueSchema. + # + # @overload delete_sk_ad_network_conversion_value_schema(request, options = nil) + # Pass arguments to `delete_sk_ad_network_conversion_value_schema` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_sk_ad_network_conversion_value_schema(name: nil) + # Pass arguments to `delete_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the SKAdNetworkConversionValueSchema to delete. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new + # + # # Call the delete_sk_ad_network_conversion_value_schema method. + # result = client.delete_sk_ad_network_conversion_value_schema request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_sk_ad_network_conversion_value_schema request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_sk_ad_network_conversion_value_schema.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_sk_ad_network_conversion_value_schema.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_sk_ad_network_conversion_value_schema.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_sk_ad_network_conversion_value_schema request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a SKAdNetworkConversionValueSchema. + # + # @overload update_sk_ad_network_conversion_value_schema(request, options = nil) + # Pass arguments to `update_sk_ad_network_conversion_value_schema` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_sk_ad_network_conversion_value_schema(skadnetwork_conversion_value_schema: nil, update_mask: nil) + # Pass arguments to `update_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param skadnetwork_conversion_value_schema [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema, ::Hash] + # Required. SKAdNetwork conversion value schema to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new + # + # # Call the update_sk_ad_network_conversion_value_schema method. + # result = client.update_sk_ad_network_conversion_value_schema request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + # p result + # + def update_sk_ad_network_conversion_value_schema request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_sk_ad_network_conversion_value_schema.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_sk_ad_network_conversion_value_schema.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_sk_ad_network_conversion_value_schema.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_sk_ad_network_conversion_value_schema request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists SKAdNetworkConversionValueSchema on a stream. + # Properties can have at most one SKAdNetworkConversionValueSchema. + # + # @overload list_sk_ad_network_conversion_value_schemas(request, options = nil) + # Pass arguments to `list_sk_ad_network_conversion_value_schemas` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_sk_ad_network_conversion_value_schemas(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_sk_ad_network_conversion_value_schemas` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The DataStream resource to list schemas for. + # Format: + # properties/\\{property_id}/dataStreams/\\{dataStream} + # Example: properties/1234/dataStreams/5678 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListSKAdNetworkConversionValueSchema` must match the call that provided + # the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new + # + # # Call the list_sk_ad_network_conversion_value_schemas method. + # result = client.list_sk_ad_network_conversion_value_schemas request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + # p item + # end + # + def list_sk_ad_network_conversion_value_schemas request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_sk_ad_network_conversion_value_schemas.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_sk_ad_network_conversion_value_schemas.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_sk_ad_network_conversion_value_schemas.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_sk_ad_network_conversion_value_schemas request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_sk_ad_network_conversion_value_schemas, "skadnetwork_conversion_value_schemas", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Searches through all changes to an account or its children given the + # specified set of filters. + # + # Only returns the subset of changes supported by the API. The UI may return + # additional changes. + # + # @overload search_change_history_events(request, options = nil) + # Pass arguments to `search_change_history_events` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload search_change_history_events(account: nil, property: nil, resource_type: nil, action: nil, actor_email: nil, earliest_change_time: nil, latest_change_time: nil, page_size: nil, page_token: nil) + # Pass arguments to `search_change_history_events` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param account [::String] + # Required. The account resource for which to return change history + # resources. Format: accounts/\\{account} + # + # Example: `accounts/100` + # @param property [::String] + # Optional. Resource name for a child property. If set, only return changes + # made to this property or its child resources. + # Format: properties/\\{propertyId} + # + # Example: `properties/100` + # @param resource_type [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryResourceType>] + # Optional. If set, only return changes if they are for a resource that + # matches at least one of these types. + # @param action [::Array<::Google::Analytics::Admin::V1alpha::ActionType>] + # Optional. If set, only return changes that match one or more of these types + # of actions. + # @param actor_email [::Array<::String>] + # Optional. If set, only return changes if they are made by a user in this + # list. + # @param earliest_change_time [::Google::Protobuf::Timestamp, ::Hash] + # Optional. If set, only return changes made after this time (inclusive). + # @param latest_change_time [::Google::Protobuf::Timestamp, ::Hash] + # Optional. If set, only return changes made before this time (inclusive). + # @param page_size [::Integer] + # Optional. The maximum number of ChangeHistoryEvent items to return. + # If unspecified, at most 50 items will be returned. The maximum value is 200 + # (higher values will be coerced to the maximum). + # + # Note that the service may return a page with fewer items than this value + # specifies (potentially even zero), and that there still may be additional + # pages. If you want a particular number of items, you'll need to continue + # requesting additional pages using `page_token` until you get the needed + # number. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + # page. When paginating, all other parameters provided to + # `SearchChangeHistoryEvents` must match the call that provided the page + # token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new + # + # # Call the search_change_history_events method. + # result = client.search_change_history_events request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent. + # p item + # end + # + def search_change_history_events request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.search_change_history_events.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.search_change_history_events.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.search_change_history_events.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.search_change_history_events request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :search_change_history_events, "change_history_events", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for Google Signals settings for a property. + # + # @overload get_google_signals_settings(request, options = nil) + # Pass arguments to `get_google_signals_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_google_signals_settings(name: nil) + # Pass arguments to `get_google_signals_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the google signals settings to retrieve. + # Format: properties/\\{property}/googleSignalsSettings + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new + # + # # Call the get_google_signals_settings method. + # result = client.get_google_signals_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. + # p result + # + def get_google_signals_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_google_signals_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_google_signals_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_google_signals_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_google_signals_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates Google Signals settings for a property. + # + # @overload update_google_signals_settings(request, options = nil) + # Pass arguments to `update_google_signals_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_google_signals_settings(google_signals_settings: nil, update_mask: nil) + # Pass arguments to `update_google_signals_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param google_signals_settings [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings, ::Hash] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new + # + # # Call the update_google_signals_settings method. + # result = client.update_google_signals_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. + # p result + # + def update_google_signals_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_google_signals_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_google_signals_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_google_signals_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_google_signals_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprecated: Use `CreateKeyEvent` instead. + # Creates a conversion event with the specified attributes. + # + # @overload create_conversion_event(request, options = nil) + # Pass arguments to `create_conversion_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_conversion_event(conversion_event: nil, parent: nil) + # Pass arguments to `create_conversion_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param conversion_event [::Google::Analytics::Admin::V1alpha::ConversionEvent, ::Hash] + # Required. The conversion event to create. + # @param parent [::String] + # Required. The resource name of the parent property where this conversion + # event will be created. Format: properties/123 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new + # + # # Call the create_conversion_event method. + # result = client.create_conversion_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. + # p result + # + def create_conversion_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_conversion_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_conversion_event.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_conversion_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_conversion_event request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprecated: Use `UpdateKeyEvent` instead. + # Updates a conversion event with the specified attributes. + # + # @overload update_conversion_event(request, options = nil) + # Pass arguments to `update_conversion_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_conversion_event(conversion_event: nil, update_mask: nil) + # Pass arguments to `update_conversion_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param conversion_event [::Google::Analytics::Admin::V1alpha::ConversionEvent, ::Hash] + # Required. The conversion event to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new + # + # # Call the update_conversion_event method. + # result = client.update_conversion_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. + # p result + # + def update_conversion_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_conversion_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_conversion_event.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_conversion_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_conversion_event request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprecated: Use `GetKeyEvent` instead. + # Retrieve a single conversion event. + # + # @overload get_conversion_event(request, options = nil) + # Pass arguments to `get_conversion_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetConversionEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetConversionEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_conversion_event(name: nil) + # Pass arguments to `get_conversion_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the conversion event to retrieve. + # Format: properties/\\{property}/conversionEvents/\\{conversion_event} + # Example: "properties/123/conversionEvents/456" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new + # + # # Call the get_conversion_event method. + # result = client.get_conversion_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. + # p result + # + def get_conversion_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_conversion_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_conversion_event.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_conversion_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_conversion_event request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprecated: Use `DeleteKeyEvent` instead. + # Deletes a conversion event in a property. + # + # @overload delete_conversion_event(request, options = nil) + # Pass arguments to `delete_conversion_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_conversion_event(name: nil) + # Pass arguments to `delete_conversion_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the conversion event to delete. + # Format: properties/\\{property}/conversionEvents/\\{conversion_event} + # Example: "properties/123/conversionEvents/456" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new + # + # # Call the delete_conversion_event method. + # result = client.delete_conversion_event request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_conversion_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_conversion_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_conversion_event.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_conversion_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_conversion_event request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deprecated: Use `ListKeyEvents` instead. + # Returns a list of conversion events in the specified parent property. + # + # Returns an empty list if no conversion events are found. + # + # @overload list_conversion_events(request, options = nil) + # Pass arguments to `list_conversion_events` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_conversion_events(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_conversion_events` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The resource name of the parent property. + # Example: 'properties/123' + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListConversionEvents` + # call. Provide this to retrieve the subsequent page. When paginating, all + # other parameters provided to `ListConversionEvents` must match the call + # that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new + # + # # Call the list_conversion_events method. + # result = client.list_conversion_events request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::ConversionEvent. + # p item + # end + # + def list_conversion_events request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_conversion_events.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_conversion_events.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_conversion_events.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_conversion_events request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_conversion_events, "conversion_events", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a Key Event. + # + # @overload create_key_event(request, options = nil) + # Pass arguments to `create_key_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_key_event(key_event: nil, parent: nil) + # Pass arguments to `create_key_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param key_event [::Google::Analytics::Admin::V1alpha::KeyEvent, ::Hash] + # Required. The Key Event to create. + # @param parent [::String] + # Required. The resource name of the parent property where this Key Event + # will be created. Format: properties/123 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new + # + # # Call the create_key_event method. + # result = client.create_key_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + # p result + # + def create_key_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_key_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_key_event.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_key_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_key_event request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a Key Event. + # + # @overload update_key_event(request, options = nil) + # Pass arguments to `update_key_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_key_event(key_event: nil, update_mask: nil) + # Pass arguments to `update_key_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param key_event [::Google::Analytics::Admin::V1alpha::KeyEvent, ::Hash] + # Required. The Key Event to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new + # + # # Call the update_key_event method. + # result = client.update_key_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + # p result + # + def update_key_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_key_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_key_event.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_key_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_key_event request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Retrieve a single Key Event. + # + # @overload get_key_event(request, options = nil) + # Pass arguments to `get_key_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetKeyEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetKeyEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_key_event(name: nil) + # Pass arguments to `get_key_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the Key Event to retrieve. + # Format: properties/\\{property}/keyEvents/\\{key_event} + # Example: "properties/123/keyEvents/456" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new + # + # # Call the get_key_event method. + # result = client.get_key_event request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + # p result + # + def get_key_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_key_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_key_event.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_key_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_key_event request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Key Event. + # + # @overload delete_key_event(request, options = nil) + # Pass arguments to `delete_key_event` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_key_event(name: nil) + # Pass arguments to `delete_key_event` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The resource name of the Key Event to delete. + # Format: properties/\\{property}/keyEvents/\\{key_event} + # Example: "properties/123/keyEvents/456" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new + # + # # Call the delete_key_event method. + # result = client.delete_key_event request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_key_event request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_key_event.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_key_event.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_key_event.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_key_event request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns a list of Key Events in the specified parent property. + # Returns an empty list if no Key Events are found. + # + # @overload list_key_events(request, options = nil) + # Pass arguments to `list_key_events` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_key_events(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_key_events` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The resource name of the parent property. + # Example: 'properties/123' + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous `ListKeyEvents` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListKeyEvents` + # must match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new + # + # # Call the list_key_events method. + # result = client.list_key_events request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::KeyEvent. + # p item + # end + # + def list_key_events request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_key_events.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_key_events.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_key_events.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_key_events request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_key_events, "key_events", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Look up a single DisplayVideo360AdvertiserLink + # + # @overload get_display_video360_advertiser_link(request, options = nil) + # Pass arguments to `get_display_video360_advertiser_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_display_video360_advertiser_link(name: nil) + # Pass arguments to `get_display_video360_advertiser_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLink to get. + # Example format: properties/1234/displayVideo360AdvertiserLink/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new + # + # # Call the get_display_video360_advertiser_link method. + # result = client.get_display_video360_advertiser_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # p result + # + def get_display_video360_advertiser_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_display_video360_advertiser_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_display_video360_advertiser_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_display_video360_advertiser_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all DisplayVideo360AdvertiserLinks on a property. + # + # @overload list_display_video360_advertiser_links(request, options = nil) + # Pass arguments to `list_display_video360_advertiser_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_display_video360_advertiser_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_display_video360_advertiser_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new + # + # # Call the list_display_video360_advertiser_links method. + # result = client.list_display_video360_advertiser_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # p item + # end + # + def list_display_video360_advertiser_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_display_video360_advertiser_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_links.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_display_video360_advertiser_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_display_video360_advertiser_links request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_links, "display_video_360_advertiser_links", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a DisplayVideo360AdvertiserLink. + # This can only be utilized by users who have proper authorization both on + # the Google Analytics property and on the Display & Video 360 advertiser. + # Users who do not have access to the Display & Video 360 advertiser should + # instead seek to create a DisplayVideo360LinkProposal. + # + # @overload create_display_video360_advertiser_link(request, options = nil) + # Pass arguments to `create_display_video360_advertiser_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_display_video360_advertiser_link(parent: nil, display_video_360_advertiser_link: nil) + # Pass arguments to `create_display_video360_advertiser_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash] + # Required. The DisplayVideo360AdvertiserLink to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new + # + # # Call the create_display_video360_advertiser_link method. + # result = client.create_display_video360_advertiser_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # p result + # + def create_display_video360_advertiser_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_display_video360_advertiser_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_display_video360_advertiser_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_display_video360_advertiser_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a DisplayVideo360AdvertiserLink on a property. + # + # @overload delete_display_video360_advertiser_link(request, options = nil) + # Pass arguments to `delete_display_video360_advertiser_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_display_video360_advertiser_link(name: nil) + # Pass arguments to `delete_display_video360_advertiser_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLink to delete. + # Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new + # + # # Call the delete_display_video360_advertiser_link method. + # result = client.delete_display_video360_advertiser_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_display_video360_advertiser_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_display_video360_advertiser_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_display_video360_advertiser_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_display_video360_advertiser_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a DisplayVideo360AdvertiserLink on a property. + # + # @overload update_display_video360_advertiser_link(request, options = nil) + # Pass arguments to `update_display_video360_advertiser_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_display_video360_advertiser_link(display_video_360_advertiser_link: nil, update_mask: nil) + # Pass arguments to `update_display_video360_advertiser_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash] + # The DisplayVideo360AdvertiserLink to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new + # + # # Call the update_display_video360_advertiser_link method. + # result = client.update_display_video360_advertiser_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # p result + # + def update_display_video360_advertiser_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_display_video360_advertiser_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_display_video360_advertiser_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_display_video360_advertiser_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_display_video360_advertiser_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single DisplayVideo360AdvertiserLinkProposal. + # + # @overload get_display_video360_advertiser_link_proposal(request, options = nil) + # Pass arguments to `get_display_video360_advertiser_link_proposal` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_display_video360_advertiser_link_proposal(name: nil) + # Pass arguments to `get_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new + # + # # Call the get_display_video360_advertiser_link_proposal method. + # result = client.get_display_video360_advertiser_link_proposal request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + # p result + # + def get_display_video360_advertiser_link_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_display_video360_advertiser_link_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link_proposal.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_display_video360_advertiser_link_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_display_video360_advertiser_link_proposal request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists DisplayVideo360AdvertiserLinkProposals on a property. + # + # @overload list_display_video360_advertiser_link_proposals(request, options = nil) + # Pass arguments to `list_display_video360_advertiser_link_proposals` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_display_video360_advertiser_link_proposals(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_display_video360_advertiser_link_proposals` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous + # `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + # the subsequent page. + # + # When paginating, all other parameters provided to + # `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + # provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new + # + # # Call the list_display_video360_advertiser_link_proposals method. + # result = client.list_display_video360_advertiser_link_proposals request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + # p item + # end + # + def list_display_video360_advertiser_link_proposals request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_display_video360_advertiser_link_proposals.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_link_proposals.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_display_video360_advertiser_link_proposals.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_display_video360_advertiser_link_proposals request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_link_proposals, "display_video_360_advertiser_link_proposals", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a DisplayVideo360AdvertiserLinkProposal. + # + # @overload create_display_video360_advertiser_link_proposal(request, options = nil) + # Pass arguments to `create_display_video360_advertiser_link_proposal` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_display_video360_advertiser_link_proposal(parent: nil, display_video_360_advertiser_link_proposal: nil) + # Pass arguments to `create_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param display_video_360_advertiser_link_proposal [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal, ::Hash] + # Required. The DisplayVideo360AdvertiserLinkProposal to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new + # + # # Call the create_display_video360_advertiser_link_proposal method. + # result = client.create_display_video360_advertiser_link_proposal request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + # p result + # + def create_display_video360_advertiser_link_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_display_video360_advertiser_link_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link_proposal.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_display_video360_advertiser_link_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_display_video360_advertiser_link_proposal request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + # This can only be used on cancelled proposals. + # + # @overload delete_display_video360_advertiser_link_proposal(request, options = nil) + # Pass arguments to `delete_display_video360_advertiser_link_proposal` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_display_video360_advertiser_link_proposal(name: nil) + # Pass arguments to `delete_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new + # + # # Call the delete_display_video360_advertiser_link_proposal method. + # result = client.delete_display_video360_advertiser_link_proposal request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_display_video360_advertiser_link_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_display_video360_advertiser_link_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link_proposal.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_display_video360_advertiser_link_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_display_video360_advertiser_link_proposal request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Approves a DisplayVideo360AdvertiserLinkProposal. + # The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + # DisplayVideo360AdvertiserLink will be created. + # + # @overload approve_display_video360_advertiser_link_proposal(request, options = nil) + # Pass arguments to `approve_display_video360_advertiser_link_proposal` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload approve_display_video360_advertiser_link_proposal(name: nil) + # Pass arguments to `approve_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new + # + # # Call the approve_display_video360_advertiser_link_proposal method. + # result = client.approve_display_video360_advertiser_link_proposal request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse. + # p result + # + def approve_display_video360_advertiser_link_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.approve_display_video360_advertiser_link_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.approve_display_video360_advertiser_link_proposal.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.approve_display_video360_advertiser_link_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.approve_display_video360_advertiser_link_proposal request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Cancels a DisplayVideo360AdvertiserLinkProposal. + # Cancelling can mean either: + # - Declining a proposal initiated from Display & Video 360 + # - Withdrawing a proposal initiated from Google Analytics + # After being cancelled, a proposal will eventually be deleted automatically. + # + # @overload cancel_display_video360_advertiser_link_proposal(request, options = nil) + # Pass arguments to `cancel_display_video360_advertiser_link_proposal` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_display_video360_advertiser_link_proposal(name: nil) + # Pass arguments to `cancel_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new + # + # # Call the cancel_display_video360_advertiser_link_proposal method. + # result = client.cancel_display_video360_advertiser_link_proposal request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + # p result + # + def cancel_display_video360_advertiser_link_proposal request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_display_video360_advertiser_link_proposal.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_display_video360_advertiser_link_proposal.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_display_video360_advertiser_link_proposal.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.cancel_display_video360_advertiser_link_proposal request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a CustomDimension. + # + # @overload create_custom_dimension(request, options = nil) + # Pass arguments to `create_custom_dimension` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_custom_dimension(parent: nil, custom_dimension: nil) + # Pass arguments to `create_custom_dimension` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash] + # Required. The CustomDimension to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new + # + # # Call the create_custom_dimension method. + # result = client.create_custom_dimension request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. + # p result + # + def create_custom_dimension request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_custom_dimension.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_custom_dimension.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_custom_dimension.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_custom_dimension request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a CustomDimension on a property. + # + # @overload update_custom_dimension(request, options = nil) + # Pass arguments to `update_custom_dimension` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_custom_dimension(custom_dimension: nil, update_mask: nil) + # Pass arguments to `update_custom_dimension` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash] + # The CustomDimension to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new + # + # # Call the update_custom_dimension method. + # result = client.update_custom_dimension request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. + # p result + # + def update_custom_dimension request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_custom_dimension.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_custom_dimension.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_custom_dimension.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_custom_dimension request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CustomDimensions on a property. + # + # @overload list_custom_dimensions(request, options = nil) + # Pass arguments to `list_custom_dimensions` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_custom_dimensions(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_custom_dimensions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # Optional. A page token, received from a previous `ListCustomDimensions` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCustomDimensions` + # must match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new + # + # # Call the list_custom_dimensions method. + # result = client.list_custom_dimensions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension. + # p item + # end + # + def list_custom_dimensions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_custom_dimensions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_custom_dimensions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_custom_dimensions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_custom_dimensions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_dimensions, "custom_dimensions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Archives a CustomDimension on a property. + # + # @overload archive_custom_dimension(request, options = nil) + # Pass arguments to `archive_custom_dimension` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload archive_custom_dimension(name: nil) + # Pass arguments to `archive_custom_dimension` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CustomDimension to archive. + # Example format: properties/1234/customDimensions/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new + # + # # Call the archive_custom_dimension method. + # result = client.archive_custom_dimension request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def archive_custom_dimension request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.archive_custom_dimension.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.archive_custom_dimension.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.archive_custom_dimension.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.archive_custom_dimension request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single CustomDimension. + # + # @overload get_custom_dimension(request, options = nil) + # Pass arguments to `get_custom_dimension` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_custom_dimension(name: nil) + # Pass arguments to `get_custom_dimension` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CustomDimension to get. + # Example format: properties/1234/customDimensions/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new + # + # # Call the get_custom_dimension method. + # result = client.get_custom_dimension request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. + # p result + # + def get_custom_dimension request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_custom_dimension.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_custom_dimension.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_custom_dimension.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_custom_dimension request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a CustomMetric. + # + # @overload create_custom_metric(request, options = nil) + # Pass arguments to `create_custom_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_custom_metric(parent: nil, custom_metric: nil) + # Pass arguments to `create_custom_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param custom_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] + # Required. The CustomMetric to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new + # + # # Call the create_custom_metric method. + # result = client.create_custom_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # p result + # + def create_custom_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_custom_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_custom_metric.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_custom_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_custom_metric request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a CustomMetric on a property. + # + # @overload update_custom_metric(request, options = nil) + # Pass arguments to `update_custom_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_custom_metric(custom_metric: nil, update_mask: nil) + # Pass arguments to `update_custom_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param custom_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] + # The CustomMetric to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new + # + # # Call the update_custom_metric method. + # result = client.update_custom_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # p result + # + def update_custom_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_custom_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_custom_metric.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_custom_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_custom_metric request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CustomMetrics on a property. + # + # @overload list_custom_metrics(request, options = nil) + # Pass arguments to `list_custom_metrics` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_custom_metrics(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_custom_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListCustomMetrics` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCustomMetrics` must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new + # + # # Call the list_custom_metrics method. + # result = client.list_custom_metrics request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomMetric. + # p item + # end + # + def list_custom_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_custom_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_custom_metrics.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_custom_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_custom_metrics request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_metrics, "custom_metrics", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Archives a CustomMetric on a property. + # + # @overload archive_custom_metric(request, options = nil) + # Pass arguments to `archive_custom_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload archive_custom_metric(name: nil) + # Pass arguments to `archive_custom_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CustomMetric to archive. + # Example format: properties/1234/customMetrics/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new + # + # # Call the archive_custom_metric method. + # result = client.archive_custom_metric request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def archive_custom_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.archive_custom_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.archive_custom_metric.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.archive_custom_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.archive_custom_metric request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single CustomMetric. + # + # @overload get_custom_metric(request, options = nil) + # Pass arguments to `get_custom_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_custom_metric(name: nil) + # Pass arguments to `get_custom_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CustomMetric to get. + # Example format: properties/1234/customMetrics/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new + # + # # Call the get_custom_metric method. + # result = client.get_custom_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # p result + # + def get_custom_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_custom_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_custom_metric.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_custom_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_custom_metric request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the singleton data retention settings for this property. + # + # @overload get_data_retention_settings(request, options = nil) + # Pass arguments to `get_data_retention_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_data_retention_settings(name: nil) + # Pass arguments to `get_data_retention_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/dataRetentionSettings + # Example: "properties/1000/dataRetentionSettings" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new + # + # # Call the get_data_retention_settings method. + # result = client.get_data_retention_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + # p result + # + def get_data_retention_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_data_retention_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_data_retention_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_data_retention_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_data_retention_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the singleton data retention settings for this property. + # + # @overload update_data_retention_settings(request, options = nil) + # Pass arguments to `update_data_retention_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_data_retention_settings(data_retention_settings: nil, update_mask: nil) + # Pass arguments to `update_data_retention_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param data_retention_settings [::Google::Analytics::Admin::V1alpha::DataRetentionSettings, ::Hash] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new + # + # # Call the update_data_retention_settings method. + # result = client.update_data_retention_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + # p result + # + def update_data_retention_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_data_retention_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_data_retention_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_data_retention_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_data_retention_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a DataStream. + # + # @overload create_data_stream(request, options = nil) + # Pass arguments to `create_data_stream` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_data_stream(parent: nil, data_stream: nil) + # Pass arguments to `create_data_stream` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param data_stream [::Google::Analytics::Admin::V1alpha::DataStream, ::Hash] + # Required. The DataStream to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new + # + # # Call the create_data_stream method. + # result = client.create_data_stream request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + # p result + # + def create_data_stream request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_data_stream.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_data_stream.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_data_stream.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_data_stream request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a DataStream on a property. + # + # @overload delete_data_stream(request, options = nil) + # Pass arguments to `delete_data_stream` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_data_stream(name: nil) + # Pass arguments to `delete_data_stream` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DataStream to delete. + # Example format: properties/1234/dataStreams/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new + # + # # Call the delete_data_stream method. + # result = client.delete_data_stream request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_data_stream request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_data_stream.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_data_stream.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_data_stream.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_data_stream request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a DataStream on a property. + # + # @overload update_data_stream(request, options = nil) + # Pass arguments to `update_data_stream` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_data_stream(data_stream: nil, update_mask: nil) + # Pass arguments to `update_data_stream` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param data_stream [::Google::Analytics::Admin::V1alpha::DataStream, ::Hash] + # The DataStream to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new + # + # # Call the update_data_stream method. + # result = client.update_data_stream request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + # p result + # + def update_data_stream request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_data_stream.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_data_stream.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_data_stream.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_data_stream request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists DataStreams on a property. + # + # @overload list_data_streams(request, options = nil) + # Pass arguments to `list_data_streams` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_data_streams(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_data_streams` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListDataStreams` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListDataStreams` must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new + # + # # Call the list_data_streams method. + # result = client.list_data_streams request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::DataStream. + # p item + # end + # + def list_data_streams request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_data_streams.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_data_streams.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_data_streams.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_data_streams request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_data_streams, "data_streams", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single DataStream. + # + # @overload get_data_stream(request, options = nil) + # Pass arguments to `get_data_stream` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDataStreamRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDataStreamRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_data_stream(name: nil) + # Pass arguments to `get_data_stream` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DataStream to get. + # Example format: properties/1234/dataStreams/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new + # + # # Call the get_data_stream method. + # result = client.get_data_stream request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + # p result + # + def get_data_stream request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_data_stream.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_data_stream.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_data_stream.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_data_stream request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single Audience. + # Audiences created before 2020 may not be supported. + # Default audiences will not show filter definitions. + # + # @overload get_audience(request, options = nil) + # Pass arguments to `get_audience` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetAudienceRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetAudienceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_audience(name: nil) + # Pass arguments to `get_audience` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Audience to get. + # Example format: properties/1234/audiences/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetAudienceRequest.new + # + # # Call the get_audience method. + # result = client.get_audience request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + # p result + # + def get_audience request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAudienceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_audience.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_audience.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_audience.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_audience request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Audiences on a property. + # Audiences created before 2020 may not be supported. + # Default audiences will not show filter definitions. + # + # @overload list_audiences(request, options = nil) + # Pass arguments to `list_audiences` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListAudiencesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListAudiencesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_audiences(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_audiences` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListAudiences` call. Provide this + # to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListAudiences` must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new + # + # # Call the list_audiences method. + # result = client.list_audiences request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::Audience. + # p item + # end + # + def list_audiences request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_audiences.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_audiences.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_audiences.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_audiences request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_audiences, "audiences", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an Audience. + # + # @overload create_audience(request, options = nil) + # Pass arguments to `create_audience` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateAudienceRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateAudienceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_audience(parent: nil, audience: nil) + # Pass arguments to `create_audience` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param audience [::Google::Analytics::Admin::V1alpha::Audience, ::Hash] + # Required. The audience to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new + # + # # Call the create_audience method. + # result = client.create_audience request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + # p result + # + def create_audience request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_audience.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_audience.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_audience.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_audience request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an Audience on a property. + # + # @overload update_audience(request, options = nil) + # Pass arguments to `update_audience` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_audience(audience: nil, update_mask: nil) + # Pass arguments to `update_audience` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param audience [::Google::Analytics::Admin::V1alpha::Audience, ::Hash] + # Required. The audience to update. + # The audience's `name` field is used to identify the audience to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new + # + # # Call the update_audience method. + # result = client.update_audience request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + # p result + # + def update_audience request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_audience.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_audience.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_audience.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_audience request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Archives an Audience on a property. + # + # @overload archive_audience(request, options = nil) + # Pass arguments to `archive_audience` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload archive_audience(name: nil) + # Pass arguments to `archive_audience` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Example format: properties/1234/audiences/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new + # + # # Call the archive_audience method. + # result = client.archive_audience request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def archive_audience request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.archive_audience.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.archive_audience.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.archive_audience.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.archive_audience request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Look up a single SearchAds360Link + # + # @overload get_search_ads360_link(request, options = nil) + # Pass arguments to `get_search_ads360_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_search_ads360_link(name: nil) + # Pass arguments to `get_search_ads360_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the SearchAds360Link to get. + # Example format: properties/1234/SearchAds360Link/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new + # + # # Call the get_search_ads360_link method. + # result = client.get_search_ads360_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # p result + # + def get_search_ads360_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_search_ads360_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_search_ads360_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_search_ads360_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_search_ads360_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all SearchAds360Links on a property. + # + # @overload list_search_ads360_links(request, options = nil) + # Pass arguments to `list_search_ads360_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_search_ads360_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_search_ads360_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListSearchAds360Links` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListSearchAds360Links` must match the call that provided the + # page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new + # + # # Call the list_search_ads360_links method. + # result = client.list_search_ads360_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::SearchAds360Link. + # p item + # end + # + def list_search_ads360_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_search_ads360_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_search_ads360_links.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_search_ads360_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_search_ads360_links request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_search_ads360_links, "search_ads_360_links", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a SearchAds360Link. + # + # @overload create_search_ads360_link(request, options = nil) + # Pass arguments to `create_search_ads360_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_search_ads360_link(parent: nil, search_ads_360_link: nil) + # Pass arguments to `create_search_ads360_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param search_ads_360_link [::Google::Analytics::Admin::V1alpha::SearchAds360Link, ::Hash] + # Required. The SearchAds360Link to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new + # + # # Call the create_search_ads360_link method. + # result = client.create_search_ads360_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # p result + # + def create_search_ads360_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_search_ads360_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_search_ads360_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_search_ads360_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_search_ads360_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a SearchAds360Link on a property. + # + # @overload delete_search_ads360_link(request, options = nil) + # Pass arguments to `delete_search_ads360_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_search_ads360_link(name: nil) + # Pass arguments to `delete_search_ads360_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the SearchAds360Link to delete. + # Example format: properties/1234/SearchAds360Links/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new + # + # # Call the delete_search_ads360_link method. + # result = client.delete_search_ads360_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_search_ads360_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_search_ads360_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_search_ads360_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_search_ads360_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_search_ads360_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a SearchAds360Link on a property. + # + # @overload update_search_ads360_link(request, options = nil) + # Pass arguments to `update_search_ads360_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_search_ads360_link(search_ads_360_link: nil, update_mask: nil) + # Pass arguments to `update_search_ads360_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param search_ads_360_link [::Google::Analytics::Admin::V1alpha::SearchAds360Link, ::Hash] + # The SearchAds360Link to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new + # + # # Call the update_search_ads360_link method. + # result = client.update_search_ads360_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # p result + # + def update_search_ads360_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_search_ads360_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_search_ads360_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_search_ads360_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_search_ads360_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a AttributionSettings singleton. + # + # @overload get_attribution_settings(request, options = nil) + # Pass arguments to `get_attribution_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_attribution_settings(name: nil) + # Pass arguments to `get_attribution_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the attribution settings to retrieve. + # Format: properties/\\{property}/attributionSettings + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new + # + # # Call the get_attribution_settings method. + # result = client.get_attribution_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. + # p result + # + def get_attribution_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_attribution_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_attribution_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_attribution_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_attribution_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates attribution settings on a property. + # + # @overload update_attribution_settings(request, options = nil) + # Pass arguments to `update_attribution_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_attribution_settings(attribution_settings: nil, update_mask: nil) + # Pass arguments to `update_attribution_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param attribution_settings [::Google::Analytics::Admin::V1alpha::AttributionSettings, ::Hash] + # Required. The attribution settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new + # + # # Call the update_attribution_settings method. + # result = client.update_attribution_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. + # p result + # + def update_attribution_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_attribution_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_attribution_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_attribution_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_attribution_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns a customized report of data access records. The report provides + # records of each time a user reads Google Analytics reporting data. Access + # records are retained for up to 2 years. + # + # Data Access Reports can be requested for a property. Reports may be + # requested for any property, but dimensions that aren't related to quota can + # only be requested on Google Analytics 360 properties. This method is only + # available to Administrators. + # + # These data access records include GA UI Reporting, GA UI Explorations, + # GA Data API, and other products like Firebase & Admob that can retrieve + # data from Google Analytics through a linkage. These records don't include + # property configuration changes like adding a stream or changing a + # property's time zone. For configuration change history, see + # [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + # + # To give your feedback on this API, complete the [Google Analytics Access + # Reports + # feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) + # form. + # + # @overload run_access_report(request, options = nil) + # Pass arguments to `run_access_report` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::RunAccessReportRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::RunAccessReportRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload run_access_report(entity: nil, dimensions: nil, metrics: nil, date_ranges: nil, dimension_filter: nil, metric_filter: nil, offset: nil, limit: nil, time_zone: nil, order_bys: nil, return_entity_quota: nil, include_all_users: nil, expand_groups: nil) + # Pass arguments to `run_access_report` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param entity [::String] + # The Data Access Report supports requesting at the property level or account + # level. If requested at the account level, Data Access Reports include all + # access for all properties under that account. + # + # To request at the property level, entity should be for example + # 'properties/123' if "123" is your Google Analytics property ID. To request + # at the account level, entity should be for example 'accounts/1234' if + # "1234" is your Google Analytics Account ID. + # @param dimensions [::Array<::Google::Analytics::Admin::V1alpha::AccessDimension, ::Hash>] + # The dimensions requested and displayed in the response. Requests are + # allowed up to 9 dimensions. + # @param metrics [::Array<::Google::Analytics::Admin::V1alpha::AccessMetric, ::Hash>] + # The metrics requested and displayed in the response. Requests are allowed + # up to 10 metrics. + # @param date_ranges [::Array<::Google::Analytics::Admin::V1alpha::AccessDateRange, ::Hash>] + # Date ranges of access records to read. If multiple date ranges are + # requested, each response row will contain a zero based date range index. If + # two date ranges overlap, the access records for the overlapping days is + # included in the response rows for both date ranges. Requests are allowed up + # to 2 date ranges. + # @param dimension_filter [::Google::Analytics::Admin::V1alpha::AccessFilterExpression, ::Hash] + # Dimension filters let you restrict report response to specific + # dimension values which match the filter. For example, filtering on access + # records of a single user. To learn more, see [Fundamentals of Dimension + # Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + # for examples. Metrics cannot be used in this filter. + # @param metric_filter [::Google::Analytics::Admin::V1alpha::AccessFilterExpression, ::Hash] + # Metric filters allow you to restrict report response to specific metric + # values which match the filter. Metric filters are applied after aggregating + # the report's rows, similar to SQL having-clause. Dimensions cannot be used + # in this filter. + # @param offset [::Integer] + # The row count of the start row. The first row is counted as row 0. If + # offset is unspecified, it is treated as 0. If offset is zero, then this + # method will return the first page of results with `limit` entries. + # + # To learn more about this pagination parameter, see + # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + # @param limit [::Integer] + # The number of rows to return. If unspecified, 10,000 rows are returned. The + # API returns a maximum of 100,000 rows per request, no matter how many you + # ask for. `limit` must be positive. + # + # The API may return fewer rows than the requested `limit`, if there aren't + # as many remaining rows as the `limit`. For instance, there are fewer than + # 300 possible values for the dimension `country`, so when reporting on only + # `country`, you can't get more than 300 rows, even if you set `limit` to a + # higher value. + # + # To learn more about this pagination parameter, see + # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + # @param time_zone [::String] + # This request's time zone if specified. If unspecified, the property's time + # zone is used. The request's time zone is used to interpret the start & end + # dates of the report. + # + # Formatted as strings from the IANA Time Zone database + # (https://www.iana.org/time-zones); for example "America/New_York" or + # "Asia/Tokyo". + # @param order_bys [::Array<::Google::Analytics::Admin::V1alpha::AccessOrderBy, ::Hash>] + # Specifies how rows are ordered in the response. + # @param return_entity_quota [::Boolean] + # Toggles whether to return the current state of this Analytics Property's + # quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + # requests, this field must be false. + # @param include_all_users [::Boolean] + # Optional. Determines whether to include users who have never made an API + # call in the response. If true, all users with access to the specified + # property or account are included in the response, regardless of whether + # they have made an API call or not. If false, only the users who have made + # an API call will be included. + # @param expand_groups [::Boolean] + # Optional. Decides whether to return the users within user groups. This + # field works only when include_all_users is set to true. If true, it will + # return all users with access to the specified property or account. + # If false, only the users with direct access will be returned. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new + # + # # Call the run_access_report method. + # result = client.run_access_report request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::RunAccessReportResponse. + # p result + # + def run_access_report request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.run_access_report.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.run_access_report.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.run_access_report.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.run_access_report request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an access binding on an account or property. + # + # @overload create_access_binding(request, options = nil) + # Pass arguments to `create_access_binding` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_access_binding(parent: nil, access_binding: nil) + # Pass arguments to `create_access_binding` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] + # Required. The access binding to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new + # + # # Call the create_access_binding method. + # result = client.create_access_binding request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + # p result + # + def create_access_binding request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_access_binding.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_access_binding.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_access_binding.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_access_binding request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about an access binding. + # + # @overload get_access_binding(request, options = nil) + # Pass arguments to `get_access_binding` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_access_binding(name: nil) + # Pass arguments to `get_access_binding` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the access binding to retrieve. + # Formats: + # - accounts/\\{account}/accessBindings/\\{accessBinding} + # - properties/\\{property}/accessBindings/\\{accessBinding} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new + # + # # Call the get_access_binding method. + # result = client.get_access_binding request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + # p result + # + def get_access_binding request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_access_binding.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_access_binding.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_access_binding.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_access_binding request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an access binding on an account or property. + # + # @overload update_access_binding(request, options = nil) + # Pass arguments to `update_access_binding` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_access_binding(access_binding: nil) + # Pass arguments to `update_access_binding` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] + # Required. The access binding to update. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new + # + # # Call the update_access_binding method. + # result = client.update_access_binding request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + # p result + # + def update_access_binding request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_access_binding.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_access_binding.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_access_binding.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_access_binding request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an access binding on an account or property. + # + # @overload delete_access_binding(request, options = nil) + # Pass arguments to `delete_access_binding` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_access_binding(name: nil) + # Pass arguments to `delete_access_binding` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Formats: + # - accounts/\\{account}/accessBindings/\\{accessBinding} + # - properties/\\{property}/accessBindings/\\{accessBinding} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new + # + # # Call the delete_access_binding method. + # result = client.delete_access_binding request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_access_binding request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_access_binding.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_access_binding.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_access_binding.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_access_binding request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all access bindings on an account or property. + # + # @overload list_access_bindings(request, options = nil) + # Pass arguments to `list_access_bindings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_access_bindings(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_access_bindings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param page_size [::Integer] + # The maximum number of access bindings to return. + # The service may return fewer than this value. + # If unspecified, at most 200 access bindings will be returned. + # The maximum value is 500; values above 500 will be coerced to 500. + # @param page_token [::String] + # A page token, received from a previous `ListAccessBindings` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListAccessBindings` must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new + # + # # Call the list_access_bindings method. + # result = client.list_access_bindings request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::AccessBinding. + # p item + # end + # + def list_access_bindings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_access_bindings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_access_bindings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_access_bindings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_access_bindings request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_access_bindings, "access_bindings", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates information about multiple access bindings to an account or + # property. + # + # This method is transactional. If any AccessBinding cannot be created, none + # of the AccessBindings will be created. + # + # @overload batch_create_access_bindings(request, options = nil) + # Pass arguments to `batch_create_access_bindings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_create_access_bindings(parent: nil, requests: nil) + # Pass arguments to `batch_create_access_bindings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The account or property that owns the access bindings. The parent + # field in the CreateAccessBindingRequest messages must either be empty or + # match this field. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param requests [::Array<::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, ::Hash>] + # Required. The requests specifying the access bindings to create. + # A maximum of 1000 access bindings can be created in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new + # + # # Call the batch_create_access_bindings method. + # result = client.batch_create_access_bindings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse. + # p result + # + def batch_create_access_bindings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_create_access_bindings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_create_access_bindings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_create_access_bindings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.batch_create_access_bindings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets information about multiple access bindings to an account or property. + # + # @overload batch_get_access_bindings(request, options = nil) + # Pass arguments to `batch_get_access_bindings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_get_access_bindings(parent: nil, names: nil) + # Pass arguments to `batch_get_access_bindings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The account or property that owns the access bindings. The parent + # of all provided values for the 'names' field must match this field. + # Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param names [::Array<::String>] + # Required. The names of the access bindings to retrieve. + # A maximum of 1000 access bindings can be retrieved in a batch. + # Formats: + # - accounts/\\{account}/accessBindings/\\{accessBinding} + # - properties/\\{property}/accessBindings/\\{accessBinding} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new + # + # # Call the batch_get_access_bindings method. + # result = client.batch_get_access_bindings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse. + # p result + # + def batch_get_access_bindings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_get_access_bindings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_get_access_bindings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_get_access_bindings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.batch_get_access_bindings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates information about multiple access bindings to an account or + # property. + # + # @overload batch_update_access_bindings(request, options = nil) + # Pass arguments to `batch_update_access_bindings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_update_access_bindings(parent: nil, requests: nil) + # Pass arguments to `batch_update_access_bindings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The account or property that owns the access bindings. The parent + # of all provided AccessBinding in UpdateAccessBindingRequest messages must + # match this field. + # Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param requests [::Array<::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, ::Hash>] + # Required. The requests specifying the access bindings to update. + # A maximum of 1000 access bindings can be updated in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new + # + # # Call the batch_update_access_bindings method. + # result = client.batch_update_access_bindings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse. + # p result + # + def batch_update_access_bindings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_update_access_bindings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_update_access_bindings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_update_access_bindings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.batch_update_access_bindings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes information about multiple users' links to an account or property. + # + # @overload batch_delete_access_bindings(request, options = nil) + # Pass arguments to `batch_delete_access_bindings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload batch_delete_access_bindings(parent: nil, requests: nil) + # Pass arguments to `batch_delete_access_bindings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The account or property that owns the access bindings. The parent + # of all provided values for the 'names' field in DeleteAccessBindingRequest + # messages must match this field. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @param requests [::Array<::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, ::Hash>] + # Required. The requests specifying the access bindings to delete. + # A maximum of 1000 access bindings can be deleted in a batch. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new + # + # # Call the batch_delete_access_bindings method. + # result = client.batch_delete_access_bindings request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def batch_delete_access_bindings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.batch_delete_access_bindings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.batch_delete_access_bindings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.batch_delete_access_bindings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.batch_delete_access_bindings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single ExpandedDataSet. + # + # @overload get_expanded_data_set(request, options = nil) + # Pass arguments to `get_expanded_data_set` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_expanded_data_set(name: nil) + # Pass arguments to `get_expanded_data_set` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExpandedDataSet to get. + # Example format: properties/1234/expandedDataSets/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new + # + # # Call the get_expanded_data_set method. + # result = client.get_expanded_data_set request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # p result + # + def get_expanded_data_set request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_expanded_data_set.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_expanded_data_set.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_expanded_data_set.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_expanded_data_set request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists ExpandedDataSets on a property. + # + # @overload list_expanded_data_sets(request, options = nil) + # Pass arguments to `list_expanded_data_sets` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_expanded_data_sets(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_expanded_data_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListExpandedDataSets` call. Provide + # this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListExpandedDataSet` + # must match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new + # + # # Call the list_expanded_data_sets method. + # result = client.list_expanded_data_sets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # p item + # end + # + def list_expanded_data_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_expanded_data_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_expanded_data_sets.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_expanded_data_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_expanded_data_sets request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_expanded_data_sets, "expanded_data_sets", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a ExpandedDataSet. + # + # @overload create_expanded_data_set(request, options = nil) + # Pass arguments to `create_expanded_data_set` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_expanded_data_set(parent: nil, expanded_data_set: nil) + # Pass arguments to `create_expanded_data_set` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param expanded_data_set [::Google::Analytics::Admin::V1alpha::ExpandedDataSet, ::Hash] + # Required. The ExpandedDataSet to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new + # + # # Call the create_expanded_data_set method. + # result = client.create_expanded_data_set request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # p result + # + def create_expanded_data_set request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_expanded_data_set.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_expanded_data_set.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_expanded_data_set.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_expanded_data_set request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a ExpandedDataSet on a property. + # + # @overload update_expanded_data_set(request, options = nil) + # Pass arguments to `update_expanded_data_set` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_expanded_data_set(expanded_data_set: nil, update_mask: nil) + # Pass arguments to `update_expanded_data_set` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param expanded_data_set [::Google::Analytics::Admin::V1alpha::ExpandedDataSet, ::Hash] + # Required. The ExpandedDataSet to update. + # The resource's `name` field is used to identify the ExpandedDataSet to be + # updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new + # + # # Call the update_expanded_data_set method. + # result = client.update_expanded_data_set request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # p result + # + def update_expanded_data_set request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_expanded_data_set.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_expanded_data_set.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_expanded_data_set.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_expanded_data_set request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a ExpandedDataSet on a property. + # + # @overload delete_expanded_data_set(request, options = nil) + # Pass arguments to `delete_expanded_data_set` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_expanded_data_set(name: nil) + # Pass arguments to `delete_expanded_data_set` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Example format: properties/1234/expandedDataSets/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new + # + # # Call the delete_expanded_data_set method. + # result = client.delete_expanded_data_set request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_expanded_data_set request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_expanded_data_set.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_expanded_data_set.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_expanded_data_set.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_expanded_data_set request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single ChannelGroup. + # + # @overload get_channel_group(request, options = nil) + # Pass arguments to `get_channel_group` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_channel_group(name: nil) + # Pass arguments to `get_channel_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The ChannelGroup to get. + # Example format: properties/1234/channelGroups/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new + # + # # Call the get_channel_group method. + # result = client.get_channel_group request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # p result + # + def get_channel_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_channel_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_channel_group.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_channel_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_channel_group request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists ChannelGroups on a property. + # + # @overload list_channel_groups(request, options = nil) + # Pass arguments to `list_channel_groups` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_channel_groups(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_channel_groups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The property for which to list ChannelGroups. + # Example format: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListChannelGroups` call. Provide + # this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListChannelGroups` + # must match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new + # + # # Call the list_channel_groups method. + # result = client.list_channel_groups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::ChannelGroup. + # p item + # end + # + def list_channel_groups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_channel_groups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_channel_groups.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_channel_groups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_channel_groups request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_channel_groups, "channel_groups", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a ChannelGroup. + # + # @overload create_channel_group(request, options = nil) + # Pass arguments to `create_channel_group` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_channel_group(parent: nil, channel_group: nil) + # Pass arguments to `create_channel_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The property for which to create a ChannelGroup. + # Example format: properties/1234 + # @param channel_group [::Google::Analytics::Admin::V1alpha::ChannelGroup, ::Hash] + # Required. The ChannelGroup to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new + # + # # Call the create_channel_group method. + # result = client.create_channel_group request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # p result + # + def create_channel_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_channel_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_channel_group.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_channel_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_channel_group request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a ChannelGroup. + # + # @overload update_channel_group(request, options = nil) + # Pass arguments to `update_channel_group` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_channel_group(channel_group: nil, update_mask: nil) + # Pass arguments to `update_channel_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param channel_group [::Google::Analytics::Admin::V1alpha::ChannelGroup, ::Hash] + # Required. The ChannelGroup to update. + # The resource's `name` field is used to identify the ChannelGroup to be + # updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new + # + # # Call the update_channel_group method. + # result = client.update_channel_group request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # p result + # + def update_channel_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_channel_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_channel_group.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_channel_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_channel_group request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a ChannelGroup on a property. + # + # @overload delete_channel_group(request, options = nil) + # Pass arguments to `delete_channel_group` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_channel_group(name: nil) + # Pass arguments to `delete_channel_group` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The ChannelGroup to delete. + # Example format: properties/1234/channelGroups/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new + # + # # Call the delete_channel_group method. + # result = client.delete_channel_group request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_channel_group request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_channel_group.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_channel_group.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_channel_group.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_channel_group request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a BigQueryLink. + # + # @overload create_big_query_link(request, options = nil) + # Pass arguments to `create_big_query_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_big_query_link(parent: nil, bigquery_link: nil) + # Pass arguments to `create_big_query_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param bigquery_link [::Google::Analytics::Admin::V1alpha::BigQueryLink, ::Hash] + # Required. The BigQueryLink to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new + # + # # Call the create_big_query_link method. + # result = client.create_big_query_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + # p result + # + def create_big_query_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_big_query_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_big_query_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_big_query_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_big_query_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single BigQuery Link. + # + # @overload get_big_query_link(request, options = nil) + # Pass arguments to `get_big_query_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_big_query_link(name: nil) + # Pass arguments to `get_big_query_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the BigQuery link to lookup. + # Format: properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id} + # Example: properties/123/bigQueryLinks/456 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new + # + # # Call the get_big_query_link method. + # result = client.get_big_query_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + # p result + # + def get_big_query_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_big_query_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_big_query_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_big_query_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_big_query_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists BigQuery Links on a property. + # + # @overload list_big_query_links(request, options = nil) + # Pass arguments to `list_big_query_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_big_query_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_big_query_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the property to list BigQuery links under. + # Format: properties/\\{property_id} + # Example: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # A page token, received from a previous `ListBigQueryLinks` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListBigQueryLinks` must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new + # + # # Call the list_big_query_links method. + # result = client.list_big_query_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::BigQueryLink. + # p item + # end + # + def list_big_query_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_big_query_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_big_query_links.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_big_query_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_big_query_links request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_big_query_links, "bigquery_links", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a BigQueryLink on a property. + # + # @overload delete_big_query_link(request, options = nil) + # Pass arguments to `delete_big_query_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_big_query_link(name: nil) + # Pass arguments to `delete_big_query_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The BigQueryLink to delete. + # Example format: properties/1234/bigQueryLinks/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new + # + # # Call the delete_big_query_link method. + # result = client.delete_big_query_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_big_query_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_big_query_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_big_query_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_big_query_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_big_query_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a BigQueryLink. + # + # @overload update_big_query_link(request, options = nil) + # Pass arguments to `update_big_query_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_big_query_link(bigquery_link: nil, update_mask: nil) + # Pass arguments to `update_big_query_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param bigquery_link [::Google::Analytics::Admin::V1alpha::BigQueryLink, ::Hash] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new + # + # # Call the update_big_query_link method. + # result = client.update_big_query_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + # p result + # + def update_big_query_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_big_query_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_big_query_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_big_query_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_big_query_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the enhanced measurement settings for this data stream. + # Note that the stream must enable enhanced measurement for these settings to + # take effect. + # + # @overload get_enhanced_measurement_settings(request, options = nil) + # Pass arguments to `get_enhanced_measurement_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_enhanced_measurement_settings(name: nil) + # Pass arguments to `get_enhanced_measurement_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/dataStreams/\\{data_stream}/enhancedMeasurementSettings + # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new + # + # # Call the get_enhanced_measurement_settings method. + # result = client.get_enhanced_measurement_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. + # p result + # + def get_enhanced_measurement_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_enhanced_measurement_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_enhanced_measurement_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_enhanced_measurement_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_enhanced_measurement_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the enhanced measurement settings for this data stream. + # Note that the stream must enable enhanced measurement for these settings to + # take effect. + # + # @overload update_enhanced_measurement_settings(request, options = nil) + # Pass arguments to `update_enhanced_measurement_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_enhanced_measurement_settings(enhanced_measurement_settings: nil, update_mask: nil) + # Pass arguments to `update_enhanced_measurement_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param enhanced_measurement_settings [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings, ::Hash] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new + # + # # Call the update_enhanced_measurement_settings method. + # result = client.update_enhanced_measurement_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. + # p result + # + def update_enhanced_measurement_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_enhanced_measurement_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_enhanced_measurement_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_enhanced_measurement_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_enhanced_measurement_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Looks up a single AdSenseLink. + # + # @overload get_ad_sense_link(request, options = nil) + # Pass arguments to `get_ad_sense_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_ad_sense_link(name: nil) + # Pass arguments to `get_ad_sense_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Unique identifier for the AdSense Link requested. + # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} + # Example: properties/1234/adSenseLinks/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new + # + # # Call the get_ad_sense_link method. + # result = client.get_ad_sense_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. + # p result + # + def get_ad_sense_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_ad_sense_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_ad_sense_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_ad_sense_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_ad_sense_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an AdSenseLink. + # + # @overload create_ad_sense_link(request, options = nil) + # Pass arguments to `create_ad_sense_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_ad_sense_link(parent: nil, adsense_link: nil) + # Pass arguments to `create_ad_sense_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The property for which to create an AdSense Link. + # Format: properties/\\{propertyId} + # Example: properties/1234 + # @param adsense_link [::Google::Analytics::Admin::V1alpha::AdSenseLink, ::Hash] + # Required. The AdSense Link to create + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new + # + # # Call the create_ad_sense_link method. + # result = client.create_ad_sense_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. + # p result + # + def create_ad_sense_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_ad_sense_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_ad_sense_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_ad_sense_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_ad_sense_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an AdSenseLink. + # + # @overload delete_ad_sense_link(request, options = nil) + # Pass arguments to `delete_ad_sense_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_ad_sense_link(name: nil) + # Pass arguments to `delete_ad_sense_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Unique identifier for the AdSense Link to be deleted. + # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} + # Example: properties/1234/adSenseLinks/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new + # + # # Call the delete_ad_sense_link method. + # result = client.delete_ad_sense_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_ad_sense_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_ad_sense_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_ad_sense_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_ad_sense_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_ad_sense_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists AdSenseLinks on a property. + # + # @overload list_ad_sense_links(request, options = nil) + # Pass arguments to `list_ad_sense_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_ad_sense_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_ad_sense_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Resource name of the parent property. + # Format: properties/\\{propertyId} + # Example: properties/1234 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token received from a previous `ListAdSenseLinks` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListAdSenseLinks` must + # match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new + # + # # Call the list_ad_sense_links method. + # result = client.list_ad_sense_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::AdSenseLink. + # p item + # end + # + def list_ad_sense_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_ad_sense_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_ad_sense_links.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_ad_sense_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_ad_sense_links request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_ad_sense_links, "adsense_links", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single EventCreateRule. + # + # @overload get_event_create_rule(request, options = nil) + # Pass arguments to `get_event_create_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_event_create_rule(name: nil) + # Pass arguments to `get_event_create_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the EventCreateRule to get. + # Example format: properties/123/dataStreams/456/eventCreateRules/789 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new + # + # # Call the get_event_create_rule method. + # result = client.get_event_create_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # p result + # + def get_event_create_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_event_create_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_event_create_rule.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_event_create_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_event_create_rule request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists EventCreateRules on a web data stream. + # + # @overload list_event_create_rules(request, options = nil) + # Pass arguments to `list_event_create_rules` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_event_create_rules(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_event_create_rules` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/123/dataStreams/456 + # @param page_size [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # A page token, received from a previous `ListEventCreateRules` call. Provide + # this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListEventCreateRules` + # must match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new + # + # # Call the list_event_create_rules method. + # result = client.list_event_create_rules request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::EventCreateRule. + # p item + # end + # + def list_event_create_rules request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_event_create_rules.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_event_create_rules.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_event_create_rules.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_event_create_rules request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_event_create_rules, "event_create_rules", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an EventCreateRule. + # + # @overload create_event_create_rule(request, options = nil) + # Pass arguments to `create_event_create_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_event_create_rule(parent: nil, event_create_rule: nil) + # Pass arguments to `create_event_create_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/123/dataStreams/456 + # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash] + # Required. The EventCreateRule to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new + # + # # Call the create_event_create_rule method. + # result = client.create_event_create_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # p result + # + def create_event_create_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_event_create_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_event_create_rule.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_event_create_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_event_create_rule request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an EventCreateRule. + # + # @overload update_event_create_rule(request, options = nil) + # Pass arguments to `update_event_create_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_event_create_rule(event_create_rule: nil, update_mask: nil) + # Pass arguments to `update_event_create_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash] + # Required. The EventCreateRule to update. + # The resource's `name` field is used to identify the EventCreateRule to be + # updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new + # + # # Call the update_event_create_rule method. + # result = client.update_event_create_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # p result + # + def update_event_create_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_event_create_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_event_create_rule.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_event_create_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_event_create_rule request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an EventCreateRule. + # + # @overload delete_event_create_rule(request, options = nil) + # Pass arguments to `delete_event_create_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_event_create_rule(name: nil) + # Pass arguments to `delete_event_create_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Example format: + # properties/123/dataStreams/456/eventCreateRules/789 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new + # + # # Call the delete_event_create_rule method. + # result = client.delete_event_create_rule request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_event_create_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_event_create_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_event_create_rule.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_event_create_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_event_create_rule request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single EventEditRule. + # + # @overload get_event_edit_rule(request, options = nil) + # Pass arguments to `get_event_edit_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_event_edit_rule(name: nil) + # Pass arguments to `get_event_edit_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the EventEditRule to get. + # Example format: properties/123/dataStreams/456/eventEditRules/789 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new + # + # # Call the get_event_edit_rule method. + # result = client.get_event_edit_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + # p result + # + def get_event_edit_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_event_edit_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_event_edit_rule.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_event_edit_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_event_edit_rule request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists EventEditRules on a web data stream. + # + # @overload list_event_edit_rules(request, options = nil) + # Pass arguments to `list_event_edit_rules` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_event_edit_rules(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_event_edit_rules` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/123/dataStreams/456 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # Optional. A page token, received from a previous `ListEventEditRules` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListEventEditRules` + # must match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new + # + # # Call the list_event_edit_rules method. + # result = client.list_event_edit_rules request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::EventEditRule. + # p item + # end + # + def list_event_edit_rules request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_event_edit_rules.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_event_edit_rules.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_event_edit_rules.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_event_edit_rules request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_event_edit_rules, "event_edit_rules", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates an EventEditRule. + # + # @overload create_event_edit_rule(request, options = nil) + # Pass arguments to `create_event_edit_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_event_edit_rule(parent: nil, event_edit_rule: nil) + # Pass arguments to `create_event_edit_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/123/dataStreams/456 + # @param event_edit_rule [::Google::Analytics::Admin::V1alpha::EventEditRule, ::Hash] + # Required. The EventEditRule to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new + # + # # Call the create_event_edit_rule method. + # result = client.create_event_edit_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + # p result + # + def create_event_edit_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_event_edit_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_event_edit_rule.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_event_edit_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_event_edit_rule request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates an EventEditRule. + # + # @overload update_event_edit_rule(request, options = nil) + # Pass arguments to `update_event_edit_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_event_edit_rule(event_edit_rule: nil, update_mask: nil) + # Pass arguments to `update_event_edit_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param event_edit_rule [::Google::Analytics::Admin::V1alpha::EventEditRule, ::Hash] + # Required. The EventEditRule to update. + # The resource's `name` field is used to identify the EventEditRule to be + # updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new + # + # # Call the update_event_edit_rule method. + # result = client.update_event_edit_rule request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + # p result + # + def update_event_edit_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_event_edit_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_event_edit_rule.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_event_edit_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_event_edit_rule request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes an EventEditRule. + # + # @overload delete_event_edit_rule(request, options = nil) + # Pass arguments to `delete_event_edit_rule` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_event_edit_rule(name: nil) + # Pass arguments to `delete_event_edit_rule` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Example format: properties/123/dataStreams/456/eventEditRules/789 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new + # + # # Call the delete_event_edit_rule method. + # result = client.delete_event_edit_rule request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_event_edit_rule request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_event_edit_rule.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_event_edit_rule.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_event_edit_rule.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_event_edit_rule request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Changes the processing order of event edit rules on the specified stream. + # + # @overload reorder_event_edit_rules(request, options = nil) + # Pass arguments to `reorder_event_edit_rules` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload reorder_event_edit_rules(parent: nil, event_edit_rules: nil) + # Pass arguments to `reorder_event_edit_rules` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/123/dataStreams/456 + # @param event_edit_rules [::Array<::String>] + # Required. EventEditRule resource names for the specified data stream, in + # the needed processing order. All EventEditRules for the stream must be + # present in the list. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new + # + # # Call the reorder_event_edit_rules method. + # result = client.reorder_event_edit_rules request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def reorder_event_edit_rules request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.reorder_event_edit_rules.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.reorder_event_edit_rules.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.reorder_event_edit_rules.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.reorder_event_edit_rules request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a DataRedactionSettings on a property. + # + # @overload update_data_redaction_settings(request, options = nil) + # Pass arguments to `update_data_redaction_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_data_redaction_settings(data_redaction_settings: nil, update_mask: nil) + # Pass arguments to `update_data_redaction_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param data_redaction_settings [::Google::Analytics::Admin::V1alpha::DataRedactionSettings, ::Hash] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new + # + # # Call the update_data_redaction_settings method. + # result = client.update_data_redaction_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. + # p result + # + def update_data_redaction_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_data_redaction_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_data_redaction_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_data_redaction_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_data_redaction_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single DataRedactionSettings. + # + # @overload get_data_redaction_settings(request, options = nil) + # Pass arguments to `get_data_redaction_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_data_redaction_settings(name: nil) + # Pass arguments to `get_data_redaction_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/dataStreams/\\{data_stream}/dataRedactionSettings + # Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new + # + # # Call the get_data_redaction_settings method. + # result = client.get_data_redaction_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. + # p result + # + def get_data_redaction_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_data_redaction_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_data_redaction_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_data_redaction_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_data_redaction_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single CalculatedMetric. + # + # @overload get_calculated_metric(request, options = nil) + # Pass arguments to `get_calculated_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_calculated_metric(name: nil) + # Pass arguments to `get_calculated_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CalculatedMetric to get. + # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} + # Example: properties/1234/calculatedMetrics/Metric01 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new + # + # # Call the get_calculated_metric method. + # result = client.get_calculated_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. + # p result + # + def get_calculated_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_calculated_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_calculated_metric.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_calculated_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_calculated_metric request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a CalculatedMetric. + # + # @overload create_calculated_metric(request, options = nil) + # Pass arguments to `create_calculated_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_calculated_metric(parent: nil, calculated_metric_id: nil, calculated_metric: nil) + # Pass arguments to `create_calculated_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: properties/\\{property_id} + # Example: properties/1234 + # @param calculated_metric_id [::String] + # Required. The ID to use for the calculated metric which will become the + # final component of the calculated metric's resource name. + # + # This value should be 1-80 characters and valid characters are + # /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique + # between all calculated metrics under a property. The calculated_metric_id + # is used when referencing this calculated metric from external APIs, for + # example, "calcMetric:\\{calculated_metric_id}". + # @param calculated_metric [::Google::Analytics::Admin::V1alpha::CalculatedMetric, ::Hash] + # Required. The CalculatedMetric to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new + # + # # Call the create_calculated_metric method. + # result = client.create_calculated_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. + # p result + # + def create_calculated_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_calculated_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_calculated_metric.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_calculated_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_calculated_metric request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists CalculatedMetrics on a property. + # + # @overload list_calculated_metrics(request, options = nil) + # Pass arguments to `list_calculated_metrics` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_calculated_metrics(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_calculated_metrics` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Example format: properties/1234 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @param page_token [::String] + # Optional. A page token, received from a previous `ListCalculatedMetrics` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCalculatedMetrics` + # must match the call that provided the page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CalculatedMetric>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CalculatedMetric>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new + # + # # Call the list_calculated_metrics method. + # result = client.list_calculated_metrics request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::CalculatedMetric. + # p item + # end + # + def list_calculated_metrics request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_calculated_metrics.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_calculated_metrics.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_calculated_metrics.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_calculated_metrics request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_calculated_metrics, "calculated_metrics", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a CalculatedMetric on a property. + # + # @overload update_calculated_metric(request, options = nil) + # Pass arguments to `update_calculated_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_calculated_metric(calculated_metric: nil, update_mask: nil) + # Pass arguments to `update_calculated_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param calculated_metric [::Google::Analytics::Admin::V1alpha::CalculatedMetric, ::Hash] + # Required. The CalculatedMetric to update + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new + # + # # Call the update_calculated_metric method. + # result = client.update_calculated_metric request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. + # p result + # + def update_calculated_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_calculated_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_calculated_metric.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_calculated_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_calculated_metric request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a CalculatedMetric on a property. + # + # @overload delete_calculated_metric(request, options = nil) + # Pass arguments to `delete_calculated_metric` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_calculated_metric(name: nil) + # Pass arguments to `delete_calculated_metric` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the CalculatedMetric to delete. + # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} + # Example: properties/1234/calculatedMetrics/Metric01 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new + # + # # Call the delete_calculated_metric method. + # result = client.delete_calculated_metric request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_calculated_metric request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_calculated_metric.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_calculated_metric.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_calculated_metric.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_calculated_metric request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a roll-up property and all roll-up property source links. + # + # @overload create_rollup_property(request, options = nil) + # Pass arguments to `create_rollup_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_rollup_property(rollup_property: nil, source_properties: nil) + # Pass arguments to `create_rollup_property` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param rollup_property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] + # Required. The roll-up property to create. + # @param source_properties [::Array<::String>] + # Optional. The resource names of properties that will be sources to the + # created roll-up property. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new + # + # # Call the create_rollup_property method. + # result = client.create_rollup_property request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse. + # p result + # + def create_rollup_property request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_rollup_property.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_rollup_property.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_rollup_property.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_rollup_property request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single roll-up property source Link. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + # + # @overload get_rollup_property_source_link(request, options = nil) + # Pass arguments to `get_rollup_property_source_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_rollup_property_source_link(name: nil) + # Pass arguments to `get_rollup_property_source_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the roll-up property source link to lookup. + # Format: + # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} + # Example: properties/123/rollupPropertySourceLinks/456 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new + # + # # Call the get_rollup_property_source_link method. + # result = client.get_rollup_property_source_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. + # p result + # + def get_rollup_property_source_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_rollup_property_source_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_rollup_property_source_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_rollup_property_source_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_rollup_property_source_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists roll-up property source Links on a property. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + # + # @overload list_rollup_property_source_links(request, options = nil) + # Pass arguments to `list_rollup_property_source_links` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_rollup_property_source_links(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_rollup_property_source_links` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the roll-up property to list roll-up property source + # links under. Format: properties/\\{property_id} Example: properties/1234 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListRollupPropertySourceLinks` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListRollupPropertySourceLinks` must match the call that provided the page + # token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new + # + # # Call the list_rollup_property_source_links method. + # result = client.list_rollup_property_source_links request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. + # p item + # end + # + def list_rollup_property_source_links request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_rollup_property_source_links.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_rollup_property_source_links.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_rollup_property_source_links.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_rollup_property_source_links request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_rollup_property_source_links, "rollup_property_source_links", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a roll-up property source link. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + # + # @overload create_rollup_property_source_link(request, options = nil) + # Pass arguments to `create_rollup_property_source_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_rollup_property_source_link(parent: nil, rollup_property_source_link: nil) + # Pass arguments to `create_rollup_property_source_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Format: properties/\\{property_id} + # Example: properties/1234 + # @param rollup_property_source_link [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink, ::Hash] + # Required. The roll-up property source link to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new + # + # # Call the create_rollup_property_source_link method. + # result = client.create_rollup_property_source_link request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. + # p result + # + def create_rollup_property_source_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_rollup_property_source_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_rollup_property_source_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_rollup_property_source_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_rollup_property_source_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a roll-up property source link. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + # + # @overload delete_rollup_property_source_link(request, options = nil) + # Pass arguments to `delete_rollup_property_source_link` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_rollup_property_source_link(name: nil) + # Pass arguments to `delete_rollup_property_source_link` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Format: + # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} + # Example: properties/1234/rollupPropertySourceLinks/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new + # + # # Call the delete_rollup_property_source_link method. + # result = client.delete_rollup_property_source_link request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_rollup_property_source_link request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_rollup_property_source_link.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_rollup_property_source_link.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_rollup_property_source_link.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_rollup_property_source_link request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Create a subproperty and a subproperty event filter that applies to the + # created subproperty. + # + # @overload provision_subproperty(request, options = nil) + # Pass arguments to `provision_subproperty` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload provision_subproperty(subproperty: nil, subproperty_event_filter: nil, custom_dimension_and_metric_synchronization_mode: nil) + # Pass arguments to `provision_subproperty` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param subproperty [::Google::Analytics::Admin::V1alpha::Property, ::Hash] + # Required. The subproperty to create. + # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] + # Optional. The subproperty event filter to create on an ordinary property. + # @param custom_dimension_and_metric_synchronization_mode [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig::SynchronizationMode] + # Optional. The subproperty feature synchronization mode for Custom + # Dimensions and Metrics + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new + # + # # Call the provision_subproperty method. + # result = client.provision_subproperty request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse. + # p result + # + def provision_subproperty request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.provision_subproperty.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.provision_subproperty.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.provision_subproperty.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.provision_subproperty request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a subproperty Event Filter. + # + # @overload create_subproperty_event_filter(request, options = nil) + # Pass arguments to `create_subproperty_event_filter` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_subproperty_event_filter(parent: nil, subproperty_event_filter: nil) + # Pass arguments to `create_subproperty_event_filter` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The ordinary property for which to create a subproperty event + # filter. Format: properties/property_id Example: properties/123 + # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] + # Required. The subproperty event filter to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new + # + # # Call the create_subproperty_event_filter method. + # result = client.create_subproperty_event_filter request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + # p result + # + def create_subproperty_event_filter request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_subproperty_event_filter.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_subproperty_event_filter.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_subproperty_event_filter.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_subproperty_event_filter request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single subproperty Event Filter. + # + # @overload get_subproperty_event_filter(request, options = nil) + # Pass arguments to `get_subproperty_event_filter` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_subproperty_event_filter(name: nil) + # Pass arguments to `get_subproperty_event_filter` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Resource name of the subproperty event filter to lookup. + # Format: + # properties/property_id/subpropertyEventFilters/subproperty_event_filter + # Example: properties/123/subpropertyEventFilters/456 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new + # + # # Call the get_subproperty_event_filter method. + # result = client.get_subproperty_event_filter request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + # p result + # + def get_subproperty_event_filter request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_subproperty_event_filter.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_subproperty_event_filter.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_subproperty_event_filter.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_subproperty_event_filter request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List all subproperty Event Filters on a property. + # + # @overload list_subproperty_event_filters(request, options = nil) + # Pass arguments to `list_subproperty_event_filters` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_subproperty_event_filters(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_subproperty_event_filters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Resource name of the ordinary property. + # Format: properties/property_id + # Example: properties/123 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. If unspecified, + # at most 50 resources will be returned. The maximum value is 200; (higher + # values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + # page. When paginating, all other parameters provided to + # `ListSubpropertyEventFilters` must match the call that provided the page + # token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new + # + # # Call the list_subproperty_event_filters method. + # result = client.list_subproperty_event_filters request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + # p item + # end + # + def list_subproperty_event_filters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_subproperty_event_filters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_subproperty_event_filters.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_subproperty_event_filters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_subproperty_event_filters request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_event_filters, "subproperty_event_filters", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a subproperty Event Filter. + # + # @overload update_subproperty_event_filter(request, options = nil) + # Pass arguments to `update_subproperty_event_filter` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_subproperty_event_filter(subproperty_event_filter: nil, update_mask: nil) + # Pass arguments to `update_subproperty_event_filter` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] + # Required. The subproperty event filter to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Required. The list of fields to update. Field names must be in snake case + # (for example, "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new + # + # # Call the update_subproperty_event_filter method. + # result = client.update_subproperty_event_filter request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + # p result + # + def update_subproperty_event_filter request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_subproperty_event_filter.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_subproperty_event_filter.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_subproperty_event_filter.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_subproperty_event_filter request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a subproperty event filter. + # + # @overload delete_subproperty_event_filter(request, options = nil) + # Pass arguments to `delete_subproperty_event_filter` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_subproperty_event_filter(name: nil) + # Pass arguments to `delete_subproperty_event_filter` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Resource name of the subproperty event filter to delete. + # Format: + # properties/property_id/subpropertyEventFilters/subproperty_event_filter + # Example: properties/123/subpropertyEventFilters/456 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new + # + # # Call the delete_subproperty_event_filter method. + # result = client.delete_subproperty_event_filter request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_subproperty_event_filter request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_subproperty_event_filter.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_subproperty_event_filter.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_subproperty_event_filter.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_subproperty_event_filter request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a Reporting Data Annotation. + # + # @overload create_reporting_data_annotation(request, options = nil) + # Pass arguments to `create_reporting_data_annotation` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_reporting_data_annotation(parent: nil, reporting_data_annotation: nil) + # Pass arguments to `create_reporting_data_annotation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The property for which to create a Reporting Data Annotation. + # Format: properties/property_id + # Example: properties/123 + # @param reporting_data_annotation [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation, ::Hash] + # Required. The Reporting Data Annotation to create. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new + # + # # Call the create_reporting_data_annotation method. + # result = client.create_reporting_data_annotation request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + # p result + # + def create_reporting_data_annotation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_reporting_data_annotation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_reporting_data_annotation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_reporting_data_annotation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.create_reporting_data_annotation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup a single Reporting Data Annotation. + # + # @overload get_reporting_data_annotation(request, options = nil) + # Pass arguments to `get_reporting_data_annotation` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_reporting_data_annotation(name: nil) + # Pass arguments to `get_reporting_data_annotation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Resource name of the Reporting Data Annotation to lookup. + # Format: + # properties/property_id/reportingDataAnnotations/reportingDataAnnotation + # Example: properties/123/reportingDataAnnotations/456 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new + # + # # Call the get_reporting_data_annotation method. + # result = client.get_reporting_data_annotation request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + # p result + # + def get_reporting_data_annotation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_reporting_data_annotation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_reporting_data_annotation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_reporting_data_annotation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_reporting_data_annotation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List all Reporting Data Annotations on a property. + # + # @overload list_reporting_data_annotations(request, options = nil) + # Pass arguments to `list_reporting_data_annotations` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_reporting_data_annotations(parent: nil, filter: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_reporting_data_annotations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Resource name of the property. + # Format: properties/property_id + # Example: properties/123 + # @param filter [::String] + # Optional. Filter that restricts which reporting data annotations under the + # parent property are listed. + # + # Supported fields are: + # + # * 'name' + # * `title` + # * `description` + # * `annotation_date` + # * `annotation_date_range` + # * `color` + # + # Additionally, this API provides the following helper functions: + # + # * annotation_duration() : the duration that this annotation marks, + # [durations](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/duration.proto). + # expect a numeric representation of seconds followed by an `s` suffix. + # * is_annotation_in_range(start_date, end_date) : if the annotation is in + # the range specified by the `start_date` and `end_date`. The dates are in + # ISO-8601 format, for example `2031-06-28`. + # + # Supported operations: + # + # * `=` : equals + # * `!=` : not equals + # * `<` : less than + # * `>` : greater than + # * `<=` : less than or equals + # * `>=` : greater than or equals + # * `:` : has operator + # * `=~` : [regular expression](https://github.com/google/re2/wiki/Syntax) + # match + # * `!~` : [regular expression](https://github.com/google/re2/wiki/Syntax) + # does not match + # * `NOT` : Logical not + # * `AND` : Logical and + # * `OR` : Logical or + # + # Examples: + # + # 1. `title="Holiday Sale"` + # 2. `description=~"[Bb]ig [Gg]ame.*[Ss]ale"` + # 3. `is_annotation_in_range("2025-12-25", "2026-01-16") = true` + # 4. `annotation_duration() >= 172800s AND title:BOGO` + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. If unspecified, + # at most 50 resources will be returned. The maximum value is 200; (higher + # values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListReportingDataAnnotations` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListReportingDataAnnotations` must match the call that provided the page + # token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new + # + # # Call the list_reporting_data_annotations method. + # result = client.list_reporting_data_annotations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + # p item + # end + # + def list_reporting_data_annotations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_reporting_data_annotations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_reporting_data_annotations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_reporting_data_annotations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_reporting_data_annotations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_reporting_data_annotations, "reporting_data_annotations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a Reporting Data Annotation. + # + # @overload update_reporting_data_annotation(request, options = nil) + # Pass arguments to `update_reporting_data_annotation` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_reporting_data_annotation(reporting_data_annotation: nil, update_mask: nil) + # Pass arguments to `update_reporting_data_annotation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param reporting_data_annotation [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation, ::Hash] + # Required. The Reporting Data Annotation to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. Field names must be in snake case + # (for example, "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new + # + # # Call the update_reporting_data_annotation method. + # result = client.update_reporting_data_annotation request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + # p result + # + def update_reporting_data_annotation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_reporting_data_annotation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_reporting_data_annotation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_reporting_data_annotation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_reporting_data_annotation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a Reporting Data Annotation. + # + # @overload delete_reporting_data_annotation(request, options = nil) + # Pass arguments to `delete_reporting_data_annotation` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_reporting_data_annotation(name: nil) + # Pass arguments to `delete_reporting_data_annotation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Resource name of the Reporting Data Annotation to delete. + # Format: + # properties/property_id/reportingDataAnnotations/reporting_data_annotation + # Example: properties/123/reportingDataAnnotations/456 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new + # + # # Call the delete_reporting_data_annotation method. + # result = client.delete_reporting_data_annotation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_reporting_data_annotation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_reporting_data_annotation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_reporting_data_annotation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_reporting_data_annotation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.delete_reporting_data_annotation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Submits a request for user deletion for a property. + # + # @overload submit_user_deletion(request, options = nil) + # Pass arguments to `submit_user_deletion` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload submit_user_deletion(user_id: nil, client_id: nil, app_instance_id: nil, user_provided_data: nil, name: nil) + # Pass arguments to `submit_user_deletion` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param user_id [::String] + # Google Analytics [user + # ID](https://firebase.google.com/docs/analytics/userid). + # + # Note: The following parameters are mutually exclusive: `user_id`, `client_id`, `app_instance_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param client_id [::String] + # Google Analytics [client + # ID](https://support.google.com/analytics/answer/11593727). + # + # Note: The following parameters are mutually exclusive: `client_id`, `user_id`, `app_instance_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param app_instance_id [::String] + # Firebase [application instance + # ID](https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.html#getAppInstanceId). + # + # Note: The following parameters are mutually exclusive: `app_instance_id`, `user_id`, `client_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param user_provided_data [::String] + # [User-provided + # data](https://support.google.com/analytics/answer/14077171). May contain + # either one email address or one phone number. + # + # Email addresses should be normalized as such: + # + # * lowercase + # * remove periods before @ for gmail.com/googlemail.com addresses + # * remove all spaces + # + # Phone numbers should be normalized as such: + # + # * remove all non digit characters + # * add + prefix + # + # Note: The following parameters are mutually exclusive: `user_provided_data`, `user_id`, `client_id`, `app_instance_id`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. + # @param name [::String] + # Required. The name of the property to submit user deletion for. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new + # + # # Call the submit_user_deletion method. + # result = client.submit_user_deletion request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse. + # p result + # + def submit_user_deletion request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.submit_user_deletion.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.submit_user_deletion.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.submit_user_deletion.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.submit_user_deletion request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List all `SubpropertySyncConfig` resources for a property. + # + # @overload list_subproperty_sync_configs(request, options = nil) + # Pass arguments to `list_subproperty_sync_configs` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_subproperty_sync_configs(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_subproperty_sync_configs` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Resource name of the property. + # Format: properties/property_id + # Example: properties/123 + # @param page_size [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. If unspecified, + # at most 50 resources will be returned. The maximum value is 200; (higher + # values will be coerced to the maximum) + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListSubpropertySyncConfig` call. Provide this to retrieve the subsequent + # page. When paginating, all other parameters provided to + # `ListSubpropertySyncConfig` must match the call that provided the page + # token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new + # + # # Call the list_subproperty_sync_configs method. + # result = client.list_subproperty_sync_configs request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. + # p item + # end + # + def list_subproperty_sync_configs request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_subproperty_sync_configs.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_subproperty_sync_configs.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_subproperty_sync_configs.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.list_subproperty_sync_configs request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_sync_configs, "subproperty_sync_configs", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a `SubpropertySyncConfig`. + # + # @overload update_subproperty_sync_config(request, options = nil) + # Pass arguments to `update_subproperty_sync_config` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_subproperty_sync_config(subproperty_sync_config: nil, update_mask: nil) + # Pass arguments to `update_subproperty_sync_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param subproperty_sync_config [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig, ::Hash] + # Required. The `SubpropertySyncConfig` to update. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to update. Field names must be in snake case + # (for example, "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new + # + # # Call the update_subproperty_sync_config method. + # result = client.update_subproperty_sync_config request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. + # p result + # + def update_subproperty_sync_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_subproperty_sync_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_subproperty_sync_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_subproperty_sync_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_subproperty_sync_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lookup for a single `SubpropertySyncConfig`. + # + # @overload get_subproperty_sync_config(request, options = nil) + # Pass arguments to `get_subproperty_sync_config` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_subproperty_sync_config(name: nil) + # Pass arguments to `get_subproperty_sync_config` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Resource name of the SubpropertySyncConfig to lookup. + # Format: + # properties/\\{ordinary_property_id}/subpropertySyncConfigs/\\{subproperty_id} + # Example: properties/1234/subpropertySyncConfigs/5678 + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new + # + # # Call the get_subproperty_sync_config method. + # result = client.get_subproperty_sync_config request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. + # p result + # + def get_subproperty_sync_config request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_subproperty_sync_config.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_subproperty_sync_config.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_subproperty_sync_config.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_subproperty_sync_config request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Returns the reporting identity settings for this property. + # + # @overload get_reporting_identity_settings(request, options = nil) + # Pass arguments to `get_reporting_identity_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_reporting_identity_settings(name: nil) + # Pass arguments to `get_reporting_identity_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/reportingIdentitySettings + # Example: "properties/1000/reportingIdentitySettings" + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new + # + # # Call the get_reporting_identity_settings method. + # result = client.get_reporting_identity_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. + # p result + # + def get_reporting_identity_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_reporting_identity_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_reporting_identity_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_reporting_identity_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_reporting_identity_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the reporting identity settings for this property. + # + # @overload update_reporting_identity_settings(request, options = nil) + # Pass arguments to `update_reporting_identity_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_reporting_identity_settings(reporting_identity_settings: nil, update_mask: nil) + # Pass arguments to `update_reporting_identity_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param reporting_identity_settings [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings, ::Hash] + # Required. The reporting identity settings to update. + # The settings' `name` field is used to identify the settings. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to be updated. Field names must be in snake + # case (for example, "field_to_update"). Omitted fields will not be updated. + # To replace the entire entity, use one path with the string "*" to match all + # fields. If omitted, the service will treat it as an implied field mask + # equivalent to all fields that are populated. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new + # + # # Call the update_reporting_identity_settings method. + # result = client.update_reporting_identity_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. + # p result + # + def update_reporting_identity_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_reporting_identity_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_reporting_identity_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_reporting_identity_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_reporting_identity_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Looks up settings related to user-provided data for a property. + # + # @overload get_user_provided_data_settings(request, options = nil) + # Pass arguments to `get_user_provided_data_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_user_provided_data_settings(name: nil) + # Pass arguments to `get_user_provided_data_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the user provided data settings to retrieve. + # Format: properties/\\{property}/userProvidedDataSettings + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new + # + # # Call the get_user_provided_data_settings method. + # result = client.get_user_provided_data_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::UserProvidedDataSettings. + # p result + # + def get_user_provided_data_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_user_provided_data_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_user_provided_data_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_user_provided_data_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.get_user_provided_data_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the AnalyticsAdminService REST API. + # + # This class represents the configuration for AnalyticsAdminService REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # get_account to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.get_account.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.get_account.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "analyticsadmin.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the AnalyticsAdminService API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `get_account` + # @return [::Gapic::Config::Method] + # + attr_reader :get_account + ## + # RPC-specific configuration for `list_accounts` + # @return [::Gapic::Config::Method] + # + attr_reader :list_accounts + ## + # RPC-specific configuration for `delete_account` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_account + ## + # RPC-specific configuration for `update_account` + # @return [::Gapic::Config::Method] + # + attr_reader :update_account + ## + # RPC-specific configuration for `provision_account_ticket` + # @return [::Gapic::Config::Method] + # + attr_reader :provision_account_ticket + ## + # RPC-specific configuration for `list_account_summaries` + # @return [::Gapic::Config::Method] + # + attr_reader :list_account_summaries + ## + # RPC-specific configuration for `get_property` + # @return [::Gapic::Config::Method] + # + attr_reader :get_property + ## + # RPC-specific configuration for `list_properties` + # @return [::Gapic::Config::Method] + # + attr_reader :list_properties + ## + # RPC-specific configuration for `create_property` + # @return [::Gapic::Config::Method] + # + attr_reader :create_property + ## + # RPC-specific configuration for `delete_property` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_property + ## + # RPC-specific configuration for `update_property` + # @return [::Gapic::Config::Method] + # + attr_reader :update_property + ## + # RPC-specific configuration for `create_firebase_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_firebase_link + ## + # RPC-specific configuration for `delete_firebase_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_firebase_link + ## + # RPC-specific configuration for `list_firebase_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_firebase_links + ## + # RPC-specific configuration for `get_global_site_tag` + # @return [::Gapic::Config::Method] + # + attr_reader :get_global_site_tag + ## + # RPC-specific configuration for `create_google_ads_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_google_ads_link + ## + # RPC-specific configuration for `update_google_ads_link` + # @return [::Gapic::Config::Method] + # + attr_reader :update_google_ads_link + ## + # RPC-specific configuration for `delete_google_ads_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_google_ads_link + ## + # RPC-specific configuration for `list_google_ads_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_google_ads_links + ## + # RPC-specific configuration for `get_data_sharing_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_data_sharing_settings + ## + # RPC-specific configuration for `get_measurement_protocol_secret` + # @return [::Gapic::Config::Method] + # + attr_reader :get_measurement_protocol_secret + ## + # RPC-specific configuration for `list_measurement_protocol_secrets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_measurement_protocol_secrets + ## + # RPC-specific configuration for `create_measurement_protocol_secret` + # @return [::Gapic::Config::Method] + # + attr_reader :create_measurement_protocol_secret + ## + # RPC-specific configuration for `delete_measurement_protocol_secret` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_measurement_protocol_secret + ## + # RPC-specific configuration for `update_measurement_protocol_secret` + # @return [::Gapic::Config::Method] + # + attr_reader :update_measurement_protocol_secret + ## + # RPC-specific configuration for `acknowledge_user_data_collection` + # @return [::Gapic::Config::Method] + # + attr_reader :acknowledge_user_data_collection + ## + # RPC-specific configuration for `get_sk_ad_network_conversion_value_schema` + # @return [::Gapic::Config::Method] + # + attr_reader :get_sk_ad_network_conversion_value_schema + ## + # RPC-specific configuration for `create_sk_ad_network_conversion_value_schema` + # @return [::Gapic::Config::Method] + # + attr_reader :create_sk_ad_network_conversion_value_schema + ## + # RPC-specific configuration for `delete_sk_ad_network_conversion_value_schema` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_sk_ad_network_conversion_value_schema + ## + # RPC-specific configuration for `update_sk_ad_network_conversion_value_schema` + # @return [::Gapic::Config::Method] + # + attr_reader :update_sk_ad_network_conversion_value_schema + ## + # RPC-specific configuration for `list_sk_ad_network_conversion_value_schemas` + # @return [::Gapic::Config::Method] + # + attr_reader :list_sk_ad_network_conversion_value_schemas + ## + # RPC-specific configuration for `search_change_history_events` + # @return [::Gapic::Config::Method] + # + attr_reader :search_change_history_events + ## + # RPC-specific configuration for `get_google_signals_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_google_signals_settings + ## + # RPC-specific configuration for `update_google_signals_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_google_signals_settings + ## + # RPC-specific configuration for `create_conversion_event` + # @return [::Gapic::Config::Method] + # + attr_reader :create_conversion_event + ## + # RPC-specific configuration for `update_conversion_event` + # @return [::Gapic::Config::Method] + # + attr_reader :update_conversion_event + ## + # RPC-specific configuration for `get_conversion_event` + # @return [::Gapic::Config::Method] + # + attr_reader :get_conversion_event + ## + # RPC-specific configuration for `delete_conversion_event` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_conversion_event + ## + # RPC-specific configuration for `list_conversion_events` + # @return [::Gapic::Config::Method] + # + attr_reader :list_conversion_events + ## + # RPC-specific configuration for `create_key_event` + # @return [::Gapic::Config::Method] + # + attr_reader :create_key_event + ## + # RPC-specific configuration for `update_key_event` + # @return [::Gapic::Config::Method] + # + attr_reader :update_key_event + ## + # RPC-specific configuration for `get_key_event` + # @return [::Gapic::Config::Method] + # + attr_reader :get_key_event + ## + # RPC-specific configuration for `delete_key_event` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_key_event + ## + # RPC-specific configuration for `list_key_events` + # @return [::Gapic::Config::Method] + # + attr_reader :list_key_events + ## + # RPC-specific configuration for `get_display_video360_advertiser_link` + # @return [::Gapic::Config::Method] + # + attr_reader :get_display_video360_advertiser_link + ## + # RPC-specific configuration for `list_display_video360_advertiser_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_display_video360_advertiser_links + ## + # RPC-specific configuration for `create_display_video360_advertiser_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_display_video360_advertiser_link + ## + # RPC-specific configuration for `delete_display_video360_advertiser_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_display_video360_advertiser_link + ## + # RPC-specific configuration for `update_display_video360_advertiser_link` + # @return [::Gapic::Config::Method] + # + attr_reader :update_display_video360_advertiser_link + ## + # RPC-specific configuration for `get_display_video360_advertiser_link_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :get_display_video360_advertiser_link_proposal + ## + # RPC-specific configuration for `list_display_video360_advertiser_link_proposals` + # @return [::Gapic::Config::Method] + # + attr_reader :list_display_video360_advertiser_link_proposals + ## + # RPC-specific configuration for `create_display_video360_advertiser_link_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :create_display_video360_advertiser_link_proposal + ## + # RPC-specific configuration for `delete_display_video360_advertiser_link_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_display_video360_advertiser_link_proposal + ## + # RPC-specific configuration for `approve_display_video360_advertiser_link_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :approve_display_video360_advertiser_link_proposal + ## + # RPC-specific configuration for `cancel_display_video360_advertiser_link_proposal` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_display_video360_advertiser_link_proposal + ## + # RPC-specific configuration for `create_custom_dimension` + # @return [::Gapic::Config::Method] + # + attr_reader :create_custom_dimension + ## + # RPC-specific configuration for `update_custom_dimension` + # @return [::Gapic::Config::Method] + # + attr_reader :update_custom_dimension + ## + # RPC-specific configuration for `list_custom_dimensions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_custom_dimensions + ## + # RPC-specific configuration for `archive_custom_dimension` + # @return [::Gapic::Config::Method] + # + attr_reader :archive_custom_dimension + ## + # RPC-specific configuration for `get_custom_dimension` + # @return [::Gapic::Config::Method] + # + attr_reader :get_custom_dimension + ## + # RPC-specific configuration for `create_custom_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :create_custom_metric + ## + # RPC-specific configuration for `update_custom_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :update_custom_metric + ## + # RPC-specific configuration for `list_custom_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :list_custom_metrics + ## + # RPC-specific configuration for `archive_custom_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :archive_custom_metric + ## + # RPC-specific configuration for `get_custom_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :get_custom_metric + ## + # RPC-specific configuration for `get_data_retention_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_data_retention_settings + ## + # RPC-specific configuration for `update_data_retention_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_data_retention_settings + ## + # RPC-specific configuration for `create_data_stream` + # @return [::Gapic::Config::Method] + # + attr_reader :create_data_stream + ## + # RPC-specific configuration for `delete_data_stream` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_data_stream + ## + # RPC-specific configuration for `update_data_stream` + # @return [::Gapic::Config::Method] + # + attr_reader :update_data_stream + ## + # RPC-specific configuration for `list_data_streams` + # @return [::Gapic::Config::Method] + # + attr_reader :list_data_streams + ## + # RPC-specific configuration for `get_data_stream` + # @return [::Gapic::Config::Method] + # + attr_reader :get_data_stream + ## + # RPC-specific configuration for `get_audience` + # @return [::Gapic::Config::Method] + # + attr_reader :get_audience + ## + # RPC-specific configuration for `list_audiences` + # @return [::Gapic::Config::Method] + # + attr_reader :list_audiences + ## + # RPC-specific configuration for `create_audience` + # @return [::Gapic::Config::Method] + # + attr_reader :create_audience + ## + # RPC-specific configuration for `update_audience` + # @return [::Gapic::Config::Method] + # + attr_reader :update_audience + ## + # RPC-specific configuration for `archive_audience` + # @return [::Gapic::Config::Method] + # + attr_reader :archive_audience + ## + # RPC-specific configuration for `get_search_ads360_link` + # @return [::Gapic::Config::Method] + # + attr_reader :get_search_ads360_link + ## + # RPC-specific configuration for `list_search_ads360_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_search_ads360_links + ## + # RPC-specific configuration for `create_search_ads360_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_search_ads360_link + ## + # RPC-specific configuration for `delete_search_ads360_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_search_ads360_link + ## + # RPC-specific configuration for `update_search_ads360_link` + # @return [::Gapic::Config::Method] + # + attr_reader :update_search_ads360_link + ## + # RPC-specific configuration for `get_attribution_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_attribution_settings + ## + # RPC-specific configuration for `update_attribution_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_attribution_settings + ## + # RPC-specific configuration for `run_access_report` + # @return [::Gapic::Config::Method] + # + attr_reader :run_access_report + ## + # RPC-specific configuration for `create_access_binding` + # @return [::Gapic::Config::Method] + # + attr_reader :create_access_binding + ## + # RPC-specific configuration for `get_access_binding` + # @return [::Gapic::Config::Method] + # + attr_reader :get_access_binding + ## + # RPC-specific configuration for `update_access_binding` + # @return [::Gapic::Config::Method] + # + attr_reader :update_access_binding + ## + # RPC-specific configuration for `delete_access_binding` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_access_binding + ## + # RPC-specific configuration for `list_access_bindings` + # @return [::Gapic::Config::Method] + # + attr_reader :list_access_bindings + ## + # RPC-specific configuration for `batch_create_access_bindings` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_create_access_bindings + ## + # RPC-specific configuration for `batch_get_access_bindings` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_get_access_bindings + ## + # RPC-specific configuration for `batch_update_access_bindings` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_update_access_bindings + ## + # RPC-specific configuration for `batch_delete_access_bindings` + # @return [::Gapic::Config::Method] + # + attr_reader :batch_delete_access_bindings + ## + # RPC-specific configuration for `get_expanded_data_set` + # @return [::Gapic::Config::Method] + # + attr_reader :get_expanded_data_set + ## + # RPC-specific configuration for `list_expanded_data_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_expanded_data_sets + ## + # RPC-specific configuration for `create_expanded_data_set` + # @return [::Gapic::Config::Method] + # + attr_reader :create_expanded_data_set + ## + # RPC-specific configuration for `update_expanded_data_set` + # @return [::Gapic::Config::Method] + # + attr_reader :update_expanded_data_set + ## + # RPC-specific configuration for `delete_expanded_data_set` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_expanded_data_set + ## + # RPC-specific configuration for `get_channel_group` + # @return [::Gapic::Config::Method] + # + attr_reader :get_channel_group + ## + # RPC-specific configuration for `list_channel_groups` + # @return [::Gapic::Config::Method] + # + attr_reader :list_channel_groups + ## + # RPC-specific configuration for `create_channel_group` + # @return [::Gapic::Config::Method] + # + attr_reader :create_channel_group + ## + # RPC-specific configuration for `update_channel_group` + # @return [::Gapic::Config::Method] + # + attr_reader :update_channel_group + ## + # RPC-specific configuration for `delete_channel_group` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_channel_group + ## + # RPC-specific configuration for `create_big_query_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_big_query_link + ## + # RPC-specific configuration for `get_big_query_link` + # @return [::Gapic::Config::Method] + # + attr_reader :get_big_query_link + ## + # RPC-specific configuration for `list_big_query_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_big_query_links + ## + # RPC-specific configuration for `delete_big_query_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_big_query_link + ## + # RPC-specific configuration for `update_big_query_link` + # @return [::Gapic::Config::Method] + # + attr_reader :update_big_query_link + ## + # RPC-specific configuration for `get_enhanced_measurement_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_enhanced_measurement_settings + ## + # RPC-specific configuration for `update_enhanced_measurement_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_enhanced_measurement_settings + ## + # RPC-specific configuration for `get_ad_sense_link` + # @return [::Gapic::Config::Method] + # + attr_reader :get_ad_sense_link + ## + # RPC-specific configuration for `create_ad_sense_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_ad_sense_link + ## + # RPC-specific configuration for `delete_ad_sense_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_ad_sense_link + ## + # RPC-specific configuration for `list_ad_sense_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_ad_sense_links + ## + # RPC-specific configuration for `get_event_create_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :get_event_create_rule + ## + # RPC-specific configuration for `list_event_create_rules` + # @return [::Gapic::Config::Method] + # + attr_reader :list_event_create_rules + ## + # RPC-specific configuration for `create_event_create_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :create_event_create_rule + ## + # RPC-specific configuration for `update_event_create_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :update_event_create_rule + ## + # RPC-specific configuration for `delete_event_create_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_event_create_rule + ## + # RPC-specific configuration for `get_event_edit_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :get_event_edit_rule + ## + # RPC-specific configuration for `list_event_edit_rules` + # @return [::Gapic::Config::Method] + # + attr_reader :list_event_edit_rules + ## + # RPC-specific configuration for `create_event_edit_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :create_event_edit_rule + ## + # RPC-specific configuration for `update_event_edit_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :update_event_edit_rule + ## + # RPC-specific configuration for `delete_event_edit_rule` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_event_edit_rule + ## + # RPC-specific configuration for `reorder_event_edit_rules` + # @return [::Gapic::Config::Method] + # + attr_reader :reorder_event_edit_rules + ## + # RPC-specific configuration for `update_data_redaction_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_data_redaction_settings + ## + # RPC-specific configuration for `get_data_redaction_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_data_redaction_settings + ## + # RPC-specific configuration for `get_calculated_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :get_calculated_metric + ## + # RPC-specific configuration for `create_calculated_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :create_calculated_metric + ## + # RPC-specific configuration for `list_calculated_metrics` + # @return [::Gapic::Config::Method] + # + attr_reader :list_calculated_metrics + ## + # RPC-specific configuration for `update_calculated_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :update_calculated_metric + ## + # RPC-specific configuration for `delete_calculated_metric` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_calculated_metric + ## + # RPC-specific configuration for `create_rollup_property` + # @return [::Gapic::Config::Method] + # + attr_reader :create_rollup_property + ## + # RPC-specific configuration for `get_rollup_property_source_link` + # @return [::Gapic::Config::Method] + # + attr_reader :get_rollup_property_source_link + ## + # RPC-specific configuration for `list_rollup_property_source_links` + # @return [::Gapic::Config::Method] + # + attr_reader :list_rollup_property_source_links + ## + # RPC-specific configuration for `create_rollup_property_source_link` + # @return [::Gapic::Config::Method] + # + attr_reader :create_rollup_property_source_link + ## + # RPC-specific configuration for `delete_rollup_property_source_link` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_rollup_property_source_link + ## + # RPC-specific configuration for `provision_subproperty` + # @return [::Gapic::Config::Method] + # + attr_reader :provision_subproperty + ## + # RPC-specific configuration for `create_subproperty_event_filter` + # @return [::Gapic::Config::Method] + # + attr_reader :create_subproperty_event_filter + ## + # RPC-specific configuration for `get_subproperty_event_filter` + # @return [::Gapic::Config::Method] + # + attr_reader :get_subproperty_event_filter + ## + # RPC-specific configuration for `list_subproperty_event_filters` + # @return [::Gapic::Config::Method] + # + attr_reader :list_subproperty_event_filters + ## + # RPC-specific configuration for `update_subproperty_event_filter` + # @return [::Gapic::Config::Method] + # + attr_reader :update_subproperty_event_filter + ## + # RPC-specific configuration for `delete_subproperty_event_filter` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_subproperty_event_filter + ## + # RPC-specific configuration for `create_reporting_data_annotation` + # @return [::Gapic::Config::Method] + # + attr_reader :create_reporting_data_annotation + ## + # RPC-specific configuration for `get_reporting_data_annotation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_reporting_data_annotation + ## + # RPC-specific configuration for `list_reporting_data_annotations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_reporting_data_annotations + ## + # RPC-specific configuration for `update_reporting_data_annotation` + # @return [::Gapic::Config::Method] + # + attr_reader :update_reporting_data_annotation + ## + # RPC-specific configuration for `delete_reporting_data_annotation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_reporting_data_annotation + ## + # RPC-specific configuration for `submit_user_deletion` + # @return [::Gapic::Config::Method] + # + attr_reader :submit_user_deletion + ## + # RPC-specific configuration for `list_subproperty_sync_configs` + # @return [::Gapic::Config::Method] + # + attr_reader :list_subproperty_sync_configs + ## + # RPC-specific configuration for `update_subproperty_sync_config` + # @return [::Gapic::Config::Method] + # + attr_reader :update_subproperty_sync_config + ## + # RPC-specific configuration for `get_subproperty_sync_config` + # @return [::Gapic::Config::Method] + # + attr_reader :get_subproperty_sync_config + ## + # RPC-specific configuration for `get_reporting_identity_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_reporting_identity_settings + ## + # RPC-specific configuration for `update_reporting_identity_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_reporting_identity_settings + ## + # RPC-specific configuration for `get_user_provided_data_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :get_user_provided_data_settings + + # @private + def initialize parent_rpcs = nil + get_account_config = parent_rpcs.get_account if parent_rpcs.respond_to? :get_account + @get_account = ::Gapic::Config::Method.new get_account_config + list_accounts_config = parent_rpcs.list_accounts if parent_rpcs.respond_to? :list_accounts + @list_accounts = ::Gapic::Config::Method.new list_accounts_config + delete_account_config = parent_rpcs.delete_account if parent_rpcs.respond_to? :delete_account + @delete_account = ::Gapic::Config::Method.new delete_account_config + update_account_config = parent_rpcs.update_account if parent_rpcs.respond_to? :update_account + @update_account = ::Gapic::Config::Method.new update_account_config + provision_account_ticket_config = parent_rpcs.provision_account_ticket if parent_rpcs.respond_to? :provision_account_ticket + @provision_account_ticket = ::Gapic::Config::Method.new provision_account_ticket_config + list_account_summaries_config = parent_rpcs.list_account_summaries if parent_rpcs.respond_to? :list_account_summaries + @list_account_summaries = ::Gapic::Config::Method.new list_account_summaries_config + get_property_config = parent_rpcs.get_property if parent_rpcs.respond_to? :get_property + @get_property = ::Gapic::Config::Method.new get_property_config + list_properties_config = parent_rpcs.list_properties if parent_rpcs.respond_to? :list_properties + @list_properties = ::Gapic::Config::Method.new list_properties_config + create_property_config = parent_rpcs.create_property if parent_rpcs.respond_to? :create_property + @create_property = ::Gapic::Config::Method.new create_property_config + delete_property_config = parent_rpcs.delete_property if parent_rpcs.respond_to? :delete_property + @delete_property = ::Gapic::Config::Method.new delete_property_config + update_property_config = parent_rpcs.update_property if parent_rpcs.respond_to? :update_property + @update_property = ::Gapic::Config::Method.new update_property_config + create_firebase_link_config = parent_rpcs.create_firebase_link if parent_rpcs.respond_to? :create_firebase_link + @create_firebase_link = ::Gapic::Config::Method.new create_firebase_link_config + delete_firebase_link_config = parent_rpcs.delete_firebase_link if parent_rpcs.respond_to? :delete_firebase_link + @delete_firebase_link = ::Gapic::Config::Method.new delete_firebase_link_config + list_firebase_links_config = parent_rpcs.list_firebase_links if parent_rpcs.respond_to? :list_firebase_links + @list_firebase_links = ::Gapic::Config::Method.new list_firebase_links_config + get_global_site_tag_config = parent_rpcs.get_global_site_tag if parent_rpcs.respond_to? :get_global_site_tag + @get_global_site_tag = ::Gapic::Config::Method.new get_global_site_tag_config + create_google_ads_link_config = parent_rpcs.create_google_ads_link if parent_rpcs.respond_to? :create_google_ads_link + @create_google_ads_link = ::Gapic::Config::Method.new create_google_ads_link_config + update_google_ads_link_config = parent_rpcs.update_google_ads_link if parent_rpcs.respond_to? :update_google_ads_link + @update_google_ads_link = ::Gapic::Config::Method.new update_google_ads_link_config + delete_google_ads_link_config = parent_rpcs.delete_google_ads_link if parent_rpcs.respond_to? :delete_google_ads_link + @delete_google_ads_link = ::Gapic::Config::Method.new delete_google_ads_link_config + list_google_ads_links_config = parent_rpcs.list_google_ads_links if parent_rpcs.respond_to? :list_google_ads_links + @list_google_ads_links = ::Gapic::Config::Method.new list_google_ads_links_config + get_data_sharing_settings_config = parent_rpcs.get_data_sharing_settings if parent_rpcs.respond_to? :get_data_sharing_settings + @get_data_sharing_settings = ::Gapic::Config::Method.new get_data_sharing_settings_config + get_measurement_protocol_secret_config = parent_rpcs.get_measurement_protocol_secret if parent_rpcs.respond_to? :get_measurement_protocol_secret + @get_measurement_protocol_secret = ::Gapic::Config::Method.new get_measurement_protocol_secret_config + list_measurement_protocol_secrets_config = parent_rpcs.list_measurement_protocol_secrets if parent_rpcs.respond_to? :list_measurement_protocol_secrets + @list_measurement_protocol_secrets = ::Gapic::Config::Method.new list_measurement_protocol_secrets_config + create_measurement_protocol_secret_config = parent_rpcs.create_measurement_protocol_secret if parent_rpcs.respond_to? :create_measurement_protocol_secret + @create_measurement_protocol_secret = ::Gapic::Config::Method.new create_measurement_protocol_secret_config + delete_measurement_protocol_secret_config = parent_rpcs.delete_measurement_protocol_secret if parent_rpcs.respond_to? :delete_measurement_protocol_secret + @delete_measurement_protocol_secret = ::Gapic::Config::Method.new delete_measurement_protocol_secret_config + update_measurement_protocol_secret_config = parent_rpcs.update_measurement_protocol_secret if parent_rpcs.respond_to? :update_measurement_protocol_secret + @update_measurement_protocol_secret = ::Gapic::Config::Method.new update_measurement_protocol_secret_config + acknowledge_user_data_collection_config = parent_rpcs.acknowledge_user_data_collection if parent_rpcs.respond_to? :acknowledge_user_data_collection + @acknowledge_user_data_collection = ::Gapic::Config::Method.new acknowledge_user_data_collection_config + get_sk_ad_network_conversion_value_schema_config = parent_rpcs.get_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :get_sk_ad_network_conversion_value_schema + @get_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new get_sk_ad_network_conversion_value_schema_config + create_sk_ad_network_conversion_value_schema_config = parent_rpcs.create_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :create_sk_ad_network_conversion_value_schema + @create_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new create_sk_ad_network_conversion_value_schema_config + delete_sk_ad_network_conversion_value_schema_config = parent_rpcs.delete_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :delete_sk_ad_network_conversion_value_schema + @delete_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new delete_sk_ad_network_conversion_value_schema_config + update_sk_ad_network_conversion_value_schema_config = parent_rpcs.update_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :update_sk_ad_network_conversion_value_schema + @update_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new update_sk_ad_network_conversion_value_schema_config + list_sk_ad_network_conversion_value_schemas_config = parent_rpcs.list_sk_ad_network_conversion_value_schemas if parent_rpcs.respond_to? :list_sk_ad_network_conversion_value_schemas + @list_sk_ad_network_conversion_value_schemas = ::Gapic::Config::Method.new list_sk_ad_network_conversion_value_schemas_config + search_change_history_events_config = parent_rpcs.search_change_history_events if parent_rpcs.respond_to? :search_change_history_events + @search_change_history_events = ::Gapic::Config::Method.new search_change_history_events_config + get_google_signals_settings_config = parent_rpcs.get_google_signals_settings if parent_rpcs.respond_to? :get_google_signals_settings + @get_google_signals_settings = ::Gapic::Config::Method.new get_google_signals_settings_config + update_google_signals_settings_config = parent_rpcs.update_google_signals_settings if parent_rpcs.respond_to? :update_google_signals_settings + @update_google_signals_settings = ::Gapic::Config::Method.new update_google_signals_settings_config + create_conversion_event_config = parent_rpcs.create_conversion_event if parent_rpcs.respond_to? :create_conversion_event + @create_conversion_event = ::Gapic::Config::Method.new create_conversion_event_config + update_conversion_event_config = parent_rpcs.update_conversion_event if parent_rpcs.respond_to? :update_conversion_event + @update_conversion_event = ::Gapic::Config::Method.new update_conversion_event_config + get_conversion_event_config = parent_rpcs.get_conversion_event if parent_rpcs.respond_to? :get_conversion_event + @get_conversion_event = ::Gapic::Config::Method.new get_conversion_event_config + delete_conversion_event_config = parent_rpcs.delete_conversion_event if parent_rpcs.respond_to? :delete_conversion_event + @delete_conversion_event = ::Gapic::Config::Method.new delete_conversion_event_config + list_conversion_events_config = parent_rpcs.list_conversion_events if parent_rpcs.respond_to? :list_conversion_events + @list_conversion_events = ::Gapic::Config::Method.new list_conversion_events_config + create_key_event_config = parent_rpcs.create_key_event if parent_rpcs.respond_to? :create_key_event + @create_key_event = ::Gapic::Config::Method.new create_key_event_config + update_key_event_config = parent_rpcs.update_key_event if parent_rpcs.respond_to? :update_key_event + @update_key_event = ::Gapic::Config::Method.new update_key_event_config + get_key_event_config = parent_rpcs.get_key_event if parent_rpcs.respond_to? :get_key_event + @get_key_event = ::Gapic::Config::Method.new get_key_event_config + delete_key_event_config = parent_rpcs.delete_key_event if parent_rpcs.respond_to? :delete_key_event + @delete_key_event = ::Gapic::Config::Method.new delete_key_event_config + list_key_events_config = parent_rpcs.list_key_events if parent_rpcs.respond_to? :list_key_events + @list_key_events = ::Gapic::Config::Method.new list_key_events_config + get_display_video360_advertiser_link_config = parent_rpcs.get_display_video360_advertiser_link if parent_rpcs.respond_to? :get_display_video360_advertiser_link + @get_display_video360_advertiser_link = ::Gapic::Config::Method.new get_display_video360_advertiser_link_config + list_display_video360_advertiser_links_config = parent_rpcs.list_display_video360_advertiser_links if parent_rpcs.respond_to? :list_display_video360_advertiser_links + @list_display_video360_advertiser_links = ::Gapic::Config::Method.new list_display_video360_advertiser_links_config + create_display_video360_advertiser_link_config = parent_rpcs.create_display_video360_advertiser_link if parent_rpcs.respond_to? :create_display_video360_advertiser_link + @create_display_video360_advertiser_link = ::Gapic::Config::Method.new create_display_video360_advertiser_link_config + delete_display_video360_advertiser_link_config = parent_rpcs.delete_display_video360_advertiser_link if parent_rpcs.respond_to? :delete_display_video360_advertiser_link + @delete_display_video360_advertiser_link = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_config + update_display_video360_advertiser_link_config = parent_rpcs.update_display_video360_advertiser_link if parent_rpcs.respond_to? :update_display_video360_advertiser_link + @update_display_video360_advertiser_link = ::Gapic::Config::Method.new update_display_video360_advertiser_link_config + get_display_video360_advertiser_link_proposal_config = parent_rpcs.get_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :get_display_video360_advertiser_link_proposal + @get_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new get_display_video360_advertiser_link_proposal_config + list_display_video360_advertiser_link_proposals_config = parent_rpcs.list_display_video360_advertiser_link_proposals if parent_rpcs.respond_to? :list_display_video360_advertiser_link_proposals + @list_display_video360_advertiser_link_proposals = ::Gapic::Config::Method.new list_display_video360_advertiser_link_proposals_config + create_display_video360_advertiser_link_proposal_config = parent_rpcs.create_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :create_display_video360_advertiser_link_proposal + @create_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new create_display_video360_advertiser_link_proposal_config + delete_display_video360_advertiser_link_proposal_config = parent_rpcs.delete_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :delete_display_video360_advertiser_link_proposal + @delete_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_proposal_config + approve_display_video360_advertiser_link_proposal_config = parent_rpcs.approve_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :approve_display_video360_advertiser_link_proposal + @approve_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new approve_display_video360_advertiser_link_proposal_config + cancel_display_video360_advertiser_link_proposal_config = parent_rpcs.cancel_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :cancel_display_video360_advertiser_link_proposal + @cancel_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new cancel_display_video360_advertiser_link_proposal_config + create_custom_dimension_config = parent_rpcs.create_custom_dimension if parent_rpcs.respond_to? :create_custom_dimension + @create_custom_dimension = ::Gapic::Config::Method.new create_custom_dimension_config + update_custom_dimension_config = parent_rpcs.update_custom_dimension if parent_rpcs.respond_to? :update_custom_dimension + @update_custom_dimension = ::Gapic::Config::Method.new update_custom_dimension_config + list_custom_dimensions_config = parent_rpcs.list_custom_dimensions if parent_rpcs.respond_to? :list_custom_dimensions + @list_custom_dimensions = ::Gapic::Config::Method.new list_custom_dimensions_config + archive_custom_dimension_config = parent_rpcs.archive_custom_dimension if parent_rpcs.respond_to? :archive_custom_dimension + @archive_custom_dimension = ::Gapic::Config::Method.new archive_custom_dimension_config + get_custom_dimension_config = parent_rpcs.get_custom_dimension if parent_rpcs.respond_to? :get_custom_dimension + @get_custom_dimension = ::Gapic::Config::Method.new get_custom_dimension_config + create_custom_metric_config = parent_rpcs.create_custom_metric if parent_rpcs.respond_to? :create_custom_metric + @create_custom_metric = ::Gapic::Config::Method.new create_custom_metric_config + update_custom_metric_config = parent_rpcs.update_custom_metric if parent_rpcs.respond_to? :update_custom_metric + @update_custom_metric = ::Gapic::Config::Method.new update_custom_metric_config + list_custom_metrics_config = parent_rpcs.list_custom_metrics if parent_rpcs.respond_to? :list_custom_metrics + @list_custom_metrics = ::Gapic::Config::Method.new list_custom_metrics_config + archive_custom_metric_config = parent_rpcs.archive_custom_metric if parent_rpcs.respond_to? :archive_custom_metric + @archive_custom_metric = ::Gapic::Config::Method.new archive_custom_metric_config + get_custom_metric_config = parent_rpcs.get_custom_metric if parent_rpcs.respond_to? :get_custom_metric + @get_custom_metric = ::Gapic::Config::Method.new get_custom_metric_config + get_data_retention_settings_config = parent_rpcs.get_data_retention_settings if parent_rpcs.respond_to? :get_data_retention_settings + @get_data_retention_settings = ::Gapic::Config::Method.new get_data_retention_settings_config + update_data_retention_settings_config = parent_rpcs.update_data_retention_settings if parent_rpcs.respond_to? :update_data_retention_settings + @update_data_retention_settings = ::Gapic::Config::Method.new update_data_retention_settings_config + create_data_stream_config = parent_rpcs.create_data_stream if parent_rpcs.respond_to? :create_data_stream + @create_data_stream = ::Gapic::Config::Method.new create_data_stream_config + delete_data_stream_config = parent_rpcs.delete_data_stream if parent_rpcs.respond_to? :delete_data_stream + @delete_data_stream = ::Gapic::Config::Method.new delete_data_stream_config + update_data_stream_config = parent_rpcs.update_data_stream if parent_rpcs.respond_to? :update_data_stream + @update_data_stream = ::Gapic::Config::Method.new update_data_stream_config + list_data_streams_config = parent_rpcs.list_data_streams if parent_rpcs.respond_to? :list_data_streams + @list_data_streams = ::Gapic::Config::Method.new list_data_streams_config + get_data_stream_config = parent_rpcs.get_data_stream if parent_rpcs.respond_to? :get_data_stream + @get_data_stream = ::Gapic::Config::Method.new get_data_stream_config + get_audience_config = parent_rpcs.get_audience if parent_rpcs.respond_to? :get_audience + @get_audience = ::Gapic::Config::Method.new get_audience_config + list_audiences_config = parent_rpcs.list_audiences if parent_rpcs.respond_to? :list_audiences + @list_audiences = ::Gapic::Config::Method.new list_audiences_config + create_audience_config = parent_rpcs.create_audience if parent_rpcs.respond_to? :create_audience + @create_audience = ::Gapic::Config::Method.new create_audience_config + update_audience_config = parent_rpcs.update_audience if parent_rpcs.respond_to? :update_audience + @update_audience = ::Gapic::Config::Method.new update_audience_config + archive_audience_config = parent_rpcs.archive_audience if parent_rpcs.respond_to? :archive_audience + @archive_audience = ::Gapic::Config::Method.new archive_audience_config + get_search_ads360_link_config = parent_rpcs.get_search_ads360_link if parent_rpcs.respond_to? :get_search_ads360_link + @get_search_ads360_link = ::Gapic::Config::Method.new get_search_ads360_link_config + list_search_ads360_links_config = parent_rpcs.list_search_ads360_links if parent_rpcs.respond_to? :list_search_ads360_links + @list_search_ads360_links = ::Gapic::Config::Method.new list_search_ads360_links_config + create_search_ads360_link_config = parent_rpcs.create_search_ads360_link if parent_rpcs.respond_to? :create_search_ads360_link + @create_search_ads360_link = ::Gapic::Config::Method.new create_search_ads360_link_config + delete_search_ads360_link_config = parent_rpcs.delete_search_ads360_link if parent_rpcs.respond_to? :delete_search_ads360_link + @delete_search_ads360_link = ::Gapic::Config::Method.new delete_search_ads360_link_config + update_search_ads360_link_config = parent_rpcs.update_search_ads360_link if parent_rpcs.respond_to? :update_search_ads360_link + @update_search_ads360_link = ::Gapic::Config::Method.new update_search_ads360_link_config + get_attribution_settings_config = parent_rpcs.get_attribution_settings if parent_rpcs.respond_to? :get_attribution_settings + @get_attribution_settings = ::Gapic::Config::Method.new get_attribution_settings_config + update_attribution_settings_config = parent_rpcs.update_attribution_settings if parent_rpcs.respond_to? :update_attribution_settings + @update_attribution_settings = ::Gapic::Config::Method.new update_attribution_settings_config + run_access_report_config = parent_rpcs.run_access_report if parent_rpcs.respond_to? :run_access_report + @run_access_report = ::Gapic::Config::Method.new run_access_report_config + create_access_binding_config = parent_rpcs.create_access_binding if parent_rpcs.respond_to? :create_access_binding + @create_access_binding = ::Gapic::Config::Method.new create_access_binding_config + get_access_binding_config = parent_rpcs.get_access_binding if parent_rpcs.respond_to? :get_access_binding + @get_access_binding = ::Gapic::Config::Method.new get_access_binding_config + update_access_binding_config = parent_rpcs.update_access_binding if parent_rpcs.respond_to? :update_access_binding + @update_access_binding = ::Gapic::Config::Method.new update_access_binding_config + delete_access_binding_config = parent_rpcs.delete_access_binding if parent_rpcs.respond_to? :delete_access_binding + @delete_access_binding = ::Gapic::Config::Method.new delete_access_binding_config + list_access_bindings_config = parent_rpcs.list_access_bindings if parent_rpcs.respond_to? :list_access_bindings + @list_access_bindings = ::Gapic::Config::Method.new list_access_bindings_config + batch_create_access_bindings_config = parent_rpcs.batch_create_access_bindings if parent_rpcs.respond_to? :batch_create_access_bindings + @batch_create_access_bindings = ::Gapic::Config::Method.new batch_create_access_bindings_config + batch_get_access_bindings_config = parent_rpcs.batch_get_access_bindings if parent_rpcs.respond_to? :batch_get_access_bindings + @batch_get_access_bindings = ::Gapic::Config::Method.new batch_get_access_bindings_config + batch_update_access_bindings_config = parent_rpcs.batch_update_access_bindings if parent_rpcs.respond_to? :batch_update_access_bindings + @batch_update_access_bindings = ::Gapic::Config::Method.new batch_update_access_bindings_config + batch_delete_access_bindings_config = parent_rpcs.batch_delete_access_bindings if parent_rpcs.respond_to? :batch_delete_access_bindings + @batch_delete_access_bindings = ::Gapic::Config::Method.new batch_delete_access_bindings_config + get_expanded_data_set_config = parent_rpcs.get_expanded_data_set if parent_rpcs.respond_to? :get_expanded_data_set + @get_expanded_data_set = ::Gapic::Config::Method.new get_expanded_data_set_config + list_expanded_data_sets_config = parent_rpcs.list_expanded_data_sets if parent_rpcs.respond_to? :list_expanded_data_sets + @list_expanded_data_sets = ::Gapic::Config::Method.new list_expanded_data_sets_config + create_expanded_data_set_config = parent_rpcs.create_expanded_data_set if parent_rpcs.respond_to? :create_expanded_data_set + @create_expanded_data_set = ::Gapic::Config::Method.new create_expanded_data_set_config + update_expanded_data_set_config = parent_rpcs.update_expanded_data_set if parent_rpcs.respond_to? :update_expanded_data_set + @update_expanded_data_set = ::Gapic::Config::Method.new update_expanded_data_set_config + delete_expanded_data_set_config = parent_rpcs.delete_expanded_data_set if parent_rpcs.respond_to? :delete_expanded_data_set + @delete_expanded_data_set = ::Gapic::Config::Method.new delete_expanded_data_set_config + get_channel_group_config = parent_rpcs.get_channel_group if parent_rpcs.respond_to? :get_channel_group + @get_channel_group = ::Gapic::Config::Method.new get_channel_group_config + list_channel_groups_config = parent_rpcs.list_channel_groups if parent_rpcs.respond_to? :list_channel_groups + @list_channel_groups = ::Gapic::Config::Method.new list_channel_groups_config + create_channel_group_config = parent_rpcs.create_channel_group if parent_rpcs.respond_to? :create_channel_group + @create_channel_group = ::Gapic::Config::Method.new create_channel_group_config + update_channel_group_config = parent_rpcs.update_channel_group if parent_rpcs.respond_to? :update_channel_group + @update_channel_group = ::Gapic::Config::Method.new update_channel_group_config + delete_channel_group_config = parent_rpcs.delete_channel_group if parent_rpcs.respond_to? :delete_channel_group + @delete_channel_group = ::Gapic::Config::Method.new delete_channel_group_config + create_big_query_link_config = parent_rpcs.create_big_query_link if parent_rpcs.respond_to? :create_big_query_link + @create_big_query_link = ::Gapic::Config::Method.new create_big_query_link_config + get_big_query_link_config = parent_rpcs.get_big_query_link if parent_rpcs.respond_to? :get_big_query_link + @get_big_query_link = ::Gapic::Config::Method.new get_big_query_link_config + list_big_query_links_config = parent_rpcs.list_big_query_links if parent_rpcs.respond_to? :list_big_query_links + @list_big_query_links = ::Gapic::Config::Method.new list_big_query_links_config + delete_big_query_link_config = parent_rpcs.delete_big_query_link if parent_rpcs.respond_to? :delete_big_query_link + @delete_big_query_link = ::Gapic::Config::Method.new delete_big_query_link_config + update_big_query_link_config = parent_rpcs.update_big_query_link if parent_rpcs.respond_to? :update_big_query_link + @update_big_query_link = ::Gapic::Config::Method.new update_big_query_link_config + get_enhanced_measurement_settings_config = parent_rpcs.get_enhanced_measurement_settings if parent_rpcs.respond_to? :get_enhanced_measurement_settings + @get_enhanced_measurement_settings = ::Gapic::Config::Method.new get_enhanced_measurement_settings_config + update_enhanced_measurement_settings_config = parent_rpcs.update_enhanced_measurement_settings if parent_rpcs.respond_to? :update_enhanced_measurement_settings + @update_enhanced_measurement_settings = ::Gapic::Config::Method.new update_enhanced_measurement_settings_config + get_ad_sense_link_config = parent_rpcs.get_ad_sense_link if parent_rpcs.respond_to? :get_ad_sense_link + @get_ad_sense_link = ::Gapic::Config::Method.new get_ad_sense_link_config + create_ad_sense_link_config = parent_rpcs.create_ad_sense_link if parent_rpcs.respond_to? :create_ad_sense_link + @create_ad_sense_link = ::Gapic::Config::Method.new create_ad_sense_link_config + delete_ad_sense_link_config = parent_rpcs.delete_ad_sense_link if parent_rpcs.respond_to? :delete_ad_sense_link + @delete_ad_sense_link = ::Gapic::Config::Method.new delete_ad_sense_link_config + list_ad_sense_links_config = parent_rpcs.list_ad_sense_links if parent_rpcs.respond_to? :list_ad_sense_links + @list_ad_sense_links = ::Gapic::Config::Method.new list_ad_sense_links_config + get_event_create_rule_config = parent_rpcs.get_event_create_rule if parent_rpcs.respond_to? :get_event_create_rule + @get_event_create_rule = ::Gapic::Config::Method.new get_event_create_rule_config + list_event_create_rules_config = parent_rpcs.list_event_create_rules if parent_rpcs.respond_to? :list_event_create_rules + @list_event_create_rules = ::Gapic::Config::Method.new list_event_create_rules_config + create_event_create_rule_config = parent_rpcs.create_event_create_rule if parent_rpcs.respond_to? :create_event_create_rule + @create_event_create_rule = ::Gapic::Config::Method.new create_event_create_rule_config + update_event_create_rule_config = parent_rpcs.update_event_create_rule if parent_rpcs.respond_to? :update_event_create_rule + @update_event_create_rule = ::Gapic::Config::Method.new update_event_create_rule_config + delete_event_create_rule_config = parent_rpcs.delete_event_create_rule if parent_rpcs.respond_to? :delete_event_create_rule + @delete_event_create_rule = ::Gapic::Config::Method.new delete_event_create_rule_config + get_event_edit_rule_config = parent_rpcs.get_event_edit_rule if parent_rpcs.respond_to? :get_event_edit_rule + @get_event_edit_rule = ::Gapic::Config::Method.new get_event_edit_rule_config + list_event_edit_rules_config = parent_rpcs.list_event_edit_rules if parent_rpcs.respond_to? :list_event_edit_rules + @list_event_edit_rules = ::Gapic::Config::Method.new list_event_edit_rules_config + create_event_edit_rule_config = parent_rpcs.create_event_edit_rule if parent_rpcs.respond_to? :create_event_edit_rule + @create_event_edit_rule = ::Gapic::Config::Method.new create_event_edit_rule_config + update_event_edit_rule_config = parent_rpcs.update_event_edit_rule if parent_rpcs.respond_to? :update_event_edit_rule + @update_event_edit_rule = ::Gapic::Config::Method.new update_event_edit_rule_config + delete_event_edit_rule_config = parent_rpcs.delete_event_edit_rule if parent_rpcs.respond_to? :delete_event_edit_rule + @delete_event_edit_rule = ::Gapic::Config::Method.new delete_event_edit_rule_config + reorder_event_edit_rules_config = parent_rpcs.reorder_event_edit_rules if parent_rpcs.respond_to? :reorder_event_edit_rules + @reorder_event_edit_rules = ::Gapic::Config::Method.new reorder_event_edit_rules_config + update_data_redaction_settings_config = parent_rpcs.update_data_redaction_settings if parent_rpcs.respond_to? :update_data_redaction_settings + @update_data_redaction_settings = ::Gapic::Config::Method.new update_data_redaction_settings_config + get_data_redaction_settings_config = parent_rpcs.get_data_redaction_settings if parent_rpcs.respond_to? :get_data_redaction_settings + @get_data_redaction_settings = ::Gapic::Config::Method.new get_data_redaction_settings_config + get_calculated_metric_config = parent_rpcs.get_calculated_metric if parent_rpcs.respond_to? :get_calculated_metric + @get_calculated_metric = ::Gapic::Config::Method.new get_calculated_metric_config + create_calculated_metric_config = parent_rpcs.create_calculated_metric if parent_rpcs.respond_to? :create_calculated_metric + @create_calculated_metric = ::Gapic::Config::Method.new create_calculated_metric_config + list_calculated_metrics_config = parent_rpcs.list_calculated_metrics if parent_rpcs.respond_to? :list_calculated_metrics + @list_calculated_metrics = ::Gapic::Config::Method.new list_calculated_metrics_config + update_calculated_metric_config = parent_rpcs.update_calculated_metric if parent_rpcs.respond_to? :update_calculated_metric + @update_calculated_metric = ::Gapic::Config::Method.new update_calculated_metric_config + delete_calculated_metric_config = parent_rpcs.delete_calculated_metric if parent_rpcs.respond_to? :delete_calculated_metric + @delete_calculated_metric = ::Gapic::Config::Method.new delete_calculated_metric_config + create_rollup_property_config = parent_rpcs.create_rollup_property if parent_rpcs.respond_to? :create_rollup_property + @create_rollup_property = ::Gapic::Config::Method.new create_rollup_property_config + get_rollup_property_source_link_config = parent_rpcs.get_rollup_property_source_link if parent_rpcs.respond_to? :get_rollup_property_source_link + @get_rollup_property_source_link = ::Gapic::Config::Method.new get_rollup_property_source_link_config + list_rollup_property_source_links_config = parent_rpcs.list_rollup_property_source_links if parent_rpcs.respond_to? :list_rollup_property_source_links + @list_rollup_property_source_links = ::Gapic::Config::Method.new list_rollup_property_source_links_config + create_rollup_property_source_link_config = parent_rpcs.create_rollup_property_source_link if parent_rpcs.respond_to? :create_rollup_property_source_link + @create_rollup_property_source_link = ::Gapic::Config::Method.new create_rollup_property_source_link_config + delete_rollup_property_source_link_config = parent_rpcs.delete_rollup_property_source_link if parent_rpcs.respond_to? :delete_rollup_property_source_link + @delete_rollup_property_source_link = ::Gapic::Config::Method.new delete_rollup_property_source_link_config + provision_subproperty_config = parent_rpcs.provision_subproperty if parent_rpcs.respond_to? :provision_subproperty + @provision_subproperty = ::Gapic::Config::Method.new provision_subproperty_config + create_subproperty_event_filter_config = parent_rpcs.create_subproperty_event_filter if parent_rpcs.respond_to? :create_subproperty_event_filter + @create_subproperty_event_filter = ::Gapic::Config::Method.new create_subproperty_event_filter_config + get_subproperty_event_filter_config = parent_rpcs.get_subproperty_event_filter if parent_rpcs.respond_to? :get_subproperty_event_filter + @get_subproperty_event_filter = ::Gapic::Config::Method.new get_subproperty_event_filter_config + list_subproperty_event_filters_config = parent_rpcs.list_subproperty_event_filters if parent_rpcs.respond_to? :list_subproperty_event_filters + @list_subproperty_event_filters = ::Gapic::Config::Method.new list_subproperty_event_filters_config + update_subproperty_event_filter_config = parent_rpcs.update_subproperty_event_filter if parent_rpcs.respond_to? :update_subproperty_event_filter + @update_subproperty_event_filter = ::Gapic::Config::Method.new update_subproperty_event_filter_config + delete_subproperty_event_filter_config = parent_rpcs.delete_subproperty_event_filter if parent_rpcs.respond_to? :delete_subproperty_event_filter + @delete_subproperty_event_filter = ::Gapic::Config::Method.new delete_subproperty_event_filter_config + create_reporting_data_annotation_config = parent_rpcs.create_reporting_data_annotation if parent_rpcs.respond_to? :create_reporting_data_annotation + @create_reporting_data_annotation = ::Gapic::Config::Method.new create_reporting_data_annotation_config + get_reporting_data_annotation_config = parent_rpcs.get_reporting_data_annotation if parent_rpcs.respond_to? :get_reporting_data_annotation + @get_reporting_data_annotation = ::Gapic::Config::Method.new get_reporting_data_annotation_config + list_reporting_data_annotations_config = parent_rpcs.list_reporting_data_annotations if parent_rpcs.respond_to? :list_reporting_data_annotations + @list_reporting_data_annotations = ::Gapic::Config::Method.new list_reporting_data_annotations_config + update_reporting_data_annotation_config = parent_rpcs.update_reporting_data_annotation if parent_rpcs.respond_to? :update_reporting_data_annotation + @update_reporting_data_annotation = ::Gapic::Config::Method.new update_reporting_data_annotation_config + delete_reporting_data_annotation_config = parent_rpcs.delete_reporting_data_annotation if parent_rpcs.respond_to? :delete_reporting_data_annotation + @delete_reporting_data_annotation = ::Gapic::Config::Method.new delete_reporting_data_annotation_config + submit_user_deletion_config = parent_rpcs.submit_user_deletion if parent_rpcs.respond_to? :submit_user_deletion + @submit_user_deletion = ::Gapic::Config::Method.new submit_user_deletion_config + list_subproperty_sync_configs_config = parent_rpcs.list_subproperty_sync_configs if parent_rpcs.respond_to? :list_subproperty_sync_configs + @list_subproperty_sync_configs = ::Gapic::Config::Method.new list_subproperty_sync_configs_config + update_subproperty_sync_config_config = parent_rpcs.update_subproperty_sync_config if parent_rpcs.respond_to? :update_subproperty_sync_config + @update_subproperty_sync_config = ::Gapic::Config::Method.new update_subproperty_sync_config_config + get_subproperty_sync_config_config = parent_rpcs.get_subproperty_sync_config if parent_rpcs.respond_to? :get_subproperty_sync_config + @get_subproperty_sync_config = ::Gapic::Config::Method.new get_subproperty_sync_config_config + get_reporting_identity_settings_config = parent_rpcs.get_reporting_identity_settings if parent_rpcs.respond_to? :get_reporting_identity_settings + @get_reporting_identity_settings = ::Gapic::Config::Method.new get_reporting_identity_settings_config + update_reporting_identity_settings_config = parent_rpcs.update_reporting_identity_settings if parent_rpcs.respond_to? :update_reporting_identity_settings + @update_reporting_identity_settings = ::Gapic::Config::Method.new update_reporting_identity_settings_config + get_user_provided_data_settings_config = parent_rpcs.get_user_provided_data_settings if parent_rpcs.respond_to? :get_user_provided_data_settings + @get_user_provided_data_settings = ::Gapic::Config::Method.new get_user_provided_data_settings_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb new file mode 100644 index 000000000000..0cedb6c7973d --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb @@ -0,0 +1,9729 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/analytics/admin/v1alpha/analytics_admin_pb" + +module Google + module Analytics + module Admin + module V1alpha + module AnalyticsAdminService + module Rest + ## + # REST service stub for the AnalyticsAdminService service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the get_account REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccountRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Account] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Account] + # A result object deserialized from the server's reply + def get_account request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_account_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_account", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::Account.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_accounts REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAccountsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListAccountsResponse] + # A result object deserialized from the server's reply + def list_accounts request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_accounts_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_accounts", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListAccountsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_account REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_account request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_account_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_account", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_account REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Account] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Account] + # A result object deserialized from the server's reply + def update_account request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_account_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_account", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::Account.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the provision_account_ticket REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] + # A result object deserialized from the server's reply + def provision_account_ticket request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_provision_account_ticket_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "provision_account_ticket", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_account_summaries REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse] + # A result object deserialized from the server's reply + def list_account_summaries request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_account_summaries_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_account_summaries", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_property REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetPropertyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # A result object deserialized from the server's reply + def get_property request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_property_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_property", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_properties REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListPropertiesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListPropertiesResponse] + # A result object deserialized from the server's reply + def list_properties request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_properties_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_properties", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListPropertiesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_property REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # A result object deserialized from the server's reply + def create_property request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_property_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_property", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_property REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # A result object deserialized from the server's reply + def delete_property request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_property_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_property", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_property REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Property] + # A result object deserialized from the server's reply + def update_property request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_property_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_property", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_firebase_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::FirebaseLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] + # A result object deserialized from the server's reply + def create_firebase_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_firebase_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_firebase_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::FirebaseLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_firebase_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_firebase_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_firebase_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_firebase_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_firebase_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse] + # A result object deserialized from the server's reply + def list_firebase_links request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_firebase_links_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_firebase_links", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_global_site_tag REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] + # A result object deserialized from the server's reply + def get_global_site_tag request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_global_site_tag_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_global_site_tag", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::GlobalSiteTag.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_google_ads_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # A result object deserialized from the server's reply + def create_google_ads_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_google_ads_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_google_ads_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_google_ads_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # A result object deserialized from the server's reply + def update_google_ads_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_google_ads_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_google_ads_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_google_ads_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_google_ads_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_google_ads_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_google_ads_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_google_ads_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse] + # A result object deserialized from the server's reply + def list_google_ads_links request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_google_ads_links_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_google_ads_links", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_data_sharing_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataSharingSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataSharingSettings] + # A result object deserialized from the server's reply + def get_data_sharing_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_data_sharing_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_data_sharing_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DataSharingSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_measurement_protocol_secret REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # A result object deserialized from the server's reply + def get_measurement_protocol_secret request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_measurement_protocol_secret_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_measurement_protocol_secret", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_measurement_protocol_secrets REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse] + # A result object deserialized from the server's reply + def list_measurement_protocol_secrets request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_measurement_protocol_secrets_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_measurement_protocol_secrets", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_measurement_protocol_secret REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # A result object deserialized from the server's reply + def create_measurement_protocol_secret request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_measurement_protocol_secret_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_measurement_protocol_secret", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_measurement_protocol_secret REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_measurement_protocol_secret request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_measurement_protocol_secret_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_measurement_protocol_secret", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_measurement_protocol_secret REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # A result object deserialized from the server's reply + def update_measurement_protocol_secret request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_measurement_protocol_secret_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_measurement_protocol_secret", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the acknowledge_user_data_collection REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] + # A result object deserialized from the server's reply + def acknowledge_user_data_collection request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_acknowledge_user_data_collection_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "acknowledge_user_data_collection", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_sk_ad_network_conversion_value_schema REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # A result object deserialized from the server's reply + def get_sk_ad_network_conversion_value_schema request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_sk_ad_network_conversion_value_schema_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_sk_ad_network_conversion_value_schema", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_sk_ad_network_conversion_value_schema REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # A result object deserialized from the server's reply + def create_sk_ad_network_conversion_value_schema request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_sk_ad_network_conversion_value_schema_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_sk_ad_network_conversion_value_schema", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_sk_ad_network_conversion_value_schema REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_sk_ad_network_conversion_value_schema request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_sk_ad_network_conversion_value_schema_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_sk_ad_network_conversion_value_schema", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_sk_ad_network_conversion_value_schema REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # A result object deserialized from the server's reply + def update_sk_ad_network_conversion_value_schema request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_sk_ad_network_conversion_value_schema_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_sk_ad_network_conversion_value_schema", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_sk_ad_network_conversion_value_schemas REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse] + # A result object deserialized from the server's reply + def list_sk_ad_network_conversion_value_schemas request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_sk_ad_network_conversion_value_schemas_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_sk_ad_network_conversion_value_schemas", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the search_change_history_events REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse] + # A result object deserialized from the server's reply + def search_change_history_events request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_search_change_history_events_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "search_change_history_events", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_google_signals_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # A result object deserialized from the server's reply + def get_google_signals_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_google_signals_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_google_signals_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_google_signals_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # A result object deserialized from the server's reply + def update_google_signals_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_google_signals_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_google_signals_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_conversion_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # A result object deserialized from the server's reply + def create_conversion_event request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_conversion_event_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_conversion_event", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_conversion_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # A result object deserialized from the server's reply + def update_conversion_event request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_conversion_event_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_conversion_event", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_conversion_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetConversionEventRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # A result object deserialized from the server's reply + def get_conversion_event request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_conversion_event_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_conversion_event", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_conversion_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_conversion_event request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_conversion_event_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_conversion_event", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_conversion_events REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse] + # A result object deserialized from the server's reply + def list_conversion_events request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_conversion_events_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_conversion_events", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_key_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # A result object deserialized from the server's reply + def create_key_event request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_key_event_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_key_event", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_key_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # A result object deserialized from the server's reply + def update_key_event request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_key_event_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_key_event", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_key_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetKeyEventRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # A result object deserialized from the server's reply + def get_key_event request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_key_event_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_key_event", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_key_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_key_event request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_key_event_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_key_event", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_key_events REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse] + # A result object deserialized from the server's reply + def list_key_events request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_key_events_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_key_events", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_display_video360_advertiser_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # A result object deserialized from the server's reply + def get_display_video360_advertiser_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_display_video360_advertiser_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_display_video360_advertiser_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_display_video360_advertiser_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse] + # A result object deserialized from the server's reply + def list_display_video360_advertiser_links request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_display_video360_advertiser_links_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_display_video360_advertiser_links", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_display_video360_advertiser_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # A result object deserialized from the server's reply + def create_display_video360_advertiser_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_display_video360_advertiser_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_display_video360_advertiser_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_display_video360_advertiser_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_display_video360_advertiser_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_display_video360_advertiser_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_display_video360_advertiser_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_display_video360_advertiser_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # A result object deserialized from the server's reply + def update_display_video360_advertiser_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_display_video360_advertiser_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_display_video360_advertiser_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_display_video360_advertiser_link_proposal REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # A result object deserialized from the server's reply + def get_display_video360_advertiser_link_proposal request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_display_video360_advertiser_link_proposal_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_display_video360_advertiser_link_proposal", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_display_video360_advertiser_link_proposals REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse] + # A result object deserialized from the server's reply + def list_display_video360_advertiser_link_proposals request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_display_video360_advertiser_link_proposals_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_display_video360_advertiser_link_proposals", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_display_video360_advertiser_link_proposal REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # A result object deserialized from the server's reply + def create_display_video360_advertiser_link_proposal request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_display_video360_advertiser_link_proposal_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_display_video360_advertiser_link_proposal", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_display_video360_advertiser_link_proposal REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_display_video360_advertiser_link_proposal request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_display_video360_advertiser_link_proposal_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_display_video360_advertiser_link_proposal", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the approve_display_video360_advertiser_link_proposal REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] + # A result object deserialized from the server's reply + def approve_display_video360_advertiser_link_proposal request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_approve_display_video360_advertiser_link_proposal_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "approve_display_video360_advertiser_link_proposal", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_display_video360_advertiser_link_proposal REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # A result object deserialized from the server's reply + def cancel_display_video360_advertiser_link_proposal request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_cancel_display_video360_advertiser_link_proposal_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_display_video360_advertiser_link_proposal", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_custom_dimension REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # A result object deserialized from the server's reply + def create_custom_dimension request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_custom_dimension_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_custom_dimension", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::CustomDimension.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_custom_dimension REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # A result object deserialized from the server's reply + def update_custom_dimension request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_custom_dimension_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_custom_dimension", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::CustomDimension.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_custom_dimensions REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse] + # A result object deserialized from the server's reply + def list_custom_dimensions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_custom_dimensions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_custom_dimensions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the archive_custom_dimension REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def archive_custom_dimension request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_archive_custom_dimension_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "archive_custom_dimension", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_custom_dimension REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # A result object deserialized from the server's reply + def get_custom_dimension request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_custom_dimension_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_custom_dimension", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::CustomDimension.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_custom_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # A result object deserialized from the server's reply + def create_custom_metric request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_custom_metric_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_custom_metric", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::CustomMetric.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_custom_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # A result object deserialized from the server's reply + def update_custom_metric request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_custom_metric_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_custom_metric", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::CustomMetric.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_custom_metrics REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse] + # A result object deserialized from the server's reply + def list_custom_metrics request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_custom_metrics_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_custom_metrics", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the archive_custom_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def archive_custom_metric request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_archive_custom_metric_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "archive_custom_metric", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_custom_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # A result object deserialized from the server's reply + def get_custom_metric request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_custom_metric_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_custom_metric", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::CustomMetric.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_data_retention_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # A result object deserialized from the server's reply + def get_data_retention_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_data_retention_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_data_retention_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_data_retention_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # A result object deserialized from the server's reply + def update_data_retention_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_data_retention_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_data_retention_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_data_stream REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # A result object deserialized from the server's reply + def create_data_stream request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_data_stream_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_data_stream", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DataStream.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_data_stream REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_data_stream request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_data_stream_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_data_stream", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_data_stream REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # A result object deserialized from the server's reply + def update_data_stream request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_data_stream_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_data_stream", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DataStream.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_data_streams REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse] + # A result object deserialized from the server's reply + def list_data_streams request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_data_streams_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_data_streams", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_data_stream REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataStreamRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # A result object deserialized from the server's reply + def get_data_stream request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_data_stream_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_data_stream", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DataStream.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_audience REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAudienceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # A result object deserialized from the server's reply + def get_audience request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_audience_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_audience", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::Audience.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_audiences REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAudiencesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAudiencesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListAudiencesResponse] + # A result object deserialized from the server's reply + def list_audiences request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_audiences_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_audiences", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListAudiencesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_audience REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAudienceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # A result object deserialized from the server's reply + def create_audience request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_audience_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_audience", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::Audience.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_audience REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # A result object deserialized from the server's reply + def update_audience request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_audience_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_audience", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::Audience.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the archive_audience REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def archive_audience request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_archive_audience_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "archive_audience", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_search_ads360_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # A result object deserialized from the server's reply + def get_search_ads360_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_search_ads360_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_search_ads360_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_search_ads360_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse] + # A result object deserialized from the server's reply + def list_search_ads360_links request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_search_ads360_links_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_search_ads360_links", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_search_ads360_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # A result object deserialized from the server's reply + def create_search_ads360_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_search_ads360_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_search_ads360_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_search_ads360_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_search_ads360_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_search_ads360_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_search_ads360_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_search_ads360_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # A result object deserialized from the server's reply + def update_search_ads360_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_search_ads360_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_search_ads360_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_attribution_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # A result object deserialized from the server's reply + def get_attribution_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_attribution_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_attribution_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::AttributionSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_attribution_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # A result object deserialized from the server's reply + def update_attribution_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_attribution_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_attribution_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::AttributionSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the run_access_report REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::RunAccessReportRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] + # A result object deserialized from the server's reply + def run_access_report request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_run_access_report_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "run_access_report", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::RunAccessReportResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_access_binding REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # A result object deserialized from the server's reply + def create_access_binding request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_access_binding_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_access_binding", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::AccessBinding.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_access_binding REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # A result object deserialized from the server's reply + def get_access_binding request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_access_binding_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_access_binding", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::AccessBinding.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_access_binding REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # A result object deserialized from the server's reply + def update_access_binding request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_access_binding_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_access_binding", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::AccessBinding.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_access_binding REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_access_binding request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_access_binding_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_access_binding", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_access_bindings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse] + # A result object deserialized from the server's reply + def list_access_bindings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_access_bindings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_access_bindings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_create_access_bindings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] + # A result object deserialized from the server's reply + def batch_create_access_bindings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_access_bindings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_create_access_bindings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_get_access_bindings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] + # A result object deserialized from the server's reply + def batch_get_access_bindings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_get_access_bindings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_get_access_bindings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_update_access_bindings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] + # A result object deserialized from the server's reply + def batch_update_access_bindings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_access_bindings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_update_access_bindings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the batch_delete_access_bindings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def batch_delete_access_bindings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_batch_delete_access_bindings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "batch_delete_access_bindings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_expanded_data_set REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # A result object deserialized from the server's reply + def get_expanded_data_set request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_expanded_data_set_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_expanded_data_set", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_expanded_data_sets REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse] + # A result object deserialized from the server's reply + def list_expanded_data_sets request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_expanded_data_sets_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_expanded_data_sets", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_expanded_data_set REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # A result object deserialized from the server's reply + def create_expanded_data_set request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_expanded_data_set_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_expanded_data_set", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_expanded_data_set REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # A result object deserialized from the server's reply + def update_expanded_data_set request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_expanded_data_set_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_expanded_data_set", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_expanded_data_set REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_expanded_data_set request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_expanded_data_set_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_expanded_data_set", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_channel_group REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # A result object deserialized from the server's reply + def get_channel_group request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_channel_group_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_channel_group", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_channel_groups REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse] + # A result object deserialized from the server's reply + def list_channel_groups request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_channel_groups_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_channel_groups", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_channel_group REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # A result object deserialized from the server's reply + def create_channel_group request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_channel_group_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_channel_group", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_channel_group REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # A result object deserialized from the server's reply + def update_channel_group request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_channel_group_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_channel_group", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_channel_group REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_channel_group request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_channel_group_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_channel_group", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_big_query_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # A result object deserialized from the server's reply + def create_big_query_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_big_query_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_big_query_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_big_query_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # A result object deserialized from the server's reply + def get_big_query_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_big_query_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_big_query_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_big_query_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse] + # A result object deserialized from the server's reply + def list_big_query_links request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_big_query_links_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_big_query_links", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_big_query_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_big_query_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_big_query_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_big_query_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_big_query_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # A result object deserialized from the server's reply + def update_big_query_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_big_query_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_big_query_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_enhanced_measurement_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # A result object deserialized from the server's reply + def get_enhanced_measurement_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_enhanced_measurement_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_enhanced_measurement_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_enhanced_measurement_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # A result object deserialized from the server's reply + def update_enhanced_measurement_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_enhanced_measurement_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_enhanced_measurement_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_ad_sense_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # A result object deserialized from the server's reply + def get_ad_sense_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_ad_sense_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_ad_sense_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::AdSenseLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_ad_sense_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # A result object deserialized from the server's reply + def create_ad_sense_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_ad_sense_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_ad_sense_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::AdSenseLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_ad_sense_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_ad_sense_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_ad_sense_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_ad_sense_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_ad_sense_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse] + # A result object deserialized from the server's reply + def list_ad_sense_links request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_ad_sense_links_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_ad_sense_links", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_event_create_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # A result object deserialized from the server's reply + def get_event_create_rule request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_event_create_rule_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_event_create_rule", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_event_create_rules REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse] + # A result object deserialized from the server's reply + def list_event_create_rules request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_event_create_rules_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_event_create_rules", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_event_create_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # A result object deserialized from the server's reply + def create_event_create_rule request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_event_create_rule_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_event_create_rule", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_event_create_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # A result object deserialized from the server's reply + def update_event_create_rule request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_event_create_rule_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_event_create_rule", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_event_create_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_event_create_rule request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_event_create_rule_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_event_create_rule", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_event_edit_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # A result object deserialized from the server's reply + def get_event_edit_rule request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_event_edit_rule_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_event_edit_rule", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_event_edit_rules REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse] + # A result object deserialized from the server's reply + def list_event_edit_rules request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_event_edit_rules_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_event_edit_rules", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_event_edit_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # A result object deserialized from the server's reply + def create_event_edit_rule request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_event_edit_rule_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_event_edit_rule", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_event_edit_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # A result object deserialized from the server's reply + def update_event_edit_rule request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_event_edit_rule_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_event_edit_rule", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_event_edit_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_event_edit_rule request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_event_edit_rule_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_event_edit_rule", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the reorder_event_edit_rules REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def reorder_event_edit_rules request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_reorder_event_edit_rules_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "reorder_event_edit_rules", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_data_redaction_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # A result object deserialized from the server's reply + def update_data_redaction_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_data_redaction_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_data_redaction_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_data_redaction_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # A result object deserialized from the server's reply + def get_data_redaction_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_data_redaction_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_data_redaction_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_calculated_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # A result object deserialized from the server's reply + def get_calculated_metric request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_calculated_metric_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_calculated_metric", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_calculated_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # A result object deserialized from the server's reply + def create_calculated_metric request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_calculated_metric_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_calculated_metric", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_calculated_metrics REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse] + # A result object deserialized from the server's reply + def list_calculated_metrics request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_calculated_metrics_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_calculated_metrics", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_calculated_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # A result object deserialized from the server's reply + def update_calculated_metric request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_calculated_metric_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_calculated_metric", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_calculated_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_calculated_metric request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_calculated_metric_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_calculated_metric", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_rollup_property REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] + # A result object deserialized from the server's reply + def create_rollup_property request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_rollup_property_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_rollup_property", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_rollup_property_source_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # A result object deserialized from the server's reply + def get_rollup_property_source_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_rollup_property_source_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_rollup_property_source_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_rollup_property_source_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse] + # A result object deserialized from the server's reply + def list_rollup_property_source_links request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_rollup_property_source_links_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_rollup_property_source_links", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_rollup_property_source_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # A result object deserialized from the server's reply + def create_rollup_property_source_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_rollup_property_source_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_rollup_property_source_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_rollup_property_source_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_rollup_property_source_link request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_rollup_property_source_link_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_rollup_property_source_link", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the provision_subproperty REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] + # A result object deserialized from the server's reply + def provision_subproperty request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_provision_subproperty_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "provision_subproperty", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_subproperty_event_filter REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # A result object deserialized from the server's reply + def create_subproperty_event_filter request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_subproperty_event_filter_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_subproperty_event_filter", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_subproperty_event_filter REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # A result object deserialized from the server's reply + def get_subproperty_event_filter request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_subproperty_event_filter_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_subproperty_event_filter", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_subproperty_event_filters REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse] + # A result object deserialized from the server's reply + def list_subproperty_event_filters request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_subproperty_event_filters_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_subproperty_event_filters", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_subproperty_event_filter REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # A result object deserialized from the server's reply + def update_subproperty_event_filter request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_subproperty_event_filter_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_subproperty_event_filter", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_subproperty_event_filter REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_subproperty_event_filter request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_subproperty_event_filter_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_subproperty_event_filter", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_reporting_data_annotation REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # A result object deserialized from the server's reply + def create_reporting_data_annotation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_reporting_data_annotation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_reporting_data_annotation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_reporting_data_annotation REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # A result object deserialized from the server's reply + def get_reporting_data_annotation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_reporting_data_annotation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_reporting_data_annotation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_reporting_data_annotations REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse] + # A result object deserialized from the server's reply + def list_reporting_data_annotations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_reporting_data_annotations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_reporting_data_annotations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_reporting_data_annotation REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # A result object deserialized from the server's reply + def update_reporting_data_annotation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_reporting_data_annotation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_reporting_data_annotation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_reporting_data_annotation REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_reporting_data_annotation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_reporting_data_annotation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_reporting_data_annotation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the submit_user_deletion REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] + # A result object deserialized from the server's reply + def submit_user_deletion request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_submit_user_deletion_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "submit_user_deletion", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_subproperty_sync_configs REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse] + # A result object deserialized from the server's reply + def list_subproperty_sync_configs request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_subproperty_sync_configs_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_subproperty_sync_configs", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_subproperty_sync_config REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # A result object deserialized from the server's reply + def update_subproperty_sync_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_subproperty_sync_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_subproperty_sync_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_subproperty_sync_config REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # A result object deserialized from the server's reply + def get_subproperty_sync_config request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_subproperty_sync_config_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_subproperty_sync_config", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_reporting_identity_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # A result object deserialized from the server's reply + def get_reporting_identity_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_reporting_identity_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_reporting_identity_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_reporting_identity_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # A result object deserialized from the server's reply + def update_reporting_identity_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_reporting_identity_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_reporting_identity_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_user_provided_data_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] + # A result object deserialized from the server's reply + def get_user_provided_data_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_user_provided_data_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_user_provided_data_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the get_account REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccountRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_account_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^accounts/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_accounts REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_accounts_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/accounts", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_account REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_account_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^accounts/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_account REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_account_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{account.name}", + body: "account", + matches: [ + ["account.name", %r{^accounts/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the provision_account_ticket REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_provision_account_ticket_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/accounts:provisionAccountTicket", + body: "*", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_account_summaries REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_account_summaries_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/accountSummaries", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_property REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetPropertyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_property_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_properties REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_properties_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/properties", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_property REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_property_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/properties", + body: "property", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_property REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_property_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_property REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_property_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{property.name}", + body: "property", + matches: [ + ["property.name", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_firebase_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_firebase_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/firebaseLinks", + body: "firebase_link", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_firebase_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_firebase_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/firebaseLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_firebase_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_firebase_links_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/firebaseLinks", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_global_site_tag REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_global_site_tag_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/globalSiteTag/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_google_ads_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_google_ads_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/googleAdsLinks", + body: "google_ads_link", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_google_ads_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_google_ads_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{google_ads_link.name}", + body: "google_ads_link", + matches: [ + ["google_ads_link.name", %r{^properties/[^/]+/googleAdsLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_google_ads_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_google_ads_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/googleAdsLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_google_ads_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_google_ads_links_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/googleAdsLinks", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_data_sharing_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_data_sharing_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^accounts/[^/]+/dataSharingSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_measurement_protocol_secret REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_measurement_protocol_secret_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/measurementProtocolSecrets/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_measurement_protocol_secrets REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_measurement_protocol_secrets_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/measurementProtocolSecrets", + matches: [ + ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_measurement_protocol_secret REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_measurement_protocol_secret_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/measurementProtocolSecrets", + body: "measurement_protocol_secret", + matches: [ + ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_measurement_protocol_secret REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_measurement_protocol_secret_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/measurementProtocolSecrets/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_measurement_protocol_secret REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_measurement_protocol_secret_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{measurement_protocol_secret.name}", + body: "measurement_protocol_secret", + matches: [ + ["measurement_protocol_secret.name", %r{^properties/[^/]+/dataStreams/[^/]+/measurementProtocolSecrets/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the acknowledge_user_data_collection REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_acknowledge_user_data_collection_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{property}:acknowledgeUserDataCollection", + body: "*", + matches: [ + ["property", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_sk_ad_network_conversion_value_schema REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_sk_ad_network_conversion_value_schema_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/sKAdNetworkConversionValueSchema/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_sk_ad_network_conversion_value_schema REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_sk_ad_network_conversion_value_schema_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/sKAdNetworkConversionValueSchema", + body: "skadnetwork_conversion_value_schema", + matches: [ + ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_sk_ad_network_conversion_value_schema REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_sk_ad_network_conversion_value_schema_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/sKAdNetworkConversionValueSchema/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_sk_ad_network_conversion_value_schema REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_sk_ad_network_conversion_value_schema_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{skadnetwork_conversion_value_schema.name}", + body: "skadnetwork_conversion_value_schema", + matches: [ + ["skadnetwork_conversion_value_schema.name", %r{^properties/[^/]+/dataStreams/[^/]+/sKAdNetworkConversionValueSchema/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_sk_ad_network_conversion_value_schemas REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_sk_ad_network_conversion_value_schemas_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/sKAdNetworkConversionValueSchema", + matches: [ + ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the search_change_history_events REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_search_change_history_events_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{account}:searchChangeHistoryEvents", + body: "*", + matches: [ + ["account", %r{^accounts/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_google_signals_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_google_signals_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/googleSignalsSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_google_signals_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_google_signals_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{google_signals_settings.name}", + body: "google_signals_settings", + matches: [ + ["google_signals_settings.name", %r{^properties/[^/]+/googleSignalsSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_conversion_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_conversion_event_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/conversionEvents", + body: "conversion_event", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_conversion_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_conversion_event_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{conversion_event.name}", + body: "conversion_event", + matches: [ + ["conversion_event.name", %r{^properties/[^/]+/conversionEvents/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_conversion_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetConversionEventRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_conversion_event_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/conversionEvents/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_conversion_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_conversion_event_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/conversionEvents/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_conversion_events REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_conversion_events_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/conversionEvents", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_key_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_key_event_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/keyEvents", + body: "key_event", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_key_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_key_event_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{key_event.name}", + body: "key_event", + matches: [ + ["key_event.name", %r{^properties/[^/]+/keyEvents/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_key_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetKeyEventRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_key_event_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/keyEvents/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_key_event REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_key_event_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/keyEvents/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_key_events REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_key_events_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/keyEvents", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_display_video360_advertiser_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_display_video360_advertiser_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_display_video360_advertiser_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_display_video360_advertiser_links_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinks", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_display_video360_advertiser_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_display_video360_advertiser_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinks", + body: "display_video_360_advertiser_link", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_display_video360_advertiser_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_display_video360_advertiser_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_display_video360_advertiser_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_display_video360_advertiser_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{display_video_360_advertiser_link.name}", + body: "display_video_360_advertiser_link", + matches: [ + ["display_video_360_advertiser_link.name", %r{^properties/[^/]+/displayVideo360AdvertiserLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_display_video360_advertiser_link_proposal REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_display_video360_advertiser_link_proposal_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_display_video360_advertiser_link_proposals REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_display_video360_advertiser_link_proposals_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinkProposals", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_display_video360_advertiser_link_proposal REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_display_video360_advertiser_link_proposal_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinkProposals", + body: "display_video_360_advertiser_link_proposal", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_display_video360_advertiser_link_proposal REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_display_video360_advertiser_link_proposal_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the approve_display_video360_advertiser_link_proposal REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_approve_display_video360_advertiser_link_proposal_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{name}:approve", + body: "*", + matches: [ + ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_display_video360_advertiser_link_proposal REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_display_video360_advertiser_link_proposal_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_custom_dimension REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_custom_dimension_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/customDimensions", + body: "custom_dimension", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_custom_dimension REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_custom_dimension_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{custom_dimension.name}", + body: "custom_dimension", + matches: [ + ["custom_dimension.name", %r{^properties/[^/]+/customDimensions/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_custom_dimensions REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_custom_dimensions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/customDimensions", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the archive_custom_dimension REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_archive_custom_dimension_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{name}:archive", + body: "*", + matches: [ + ["name", %r{^properties/[^/]+/customDimensions/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_custom_dimension REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_custom_dimension_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/customDimensions/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_custom_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_custom_metric_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/customMetrics", + body: "custom_metric", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_custom_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_custom_metric_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{custom_metric.name}", + body: "custom_metric", + matches: [ + ["custom_metric.name", %r{^properties/[^/]+/customMetrics/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_custom_metrics REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_custom_metrics_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/customMetrics", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the archive_custom_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_archive_custom_metric_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{name}:archive", + body: "*", + matches: [ + ["name", %r{^properties/[^/]+/customMetrics/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_custom_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_custom_metric_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/customMetrics/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_data_retention_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_data_retention_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataRetentionSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_data_retention_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_data_retention_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{data_retention_settings.name}", + body: "data_retention_settings", + matches: [ + ["data_retention_settings.name", %r{^properties/[^/]+/dataRetentionSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_data_stream REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_data_stream_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/dataStreams", + body: "data_stream", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_data_stream REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_data_stream_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_data_stream REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_data_stream_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{data_stream.name}", + body: "data_stream", + matches: [ + ["data_stream.name", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_data_streams REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_data_streams_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/dataStreams", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_data_stream REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataStreamRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_data_stream_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_audience REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAudienceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_audience_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/audiences/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_audiences REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAudiencesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_audiences_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/audiences", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_audience REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAudienceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_audience_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/audiences", + body: "audience", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_audience REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_audience_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{audience.name}", + body: "audience", + matches: [ + ["audience.name", %r{^properties/[^/]+/audiences/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the archive_audience REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_archive_audience_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{name}:archive", + body: "*", + matches: [ + ["name", %r{^properties/[^/]+/audiences/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_search_ads360_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_search_ads360_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/searchAds360Links/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_search_ads360_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_search_ads360_links_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/searchAds360Links", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_search_ads360_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_search_ads360_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/searchAds360Links", + body: "search_ads_360_link", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_search_ads360_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_search_ads360_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/searchAds360Links/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_search_ads360_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_search_ads360_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{search_ads_360_link.name}", + body: "search_ads_360_link", + matches: [ + ["search_ads_360_link.name", %r{^properties/[^/]+/searchAds360Links/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_attribution_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_attribution_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/attributionSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_attribution_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_attribution_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{attribution_settings.name}", + body: "attribution_settings", + matches: [ + ["attribution_settings.name", %r{^properties/[^/]+/attributionSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the run_access_report REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::RunAccessReportRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_run_access_report_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{entity}:runAccessReport", + body: "*", + matches: [ + ["entity", %r{^properties/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{entity}:runAccessReport", + body: "*", + matches: [ + ["entity", %r{^accounts/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_access_binding REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_access_binding_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/accessBindings", + body: "access_binding", + matches: [ + ["parent", %r{^accounts/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/accessBindings", + body: "access_binding", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_access_binding REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_access_binding_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^accounts/[^/]+/accessBindings/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/accessBindings/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_access_binding REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_access_binding_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{access_binding.name}", + body: "access_binding", + matches: [ + ["access_binding.name", %r{^accounts/[^/]+/accessBindings/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{access_binding.name}", + body: "access_binding", + matches: [ + ["access_binding.name", %r{^properties/[^/]+/accessBindings/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_access_binding REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_access_binding_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^accounts/[^/]+/accessBindings/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/accessBindings/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_access_bindings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_access_bindings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/accessBindings", + matches: [ + ["parent", %r{^accounts/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/accessBindings", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_create_access_bindings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_create_access_bindings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/accessBindings:batchCreate", + body: "*", + matches: [ + ["parent", %r{^accounts/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/accessBindings:batchCreate", + body: "*", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_get_access_bindings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_get_access_bindings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/accessBindings:batchGet", + matches: [ + ["parent", %r{^accounts/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/accessBindings:batchGet", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_update_access_bindings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_update_access_bindings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/accessBindings:batchUpdate", + body: "*", + matches: [ + ["parent", %r{^accounts/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/accessBindings:batchUpdate", + body: "*", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the batch_delete_access_bindings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_batch_delete_access_bindings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/accessBindings:batchDelete", + body: "*", + matches: [ + ["parent", %r{^accounts/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/accessBindings:batchDelete", + body: "*", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_expanded_data_set REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_expanded_data_set_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/expandedDataSets/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_expanded_data_sets REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_expanded_data_sets_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/expandedDataSets", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_expanded_data_set REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_expanded_data_set_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/expandedDataSets", + body: "expanded_data_set", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_expanded_data_set REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_expanded_data_set_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{expanded_data_set.name}", + body: "expanded_data_set", + matches: [ + ["expanded_data_set.name", %r{^properties/[^/]+/expandedDataSets/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_expanded_data_set REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_expanded_data_set_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/expandedDataSets/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_channel_group REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_channel_group_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_channel_groups REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_channel_groups_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/channelGroups", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_channel_group REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_channel_group_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/channelGroups", + body: "channel_group", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_channel_group REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_channel_group_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{channel_group.name}", + body: "channel_group", + matches: [ + ["channel_group.name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_channel_group REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_channel_group_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_big_query_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_big_query_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/bigQueryLinks", + body: "bigquery_link", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_big_query_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_big_query_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/bigQueryLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_big_query_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_big_query_links_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/bigQueryLinks", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_big_query_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_big_query_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/bigQueryLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_big_query_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_big_query_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{bigquery_link.name}", + body: "bigquery_link", + matches: [ + ["bigquery_link.name", %r{^properties/[^/]+/bigQueryLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_enhanced_measurement_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_enhanced_measurement_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_enhanced_measurement_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_enhanced_measurement_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{enhanced_measurement_settings.name}", + body: "enhanced_measurement_settings", + matches: [ + ["enhanced_measurement_settings.name", %r{^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_ad_sense_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_ad_sense_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/adSenseLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_ad_sense_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_ad_sense_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/adSenseLinks", + body: "adsense_link", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_ad_sense_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_ad_sense_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/adSenseLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_ad_sense_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_ad_sense_links_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/adSenseLinks", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_event_create_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_event_create_rule_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventCreateRules/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_event_create_rules REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_event_create_rules_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/eventCreateRules", + matches: [ + ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_event_create_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_event_create_rule_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/eventCreateRules", + body: "event_create_rule", + matches: [ + ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_event_create_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_event_create_rule_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{event_create_rule.name}", + body: "event_create_rule", + matches: [ + ["event_create_rule.name", %r{^properties/[^/]+/dataStreams/[^/]+/eventCreateRules/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_event_create_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_event_create_rule_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventCreateRules/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_event_edit_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_event_edit_rule_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_event_edit_rules REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_event_edit_rules_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/eventEditRules", + matches: [ + ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_event_edit_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_event_edit_rule_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/eventEditRules", + body: "event_edit_rule", + matches: [ + ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_event_edit_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_event_edit_rule_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{event_edit_rule.name}", + body: "event_edit_rule", + matches: [ + ["event_edit_rule.name", %r{^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_event_edit_rule REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_event_edit_rule_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the reorder_event_edit_rules REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_reorder_event_edit_rules_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/eventEditRules:reorder", + body: "*", + matches: [ + ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_data_redaction_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_data_redaction_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{data_redaction_settings.name}", + body: "data_redaction_settings", + matches: [ + ["data_redaction_settings.name", %r{^properties/[^/]+/dataStreams/[^/]+/dataRedactionSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_data_redaction_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_data_redaction_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/dataStreams/[^/]+/dataRedactionSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_calculated_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_calculated_metric_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/calculatedMetrics/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_calculated_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_calculated_metric_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/calculatedMetrics", + body: "calculated_metric", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_calculated_metrics REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_calculated_metrics_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/calculatedMetrics", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_calculated_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_calculated_metric_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{calculated_metric.name}", + body: "calculated_metric", + matches: [ + ["calculated_metric.name", %r{^properties/[^/]+/calculatedMetrics/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_calculated_metric REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_calculated_metric_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/calculatedMetrics/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_rollup_property REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_rollup_property_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/properties:createRollupProperty", + body: "*", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_rollup_property_source_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_rollup_property_source_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/rollupPropertySourceLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_rollup_property_source_links REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_rollup_property_source_links_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/rollupPropertySourceLinks", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_rollup_property_source_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_rollup_property_source_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/rollupPropertySourceLinks", + body: "rollup_property_source_link", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_rollup_property_source_link REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_rollup_property_source_link_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/rollupPropertySourceLinks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the provision_subproperty REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_provision_subproperty_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/properties:provisionSubproperty", + body: "*", + matches: [] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_subproperty_event_filter REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_subproperty_event_filter_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/subpropertyEventFilters", + body: "subproperty_event_filter", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_subproperty_event_filter REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_subproperty_event_filter_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/subpropertyEventFilters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_subproperty_event_filters REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_subproperty_event_filters_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/subpropertyEventFilters", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_subproperty_event_filter REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_subproperty_event_filter_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{subproperty_event_filter.name}", + body: "subproperty_event_filter", + matches: [ + ["subproperty_event_filter.name", %r{^properties/[^/]+/subpropertyEventFilters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_subproperty_event_filter REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_subproperty_event_filter_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/subpropertyEventFilters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_reporting_data_annotation REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_reporting_data_annotation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{parent}/reportingDataAnnotations", + body: "reporting_data_annotation", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_reporting_data_annotation REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_reporting_data_annotation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/reportingDataAnnotations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_reporting_data_annotations REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_reporting_data_annotations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/reportingDataAnnotations", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_reporting_data_annotation REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_reporting_data_annotation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{reporting_data_annotation.name}", + body: "reporting_data_annotation", + matches: [ + ["reporting_data_annotation.name", %r{^properties/[^/]+/reportingDataAnnotations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_reporting_data_annotation REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_reporting_data_annotation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/reportingDataAnnotations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the submit_user_deletion REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_submit_user_deletion_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1alpha/{name}:submitUserDeletion", + body: "*", + matches: [ + ["name", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_subproperty_sync_configs REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_subproperty_sync_configs_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{parent}/subpropertySyncConfigs", + matches: [ + ["parent", %r{^properties/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_subproperty_sync_config REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_subproperty_sync_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{subproperty_sync_config.name}", + body: "subproperty_sync_config", + matches: [ + ["subproperty_sync_config.name", %r{^properties/[^/]+/subpropertySyncConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_subproperty_sync_config REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_subproperty_sync_config_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/subpropertySyncConfigs/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_reporting_identity_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_reporting_identity_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/reportingIdentitySettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_reporting_identity_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_reporting_identity_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{reporting_identity_settings.name}", + body: "reporting_identity_settings", + matches: [ + ["reporting_identity_settings.name", %r{^properties/[^/]+/reportingIdentitySettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_user_provided_data_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_user_provided_data_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1alpha/{name}", + matches: [ + ["name", %r{^properties/[^/]+/userProvidedDataSettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb new file mode 100644 index 000000000000..0dc7c617ad61 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb @@ -0,0 +1,459 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/analytics/admin/v1alpha/analytics_admin.proto for package 'google.analytics.admin.v1alpha' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/analytics/admin/v1alpha/analytics_admin_pb' + +module Google + module Analytics + module Admin + module V1alpha + module AnalyticsAdminService + # Service Interface for the Google Analytics Admin API. + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.analytics.admin.v1alpha.AnalyticsAdminService' + + # Lookup for a single Account. + rpc :GetAccount, ::Google::Analytics::Admin::V1alpha::GetAccountRequest, ::Google::Analytics::Admin::V1alpha::Account + # Returns all accounts accessible by the caller. + # + # Note that these accounts might not currently have GA properties. + # Soft-deleted (ie: "trashed") accounts are excluded by default. + # Returns an empty list if no relevant accounts are found. + rpc :ListAccounts, ::Google::Analytics::Admin::V1alpha::ListAccountsRequest, ::Google::Analytics::Admin::V1alpha::ListAccountsResponse + # Marks target Account as soft-deleted (ie: "trashed") and returns it. + # + # This API does not have a method to restore soft-deleted accounts. + # However, they can be restored using the Trash Can UI. + # + # If the accounts are not restored before the expiration time, the account + # and all child resources (eg: Properties, GoogleAdsLinks, Streams, + # AccessBindings) will be permanently purged. + # https://support.google.com/analytics/answer/6154772 + # + # Returns an error if the target is not found. + rpc :DeleteAccount, ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, ::Google::Protobuf::Empty + # Updates an account. + rpc :UpdateAccount, ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, ::Google::Analytics::Admin::V1alpha::Account + # Requests a ticket for creating an account. + rpc :ProvisionAccountTicket, ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse + # Returns summaries of all accounts accessible by the caller. + rpc :ListAccountSummaries, ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, ::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse + # Lookup for a single GA Property. + rpc :GetProperty, ::Google::Analytics::Admin::V1alpha::GetPropertyRequest, ::Google::Analytics::Admin::V1alpha::Property + # Returns child Properties under the specified parent Account. + # + # Properties will be excluded if the caller does not have access. + # Soft-deleted (ie: "trashed") properties are excluded by default. + # Returns an empty list if no relevant properties are found. + rpc :ListProperties, ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, ::Google::Analytics::Admin::V1alpha::ListPropertiesResponse + # Creates a Google Analytics property with the specified location and + # attributes. + rpc :CreateProperty, ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, ::Google::Analytics::Admin::V1alpha::Property + # Marks target Property as soft-deleted (ie: "trashed") and returns it. + # + # This API does not have a method to restore soft-deleted properties. + # However, they can be restored using the Trash Can UI. + # + # If the properties are not restored before the expiration time, the Property + # and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) + # will be permanently purged. + # https://support.google.com/analytics/answer/6154772 + # + # Returns an error if the target is not found. + rpc :DeleteProperty, ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, ::Google::Analytics::Admin::V1alpha::Property + # Updates a property. + rpc :UpdateProperty, ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, ::Google::Analytics::Admin::V1alpha::Property + # Creates a FirebaseLink. + # + # Properties can have at most one FirebaseLink. + rpc :CreateFirebaseLink, ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, ::Google::Analytics::Admin::V1alpha::FirebaseLink + # Deletes a FirebaseLink on a property + rpc :DeleteFirebaseLink, ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, ::Google::Protobuf::Empty + # Lists FirebaseLinks on a property. + # Properties can have at most one FirebaseLink. + rpc :ListFirebaseLinks, ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse + # Returns the Site Tag for the specified web stream. + # Site Tags are immutable singletons. + rpc :GetGlobalSiteTag, ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, ::Google::Analytics::Admin::V1alpha::GlobalSiteTag + # Creates a GoogleAdsLink. + rpc :CreateGoogleAdsLink, ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, ::Google::Analytics::Admin::V1alpha::GoogleAdsLink + # Updates a GoogleAdsLink on a property + rpc :UpdateGoogleAdsLink, ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, ::Google::Analytics::Admin::V1alpha::GoogleAdsLink + # Deletes a GoogleAdsLink on a property + rpc :DeleteGoogleAdsLink, ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, ::Google::Protobuf::Empty + # Lists GoogleAdsLinks on a property. + rpc :ListGoogleAdsLinks, ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse + # Get data sharing settings on an account. + # Data sharing settings are singletons. + rpc :GetDataSharingSettings, ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataSharingSettings + # Lookup for a single MeasurementProtocolSecret. + rpc :GetMeasurementProtocolSecret, ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest, ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret + # Returns child MeasurementProtocolSecrets under the specified parent + # Property. + rpc :ListMeasurementProtocolSecrets, ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest, ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse + # Creates a measurement protocol secret. + rpc :CreateMeasurementProtocolSecret, ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest, ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret + # Deletes target MeasurementProtocolSecret. + rpc :DeleteMeasurementProtocolSecret, ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest, ::Google::Protobuf::Empty + # Updates a measurement protocol secret. + rpc :UpdateMeasurementProtocolSecret, ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest, ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret + # Acknowledges the terms of user data collection for the specified property. + # + # This acknowledgement must be completed (either in the Google Analytics UI + # or through this API) before MeasurementProtocolSecret resources may be + # created. + rpc :AcknowledgeUserDataCollection, ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest, ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse + # Looks up a single SKAdNetworkConversionValueSchema. + rpc :GetSKAdNetworkConversionValueSchema, ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest, ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema + # Creates a SKAdNetworkConversionValueSchema. + rpc :CreateSKAdNetworkConversionValueSchema, ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest, ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema + # Deletes target SKAdNetworkConversionValueSchema. + rpc :DeleteSKAdNetworkConversionValueSchema, ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest, ::Google::Protobuf::Empty + # Updates a SKAdNetworkConversionValueSchema. + rpc :UpdateSKAdNetworkConversionValueSchema, ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest, ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema + # Lists SKAdNetworkConversionValueSchema on a stream. + # Properties can have at most one SKAdNetworkConversionValueSchema. + rpc :ListSKAdNetworkConversionValueSchemas, ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest, ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse + # Searches through all changes to an account or its children given the + # specified set of filters. + # + # Only returns the subset of changes supported by the API. The UI may return + # additional changes. + rpc :SearchChangeHistoryEvents, ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest, ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse + # Lookup for Google Signals settings for a property. + rpc :GetGoogleSignalsSettings, ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest, ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings + # Updates Google Signals settings for a property. + rpc :UpdateGoogleSignalsSettings, ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest, ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings + # Deprecated: Use `CreateKeyEvent` instead. + # Creates a conversion event with the specified attributes. + rpc :CreateConversionEvent, ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest, ::Google::Analytics::Admin::V1alpha::ConversionEvent + # Deprecated: Use `UpdateKeyEvent` instead. + # Updates a conversion event with the specified attributes. + rpc :UpdateConversionEvent, ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest, ::Google::Analytics::Admin::V1alpha::ConversionEvent + # Deprecated: Use `GetKeyEvent` instead. + # Retrieve a single conversion event. + rpc :GetConversionEvent, ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest, ::Google::Analytics::Admin::V1alpha::ConversionEvent + # Deprecated: Use `DeleteKeyEvent` instead. + # Deletes a conversion event in a property. + rpc :DeleteConversionEvent, ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest, ::Google::Protobuf::Empty + # Deprecated: Use `ListKeyEvents` instead. + # Returns a list of conversion events in the specified parent property. + # + # Returns an empty list if no conversion events are found. + rpc :ListConversionEvents, ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest, ::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse + # Creates a Key Event. + rpc :CreateKeyEvent, ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest, ::Google::Analytics::Admin::V1alpha::KeyEvent + # Updates a Key Event. + rpc :UpdateKeyEvent, ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest, ::Google::Analytics::Admin::V1alpha::KeyEvent + # Retrieve a single Key Event. + rpc :GetKeyEvent, ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest, ::Google::Analytics::Admin::V1alpha::KeyEvent + # Deletes a Key Event. + rpc :DeleteKeyEvent, ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest, ::Google::Protobuf::Empty + # Returns a list of Key Events in the specified parent property. + # Returns an empty list if no Key Events are found. + rpc :ListKeyEvents, ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest, ::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse + # Look up a single DisplayVideo360AdvertiserLink + rpc :GetDisplayVideo360AdvertiserLink, ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink + # Lists all DisplayVideo360AdvertiserLinks on a property. + rpc :ListDisplayVideo360AdvertiserLinks, ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse + # Creates a DisplayVideo360AdvertiserLink. + # This can only be utilized by users who have proper authorization both on + # the Google Analytics property and on the Display & Video 360 advertiser. + # Users who do not have access to the Display & Video 360 advertiser should + # instead seek to create a DisplayVideo360LinkProposal. + rpc :CreateDisplayVideo360AdvertiserLink, ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink + # Deletes a DisplayVideo360AdvertiserLink on a property. + rpc :DeleteDisplayVideo360AdvertiserLink, ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, ::Google::Protobuf::Empty + # Updates a DisplayVideo360AdvertiserLink on a property. + rpc :UpdateDisplayVideo360AdvertiserLink, ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink + # Lookup for a single DisplayVideo360AdvertiserLinkProposal. + rpc :GetDisplayVideo360AdvertiserLinkProposal, ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal + # Lists DisplayVideo360AdvertiserLinkProposals on a property. + rpc :ListDisplayVideo360AdvertiserLinkProposals, ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse + # Creates a DisplayVideo360AdvertiserLinkProposal. + rpc :CreateDisplayVideo360AdvertiserLinkProposal, ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal + # Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + # This can only be used on cancelled proposals. + rpc :DeleteDisplayVideo360AdvertiserLinkProposal, ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::Google::Protobuf::Empty + # Approves a DisplayVideo360AdvertiserLinkProposal. + # The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + # DisplayVideo360AdvertiserLink will be created. + rpc :ApproveDisplayVideo360AdvertiserLinkProposal, ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse + # Cancels a DisplayVideo360AdvertiserLinkProposal. + # Cancelling can mean either: + # - Declining a proposal initiated from Display & Video 360 + # - Withdrawing a proposal initiated from Google Analytics + # After being cancelled, a proposal will eventually be deleted automatically. + rpc :CancelDisplayVideo360AdvertiserLinkProposal, ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal + # Creates a CustomDimension. + rpc :CreateCustomDimension, ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, ::Google::Analytics::Admin::V1alpha::CustomDimension + # Updates a CustomDimension on a property. + rpc :UpdateCustomDimension, ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest, ::Google::Analytics::Admin::V1alpha::CustomDimension + # Lists CustomDimensions on a property. + rpc :ListCustomDimensions, ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest, ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse + # Archives a CustomDimension on a property. + rpc :ArchiveCustomDimension, ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest, ::Google::Protobuf::Empty + # Lookup for a single CustomDimension. + rpc :GetCustomDimension, ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest, ::Google::Analytics::Admin::V1alpha::CustomDimension + # Creates a CustomMetric. + rpc :CreateCustomMetric, ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest, ::Google::Analytics::Admin::V1alpha::CustomMetric + # Updates a CustomMetric on a property. + rpc :UpdateCustomMetric, ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest, ::Google::Analytics::Admin::V1alpha::CustomMetric + # Lists CustomMetrics on a property. + rpc :ListCustomMetrics, ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest, ::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse + # Archives a CustomMetric on a property. + rpc :ArchiveCustomMetric, ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest, ::Google::Protobuf::Empty + # Lookup for a single CustomMetric. + rpc :GetCustomMetric, ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest, ::Google::Analytics::Admin::V1alpha::CustomMetric + # Returns the singleton data retention settings for this property. + rpc :GetDataRetentionSettings, ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataRetentionSettings + # Updates the singleton data retention settings for this property. + rpc :UpdateDataRetentionSettings, ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataRetentionSettings + # Creates a DataStream. + rpc :CreateDataStream, ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest, ::Google::Analytics::Admin::V1alpha::DataStream + # Deletes a DataStream on a property. + rpc :DeleteDataStream, ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest, ::Google::Protobuf::Empty + # Updates a DataStream on a property. + rpc :UpdateDataStream, ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest, ::Google::Analytics::Admin::V1alpha::DataStream + # Lists DataStreams on a property. + rpc :ListDataStreams, ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest, ::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse + # Lookup for a single DataStream. + rpc :GetDataStream, ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest, ::Google::Analytics::Admin::V1alpha::DataStream + # Lookup for a single Audience. + # Audiences created before 2020 may not be supported. + # Default audiences will not show filter definitions. + rpc :GetAudience, ::Google::Analytics::Admin::V1alpha::GetAudienceRequest, ::Google::Analytics::Admin::V1alpha::Audience + # Lists Audiences on a property. + # Audiences created before 2020 may not be supported. + # Default audiences will not show filter definitions. + rpc :ListAudiences, ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest, ::Google::Analytics::Admin::V1alpha::ListAudiencesResponse + # Creates an Audience. + rpc :CreateAudience, ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest, ::Google::Analytics::Admin::V1alpha::Audience + # Updates an Audience on a property. + rpc :UpdateAudience, ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest, ::Google::Analytics::Admin::V1alpha::Audience + # Archives an Audience on a property. + rpc :ArchiveAudience, ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest, ::Google::Protobuf::Empty + # Look up a single SearchAds360Link + rpc :GetSearchAds360Link, ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest, ::Google::Analytics::Admin::V1alpha::SearchAds360Link + # Lists all SearchAds360Links on a property. + rpc :ListSearchAds360Links, ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest, ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse + # Creates a SearchAds360Link. + rpc :CreateSearchAds360Link, ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest, ::Google::Analytics::Admin::V1alpha::SearchAds360Link + # Deletes a SearchAds360Link on a property. + rpc :DeleteSearchAds360Link, ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest, ::Google::Protobuf::Empty + # Updates a SearchAds360Link on a property. + rpc :UpdateSearchAds360Link, ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest, ::Google::Analytics::Admin::V1alpha::SearchAds360Link + # Lookup for a AttributionSettings singleton. + rpc :GetAttributionSettings, ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest, ::Google::Analytics::Admin::V1alpha::AttributionSettings + # Updates attribution settings on a property. + rpc :UpdateAttributionSettings, ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest, ::Google::Analytics::Admin::V1alpha::AttributionSettings + # Returns a customized report of data access records. The report provides + # records of each time a user reads Google Analytics reporting data. Access + # records are retained for up to 2 years. + # + # Data Access Reports can be requested for a property. Reports may be + # requested for any property, but dimensions that aren't related to quota can + # only be requested on Google Analytics 360 properties. This method is only + # available to Administrators. + # + # These data access records include GA UI Reporting, GA UI Explorations, + # GA Data API, and other products like Firebase & Admob that can retrieve + # data from Google Analytics through a linkage. These records don't include + # property configuration changes like adding a stream or changing a + # property's time zone. For configuration change history, see + # [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + # + # To give your feedback on this API, complete the [Google Analytics Access + # Reports + # feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) + # form. + rpc :RunAccessReport, ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest, ::Google::Analytics::Admin::V1alpha::RunAccessReportResponse + # Creates an access binding on an account or property. + rpc :CreateAccessBinding, ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, ::Google::Analytics::Admin::V1alpha::AccessBinding + # Gets information about an access binding. + rpc :GetAccessBinding, ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest, ::Google::Analytics::Admin::V1alpha::AccessBinding + # Updates an access binding on an account or property. + rpc :UpdateAccessBinding, ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, ::Google::Analytics::Admin::V1alpha::AccessBinding + # Deletes an access binding on an account or property. + rpc :DeleteAccessBinding, ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, ::Google::Protobuf::Empty + # Lists all access bindings on an account or property. + rpc :ListAccessBindings, ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest, ::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse + # Creates information about multiple access bindings to an account or + # property. + # + # This method is transactional. If any AccessBinding cannot be created, none + # of the AccessBindings will be created. + rpc :BatchCreateAccessBindings, ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest, ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse + # Gets information about multiple access bindings to an account or property. + rpc :BatchGetAccessBindings, ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest, ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse + # Updates information about multiple access bindings to an account or + # property. + rpc :BatchUpdateAccessBindings, ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest, ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse + # Deletes information about multiple users' links to an account or property. + rpc :BatchDeleteAccessBindings, ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest, ::Google::Protobuf::Empty + # Lookup for a single ExpandedDataSet. + rpc :GetExpandedDataSet, ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest, ::Google::Analytics::Admin::V1alpha::ExpandedDataSet + # Lists ExpandedDataSets on a property. + rpc :ListExpandedDataSets, ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest, ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse + # Creates a ExpandedDataSet. + rpc :CreateExpandedDataSet, ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest, ::Google::Analytics::Admin::V1alpha::ExpandedDataSet + # Updates a ExpandedDataSet on a property. + rpc :UpdateExpandedDataSet, ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest, ::Google::Analytics::Admin::V1alpha::ExpandedDataSet + # Deletes a ExpandedDataSet on a property. + rpc :DeleteExpandedDataSet, ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest, ::Google::Protobuf::Empty + # Lookup for a single ChannelGroup. + rpc :GetChannelGroup, ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest, ::Google::Analytics::Admin::V1alpha::ChannelGroup + # Lists ChannelGroups on a property. + rpc :ListChannelGroups, ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest, ::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse + # Creates a ChannelGroup. + rpc :CreateChannelGroup, ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest, ::Google::Analytics::Admin::V1alpha::ChannelGroup + # Updates a ChannelGroup. + rpc :UpdateChannelGroup, ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest, ::Google::Analytics::Admin::V1alpha::ChannelGroup + # Deletes a ChannelGroup on a property. + rpc :DeleteChannelGroup, ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest, ::Google::Protobuf::Empty + # Creates a BigQueryLink. + rpc :CreateBigQueryLink, ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest, ::Google::Analytics::Admin::V1alpha::BigQueryLink + # Lookup for a single BigQuery Link. + rpc :GetBigQueryLink, ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, ::Google::Analytics::Admin::V1alpha::BigQueryLink + # Lists BigQuery Links on a property. + rpc :ListBigQueryLinks, ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse + # Deletes a BigQueryLink on a property. + rpc :DeleteBigQueryLink, ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest, ::Google::Protobuf::Empty + # Updates a BigQueryLink. + rpc :UpdateBigQueryLink, ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest, ::Google::Analytics::Admin::V1alpha::BigQueryLink + # Returns the enhanced measurement settings for this data stream. + # Note that the stream must enable enhanced measurement for these settings to + # take effect. + rpc :GetEnhancedMeasurementSettings, ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings + # Updates the enhanced measurement settings for this data stream. + # Note that the stream must enable enhanced measurement for these settings to + # take effect. + rpc :UpdateEnhancedMeasurementSettings, ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings + # Looks up a single AdSenseLink. + rpc :GetAdSenseLink, ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest, ::Google::Analytics::Admin::V1alpha::AdSenseLink + # Creates an AdSenseLink. + rpc :CreateAdSenseLink, ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest, ::Google::Analytics::Admin::V1alpha::AdSenseLink + # Deletes an AdSenseLink. + rpc :DeleteAdSenseLink, ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest, ::Google::Protobuf::Empty + # Lists AdSenseLinks on a property. + rpc :ListAdSenseLinks, ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest, ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse + # Lookup for a single EventCreateRule. + rpc :GetEventCreateRule, ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest, ::Google::Analytics::Admin::V1alpha::EventCreateRule + # Lists EventCreateRules on a web data stream. + rpc :ListEventCreateRules, ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest, ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse + # Creates an EventCreateRule. + rpc :CreateEventCreateRule, ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest, ::Google::Analytics::Admin::V1alpha::EventCreateRule + # Updates an EventCreateRule. + rpc :UpdateEventCreateRule, ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest, ::Google::Analytics::Admin::V1alpha::EventCreateRule + # Deletes an EventCreateRule. + rpc :DeleteEventCreateRule, ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest, ::Google::Protobuf::Empty + # Lookup for a single EventEditRule. + rpc :GetEventEditRule, ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest, ::Google::Analytics::Admin::V1alpha::EventEditRule + # Lists EventEditRules on a web data stream. + rpc :ListEventEditRules, ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest, ::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse + # Creates an EventEditRule. + rpc :CreateEventEditRule, ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest, ::Google::Analytics::Admin::V1alpha::EventEditRule + # Updates an EventEditRule. + rpc :UpdateEventEditRule, ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest, ::Google::Analytics::Admin::V1alpha::EventEditRule + # Deletes an EventEditRule. + rpc :DeleteEventEditRule, ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest, ::Google::Protobuf::Empty + # Changes the processing order of event edit rules on the specified stream. + rpc :ReorderEventEditRules, ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest, ::Google::Protobuf::Empty + # Updates a DataRedactionSettings on a property. + rpc :UpdateDataRedactionSettings, ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataRedactionSettings + # Lookup for a single DataRedactionSettings. + rpc :GetDataRedactionSettings, ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataRedactionSettings + # Lookup for a single CalculatedMetric. + rpc :GetCalculatedMetric, ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest, ::Google::Analytics::Admin::V1alpha::CalculatedMetric + # Creates a CalculatedMetric. + rpc :CreateCalculatedMetric, ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest, ::Google::Analytics::Admin::V1alpha::CalculatedMetric + # Lists CalculatedMetrics on a property. + rpc :ListCalculatedMetrics, ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest, ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse + # Updates a CalculatedMetric on a property. + rpc :UpdateCalculatedMetric, ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest, ::Google::Analytics::Admin::V1alpha::CalculatedMetric + # Deletes a CalculatedMetric on a property. + rpc :DeleteCalculatedMetric, ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest, ::Google::Protobuf::Empty + # Create a roll-up property and all roll-up property source links. + rpc :CreateRollupProperty, ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest, ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse + # Lookup for a single roll-up property source Link. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + rpc :GetRollupPropertySourceLink, ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest, ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink + # Lists roll-up property source Links on a property. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + rpc :ListRollupPropertySourceLinks, ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest, ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse + # Creates a roll-up property source link. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + rpc :CreateRollupPropertySourceLink, ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest, ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink + # Deletes a roll-up property source link. + # Only roll-up properties can have source links, so this method will throw an + # error if used on other types of properties. + rpc :DeleteRollupPropertySourceLink, ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest, ::Google::Protobuf::Empty + # Create a subproperty and a subproperty event filter that applies to the + # created subproperty. + rpc :ProvisionSubproperty, ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest, ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse + # Creates a subproperty Event Filter. + rpc :CreateSubpropertyEventFilter, ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest, ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter + # Lookup for a single subproperty Event Filter. + rpc :GetSubpropertyEventFilter, ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest, ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter + # List all subproperty Event Filters on a property. + rpc :ListSubpropertyEventFilters, ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest, ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse + # Updates a subproperty Event Filter. + rpc :UpdateSubpropertyEventFilter, ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest, ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter + # Deletes a subproperty event filter. + rpc :DeleteSubpropertyEventFilter, ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest, ::Google::Protobuf::Empty + # Creates a Reporting Data Annotation. + rpc :CreateReportingDataAnnotation, ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest, ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation + # Lookup a single Reporting Data Annotation. + rpc :GetReportingDataAnnotation, ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest, ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation + # List all Reporting Data Annotations on a property. + rpc :ListReportingDataAnnotations, ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest, ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse + # Updates a Reporting Data Annotation. + rpc :UpdateReportingDataAnnotation, ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest, ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation + # Deletes a Reporting Data Annotation. + rpc :DeleteReportingDataAnnotation, ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest, ::Google::Protobuf::Empty + # Submits a request for user deletion for a property. + rpc :SubmitUserDeletion, ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest, ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse + # List all `SubpropertySyncConfig` resources for a property. + rpc :ListSubpropertySyncConfigs, ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest, ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse + # Updates a `SubpropertySyncConfig`. + rpc :UpdateSubpropertySyncConfig, ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest, ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig + # Lookup for a single `SubpropertySyncConfig`. + rpc :GetSubpropertySyncConfig, ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig + # Returns the reporting identity settings for this property. + rpc :GetReportingIdentitySettings, ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest, ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings + # Updates the reporting identity settings for this property. + rpc :UpdateReportingIdentitySettings, ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings + # Looks up settings related to user-provided data for a property. + rpc :GetUserProvidedDataSettings, ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest, ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb new file mode 100644 index 000000000000..9d63364e3bc1 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb @@ -0,0 +1,46 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/analytics/admin/v1alpha/audience.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/duration_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n-google/analytics/admin/v1alpha/audience.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfc\x0b\n\x1f\x41udienceDimensionOrMetricFilter\x12\x65\n\rstring_filter\x18\x02 \x01(\x0b\x32L.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterH\x00\x12\x66\n\x0ein_list_filter\x18\x03 \x01(\x0b\x32L.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterH\x00\x12g\n\x0enumeric_filter\x18\x04 \x01(\x0b\x32M.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterH\x00\x12g\n\x0e\x62\x65tween_filter\x18\x05 \x01(\x0b\x32M.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterH\x00\x12\x1a\n\nfield_name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12!\n\x14\x61t_any_point_in_time\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13in_any_n_day_period\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x1a\xa3\x02\n\x0cStringFilter\x12o\n\nmatch_type\x18\x01 \x01(\x0e\x32V.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchTypeB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63\x61se_sensitive\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"q\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0f\n\x0b\x42\x45GINS_WITH\x10\x02\x12\r\n\tENDS_WITH\x10\x03\x12\x0c\n\x08\x43ONTAINS\x10\x04\x12\x0f\n\x0b\x46ULL_REGEXP\x10\x05\x1a@\n\x0cInListFilter\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63\x61se_sensitive\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1aJ\n\x0cNumericValue\x12\x15\n\x0bint64_value\x18\x01 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x42\x0b\n\tone_value\x1a\xb6\x02\n\rNumericFilter\x12o\n\toperation\x18\x01 \x01(\x0e\x32W.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.OperationB\x03\xe0\x41\x02\x12`\n\x05value\x18\x02 \x01(\x0b\x32L.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueB\x03\xe0\x41\x02\"R\n\tOperation\x12\x19\n\x15OPERATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x45QUAL\x10\x01\x12\r\n\tLESS_THAN\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x04\x1a\xdb\x01\n\rBetweenFilter\x12\x65\n\nfrom_value\x18\x01 \x01(\x0b\x32L.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueB\x03\xe0\x41\x02\x12\x63\n\x08to_value\x18\x02 \x01(\x0b\x32L.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueB\x03\xe0\x41\x02\x42\x0c\n\none_filter\"\x9b\x01\n\x13\x41udienceEventFilter\x12\x1a\n\nevent_name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12h\n!event_parameter_filter_expression\x18\x02 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.AudienceFilterExpressionB\x03\xe0\x41\x01\"\xcf\x03\n\x18\x41udienceFilterExpression\x12Q\n\tand_group\x18\x01 \x01(\x0b\x32<.google.analytics.admin.v1alpha.AudienceFilterExpressionListH\x00\x12P\n\x08or_group\x18\x02 \x01(\x0b\x32<.google.analytics.admin.v1alpha.AudienceFilterExpressionListH\x00\x12R\n\x0enot_expression\x18\x03 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.AudienceFilterExpressionH\x00\x12\x65\n\x1a\x64imension_or_metric_filter\x18\x04 \x01(\x0b\x32?.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterH\x00\x12K\n\x0c\x65vent_filter\x18\x05 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AudienceEventFilterH\x00\x42\x06\n\x04\x65xpr\"t\n\x1c\x41udienceFilterExpressionList\x12T\n\x12\x66ilter_expressions\x18\x01 \x03(\x0b\x32\x38.google.analytics.admin.v1alpha.AudienceFilterExpression\"\xbf\x01\n\x14\x41udienceSimpleFilter\x12J\n\x05scope\x18\x01 \x01(\x0e\x32\x33.google.analytics.admin.v1alpha.AudienceFilterScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12[\n\x11\x66ilter_expression\x18\x02 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.AudienceFilterExpressionB\x06\xe0\x41\x02\xe0\x41\x05\"\xb2\x04\n\x16\x41udienceSequenceFilter\x12J\n\x05scope\x18\x01 \x01(\x0e\x32\x33.google.analytics.admin.v1alpha.AudienceFilterScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x41\n\x19sequence_maximum_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12h\n\x0esequence_steps\x18\x03 \x03(\x0b\x32K.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepB\x03\xe0\x41\x02\x1a\x9e\x02\n\x14\x41udienceSequenceStep\x12J\n\x05scope\x18\x01 \x01(\x0e\x32\x33.google.analytics.admin.v1alpha.AudienceFilterScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x13immediately_follows\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12;\n\x13\x63onstraint_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12[\n\x11\x66ilter_expression\x18\x04 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.AudienceFilterExpressionB\x06\xe0\x41\x02\xe0\x41\x05\"\xfb\x02\n\x14\x41udienceFilterClause\x12M\n\rsimple_filter\x18\x02 \x01(\x0b\x32\x34.google.analytics.admin.v1alpha.AudienceSimpleFilterH\x00\x12Q\n\x0fsequence_filter\x18\x03 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AudienceSequenceFilterH\x00\x12\x61\n\x0b\x63lause_type\x18\x01 \x01(\x0e\x32G.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseTypeB\x03\xe0\x41\x02\"T\n\x12\x41udienceClauseType\x12$\n AUDIENCE_CLAUSE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07INCLUDE\x10\x01\x12\x0b\n\x07\x45XCLUDE\x10\x02\x42\x08\n\x06\x66ilter\"\xf3\x01\n\x14\x41udienceEventTrigger\x12\x17\n\nevent_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12]\n\rlog_condition\x18\x02 \x01(\x0e\x32\x41.google.analytics.admin.v1alpha.AudienceEventTrigger.LogConditionB\x03\xe0\x41\x02\"c\n\x0cLogCondition\x12\x1d\n\x19LOG_CONDITION_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x41UDIENCE_JOINED\x10\x01\x12\x1f\n\x1b\x41UDIENCE_MEMBERSHIP_RENEWED\x10\x02\"\xd4\x05\n\x08\x41udience\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12(\n\x18membership_duration_days\x18\x04 \x01(\x05\x42\x06\xe0\x41\x02\xe0\x41\x05\x12(\n\x1b\x61\x64s_personalization_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12P\n\revent_trigger\x18\x06 \x01(\x0b\x32\x34.google.analytics.admin.v1alpha.AudienceEventTriggerB\x03\xe0\x41\x01\x12l\n\x17\x65xclusion_duration_mode\x18\x07 \x01(\x0e\x32\x46.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationModeB\x03\xe0\x41\x05\x12W\n\x0e\x66ilter_clauses\x18\x08 \x03(\x0b\x32\x34.google.analytics.admin.v1alpha.AudienceFilterClauseB\t\xe0\x41\x05\xe0\x41\x02\xe0\x41\x06\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x83\x01\n\x1d\x41udienceExclusionDurationMode\x12\x30\n,AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x45XCLUDE_TEMPORARILY\x10\x01\x12\x17\n\x13\x45XCLUDE_PERMANENTLY\x10\x02:W\xea\x41T\n&analyticsadmin.googleapis.com/Audience\x12*properties/{property}/audiences/{audience}*\xc7\x01\n\x13\x41udienceFilterScope\x12%\n!AUDIENCE_FILTER_SCOPE_UNSPECIFIED\x10\x00\x12+\n\'AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT\x10\x01\x12-\n)AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION\x10\x02\x12-\n)AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS\x10\x03\x42u\n\"com.google.analytics.admin.v1alphaB\rAudienceProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Analytics + module Admin + module V1alpha + AudienceDimensionOrMetricFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter").msgclass + AudienceDimensionOrMetricFilter::StringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter").msgclass + AudienceDimensionOrMetricFilter::StringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType").enummodule + AudienceDimensionOrMetricFilter::InListFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter").msgclass + AudienceDimensionOrMetricFilter::NumericValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue").msgclass + AudienceDimensionOrMetricFilter::NumericFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter").msgclass + AudienceDimensionOrMetricFilter::NumericFilter::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation").enummodule + AudienceDimensionOrMetricFilter::BetweenFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter").msgclass + AudienceEventFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceEventFilter").msgclass + AudienceFilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceFilterExpression").msgclass + AudienceFilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceFilterExpressionList").msgclass + AudienceSimpleFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceSimpleFilter").msgclass + AudienceSequenceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceSequenceFilter").msgclass + AudienceSequenceFilter::AudienceSequenceStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep").msgclass + AudienceFilterClause = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceFilterClause").msgclass + AudienceFilterClause::AudienceClauseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType").enummodule + AudienceEventTrigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceEventTrigger").msgclass + AudienceEventTrigger::LogCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition").enummodule + Audience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.Audience").msgclass + Audience::AudienceExclusionDurationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode").enummodule + AudienceFilterScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceFilterScope").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb new file mode 100644 index 000000000000..c3cfa480e242 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/analytics/admin/v1alpha/channel_group.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n2google/analytics/admin/v1alpha/channel_group.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xab\x04\n\x12\x43hannelGroupFilter\x12X\n\rstring_filter\x18\x02 \x01(\x0b\x32?.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterH\x00\x12Y\n\x0ein_list_filter\x18\x03 \x01(\x0b\x32?.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterH\x00\x12\x1a\n\nfield_name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x1a\x8e\x02\n\x0cStringFilter\x12\x62\n\nmatch_type\x18\x01 \x01(\x0e\x32I.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchTypeB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x85\x01\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0f\n\x0b\x42\x45GINS_WITH\x10\x02\x12\r\n\tENDS_WITH\x10\x03\x12\x0c\n\x08\x43ONTAINS\x10\x04\x12\x0f\n\x0b\x46ULL_REGEXP\x10\x05\x12\x12\n\x0ePARTIAL_REGEXP\x10\x06\x1a#\n\x0cInListFilter\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\x42\x0e\n\x0cvalue_filter\"\xf1\x02\n\x1c\x43hannelGroupFilterExpression\x12U\n\tand_group\x18\x01 \x01(\x0b\x32@.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListH\x00\x12T\n\x08or_group\x18\x02 \x01(\x0b\x32@.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListH\x00\x12V\n\x0enot_expression\x18\x03 \x01(\x0b\x32<.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionH\x00\x12\x44\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x32.google.analytics.admin.v1alpha.ChannelGroupFilterH\x00\x42\x06\n\x04\x65xpr\"|\n ChannelGroupFilterExpressionList\x12X\n\x12\x66ilter_expressions\x18\x01 \x03(\x0b\x32<.google.analytics.admin.v1alpha.ChannelGroupFilterExpression\"\x80\x01\n\x0cGroupingRule\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\nexpression\x18\x02 \x01(\x0b\x32<.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionB\x03\xe0\x41\x02\"\xb4\x02\n\x0c\x43hannelGroup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12H\n\rgrouping_rule\x18\x04 \x03(\x0b\x32,.google.analytics.admin.v1alpha.GroupingRuleB\x03\xe0\x41\x02\x12\x1b\n\x0esystem_defined\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x07primary\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:d\xea\x41\x61\n*analyticsadmin.googleapis.com/ChannelGroup\x12\x33properties/{property}/channelGroups/{channel_group}By\n\"com.google.analytics.admin.v1alphaB\x11\x43hannelGroupProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Analytics + module Admin + module V1alpha + ChannelGroupFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilter").msgclass + ChannelGroupFilter::StringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter").msgclass + ChannelGroupFilter::StringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType").enummodule + ChannelGroupFilter::InListFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter").msgclass + ChannelGroupFilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilterExpression").msgclass + ChannelGroupFilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList").msgclass + GroupingRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GroupingRule").msgclass + ChannelGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroup").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb new file mode 100644 index 000000000000..6c82f8d9ab55 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/analytics/admin/v1alpha/event_create_and_edit.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n:google/analytics/admin/v1alpha/event_create_and_edit.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"I\n\x11ParameterMutation\x12\x16\n\tparameter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fparameter_value\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x92\x03\n\x0f\x45ventCreateRule\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1e\n\x11\x64\x65stination_event\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x10\x65vent_conditions\x18\x03 \x03(\x0b\x32\x31.google.analytics.admin.v1alpha.MatchingConditionB\x03\xe0\x41\x02\x12\x1e\n\x16source_copy_parameters\x18\x04 \x01(\x08\x12N\n\x13parameter_mutations\x18\x05 \x03(\x0b\x32\x31.google.analytics.admin.v1alpha.ParameterMutation:\x89\x01\xea\x41\x85\x01\n-analyticsadmin.googleapis.com/EventCreateRule\x12Tproperties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}\"\xa8\x03\n\rEventEditRule\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x10\x65vent_conditions\x18\x03 \x03(\x0b\x32\x31.google.analytics.admin.v1alpha.MatchingConditionB\x03\xe0\x41\x02\x12S\n\x13parameter_mutations\x18\x04 \x03(\x0b\x32\x31.google.analytics.admin.v1alpha.ParameterMutationB\x03\xe0\x41\x02\x12\x1d\n\x10processing_order\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03:\xa2\x01\xea\x41\x9e\x01\n+analyticsadmin.googleapis.com/EventEditRule\x12Pproperties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}*\x0e\x65ventEditRules2\reventEditRule\"\xad\x04\n\x11MatchingCondition\x12\x12\n\x05\x66ield\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12^\n\x0f\x63omparison_type\x18\x02 \x01(\x0e\x32@.google.analytics.admin.v1alpha.MatchingCondition.ComparisonTypeB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07negated\x18\x04 \x01(\x08\"\xfe\x02\n\x0e\x43omparisonType\x12\x1f\n\x1b\x43OMPARISON_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x45QUALS\x10\x01\x12\x1b\n\x17\x45QUALS_CASE_INSENSITIVE\x10\x02\x12\x0c\n\x08\x43ONTAINS\x10\x03\x12\x1d\n\x19\x43ONTAINS_CASE_INSENSITIVE\x10\x04\x12\x0f\n\x0bSTARTS_WITH\x10\x05\x12 \n\x1cSTARTS_WITH_CASE_INSENSITIVE\x10\x06\x12\r\n\tENDS_WITH\x10\x07\x12\x1e\n\x1a\x45NDS_WITH_CASE_INSENSITIVE\x10\x08\x12\x10\n\x0cGREATER_THAN\x10\t\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\n\x12\r\n\tLESS_THAN\x10\x0b\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x0c\x12\x16\n\x12REGULAR_EXPRESSION\x10\r\x12\'\n#REGULAR_EXPRESSION_CASE_INSENSITIVE\x10\x0e\x42\x66\n\"com.google.analytics.admin.v1alphaP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Analytics + module Admin + module V1alpha + ParameterMutation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ParameterMutation").msgclass + EventCreateRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.EventCreateRule").msgclass + EventEditRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.EventEditRule").msgclass + MatchingCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.MatchingCondition").msgclass + MatchingCondition::ComparisonType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.MatchingCondition.ComparisonType").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/expanded_data_set_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/expanded_data_set_pb.rb new file mode 100644 index 000000000000..5bd114a73dbc --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/expanded_data_set_pb.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/analytics/admin/v1alpha/expanded_data_set.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n6google/analytics/admin/v1alpha/expanded_data_set.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa6\x04\n\x15\x45xpandedDataSetFilter\x12[\n\rstring_filter\x18\x02 \x01(\x0b\x32\x42.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterH\x00\x12\\\n\x0ein_list_filter\x18\x03 \x01(\x0b\x32\x42.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterH\x00\x12\x17\n\nfield_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a\xe8\x01\n\x0cStringFilter\x12\x65\n\nmatch_type\x18\x01 \x01(\x0e\x32L.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchTypeB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63\x61se_sensitive\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"@\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0c\n\x08\x43ONTAINS\x10\x02\x1a@\n\x0cInListFilter\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63\x61se_sensitive\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x42\x0c\n\none_filter\"\xa7\x02\n\x1f\x45xpandedDataSetFilterExpression\x12X\n\tand_group\x18\x01 \x01(\x0b\x32\x43.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListH\x00\x12Y\n\x0enot_expression\x18\x02 \x01(\x0b\x32?.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionH\x00\x12G\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.ExpandedDataSetFilterH\x00\x42\x06\n\x04\x65xpr\"\x82\x01\n#ExpandedDataSetFilterExpressionList\x12[\n\x12\x66ilter_expressions\x18\x01 \x03(\x0b\x32?.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression\"\xb2\x03\n\x0f\x45xpandedDataSet\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64imension_names\x18\x04 \x03(\tB\x03\xe0\x41\x05\x12\x19\n\x0cmetric_names\x18\x05 \x03(\tB\x03\xe0\x41\x05\x12i\n\x1b\x64imension_filter_expression\x18\x06 \x01(\x0b\x32?.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionB\x03\xe0\x41\x05\x12\x43\n\x1a\x64\x61ta_collection_start_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:n\xea\x41k\n-analyticsadmin.googleapis.com/ExpandedDataSet\x12:properties/{property}/expandedDataSets/{expanded_data_set}B|\n\"com.google.analytics.admin.v1alphaB\x14\x45xpandedDataSetProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Analytics + module Admin + module V1alpha + ExpandedDataSetFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilter").msgclass + ExpandedDataSetFilter::StringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter").msgclass + ExpandedDataSetFilter::StringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType").enummodule + ExpandedDataSetFilter::InListFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter").msgclass + ExpandedDataSetFilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression").msgclass + ExpandedDataSetFilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList").msgclass + ExpandedDataSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSet").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb new file mode 100644 index 000000000000..87d76f572e89 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb @@ -0,0 +1,103 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/analytics/admin/v1alpha/resources.proto + +require 'google/protobuf' + +require 'google/analytics/admin/v1alpha/audience_pb' +require 'google/analytics/admin/v1alpha/channel_group_pb' +require 'google/analytics/admin/v1alpha/event_create_and_edit_pb' +require 'google/analytics/admin/v1alpha/expanded_data_set_pb' +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' +require 'google/protobuf/wrappers_pb' +require 'google/type/date_pb' + + +descriptor_data = "\n.google/analytics/admin/v1alpha/resources.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a-google/analytics/admin/v1alpha/audience.proto\x1a\x32google/analytics/admin/v1alpha/channel_group.proto\x1a:google/analytics/admin/v1alpha/event_create_and_edit.proto\x1a\x36google/analytics/admin/v1alpha/expanded_data_set.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto\"\xf7\x02\n\x07\x41\x63\x63ount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bregion_code\x18\x05 \x01(\t\x12\x14\n\x07\x64\x65leted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12T\n\x10gmp_organization\x18\x07 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2marketingplatformadmin.googleapis.com/Organization:Q\xea\x41N\n%analyticsadmin.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}*\x08\x61\x63\x63ounts2\x07\x61\x63\x63ount\"\xcf\x05\n\x08Property\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12H\n\rproperty_type\x18\x0e \x01(\x0e\x32,.google.analytics.admin.v1alpha.PropertyTypeB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06parent\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12K\n\x11industry_category\x18\x06 \x01(\x0e\x32\x30.google.analytics.admin.v1alpha.IndustryCategory\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rcurrency_code\x18\x08 \x01(\t\x12H\n\rservice_level\x18\n \x01(\x0e\x32,.google.analytics.admin.v1alpha.ServiceLevelB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12>\n\x07\x61\x63\x63ount\x18\r \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%analyticsadmin.googleapis.com/Account:X\xea\x41U\n&analyticsadmin.googleapis.com/Property\x12\x15properties/{property}*\nproperties2\x08property\"\x8d\x08\n\nDataStream\x12S\n\x0fweb_stream_data\x18\x06 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.DataStream.WebStreamDataH\x00\x12\x62\n\x17\x61ndroid_app_stream_data\x18\x07 \x01(\x0b\x32?.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataH\x00\x12Z\n\x13ios_app_stream_data\x18\x08 \x01(\x0b\x32;.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12O\n\x04type\x18\x02 \x01(\x0e\x32\x39.google.analytics.admin.v1alpha.DataStream.DataStreamTypeB\x06\xe0\x41\x05\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a_\n\rWebStreamData\x12\x1b\n\x0emeasurement_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x66irebase_app_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65\x66\x61ult_uri\x18\x03 \x01(\t\x1aO\n\x14\x41ndroidAppStreamData\x12\x1c\n\x0f\x66irebase_app_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cpackage_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x1aK\n\x10IosAppStreamData\x12\x1c\n\x0f\x66irebase_app_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\tbundle_id\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\"}\n\x0e\x44\x61taStreamType\x12 \n\x1c\x44\x41TA_STREAM_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fWEB_DATA_STREAM\x10\x01\x12\x1b\n\x17\x41NDROID_APP_DATA_STREAM\x10\x02\x12\x17\n\x13IOS_APP_DATA_STREAM\x10\x03:w\xea\x41t\n(analyticsadmin.googleapis.com/DataStream\x12/properties/{property}/dataStreams/{data_stream}*\x0b\x64\x61taStreams2\ndataStreamB\r\n\x0bstream_data\"\xf1\x01\n\x0c\x46irebaseLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07project\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x81\x01\xea\x41~\n*analyticsadmin.googleapis.com/FirebaseLink\x12\x33properties/{property}/firebaseLinks/{firebase_link}*\rfirebaseLinks2\x0c\x66irebaseLink\"\xca\x01\n\rGlobalSiteTag\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07snippet\x18\x02 \x01(\tB\x03\xe0\x41\x05:\x8f\x01\xea\x41\x8b\x01\n+analyticsadmin.googleapis.com/GlobalSiteTag\x12=properties/{property}/dataStreams/{data_stream}/globalSiteTag*\x0eglobalSiteTags2\rglobalSiteTag\"\xb9\x03\n\rGoogleAdsLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x0b\x63ustomer_id\x18\x03 \x01(\tB\x03\xe0\x41\x05\x12\x1f\n\x12\x63\x61n_manage_clients\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\"\n\x15\x63reator_email_address\x18\t \x01(\tB\x03\xe0\x41\x03:\x88\x01\xea\x41\x84\x01\n+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x36properties/{property}/googleAdsLinks/{google_ads_link}*\x0egoogleAdsLinks2\rgoogleAdsLink\"\x9b\x03\n\x13\x44\x61taSharingSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12+\n#sharing_with_google_support_enabled\x18\x02 \x01(\x08\x12\x32\n*sharing_with_google_assigned_sales_enabled\x18\x03 \x01(\x08\x12\x31\n%sharing_with_google_any_sales_enabled\x18\x04 \x01(\x08\x42\x02\x18\x01\x12,\n$sharing_with_google_products_enabled\x18\x05 \x01(\x08\x12#\n\x1bsharing_with_others_enabled\x18\x06 \x01(\x08:\x89\x01\xea\x41\x85\x01\n1analyticsadmin.googleapis.com/DataSharingSettings\x12&accounts/{account}/dataSharingSettings*\x13\x64\x61taSharingSettings2\x13\x64\x61taSharingSettings\"\xbc\x02\n\x0e\x41\x63\x63ountSummary\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12;\n\x07\x61\x63\x63ount\x18\x02 \x01(\tB*\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12K\n\x12property_summaries\x18\x04 \x03(\x0b\x32/.google.analytics.admin.v1alpha.PropertySummary:w\xea\x41t\n,analyticsadmin.googleapis.com/AccountSummary\x12\"accountSummaries/{account_summary}*\x10\x61\x63\x63ountSummaries2\x0e\x61\x63\x63ountSummary\"\xcd\x01\n\x0fPropertySummary\x12=\n\x08property\x18\x01 \x01(\tB+\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x43\n\rproperty_type\x18\x03 \x01(\x0e\x32,.google.analytics.admin.v1alpha.PropertyType\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12\x10\n\x08\x63\x61n_edit\x18\x05 \x01(\x08\"\xc5\x02\n\x19MeasurementProtocolSecret\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0csecret_value\x18\x03 \x01(\tB\x03\xe0\x41\x03:\xde\x01\xea\x41\xda\x01\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\x12hproperties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}*\x1ameasurementProtocolSecrets2\x19measurementProtocolSecret\"\xc8\x04\n SKAdNetworkConversionValueSchema\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12P\n\x13postback_window_one\x18\x02 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindowB\x03\xe0\x41\x02\x12K\n\x13postback_window_two\x18\x03 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindow\x12M\n\x15postback_window_three\x18\x04 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindow\x12\x1f\n\x17\x61pply_conversion_values\x18\x05 \x01(\x08:\x81\x02\xea\x41\xfd\x01\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12vproperties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}*!skAdNetworkConversionValueSchemas2 skAdNetworkConversionValueSchema\"\x87\x01\n\x0ePostbackWindow\x12K\n\x11\x63onversion_values\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.ConversionValues\x12(\n postback_window_settings_enabled\x18\x02 \x01(\x08\"\xf4\x01\n\x10\x43onversionValues\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x17\n\nfine_value\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x46\n\x0c\x63oarse_value\x18\x03 \x01(\x0e\x32+.google.analytics.admin.v1alpha.CoarseValueB\x03\xe0\x41\x02\x12\x44\n\x0e\x65vent_mappings\x18\x04 \x03(\x0b\x32,.google.analytics.admin.v1alpha.EventMapping\x12\x14\n\x0clock_enabled\x18\x05 \x01(\x08\x42\r\n\x0b_fine_value\"\xef\x01\n\x0c\x45ventMapping\x12\x17\n\nevent_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fmin_event_count\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x1c\n\x0fmax_event_count\x18\x03 \x01(\x03H\x01\x88\x01\x01\x12\x1c\n\x0fmin_event_value\x18\x04 \x01(\x01H\x02\x88\x01\x01\x12\x1c\n\x0fmax_event_value\x18\x05 \x01(\x01H\x03\x88\x01\x01\x42\x12\n\x10_min_event_countB\x12\n\x10_max_event_countB\x12\n\x10_min_event_valueB\x12\n\x10_max_event_value\"\x8a\x02\n\x12\x43hangeHistoryEvent\x12\n\n\x02id\x18\x01 \x01(\t\x12/\n\x0b\x63hange_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\nactor_type\x18\x03 \x01(\x0e\x32).google.analytics.admin.v1alpha.ActorType\x12\x18\n\x10user_actor_email\x18\x04 \x01(\t\x12\x18\n\x10\x63hanges_filtered\x18\x05 \x01(\x08\x12\x44\n\x07\x63hanges\x18\x06 \x03(\x0b\x32\x33.google.analytics.admin.v1alpha.ChangeHistoryChange\"\x99\x16\n\x13\x43hangeHistoryChange\x12\x10\n\x08resource\x18\x01 \x01(\t\x12:\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32*.google.analytics.admin.v1alpha.ActionType\x12i\n\x16resource_before_change\x18\x03 \x01(\x0b\x32I.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\x12h\n\x15resource_after_change\x18\x04 \x01(\x0b\x32I.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\x1a\xde\x13\n\x15\x43hangeHistoryResource\x12:\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.AccountH\x00\x12<\n\x08property\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyH\x00\x12\x45\n\rfirebase_link\x18\x06 \x01(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLinkH\x00\x12H\n\x0fgoogle_ads_link\x18\x07 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLinkH\x00\x12X\n\x17google_signals_settings\x18\x08 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.GoogleSignalsSettingsH\x00\x12j\n!display_video_360_advertiser_link\x18\t \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkH\x00\x12{\n*display_video_360_advertiser_link_proposal\x18\n \x01(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalH\x00\x12K\n\x10\x63onversion_event\x18\x0b \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventH\x00\x12`\n\x1bmeasurement_protocol_secret\x18\x0c \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretH\x00\x12K\n\x10\x63ustom_dimension\x18\r \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimensionH\x00\x12\x45\n\rcustom_metric\x18\x0e \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetricH\x00\x12X\n\x17\x64\x61ta_retention_settings\x18\x0f \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRetentionSettingsH\x00\x12O\n\x13search_ads_360_link\x18\x10 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360LinkH\x00\x12\x41\n\x0b\x64\x61ta_stream\x18\x12 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStreamH\x00\x12S\n\x14\x61ttribution_settings\x18\x14 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AttributionSettingsH\x00\x12L\n\x11\x65xpanded_data_set\x18\x15 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetH\x00\x12\x45\n\rchannel_group\x18\x16 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupH\x00\x12\x45\n\rbigquery_link\x18\x17 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkH\x00\x12\x64\n\x1d\x65nhanced_measurement_settings\x18\x18 \x01(\x0b\x32;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsH\x00\x12X\n\x17\x64\x61ta_redaction_settings\x18\x19 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRedactionSettingsH\x00\x12o\n#skadnetwork_conversion_value_schema\x18\x1a \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaH\x00\x12\x43\n\x0c\x61\x64sense_link\x18\x1b \x01(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLinkH\x00\x12<\n\x08\x61udience\x18\x1c \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceH\x00\x12L\n\x11\x65vent_create_rule\x18\x1d \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleH\x00\x12=\n\tkey_event\x18\x1e \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventH\x00\x12M\n\x11\x63\x61lculated_metric\x18\x1f \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricH\x00\x12\\\n\x19reporting_data_annotation\x18 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationH\x00\x12X\n\x17subproperty_sync_config\x18! \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfigH\x00\x12`\n\x1breporting_identity_settings\x18\" \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.ReportingIdentitySettingsH\x00\x12_\n\x1buser_provided_data_settings\x18# \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.UserProvidedDataSettingsH\x00\x42\n\n\x08resource\"\x9e\x04\n\x1d\x44isplayVideo360AdvertiserLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12$\n\x17\x61\x64vertiser_display_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05:\xda\x01\xea\x41\xd6\x01\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12Xproperties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}*\x1e\x64isplayVideo360AdvertiserLinks2\x1d\x64isplayVideo360AdvertiserLink\"\xd9\x05\n%DisplayVideo360AdvertiserLinkProposal\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x64\n\x1clink_proposal_status_details\x18\x03 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.LinkProposalStatusDetailsB\x03\xe0\x41\x03\x12$\n\x17\x61\x64vertiser_display_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10validation_email\x18\x05 \x01(\tB\x03\xe0\x41\x04\x12\x44\n\x1b\x61\x64s_personalization_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05:\x83\x02\xea\x41\xff\x01\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12iproperties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}*&displayVideo360AdvertiserLinkProposals2%displayVideo360AdvertiserLinkProposal\"\x8f\x04\n\x10SearchAds360Link\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12$\n\x17\x61\x64vertiser_display_name\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12>\n\x1asite_stats_sharing_enabled\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue:\x98\x01\xea\x41\x94\x01\n.analyticsadmin.googleapis.com/SearchAds360Link\x12=properties/{property}/searchAds360Links/{search_ads_360_link}*\x11searchAds360Links2\x10searchAds360Link\"\xfc\x01\n\x19LinkProposalStatusDetails\x12l\n link_proposal_initiating_product\x18\x01 \x01(\x0e\x32=.google.analytics.admin.v1alpha.LinkProposalInitiatingProductB\x03\xe0\x41\x03\x12\x1c\n\x0frequestor_email\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12S\n\x13link_proposal_state\x18\x03 \x01(\x0e\x32\x31.google.analytics.admin.v1alpha.LinkProposalStateB\x03\xe0\x41\x03\"\x85\x06\n\x0f\x43onversionEvent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\nevent_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tdeletable\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06\x63ustom\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12\x66\n\x0f\x63ounting_method\x18\x06 \x01(\x0e\x32H.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethodB\x03\xe0\x41\x01\x12r\n\x18\x64\x65\x66\x61ult_conversion_value\x18\x07 \x01(\x0b\x32\x46.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a\x64\n\x16\x44\x65\x66\x61ultConversionValue\x12\x12\n\x05value\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_valueB\x10\n\x0e_currency_code\"p\n\x18\x43onversionCountingMethod\x12*\n&CONVERSION_COUNTING_METHOD_UNSPECIFIED\x10\x00\x12\x12\n\x0eONCE_PER_EVENT\x10\x01\x12\x14\n\x10ONCE_PER_SESSION\x10\x02:\x91\x01\xea\x41\x8d\x01\n-analyticsadmin.googleapis.com/ConversionEvent\x12\x39properties/{property}/conversionEvents/{conversion_event}*\x10\x63onversionEvents2\x0f\x63onversionEventB\x1b\n\x19_default_conversion_value\"\xd7\x04\n\x08KeyEvent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nevent_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tdeletable\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06\x63ustom\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12U\n\x0f\x63ounting_method\x18\x06 \x01(\x0e\x32\x37.google.analytics.admin.v1alpha.KeyEvent.CountingMethodB\x03\xe0\x41\x02\x12Q\n\rdefault_value\x18\x07 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.KeyEvent.DefaultValueB\x03\xe0\x41\x01\x1a\x46\n\x0c\x44\x65\x66\x61ultValue\x12\x1a\n\rnumeric_value\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"[\n\x0e\x43ountingMethod\x12\x1f\n\x1b\x43OUNTING_METHOD_UNSPECIFIED\x10\x00\x12\x12\n\x0eONCE_PER_EVENT\x10\x01\x12\x14\n\x10ONCE_PER_SESSION\x10\x02:m\xea\x41j\n&analyticsadmin.googleapis.com/KeyEvent\x12+properties/{property}/keyEvents/{key_event}*\tkeyEvents2\x08keyEvent\"\xa0\x02\n\x15GoogleSignalsSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x03 \x01(\x0e\x32\x32.google.analytics.admin.v1alpha.GoogleSignalsState\x12J\n\x07\x63onsent\x18\x04 \x01(\x0e\x32\x34.google.analytics.admin.v1alpha.GoogleSignalsConsentB\x03\xe0\x41\x03:e\xea\x41\x62\n3analyticsadmin.googleapis.com/GoogleSignalsSettings\x12+properties/{property}/googleSignalsSettings\"\xe1\x03\n\x0f\x43ustomDimension\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0eparameter_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12U\n\x05scope\x18\x05 \x01(\x0e\x32>.google.analytics.admin.v1alpha.CustomDimension.DimensionScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12)\n\x1c\x64isallow_ads_personalization\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"P\n\x0e\x44imensionScope\x12\x1f\n\x1b\x44IMENSION_SCOPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45VENT\x10\x01\x12\x08\n\x04USER\x10\x02\x12\x08\n\x04ITEM\x10\x03:\x91\x01\xea\x41\x8d\x01\n-analyticsadmin.googleapis.com/CustomDimension\x12\x39properties/{property}/customDimensions/{custom_dimension}*\x10\x63ustomDimensions2\x0f\x63ustomDimension\"\xe3\x06\n\x0c\x43ustomMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0eparameter_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12[\n\x10measurement_unit\x18\x05 \x01(\x0e\x32<.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnitB\x03\xe0\x41\x02\x12O\n\x05scope\x18\x06 \x01(\x0e\x32\x38.google.analytics.admin.v1alpha.CustomMetric.MetricScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x66\n\x16restricted_metric_type\x18\x08 \x03(\x0e\x32\x41.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricTypeB\x03\xe0\x41\x01\"\xb7\x01\n\x0fMeasurementUnit\x12 \n\x1cMEASUREMENT_UNIT_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0c\n\x08\x43URRENCY\x10\x02\x12\x08\n\x04\x46\x45\x45T\x10\x03\x12\n\n\x06METERS\x10\x04\x12\x0e\n\nKILOMETERS\x10\x05\x12\t\n\x05MILES\x10\x06\x12\x10\n\x0cMILLISECONDS\x10\x07\x12\x0b\n\x07SECONDS\x10\x08\x12\x0b\n\x07MINUTES\x10\t\x12\t\n\x05HOURS\x10\n\"6\n\x0bMetricScope\x12\x1c\n\x18METRIC_SCOPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45VENT\x10\x01\"_\n\x14RestrictedMetricType\x12&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCOST_DATA\x10\x01\x12\x10\n\x0cREVENUE_DATA\x10\x02:\x81\x01\xea\x41~\n*analyticsadmin.googleapis.com/CustomMetric\x12\x33properties/{property}/customMetrics/{custom_metric}*\rcustomMetrics2\x0c\x63ustomMetric\"\xa7\x06\n\x10\x43\x61lculatedMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12!\n\x14\x63\x61lculated_metric_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12U\n\x0bmetric_unit\x18\x05 \x01(\x0e\x32;.google.analytics.admin.v1alpha.CalculatedMetric.MetricUnitB\x03\xe0\x41\x02\x12j\n\x16restricted_metric_type\x18\x06 \x03(\x0e\x32\x45.google.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricTypeB\x03\xe0\x41\x03\x12\x14\n\x07\x66ormula\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18invalid_metric_reference\x18\t \x01(\x08\x42\x03\xe0\x41\x03\"\xad\x01\n\nMetricUnit\x12\x1b\n\x17METRIC_UNIT_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0c\n\x08\x43URRENCY\x10\x02\x12\x08\n\x04\x46\x45\x45T\x10\x03\x12\t\n\x05MILES\x10\x04\x12\n\n\x06METERS\x10\x05\x12\x0e\n\nKILOMETERS\x10\x06\x12\x10\n\x0cMILLISECONDS\x10\x07\x12\x0b\n\x07SECONDS\x10\x08\x12\x0b\n\x07MINUTES\x10\t\x12\t\n\x05HOURS\x10\n\"_\n\x14RestrictedMetricType\x12&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCOST_DATA\x10\x01\x12\x10\n\x0cREVENUE_DATA\x10\x02:\x96\x01\xea\x41\x92\x01\n.analyticsadmin.googleapis.com/CalculatedMetric\x12;properties/{property}/calculatedMetrics/{calculated_metric}*\x11\x63\x61lculatedMetrics2\x10\x63\x61lculatedMetric\"\xe2\x04\n\x15\x44\x61taRetentionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12j\n\x14\x65vent_data_retention\x18\x02 \x01(\x0e\x32G.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\x03\xe0\x41\x02\x12i\n\x13user_data_retention\x18\x04 \x01(\x0e\x32G.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\x03\xe0\x41\x02\x12\'\n\x1freset_user_data_on_new_activity\x18\x03 \x01(\x08\"\x9e\x01\n\x11RetentionDuration\x12\"\n\x1eRETENTION_DURATION_UNSPECIFIED\x10\x00\x12\x0e\n\nTWO_MONTHS\x10\x01\x12\x13\n\x0f\x46OURTEEN_MONTHS\x10\x03\x12\x15\n\x11TWENTY_SIX_MONTHS\x10\x04\x12\x17\n\x13THIRTY_EIGHT_MONTHS\x10\x05\x12\x10\n\x0c\x46IFTY_MONTHS\x10\x06:\x94\x01\xea\x41\x90\x01\n3analyticsadmin.googleapis.com/DataRetentionSettings\x12+properties/{property}/dataRetentionSettings*\x15\x64\x61taRetentionSettings2\x15\x64\x61taRetentionSettings\"\xfc\x0b\n\x13\x41ttributionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x97\x01\n,acquisition_conversion_event_lookback_window\x18\x02 \x01(\x0e\x32\\.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindowB\x03\xe0\x41\x02\x12\x8b\x01\n&other_conversion_event_lookback_window\x18\x03 \x01(\x0e\x32V.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindowB\x03\xe0\x41\x02\x12w\n\x1breporting_attribution_model\x18\x04 \x01(\x0e\x32M.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModelB\x03\xe0\x41\x02\x12\x86\x01\n$ads_web_conversion_data_export_scope\x18\x05 \x01(\x0e\x32S.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScopeB\x03\xe0\x41\x02\"\xdb\x01\n(AcquisitionConversionEventLookbackWindow\x12<\n8ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\x10\x00\x12\x37\n3ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS\x10\x01\x12\x38\n4ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS\x10\x02\"\xf8\x01\n\"OtherConversionEventLookbackWindow\x12\x36\n2OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\x10\x00\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS\x10\x01\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS\x10\x02\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS\x10\x03\"\xc2\x01\n\x19ReportingAttributionModel\x12+\n\'REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED\x10\x00\x12)\n%PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN\x10\x01\x12(\n$PAID_AND_ORGANIC_CHANNELS_LAST_CLICK\x10\x02\x12#\n\x1fGOOGLE_PAID_CHANNELS_LAST_CLICK\x10\x07\"\xa6\x01\n\x1f\x41\x64sWebConversionDataExportScope\x12\x34\n0ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED\x10\x00\x12\x14\n\x10NOT_SELECTED_YET\x10\x01\x12\x1d\n\x19PAID_AND_ORGANIC_CHANNELS\x10\x02\x12\x18\n\x14GOOGLE_PAID_CHANNELS\x10\x03:a\xea\x41^\n1analyticsadmin.googleapis.com/AttributionSettings\x12)properties/{property}/attributionSettings\"\xf1\x01\n\rAccessBinding\x12\x0e\n\x04user\x18\x02 \x01(\tH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\r\n\x05roles\x18\x03 \x03(\t:\x9c\x01\xea\x41\x98\x01\n+analyticsadmin.googleapis.com/AccessBinding\x12\x32\x61\x63\x63ounts/{account}/accessBindings/{access_binding}\x12\x35properties/{property}/accessBindings/{access_binding}B\x0f\n\raccess_target\"\xaa\x03\n\x0c\x42igQueryLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07project\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x14\x64\x61ily_export_enabled\x18\x04 \x01(\x08\x12 \n\x18streaming_export_enabled\x18\x05 \x01(\x08\x12\"\n\x1a\x66resh_daily_export_enabled\x18\t \x01(\x08\x12\x1e\n\x16include_advertising_id\x18\x06 \x01(\x08\x12\x16\n\x0e\x65xport_streams\x18\x07 \x03(\t\x12\x17\n\x0f\x65xcluded_events\x18\x08 \x03(\t\x12 \n\x10\x64\x61taset_location\x18\n \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02:d\xea\x41\x61\n*analyticsadmin.googleapis.com/BigQueryLink\x12\x33properties/{property}/bigQueryLinks/{bigquery_link}\"\xf3\x03\n\x1b\x45nhancedMeasurementSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\x0estream_enabled\x18\x02 \x01(\x08\x12\x17\n\x0fscrolls_enabled\x18\x03 \x01(\x08\x12\x1f\n\x17outbound_clicks_enabled\x18\x04 \x01(\x08\x12\x1b\n\x13site_search_enabled\x18\x05 \x01(\x08\x12 \n\x18video_engagement_enabled\x18\x06 \x01(\x08\x12\x1e\n\x16\x66ile_downloads_enabled\x18\x07 \x01(\x08\x12\x1c\n\x14page_changes_enabled\x18\x08 \x01(\x08\x12!\n\x19\x66orm_interactions_enabled\x18\t \x01(\x08\x12#\n\x16search_query_parameter\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x13uri_query_parameter\x18\x0b \x01(\t:\x8c\x01\xea\x41\x88\x01\n9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\x12Kproperties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings\"\x95\x02\n\x15\x44\x61taRedactionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x17\x65mail_redaction_enabled\x18\x02 \x01(\x08\x12)\n!query_parameter_redaction_enabled\x18\x03 \x01(\x08\x12\x1c\n\x14query_parameter_keys\x18\x04 \x03(\t:\x7f\xea\x41|\n3analyticsadmin.googleapis.com/DataRedactionSettings\x12\x45properties/{property}/dataStreams/{data_stream}/dataRedactionSettings\"\xa0\x01\n\x0b\x41\x64SenseLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x61\x64_client_code\x18\x02 \x01(\tB\x03\xe0\x41\x05:a\xea\x41^\n)analyticsadmin.googleapis.com/AdSenseLink\x12\x31properties/{property}/adSenseLinks/{adsense_link}\"\x8e\x02\n\x18RollupPropertySourceLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsource_property\x18\x02 \x01(\tB\x03\xe0\x41\x05:\xc0\x01\xea\x41\xbc\x01\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\x12Mproperties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}*\x19rollupPropertySourceLinks2\x18rollupPropertySourceLink\"\xf6\x05\n\x17ReportingDataAnnotation\x12,\n\x0f\x61nnotation_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x62\n\x15\x61nnotation_date_range\x18\x05 \x01(\x0b\x32\x41.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRangeH\x00\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Q\n\x05\x63olor\x18\x06 \x01(\x0e\x32=.google.analytics.admin.v1alpha.ReportingDataAnnotation.ColorB\x03\xe0\x41\x02\x12\x1d\n\x10system_generated\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x1a\x61\n\tDateRange\x12*\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12(\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\"i\n\x05\x43olor\x12\x15\n\x11\x43OLOR_UNSPECIFIED\x10\x00\x12\n\n\x06PURPLE\x10\x01\x12\t\n\x05\x42ROWN\x10\x02\x12\x08\n\x04\x42LUE\x10\x03\x12\t\n\x05GREEN\x10\x04\x12\x07\n\x03RED\x10\x05\x12\x08\n\x04\x43YAN\x10\x06\x12\n\n\x06ORANGE\x10\x07:\xba\x01\xea\x41\xb6\x01\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\x12Jproperties/{property}/reportingDataAnnotations/{reporting_data_annotation}*\x18reportingDataAnnotations2\x17reportingDataAnnotationB\x08\n\x06target\"\xd2\x03\n\x15SubpropertySyncConfig\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x03\x12!\n\x11\x61pply_to_property\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12}\n%custom_dimension_and_metric_sync_mode\x18\x03 \x01(\x0e\x32I.google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationModeB\x03\xe0\x41\x02\"N\n\x13SynchronizationMode\x12$\n SYNCHRONIZATION_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03\x41LL\x10\x02:\xb0\x01\xea\x41\xac\x01\n3analyticsadmin.googleapis.com/SubpropertySyncConfig\x12\x46properties/{property}/subpropertySyncConfigs/{subproperty_sync_config}*\x16subpropertySyncConfigs2\x15subpropertySyncConfig\"\xaf\x03\n\x19ReportingIdentitySettings\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x03\x12g\n\x12reporting_identity\x18\x02 \x01(\x0e\x32K.google.analytics.admin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n\x11ReportingIdentity\x12*\n&IDENTITY_BLENDING_STRATEGY_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42LENDED\x10\x01\x12\x0c\n\x08OBSERVED\x10\x02\x12\x10\n\x0c\x44\x45VICE_BASED\x10\x03:\xa4\x01\xea\x41\xa0\x01\n7analyticsadmin.googleapis.com/ReportingIdentitySettings\x12/properties/{property}/reportingIdentitySettings*\x19reportingIdentitySettings2\x19reportingIdentitySettings\"\xc1\x02\n\x18UserProvidedDataSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x32\n%user_provided_data_collection_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12;\n.automatically_detected_data_collection_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01:\xa0\x01\xea\x41\x9c\x01\n6analyticsadmin.googleapis.com/UserProvidedDataSettings\x12.properties/{property}/userProvidedDataSettings*\x18userProvidedDataSettings2\x18userProvidedDataSettings*\xaa\x04\n\x10IndustryCategory\x12!\n\x1dINDUSTRY_CATEGORY_UNSPECIFIED\x10\x00\x12\x0e\n\nAUTOMOTIVE\x10\x01\x12#\n\x1f\x42USINESS_AND_INDUSTRIAL_MARKETS\x10\x02\x12\x0b\n\x07\x46INANCE\x10\x03\x12\x0e\n\nHEALTHCARE\x10\x04\x12\x0e\n\nTECHNOLOGY\x10\x05\x12\n\n\x06TRAVEL\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x1a\n\x16\x41RTS_AND_ENTERTAINMENT\x10\x08\x12\x16\n\x12\x42\x45\x41UTY_AND_FITNESS\x10\t\x12\x18\n\x14\x42OOKS_AND_LITERATURE\x10\n\x12\x12\n\x0e\x46OOD_AND_DRINK\x10\x0b\x12\t\n\x05GAMES\x10\x0c\x12\x17\n\x13HOBBIES_AND_LEISURE\x10\r\x12\x13\n\x0fHOME_AND_GARDEN\x10\x0e\x12\x18\n\x14INTERNET_AND_TELECOM\x10\x0f\x12\x16\n\x12LAW_AND_GOVERNMENT\x10\x10\x12\x08\n\x04NEWS\x10\x11\x12\x16\n\x12ONLINE_COMMUNITIES\x10\x12\x12\x16\n\x12PEOPLE_AND_SOCIETY\x10\x13\x12\x14\n\x10PETS_AND_ANIMALS\x10\x14\x12\x0f\n\x0bREAL_ESTATE\x10\x15\x12\r\n\tREFERENCE\x10\x16\x12\x0b\n\x07SCIENCE\x10\x17\x12\n\n\x06SPORTS\x10\x18\x12\x16\n\x12JOBS_AND_EDUCATION\x10\x19\x12\x0c\n\x08SHOPPING\x10\x1a*f\n\x0cServiceLevel\x12\x1d\n\x19SERVICE_LEVEL_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_ANALYTICS_STANDARD\x10\x01\x12\x18\n\x14GOOGLE_ANALYTICS_360\x10\x02*J\n\tActorType\x12\x1a\n\x16\x41\x43TOR_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04USER\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\x0b\n\x07SUPPORT\x10\x03*P\n\nActionType\x12\x1b\n\x17\x41\x43TION_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07UPDATED\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03*\xc2\x06\n\x19\x43hangeHistoryResourceType\x12,\n(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41\x43\x43OUNT\x10\x01\x12\x0c\n\x08PROPERTY\x10\x02\x12\x11\n\rFIREBASE_LINK\x10\x06\x12\x13\n\x0fGOOGLE_ADS_LINK\x10\x07\x12\x1b\n\x17GOOGLE_SIGNALS_SETTINGS\x10\x08\x12\x14\n\x10\x43ONVERSION_EVENT\x10\t\x12\x1f\n\x1bMEASUREMENT_PROTOCOL_SECRET\x10\n\x12\x14\n\x10\x43USTOM_DIMENSION\x10\x0b\x12\x11\n\rCUSTOM_METRIC\x10\x0c\x12\x1b\n\x17\x44\x41TA_RETENTION_SETTINGS\x10\r\x12%\n!DISPLAY_VIDEO_360_ADVERTISER_LINK\x10\x0e\x12.\n*DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL\x10\x0f\x12\x17\n\x13SEARCH_ADS_360_LINK\x10\x10\x12\x0f\n\x0b\x44\x41TA_STREAM\x10\x12\x12\x18\n\x14\x41TTRIBUTION_SETTINGS\x10\x14\x12\x15\n\x11\x45XPANDED_DATA_SET\x10\x15\x12\x11\n\rCHANNEL_GROUP\x10\x16\x12\x11\n\rBIGQUERY_LINK\x10\x17\x12!\n\x1d\x45NHANCED_MEASUREMENT_SETTINGS\x10\x18\x12\x1b\n\x17\x44\x41TA_REDACTION_SETTINGS\x10\x19\x12\'\n#SKADNETWORK_CONVERSION_VALUE_SCHEMA\x10\x1a\x12\x10\n\x0c\x41\x44SENSE_LINK\x10\x1b\x12\x0c\n\x08\x41UDIENCE\x10\x1c\x12\x15\n\x11\x45VENT_CREATE_RULE\x10\x1d\x12\r\n\tKEY_EVENT\x10\x1e\x12\x15\n\x11\x43\x41LCULATED_METRIC\x10\x1f\x12\x1d\n\x19REPORTING_DATA_ANNOTATION\x10 \x12\x1b\n\x17SUBPROPERTY_SYNC_CONFIG\x10!\x12\x1f\n\x1bREPORTING_IDENTITY_SETTINGS\x10\"\x12\x1f\n\x1bUSER_PROVIDED_DATA_SETTINGS\x10#*s\n\x12GoogleSignalsState\x12$\n GOOGLE_SIGNALS_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16GOOGLE_SIGNALS_ENABLED\x10\x01\x12\x1b\n\x17GOOGLE_SIGNALS_DISABLED\x10\x02*\x8e\x01\n\x14GoogleSignalsConsent\x12&\n\"GOOGLE_SIGNALS_CONSENT_UNSPECIFIED\x10\x00\x12$\n GOOGLE_SIGNALS_CONSENT_CONSENTED\x10\x02\x12(\n$GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED\x10\x01*{\n\x1dLinkProposalInitiatingProduct\x12\x30\n,LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED\x10\x00\x12\x14\n\x10GOOGLE_ANALYTICS\x10\x01\x12\x12\n\x0eLINKED_PRODUCT\x10\x02*\xc4\x01\n\x11LinkProposalState\x12#\n\x1fLINK_PROPOSAL_STATE_UNSPECIFIED\x10\x00\x12)\n%AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS\x10\x01\x12\'\n#AWAITING_REVIEW_FROM_LINKED_PRODUCT\x10\x02\x12\r\n\tWITHDRAWN\x10\x03\x12\x0c\n\x08\x44\x45\x43LINED\x10\x04\x12\x0b\n\x07\x45XPIRED\x10\x05\x12\x0c\n\x08OBSOLETE\x10\x06*\x82\x01\n\x0cPropertyType\x12\x1d\n\x19PROPERTY_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16PROPERTY_TYPE_ORDINARY\x10\x01\x12\x1d\n\x19PROPERTY_TYPE_SUBPROPERTY\x10\x02\x12\x18\n\x14PROPERTY_TYPE_ROLLUP\x10\x03*q\n\x0b\x43oarseValue\x12\x1c\n\x18\x43OARSE_VALUE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x43OARSE_VALUE_LOW\x10\x01\x12\x17\n\x13\x43OARSE_VALUE_MEDIUM\x10\x02\x12\x15\n\x11\x43OARSE_VALUE_HIGH\x10\x03\x42\xcb\x01\n\"com.google.analytics.admin.v1alphaB\x0eResourcesProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb\xea\x41R\n2marketingplatformadmin.googleapis.com/Organization\x12\x1corganizations/{organization}b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Analytics + module Admin + module V1alpha + Account = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.Account").msgclass + Property = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.Property").msgclass + DataStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataStream").msgclass + DataStream::WebStreamData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataStream.WebStreamData").msgclass + DataStream::AndroidAppStreamData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData").msgclass + DataStream::IosAppStreamData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataStream.IosAppStreamData").msgclass + DataStream::DataStreamType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataStream.DataStreamType").enummodule + FirebaseLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.FirebaseLink").msgclass + GlobalSiteTag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GlobalSiteTag").msgclass + GoogleAdsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GoogleAdsLink").msgclass + DataSharingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataSharingSettings").msgclass + AccountSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccountSummary").msgclass + PropertySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.PropertySummary").msgclass + MeasurementProtocolSecret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.MeasurementProtocolSecret").msgclass + SKAdNetworkConversionValueSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema").msgclass + PostbackWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.PostbackWindow").msgclass + ConversionValues = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ConversionValues").msgclass + EventMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.EventMapping").msgclass + ChangeHistoryEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChangeHistoryEvent").msgclass + ChangeHistoryChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChangeHistoryChange").msgclass + ChangeHistoryChange::ChangeHistoryResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource").msgclass + DisplayVideo360AdvertiserLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink").msgclass + DisplayVideo360AdvertiserLinkProposal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal").msgclass + SearchAds360Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SearchAds360Link").msgclass + LinkProposalStatusDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.LinkProposalStatusDetails").msgclass + ConversionEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ConversionEvent").msgclass + ConversionEvent::DefaultConversionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue").msgclass + ConversionEvent::ConversionCountingMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod").enummodule + KeyEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.KeyEvent").msgclass + KeyEvent::DefaultValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.KeyEvent.DefaultValue").msgclass + KeyEvent::CountingMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.KeyEvent.CountingMethod").enummodule + GoogleSignalsSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GoogleSignalsSettings").msgclass + CustomDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomDimension").msgclass + CustomDimension::DimensionScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomDimension.DimensionScope").enummodule + CustomMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomMetric").msgclass + CustomMetric::MeasurementUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit").enummodule + CustomMetric::MetricScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomMetric.MetricScope").enummodule + CustomMetric::RestrictedMetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType").enummodule + CalculatedMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CalculatedMetric").msgclass + CalculatedMetric::MetricUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CalculatedMetric.MetricUnit").enummodule + CalculatedMetric::RestrictedMetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricType").enummodule + DataRetentionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataRetentionSettings").msgclass + DataRetentionSettings::RetentionDuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration").enummodule + AttributionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AttributionSettings").msgclass + AttributionSettings::AcquisitionConversionEventLookbackWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow").enummodule + AttributionSettings::OtherConversionEventLookbackWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow").enummodule + AttributionSettings::ReportingAttributionModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel").enummodule + AttributionSettings::AdsWebConversionDataExportScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope").enummodule + AccessBinding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessBinding").msgclass + BigQueryLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BigQueryLink").msgclass + EnhancedMeasurementSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.EnhancedMeasurementSettings").msgclass + DataRedactionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataRedactionSettings").msgclass + AdSenseLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AdSenseLink").msgclass + RollupPropertySourceLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.RollupPropertySourceLink").msgclass + ReportingDataAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReportingDataAnnotation").msgclass + ReportingDataAnnotation::DateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange").msgclass + ReportingDataAnnotation::Color = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReportingDataAnnotation.Color").enummodule + SubpropertySyncConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertySyncConfig").msgclass + SubpropertySyncConfig::SynchronizationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationMode").enummodule + ReportingIdentitySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReportingIdentitySettings").msgclass + ReportingIdentitySettings::ReportingIdentity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReportingIdentitySettings.ReportingIdentity").enummodule + UserProvidedDataSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UserProvidedDataSettings").msgclass + IndustryCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.IndustryCategory").enummodule + ServiceLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ServiceLevel").enummodule + ActorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ActorType").enummodule + ActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ActionType").enummodule + ChangeHistoryResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChangeHistoryResourceType").enummodule + GoogleSignalsState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GoogleSignalsState").enummodule + GoogleSignalsConsent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GoogleSignalsConsent").enummodule + LinkProposalInitiatingProduct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.LinkProposalInitiatingProduct").enummodule + LinkProposalState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.LinkProposalState").enummodule + PropertyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.PropertyType").enummodule + CoarseValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CoarseValue").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/rest.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/rest.rb new file mode 100644 index 000000000000..894e9e1fd01f --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/rest.rb @@ -0,0 +1,37 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/analytics/admin/v1alpha/analytics_admin_service/rest" +require "google/analytics/admin/v1alpha/version" + +module Google + module Analytics + module Admin + ## + # To load just the REST part of this package, including all its services, and instantiate a REST client: + # + # @example + # + # require "google/analytics/admin/v1alpha/rest" + # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + module V1alpha + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/subproperty_event_filter_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/subproperty_event_filter_pb.rb new file mode 100644 index 000000000000..acc2bb134f80 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/subproperty_event_filter_pb.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/analytics/admin/v1alpha/subproperty_event_filter.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n=google/analytics/admin/v1alpha/subproperty_event_filter.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x81\x04\n\x1fSubpropertyEventFilterCondition\x12\x15\n\x0bnull_filter\x18\x02 \x01(\x08H\x00\x12\x65\n\rstring_filter\x18\x03 \x01(\x0b\x32L.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterH\x00\x12\x17\n\nfield_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a\xb8\x02\n\x0cStringFilter\x12o\n\nmatch_type\x18\x01 \x01(\x0e\x32V.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchTypeB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63\x61se_sensitive\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x85\x01\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0f\n\x0b\x42\x45GINS_WITH\x10\x02\x12\r\n\tENDS_WITH\x10\x03\x12\x0c\n\x08\x43ONTAINS\x10\x04\x12\x0f\n\x0b\x46ULL_REGEXP\x10\x05\x12\x12\n\x0ePARTIAL_REGEXP\x10\x06\x42\x0c\n\none_filter\"\xbd\x02\n SubpropertyEventFilterExpression\x12X\n\x08or_group\x18\x01 \x01(\x0b\x32\x44.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListH\x00\x12Z\n\x0enot_expression\x18\x02 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionH\x00\x12[\n\x10\x66ilter_condition\x18\x03 \x01(\x0b\x32?.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionH\x00\x42\x06\n\x04\x65xpr\"\x8c\x01\n$SubpropertyEventFilterExpressionList\x12\x64\n\x12\x66ilter_expressions\x18\x01 \x03(\x0b\x32@.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionB\x06\xe0\x41\x02\xe0\x41\x06\"\xc2\x02\n\x1cSubpropertyEventFilterClause\x12n\n\x12\x66ilter_clause_type\x18\x01 \x01(\x0e\x32M.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseTypeB\x03\xe0\x41\x02\x12`\n\x11\x66ilter_expression\x18\x02 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionB\x03\xe0\x41\x02\"P\n\x10\x46ilterClauseType\x12\"\n\x1e\x46ILTER_CLAUSE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07INCLUDE\x10\x01\x12\x0b\n\x07\x45XCLUDE\x10\x02\"\xfd\x02\n\x16SubpropertyEventFilter\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12#\n\x11\x61pply_to_property\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x88\x01\x01\x12\\\n\x0e\x66ilter_clauses\x18\x03 \x03(\x0b\x32<.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseB\x06\xe0\x41\x02\xe0\x41\x06:\xb6\x01\xea\x41\xb2\x01\n4analyticsadmin.googleapis.com/SubpropertyEventFilter\x12Iproperties/{property}/subpropertyEventFilters/{sub_property_event_filter}*\x17subpropertyEventFilters2\x16subpropertyEventFilterB\x14\n\x12_apply_to_propertyB\x83\x01\n\"com.google.analytics.admin.v1alphaB\x1bSubpropertyEventFilterProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Analytics + module Admin + module V1alpha + SubpropertyEventFilterCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterCondition").msgclass + SubpropertyEventFilterCondition::StringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter").msgclass + SubpropertyEventFilterCondition::StringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType").enummodule + SubpropertyEventFilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterExpression").msgclass + SubpropertyEventFilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList").msgclass + SubpropertyEventFilterClause = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterClause").msgclass + SubpropertyEventFilterClause::FilterClauseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType").enummodule + SubpropertyEventFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilter").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/version.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/version.rb new file mode 100644 index 000000000000..4d66dda17d38 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/version.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Analytics + module Admin + module V1alpha + VERSION = "0.0.1" + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/README.md b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/README.md new file mode 100644 index 000000000000..7c78a1759490 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/README.md @@ -0,0 +1,4 @@ +# Google Analytics Admin V1alpha Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/access_report.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/access_report.rb new file mode 100644 index 000000000000..49f13e7f02f9 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/access_report.rb @@ -0,0 +1,413 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Analytics + module Admin + module V1alpha + # Dimensions are attributes of your data. For example, the dimension + # `userEmail` indicates the email of the user that accessed reporting data. + # Dimension values in report responses are strings. + # @!attribute [rw] dimension_name + # @return [::String] + # The API name of the dimension. See [Data Access + # Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + # for the list of dimensions supported in this API. + # + # Dimensions are referenced by name in `dimensionFilter` and `orderBys`. + class AccessDimension + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The quantitative measurements of a report. For example, the metric + # `accessCount` is the total number of data access records. + # @!attribute [rw] metric_name + # @return [::String] + # The API name of the metric. See [Data Access + # Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) + # for the list of metrics supported in this API. + # + # Metrics are referenced by name in `metricFilter` & `orderBys`. + class AccessMetric + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A contiguous range of days: startDate, startDate + 1, ..., endDate. + # @!attribute [rw] start_date + # @return [::String] + # The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + # be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also + # accepted, and in that case, the date is inferred based on the current time + # in the request's time zone. + # @!attribute [rw] end_date + # @return [::String] + # The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + # be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is + # also accepted, and in that case, the date is inferred based on the current + # time in the request's time zone. + class AccessDateRange + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Expresses dimension or metric filters. The fields in the same expression need + # to be either all dimensions or all metrics. + # @!attribute [rw] and_group + # @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpressionList] + # Each of the FilterExpressions in the and_group has an AND relationship. + # + # Note: The following fields are mutually exclusive: `and_group`, `or_group`, `not_expression`, `access_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] or_group + # @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpressionList] + # Each of the FilterExpressions in the or_group has an OR relationship. + # + # Note: The following fields are mutually exclusive: `or_group`, `and_group`, `not_expression`, `access_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] not_expression + # @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpression] + # The FilterExpression is NOT of not_expression. + # + # Note: The following fields are mutually exclusive: `not_expression`, `and_group`, `or_group`, `access_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] access_filter + # @return [::Google::Analytics::Admin::V1alpha::AccessFilter] + # A primitive filter. In the same FilterExpression, all of the filter's + # field names need to be either all dimensions or all metrics. + # + # Note: The following fields are mutually exclusive: `access_filter`, `and_group`, `or_group`, `not_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class AccessFilterExpression + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A list of filter expressions. + # @!attribute [rw] expressions + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessFilterExpression>] + # A list of filter expressions. + class AccessFilterExpressionList + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # An expression to filter dimension or metric values. + # @!attribute [rw] string_filter + # @return [::Google::Analytics::Admin::V1alpha::AccessStringFilter] + # Strings related filter. + # + # Note: The following fields are mutually exclusive: `string_filter`, `in_list_filter`, `numeric_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] in_list_filter + # @return [::Google::Analytics::Admin::V1alpha::AccessInListFilter] + # A filter for in list values. + # + # Note: The following fields are mutually exclusive: `in_list_filter`, `string_filter`, `numeric_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] numeric_filter + # @return [::Google::Analytics::Admin::V1alpha::AccessNumericFilter] + # A filter for numeric or date values. + # + # Note: The following fields are mutually exclusive: `numeric_filter`, `string_filter`, `in_list_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] between_filter + # @return [::Google::Analytics::Admin::V1alpha::AccessBetweenFilter] + # A filter for two values. + # + # Note: The following fields are mutually exclusive: `between_filter`, `string_filter`, `in_list_filter`, `numeric_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] field_name + # @return [::String] + # The dimension name or metric name. + class AccessFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The filter for strings. + # @!attribute [rw] match_type + # @return [::Google::Analytics::Admin::V1alpha::AccessStringFilter::MatchType] + # The match type for this filter. + # @!attribute [rw] value + # @return [::String] + # The string value used for the matching. + # @!attribute [rw] case_sensitive + # @return [::Boolean] + # If true, the string value is case sensitive. + class AccessStringFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The match type of a string filter. + module MatchType + # Unspecified + MATCH_TYPE_UNSPECIFIED = 0 + + # Exact match of the string value. + EXACT = 1 + + # Begins with the string value. + BEGINS_WITH = 2 + + # Ends with the string value. + ENDS_WITH = 3 + + # Contains the string value. + CONTAINS = 4 + + # Full match for the regular expression with the string value. + FULL_REGEXP = 5 + + # Partial match for the regular expression with the string value. + PARTIAL_REGEXP = 6 + end + end + + # The result needs to be in a list of string values. + # @!attribute [rw] values + # @return [::Array<::String>] + # The list of string values. Must be non-empty. + # @!attribute [rw] case_sensitive + # @return [::Boolean] + # If true, the string value is case sensitive. + class AccessInListFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Filters for numeric or date values. + # @!attribute [rw] operation + # @return [::Google::Analytics::Admin::V1alpha::AccessNumericFilter::Operation] + # The operation type for this filter. + # @!attribute [rw] value + # @return [::Google::Analytics::Admin::V1alpha::NumericValue] + # A numeric value or a date value. + class AccessNumericFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The operation applied to a numeric filter. + module Operation + # Unspecified. + OPERATION_UNSPECIFIED = 0 + + # Equal + EQUAL = 1 + + # Less than + LESS_THAN = 2 + + # Less than or equal + LESS_THAN_OR_EQUAL = 3 + + # Greater than + GREATER_THAN = 4 + + # Greater than or equal + GREATER_THAN_OR_EQUAL = 5 + end + end + + # To express that the result needs to be between two numbers (inclusive). + # @!attribute [rw] from_value + # @return [::Google::Analytics::Admin::V1alpha::NumericValue] + # Begins with this number. + # @!attribute [rw] to_value + # @return [::Google::Analytics::Admin::V1alpha::NumericValue] + # Ends with this number. + class AccessBetweenFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # To represent a number. + # @!attribute [rw] int64_value + # @return [::Integer] + # Integer value + # + # Note: The following fields are mutually exclusive: `int64_value`, `double_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] double_value + # @return [::Float] + # Double value + # + # Note: The following fields are mutually exclusive: `double_value`, `int64_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class NumericValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Order bys define how rows will be sorted in the response. For example, + # ordering rows by descending access count is one ordering, and ordering rows + # by the country string is a different ordering. + # @!attribute [rw] metric + # @return [::Google::Analytics::Admin::V1alpha::AccessOrderBy::MetricOrderBy] + # Sorts results by a metric's values. + # + # Note: The following fields are mutually exclusive: `metric`, `dimension`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] dimension + # @return [::Google::Analytics::Admin::V1alpha::AccessOrderBy::DimensionOrderBy] + # Sorts results by a dimension's values. + # + # Note: The following fields are mutually exclusive: `dimension`, `metric`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] desc + # @return [::Boolean] + # If true, sorts by descending order. If false or unspecified, sorts in + # ascending order. + class AccessOrderBy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Sorts by metric values. + # @!attribute [rw] metric_name + # @return [::String] + # A metric name in the request to order by. + class MetricOrderBy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Sorts by dimension values. + # @!attribute [rw] dimension_name + # @return [::String] + # A dimension name in the request to order by. + # @!attribute [rw] order_type + # @return [::Google::Analytics::Admin::V1alpha::AccessOrderBy::DimensionOrderBy::OrderType] + # Controls the rule for dimension value ordering. + class DimensionOrderBy + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Rule to order the string dimension values by. + module OrderType + # Unspecified. + ORDER_TYPE_UNSPECIFIED = 0 + + # Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < + # "b" < "z". + ALPHANUMERIC = 1 + + # Case insensitive alphanumeric sort by lower case Unicode code point. + # For example, "2" < "A" < "b" < "X" < "z". + CASE_INSENSITIVE_ALPHANUMERIC = 2 + + # Dimension values are converted to numbers before sorting. For example + # in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < + # "25". Non-numeric dimension values all have equal ordering value below + # all numeric values. + NUMERIC = 3 + end + end + end + + # Describes a dimension column in the report. Dimensions requested in a report + # produce column entries within rows and DimensionHeaders. However, dimensions + # used exclusively within filters or expressions do not produce columns in a + # report; correspondingly, those dimensions do not produce headers. + # @!attribute [rw] dimension_name + # @return [::String] + # The dimension's name; for example 'userEmail'. + class AccessDimensionHeader + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Describes a metric column in the report. Visible metrics requested in a + # report produce column entries within rows and MetricHeaders. However, + # metrics used exclusively within filters or expressions do not produce columns + # in a report; correspondingly, those metrics do not produce headers. + # @!attribute [rw] metric_name + # @return [::String] + # The metric's name; for example 'accessCount'. + class AccessMetricHeader + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Access report data for each row. + # @!attribute [rw] dimension_values + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessDimensionValue>] + # List of dimension values. These values are in the same order as specified + # in the request. + # @!attribute [rw] metric_values + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessMetricValue>] + # List of metric values. These values are in the same order as specified + # in the request. + class AccessRow + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The value of a dimension. + # @!attribute [rw] value + # @return [::String] + # The dimension value. For example, this value may be 'France' for the + # 'country' dimension. + class AccessDimensionValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The value of a metric. + # @!attribute [rw] value + # @return [::String] + # The measurement value. For example, this value may be '13'. + class AccessMetricValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Current state of all quotas for this Analytics property. If any quota for a + # property is exhausted, all requests to that property will return Resource + # Exhausted errors. + # @!attribute [rw] tokens_per_day + # @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus] + # Properties can use 250,000 tokens per day. Most requests consume fewer than + # 10 tokens. + # @!attribute [rw] tokens_per_hour + # @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus] + # Properties can use 50,000 tokens per hour. An API request consumes a single + # number of tokens, and that number is deducted from all of the hourly, + # daily, and per project hourly quotas. + # @!attribute [rw] concurrent_requests + # @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus] + # Properties can use up to 50 concurrent requests. + # @!attribute [rw] server_errors_per_project_per_hour + # @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus] + # Properties and cloud project pairs can have up to 50 server errors per + # hour. + # @!attribute [rw] tokens_per_project_per_hour + # @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus] + # Properties can use up to 25% of their tokens per project per hour. This + # amounts to Analytics 360 Properties can use 12,500 tokens per project per + # hour. An API request consumes a single number of tokens, and that number is + # deducted from all of the hourly, daily, and per project hourly quotas. + class AccessQuota + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Current state for a particular quota group. + # @!attribute [rw] consumed + # @return [::Integer] + # Quota consumed by this request. + # @!attribute [rw] remaining + # @return [::Integer] + # Quota remaining after this request. + class AccessQuotaStatus + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb new file mode 100644 index 000000000000..f61747ae51f7 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb @@ -0,0 +1,2988 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Analytics + module Admin + module V1alpha + # The request for a Data Access Record Report. + # @!attribute [rw] entity + # @return [::String] + # The Data Access Report supports requesting at the property level or account + # level. If requested at the account level, Data Access Reports include all + # access for all properties under that account. + # + # To request at the property level, entity should be for example + # 'properties/123' if "123" is your Google Analytics property ID. To request + # at the account level, entity should be for example 'accounts/1234' if + # "1234" is your Google Analytics Account ID. + # @!attribute [rw] dimensions + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessDimension>] + # The dimensions requested and displayed in the response. Requests are + # allowed up to 9 dimensions. + # @!attribute [rw] metrics + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessMetric>] + # The metrics requested and displayed in the response. Requests are allowed + # up to 10 metrics. + # @!attribute [rw] date_ranges + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessDateRange>] + # Date ranges of access records to read. If multiple date ranges are + # requested, each response row will contain a zero based date range index. If + # two date ranges overlap, the access records for the overlapping days is + # included in the response rows for both date ranges. Requests are allowed up + # to 2 date ranges. + # @!attribute [rw] dimension_filter + # @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpression] + # Dimension filters let you restrict report response to specific + # dimension values which match the filter. For example, filtering on access + # records of a single user. To learn more, see [Fundamentals of Dimension + # Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + # for examples. Metrics cannot be used in this filter. + # @!attribute [rw] metric_filter + # @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpression] + # Metric filters allow you to restrict report response to specific metric + # values which match the filter. Metric filters are applied after aggregating + # the report's rows, similar to SQL having-clause. Dimensions cannot be used + # in this filter. + # @!attribute [rw] offset + # @return [::Integer] + # The row count of the start row. The first row is counted as row 0. If + # offset is unspecified, it is treated as 0. If offset is zero, then this + # method will return the first page of results with `limit` entries. + # + # To learn more about this pagination parameter, see + # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + # @!attribute [rw] limit + # @return [::Integer] + # The number of rows to return. If unspecified, 10,000 rows are returned. The + # API returns a maximum of 100,000 rows per request, no matter how many you + # ask for. `limit` must be positive. + # + # The API may return fewer rows than the requested `limit`, if there aren't + # as many remaining rows as the `limit`. For instance, there are fewer than + # 300 possible values for the dimension `country`, so when reporting on only + # `country`, you can't get more than 300 rows, even if you set `limit` to a + # higher value. + # + # To learn more about this pagination parameter, see + # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + # @!attribute [rw] time_zone + # @return [::String] + # This request's time zone if specified. If unspecified, the property's time + # zone is used. The request's time zone is used to interpret the start & end + # dates of the report. + # + # Formatted as strings from the IANA Time Zone database + # (https://www.iana.org/time-zones); for example "America/New_York" or + # "Asia/Tokyo". + # @!attribute [rw] order_bys + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessOrderBy>] + # Specifies how rows are ordered in the response. + # @!attribute [rw] return_entity_quota + # @return [::Boolean] + # Toggles whether to return the current state of this Analytics Property's + # quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level + # requests, this field must be false. + # @!attribute [rw] include_all_users + # @return [::Boolean] + # Optional. Determines whether to include users who have never made an API + # call in the response. If true, all users with access to the specified + # property or account are included in the response, regardless of whether + # they have made an API call or not. If false, only the users who have made + # an API call will be included. + # @!attribute [rw] expand_groups + # @return [::Boolean] + # Optional. Decides whether to return the users within user groups. This + # field works only when include_all_users is set to true. If true, it will + # return all users with access to the specified property or account. + # If false, only the users with direct access will be returned. + class RunAccessReportRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The customized Data Access Record Report response. + # @!attribute [rw] dimension_headers + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessDimensionHeader>] + # The header for a column in the report that corresponds to a specific + # dimension. The number of DimensionHeaders and ordering of DimensionHeaders + # matches the dimensions present in rows. + # @!attribute [rw] metric_headers + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessMetricHeader>] + # The header for a column in the report that corresponds to a specific + # metric. The number of MetricHeaders and ordering of MetricHeaders matches + # the metrics present in rows. + # @!attribute [rw] rows + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessRow>] + # Rows of dimension value combinations and metric values in the report. + # @!attribute [rw] row_count + # @return [::Integer] + # The total number of rows in the query result. `rowCount` is independent of + # the number of rows returned in the response, the `limit` request + # parameter, and the `offset` request parameter. For example if a query + # returns 175 rows and includes `limit` of 50 in the API request, the + # response will contain `rowCount` of 175 but only 50 rows. + # + # To learn more about this pagination parameter, see + # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + # @!attribute [rw] quota + # @return [::Google::Analytics::Admin::V1alpha::AccessQuota] + # The quota state for this Analytics property including this request. This + # field doesn't work with account-level requests. + class RunAccessReportResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetAccount RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the account to lookup. + # Format: accounts/\\{account} + # Example: "accounts/100" + class GetAccountRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListAccounts RPC. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListAccounts` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListAccounts` must + # match the call that provided the page token. + # @!attribute [rw] show_deleted + # @return [::Boolean] + # Whether to include soft-deleted (ie: "trashed") Accounts in the + # results. Accounts can be inspected to determine whether they are deleted or + # not. + class ListAccountsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListAccounts RPC. + # @!attribute [rw] accounts + # @return [::Array<::Google::Analytics::Admin::V1alpha::Account>] + # Results that were accessible to the caller. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListAccountsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteAccount RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Account to soft-delete. + # Format: accounts/\\{account} + # Example: "accounts/100" + class DeleteAccountRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateAccount RPC. + # @!attribute [rw] account + # @return [::Google::Analytics::Admin::V1alpha::Account] + # Required. The account to update. + # The account's `name` field is used to identify the account. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (for example, "field_to_update"). Omitted fields will not be updated. + # To replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateAccountRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ProvisionAccountTicket RPC. + # @!attribute [rw] account + # @return [::Google::Analytics::Admin::V1alpha::Account] + # The account to create. + # @!attribute [rw] redirect_uri + # @return [::String] + # Redirect URI where the user will be sent after accepting Terms of Service. + # Must be configured in Cloud Console as a Redirect URI. + class ProvisionAccountTicketRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ProvisionAccountTicket RPC. + # @!attribute [rw] account_ticket_id + # @return [::String] + # The param to be passed in the ToS link. + class ProvisionAccountTicketResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetProperty RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the property to lookup. + # Format: properties/\\{property_id} + # Example: "properties/1000" + class GetPropertyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListProperties RPC. + # @!attribute [rw] filter + # @return [::String] + # Required. An expression for filtering the results of the request. + # Fields eligible for filtering are: + # `parent:`(The resource name of the parent account/property) or + # `ancestor:`(The resource name of the parent account) or + # `firebase_project:`(The id or number of the linked firebase project). + # Some examples of filters: + # + # ``` + # | Filter | Description | + # |-----------------------------|-------------------------------------------| + # | parent:accounts/123 | The account with account id: 123. | + # | parent:properties/123 | The property with property id: 123. | + # | ancestor:accounts/123 | The account with account id: 123. | + # | firebase_project:project-id | The firebase project with id: project-id. | + # | firebase_project:123 | The firebase project with number: 123. | + # ``` + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListProperties` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListProperties` must + # match the call that provided the page token. + # @!attribute [rw] show_deleted + # @return [::Boolean] + # Whether to include soft-deleted (ie: "trashed") Properties in the + # results. Properties can be inspected to determine whether they are deleted + # or not. + class ListPropertiesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListProperties RPC. + # @!attribute [rw] properties + # @return [::Array<::Google::Analytics::Admin::V1alpha::Property>] + # Results that matched the filter criteria and were accessible to the caller. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListPropertiesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateProperty RPC. + # @!attribute [rw] property + # @return [::Google::Analytics::Admin::V1alpha::Property] + # Required. The property to update. + # The property's `name` field is used to identify the property to be + # updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdatePropertyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateProperty RPC. + # @!attribute [rw] property + # @return [::Google::Analytics::Admin::V1alpha::Property] + # Required. The property to create. + # Note: the supplied property must specify its parent. + class CreatePropertyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteProperty RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Property to soft-delete. + # Format: properties/\\{property_id} + # Example: "properties/1000" + class DeletePropertyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateFirebaseLink RPC + # @!attribute [rw] parent + # @return [::String] + # Required. Format: properties/\\{property_id} + # + # Example: `properties/1234` + # @!attribute [rw] firebase_link + # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] + # Required. The Firebase link to create. + class CreateFirebaseLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteFirebaseLink RPC + # @!attribute [rw] name + # @return [::String] + # Required. Format: properties/\\{property_id}/firebaseLinks/\\{firebase_link_id} + # + # Example: `properties/1234/firebaseLinks/5678` + class DeleteFirebaseLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListFirebaseLinks RPC + # @!attribute [rw] parent + # @return [::String] + # Required. Format: properties/\\{property_id} + # + # Example: `properties/1234` + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListFirebaseLinks` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListFirebaseLinks` must + # match the call that provided the page token. + class ListFirebaseLinksRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListFirebaseLinks RPC + # @!attribute [rw] firebase_links + # @return [::Array<::Google::Analytics::Admin::V1alpha::FirebaseLink>] + # List of FirebaseLinks. This will have at most one value. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # Currently, Google Analytics supports only one FirebaseLink per property, + # so this will never be populated. + class ListFirebaseLinksResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetGlobalSiteTag RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the site tag to lookup. + # Note that site tags are singletons and do not have unique IDs. + # Format: properties/\\{property_id}/dataStreams/\\{stream_id}/globalSiteTag + # + # Example: `properties/123/dataStreams/456/globalSiteTag` + class GetGlobalSiteTagRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateGoogleAdsLink RPC + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] google_ads_link + # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # Required. The GoogleAdsLink to create. + class CreateGoogleAdsLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateGoogleAdsLink RPC + # @!attribute [rw] google_ads_link + # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # The GoogleAdsLink to update + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateGoogleAdsLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteGoogleAdsLink RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Example format: properties/1234/googleAdsLinks/5678 + class DeleteGoogleAdsLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListGoogleAdsLinks RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListGoogleAdsLinks` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListGoogleAdsLinks` must + # match the call that provided the page token. + class ListGoogleAdsLinksRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListGoogleAdsLinks RPC. + # @!attribute [rw] google_ads_links + # @return [::Array<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>] + # List of GoogleAdsLinks. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListGoogleAdsLinksResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetDataSharingSettings RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the settings to lookup. + # Format: accounts/\\{account}/dataSharingSettings + # + # Example: `accounts/1000/dataSharingSettings` + class GetDataSharingSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListAccountSummaries RPC. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of AccountSummary resources to return. The + # service may return fewer than this value, even if there are additional + # pages. If unspecified, at most 50 resources will be returned. The maximum + # value is 200; (higher values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListAccountSummaries` + # call. Provide this to retrieve the subsequent page. When paginating, all + # other parameters provided to `ListAccountSummaries` must match the call + # that provided the page token. + class ListAccountSummariesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListAccountSummaries RPC. + # @!attribute [rw] account_summaries + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccountSummary>] + # Account summaries of all accounts the caller has access to. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListAccountSummariesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for AcknowledgeUserDataCollection RPC. + # @!attribute [rw] property + # @return [::String] + # Required. The property for which to acknowledge user data collection. + # @!attribute [rw] acknowledgement + # @return [::String] + # Required. An acknowledgement that the caller of this method understands the + # terms of user data collection. + # + # This field must contain the exact value: + # "I acknowledge that I have the necessary privacy disclosures and rights + # from my end users for the collection and processing of their data, + # including the association of such data with the visitation information + # Google Analytics collects from my site and/or app property." + class AcknowledgeUserDataCollectionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for AcknowledgeUserDataCollection RPC. + class AcknowledgeUserDataCollectionResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for SearchChangeHistoryEvents RPC. + # @!attribute [rw] account + # @return [::String] + # Required. The account resource for which to return change history + # resources. Format: accounts/\\{account} + # + # Example: `accounts/100` + # @!attribute [rw] property + # @return [::String] + # Optional. Resource name for a child property. If set, only return changes + # made to this property or its child resources. + # Format: properties/\\{propertyId} + # + # Example: `properties/100` + # @!attribute [rw] resource_type + # @return [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryResourceType>] + # Optional. If set, only return changes if they are for a resource that + # matches at least one of these types. + # @!attribute [rw] action + # @return [::Array<::Google::Analytics::Admin::V1alpha::ActionType>] + # Optional. If set, only return changes that match one or more of these types + # of actions. + # @!attribute [rw] actor_email + # @return [::Array<::String>] + # Optional. If set, only return changes if they are made by a user in this + # list. + # @!attribute [rw] earliest_change_time + # @return [::Google::Protobuf::Timestamp] + # Optional. If set, only return changes made after this time (inclusive). + # @!attribute [rw] latest_change_time + # @return [::Google::Protobuf::Timestamp] + # Optional. If set, only return changes made before this time (inclusive). + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of ChangeHistoryEvent items to return. + # If unspecified, at most 50 items will be returned. The maximum value is 200 + # (higher values will be coerced to the maximum). + # + # Note that the service may return a page with fewer items than this value + # specifies (potentially even zero), and that there still may be additional + # pages. If you want a particular number of items, you'll need to continue + # requesting additional pages using `page_token` until you get the needed + # number. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + # page. When paginating, all other parameters provided to + # `SearchChangeHistoryEvents` must match the call that provided the page + # token. + class SearchChangeHistoryEventsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for SearchAccounts RPC. + # @!attribute [rw] change_history_events + # @return [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>] + # Results that were accessible to the caller. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class SearchChangeHistoryEventsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetMeasurementProtocolSecret RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the measurement protocol secret to lookup. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} + class GetMeasurementProtocolSecretRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateMeasurementProtocolSecret RPC + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this secret will be created. + # Format: properties/\\{property}/dataStreams/\\{dataStream} + # @!attribute [rw] measurement_protocol_secret + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # Required. The measurement protocol secret to create. + class CreateMeasurementProtocolSecretRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteMeasurementProtocolSecret RPC + # @!attribute [rw] name + # @return [::String] + # Required. The name of the MeasurementProtocolSecret to delete. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} + class DeleteMeasurementProtocolSecretRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateMeasurementProtocolSecret RPC + # @!attribute [rw] measurement_protocol_secret + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # Required. The measurement protocol secret to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. + class UpdateMeasurementProtocolSecretRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListMeasurementProtocolSecret RPC + # @!attribute [rw] parent + # @return [::String] + # Required. The resource name of the parent stream. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 10 resources will be returned. + # The maximum value is 10. Higher values will be coerced to the maximum. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `ListMeasurementProtocolSecrets` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListMeasurementProtocolSecrets` must match the call that provided the page + # token. + class ListMeasurementProtocolSecretsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListMeasurementProtocolSecret RPC + # @!attribute [rw] measurement_protocol_secrets + # @return [::Array<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>] + # A list of secrets for the parent stream specified in the request. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListMeasurementProtocolSecretsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetSKAdNetworkConversionValueSchema RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of SKAdNetwork conversion value schema to look + # up. Format: + # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} + class GetSKAdNetworkConversionValueSchemaRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateSKAdNetworkConversionValueSchema RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this schema will be created. + # Format: properties/\\{property}/dataStreams/\\{dataStream} + # @!attribute [rw] skadnetwork_conversion_value_schema + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # Required. SKAdNetwork conversion value schema to create. + class CreateSKAdNetworkConversionValueSchemaRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteSKAdNetworkConversionValueSchema RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the SKAdNetworkConversionValueSchema to delete. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} + class DeleteSKAdNetworkConversionValueSchemaRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateSKAdNetworkConversionValueSchema RPC. + # @!attribute [rw] skadnetwork_conversion_value_schema + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # Required. SKAdNetwork conversion value schema to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. + class UpdateSKAdNetworkConversionValueSchemaRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListSKAdNetworkConversionValueSchemas RPC + # @!attribute [rw] parent + # @return [::String] + # Required. The DataStream resource to list schemas for. + # Format: + # properties/\\{property_id}/dataStreams/\\{dataStream} + # Example: properties/1234/dataStreams/5678 + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListSKAdNetworkConversionValueSchema` must match the call that provided + # the page token. + class ListSKAdNetworkConversionValueSchemasRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListSKAdNetworkConversionValueSchemas RPC + # @!attribute [rw] skadnetwork_conversion_value_schemas + # @return [::Array<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>] + # List of SKAdNetworkConversionValueSchemas. This will have at most one + # value. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # Currently, Google Analytics supports only one + # SKAdNetworkConversionValueSchema per dataStream, so this will never be + # populated. + class ListSKAdNetworkConversionValueSchemasResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetGoogleSignalsSettings RPC + # @!attribute [rw] name + # @return [::String] + # Required. The name of the google signals settings to retrieve. + # Format: properties/\\{property}/googleSignalsSettings + class GetGoogleSignalsSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateGoogleSignalsSettings RPC + # @!attribute [rw] google_signals_settings + # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateGoogleSignalsSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateConversionEvent RPC + # @!attribute [rw] conversion_event + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # Required. The conversion event to create. + # @!attribute [rw] parent + # @return [::String] + # Required. The resource name of the parent property where this conversion + # event will be created. Format: properties/123 + class CreateConversionEventRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateConversionEvent RPC + # @!attribute [rw] conversion_event + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # Required. The conversion event to update. + # The `name` field is used to identify the settings to be updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateConversionEventRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetConversionEvent RPC + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the conversion event to retrieve. + # Format: properties/\\{property}/conversionEvents/\\{conversion_event} + # Example: "properties/123/conversionEvents/456" + class GetConversionEventRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteConversionEvent RPC + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the conversion event to delete. + # Format: properties/\\{property}/conversionEvents/\\{conversion_event} + # Example: "properties/123/conversionEvents/456" + class DeleteConversionEventRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListConversionEvents RPC + # @!attribute [rw] parent + # @return [::String] + # Required. The resource name of the parent property. + # Example: 'properties/123' + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListConversionEvents` + # call. Provide this to retrieve the subsequent page. When paginating, all + # other parameters provided to `ListConversionEvents` must match the call + # that provided the page token. + class ListConversionEventsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListConversionEvents RPC. + # @!attribute [rw] conversion_events + # @return [::Array<::Google::Analytics::Admin::V1alpha::ConversionEvent>] + # The requested conversion events + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListConversionEventsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateKeyEvent RPC + # @!attribute [rw] key_event + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # Required. The Key Event to create. + # @!attribute [rw] parent + # @return [::String] + # Required. The resource name of the parent property where this Key Event + # will be created. Format: properties/123 + class CreateKeyEventRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateKeyEvent RPC + # @!attribute [rw] key_event + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # Required. The Key Event to update. + # The `name` field is used to identify the settings to be updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateKeyEventRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetKeyEvent RPC + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the Key Event to retrieve. + # Format: properties/\\{property}/keyEvents/\\{key_event} + # Example: "properties/123/keyEvents/456" + class GetKeyEventRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteKeyEvent RPC + # @!attribute [rw] name + # @return [::String] + # Required. The resource name of the Key Event to delete. + # Format: properties/\\{property}/keyEvents/\\{key_event} + # Example: "properties/123/keyEvents/456" + class DeleteKeyEventRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListKeyEvents RPC + # @!attribute [rw] parent + # @return [::String] + # Required. The resource name of the parent property. + # Example: 'properties/123' + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListKeyEvents` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListKeyEvents` + # must match the call that provided the page token. + class ListKeyEventsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListKeyEvents RPC. + # @!attribute [rw] key_events + # @return [::Array<::Google::Analytics::Admin::V1alpha::KeyEvent>] + # The requested Key Events + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListKeyEventsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetDisplayVideo360AdvertiserLink RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the DisplayVideo360AdvertiserLink to get. + # Example format: properties/1234/displayVideo360AdvertiserLink/5678 + class GetDisplayVideo360AdvertiserLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListDisplayVideo360AdvertiserLinks RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + # page token. + class ListDisplayVideo360AdvertiserLinksRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListDisplayVideo360AdvertiserLinks RPC. + # @!attribute [rw] display_video_360_advertiser_links + # @return [::Array<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] + # List of DisplayVideo360AdvertiserLinks. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListDisplayVideo360AdvertiserLinksResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateDisplayVideo360AdvertiserLink RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] display_video_360_advertiser_link + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # Required. The DisplayVideo360AdvertiserLink to create. + class CreateDisplayVideo360AdvertiserLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteDisplayVideo360AdvertiserLink RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the DisplayVideo360AdvertiserLink to delete. + # Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + class DeleteDisplayVideo360AdvertiserLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateDisplayVideo360AdvertiserLink RPC. + # @!attribute [rw] display_video_360_advertiser_link + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # The DisplayVideo360AdvertiserLink to update + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + class UpdateDisplayVideo360AdvertiserLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetDisplayVideo360AdvertiserLinkProposal RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + class GetDisplayVideo360AdvertiserLinkProposalRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListDisplayVideo360AdvertiserLinkProposals RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous + # `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + # the subsequent page. + # + # When paginating, all other parameters provided to + # `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + # provided the page token. + class ListDisplayVideo360AdvertiserLinkProposalsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListDisplayVideo360AdvertiserLinkProposals RPC. + # @!attribute [rw] display_video_360_advertiser_link_proposals + # @return [::Array<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] + # List of DisplayVideo360AdvertiserLinkProposals. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListDisplayVideo360AdvertiserLinkProposalsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateDisplayVideo360AdvertiserLinkProposal RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] display_video_360_advertiser_link_proposal + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # Required. The DisplayVideo360AdvertiserLinkProposal to create. + class CreateDisplayVideo360AdvertiserLinkProposalRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + class DeleteDisplayVideo360AdvertiserLinkProposalRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + class ApproveDisplayVideo360AdvertiserLinkProposalRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC. + # @!attribute [rw] display_video_360_advertiser_link + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # The DisplayVideo360AdvertiserLink created as a result of approving the + # proposal. + class ApproveDisplayVideo360AdvertiserLinkProposalResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + class CancelDisplayVideo360AdvertiserLinkProposalRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetSearchAds360Link RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the SearchAds360Link to get. + # Example format: properties/1234/SearchAds360Link/5678 + class GetSearchAds360LinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListSearchAds360Links RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListSearchAds360Links` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to + # `ListSearchAds360Links` must match the call that provided the + # page token. + class ListSearchAds360LinksRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListSearchAds360Links RPC. + # @!attribute [rw] search_ads_360_links + # @return [::Array<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] + # List of SearchAds360Links. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListSearchAds360LinksResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateSearchAds360Link RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] search_ads_360_link + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # Required. The SearchAds360Link to create. + class CreateSearchAds360LinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteSearchAds360Link RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the SearchAds360Link to delete. + # Example format: properties/1234/SearchAds360Links/5678 + class DeleteSearchAds360LinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateSearchAds360Link RPC. + # @!attribute [rw] search_ads_360_link + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # The SearchAds360Link to update + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + class UpdateSearchAds360LinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateCustomDimension RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] custom_dimension + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # Required. The CustomDimension to create. + class CreateCustomDimensionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateCustomDimension RPC. + # @!attribute [rw] custom_dimension + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # The CustomDimension to update + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + class UpdateCustomDimensionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListCustomDimensions RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListCustomDimensions` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCustomDimensions` + # must match the call that provided the page token. + class ListCustomDimensionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListCustomDimensions RPC. + # @!attribute [rw] custom_dimensions + # @return [::Array<::Google::Analytics::Admin::V1alpha::CustomDimension>] + # List of CustomDimensions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListCustomDimensionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ArchiveCustomDimension RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the CustomDimension to archive. + # Example format: properties/1234/customDimensions/5678 + class ArchiveCustomDimensionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetCustomDimension RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the CustomDimension to get. + # Example format: properties/1234/customDimensions/5678 + class GetCustomDimensionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateCustomMetric RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] custom_metric + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # Required. The CustomMetric to create. + class CreateCustomMetricRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateCustomMetric RPC. + # @!attribute [rw] custom_metric + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # The CustomMetric to update + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + class UpdateCustomMetricRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListCustomMetrics RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListCustomMetrics` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCustomMetrics` must + # match the call that provided the page token. + class ListCustomMetricsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListCustomMetrics RPC. + # @!attribute [rw] custom_metrics + # @return [::Array<::Google::Analytics::Admin::V1alpha::CustomMetric>] + # List of CustomMetrics. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListCustomMetricsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ArchiveCustomMetric RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the CustomMetric to archive. + # Example format: properties/1234/customMetrics/5678 + class ArchiveCustomMetricRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetCustomMetric RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the CustomMetric to get. + # Example format: properties/1234/customMetrics/5678 + class GetCustomMetricRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateCalculatedMetric RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Format: properties/\\{property_id} + # Example: properties/1234 + # @!attribute [rw] calculated_metric_id + # @return [::String] + # Required. The ID to use for the calculated metric which will become the + # final component of the calculated metric's resource name. + # + # This value should be 1-80 characters and valid characters are + # /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique + # between all calculated metrics under a property. The calculated_metric_id + # is used when referencing this calculated metric from external APIs, for + # example, "calcMetric:\\{calculated_metric_id}". + # @!attribute [rw] calculated_metric + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # Required. The CalculatedMetric to create. + class CreateCalculatedMetricRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateCalculatedMetric RPC. + # @!attribute [rw] calculated_metric + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # Required. The CalculatedMetric to update + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + class UpdateCalculatedMetricRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteCalculatedMetric RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the CalculatedMetric to delete. + # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} + # Example: properties/1234/calculatedMetrics/Metric01 + class DeleteCalculatedMetricRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListCalculatedMetrics RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListCalculatedMetrics` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListCalculatedMetrics` + # must match the call that provided the page token. + class ListCalculatedMetricsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListCalculatedMetrics RPC. + # @!attribute [rw] calculated_metrics + # @return [::Array<::Google::Analytics::Admin::V1alpha::CalculatedMetric>] + # List of CalculatedMetrics. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListCalculatedMetricsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetCalculatedMetric RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the CalculatedMetric to get. + # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} + # Example: properties/1234/calculatedMetrics/Metric01 + class GetCalculatedMetricRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetDataRetentionSettings RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/dataRetentionSettings + # Example: "properties/1000/dataRetentionSettings" + class GetDataRetentionSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateDataRetentionSettings RPC. + # @!attribute [rw] data_retention_settings + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateDataRetentionSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateDataStream RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] data_stream + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # Required. The DataStream to create. + class CreateDataStreamRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteDataStream RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the DataStream to delete. + # Example format: properties/1234/dataStreams/5678 + class DeleteDataStreamRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateDataStream RPC. + # @!attribute [rw] data_stream + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # The DataStream to update + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Omitted fields will not be + # updated. To replace the entire entity, use one path with the string "*" to + # match all fields. + class UpdateDataStreamRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListDataStreams RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListDataStreams` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListDataStreams` must + # match the call that provided the page token. + class ListDataStreamsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListDataStreams RPC. + # @!attribute [rw] data_streams + # @return [::Array<::Google::Analytics::Admin::V1alpha::DataStream>] + # List of DataStreams. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListDataStreamsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetDataStream RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the DataStream to get. + # Example format: properties/1234/dataStreams/5678 + class GetDataStreamRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetAudience RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Audience to get. + # Example format: properties/1234/audiences/5678 + class GetAudienceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListAudiences RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListAudiences` call. Provide this + # to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListAudiences` must + # match the call that provided the page token. + class ListAudiencesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListAudiences RPC. + # @!attribute [rw] audiences + # @return [::Array<::Google::Analytics::Admin::V1alpha::Audience>] + # List of Audiences. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListAudiencesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateAudience RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] audience + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # Required. The audience to create. + class CreateAudienceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateAudience RPC. + # @!attribute [rw] audience + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # Required. The audience to update. + # The audience's `name` field is used to identify the audience to be updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateAudienceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ArchiveAudience RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Example format: properties/1234/audiences/5678 + class ArchiveAudienceRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetAttributionSettings RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the attribution settings to retrieve. + # Format: properties/\\{property}/attributionSettings + class GetAttributionSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateAttributionSettings RPC + # @!attribute [rw] attribution_settings + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # Required. The attribution settings to update. + # The `name` field is used to identify the settings to be updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateAttributionSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetAccessBinding RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the access binding to retrieve. + # Formats: + # - accounts/\\{account}/accessBindings/\\{accessBinding} + # - properties/\\{property}/accessBindings/\\{accessBinding} + class GetAccessBindingRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BatchGetAccessBindings RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The account or property that owns the access bindings. The parent + # of all provided values for the 'names' field must match this field. + # Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @!attribute [rw] names + # @return [::Array<::String>] + # Required. The names of the access bindings to retrieve. + # A maximum of 1000 access bindings can be retrieved in a batch. + # Formats: + # - accounts/\\{account}/accessBindings/\\{accessBinding} + # - properties/\\{property}/accessBindings/\\{accessBinding} + class BatchGetAccessBindingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BatchGetAccessBindings RPC. + # @!attribute [rw] access_bindings + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # The requested access bindings. + class BatchGetAccessBindingsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListAccessBindings RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of access bindings to return. + # The service may return fewer than this value. + # If unspecified, at most 200 access bindings will be returned. + # The maximum value is 500; values above 500 will be coerced to 500. + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListAccessBindings` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListAccessBindings` must + # match the call that provided the page token. + class ListAccessBindingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListAccessBindings RPC. + # @!attribute [rw] access_bindings + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # List of AccessBindings. These will be ordered stably, but in an arbitrary + # order. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListAccessBindingsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateAccessBinding RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @!attribute [rw] access_binding + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # Required. The access binding to create. + class CreateAccessBindingRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BatchCreateAccessBindings RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The account or property that owns the access bindings. The parent + # field in the CreateAccessBindingRequest messages must either be empty or + # match this field. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @!attribute [rw] requests + # @return [::Array<::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest>] + # Required. The requests specifying the access bindings to create. + # A maximum of 1000 access bindings can be created in a batch. + class BatchCreateAccessBindingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BatchCreateAccessBindings RPC. + # @!attribute [rw] access_bindings + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # The access bindings created. + class BatchCreateAccessBindingsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateAccessBinding RPC. + # @!attribute [rw] access_binding + # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # Required. The access binding to update. + class UpdateAccessBindingRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BatchUpdateAccessBindings RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The account or property that owns the access bindings. The parent + # of all provided AccessBinding in UpdateAccessBindingRequest messages must + # match this field. + # Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @!attribute [rw] requests + # @return [::Array<::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest>] + # Required. The requests specifying the access bindings to update. + # A maximum of 1000 access bindings can be updated in a batch. + class BatchUpdateAccessBindingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for BatchUpdateAccessBindings RPC. + # @!attribute [rw] access_bindings + # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # The access bindings updated. + class BatchUpdateAccessBindingsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteAccessBinding RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Formats: + # - accounts/\\{account}/accessBindings/\\{accessBinding} + # - properties/\\{property}/accessBindings/\\{accessBinding} + class DeleteAccessBindingRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for BatchDeleteAccessBindings RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The account or property that owns the access bindings. The parent + # of all provided values for the 'names' field in DeleteAccessBindingRequest + # messages must match this field. Formats: + # - accounts/\\{account} + # - properties/\\{property} + # @!attribute [rw] requests + # @return [::Array<::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest>] + # Required. The requests specifying the access bindings to delete. + # A maximum of 1000 access bindings can be deleted in a batch. + class BatchDeleteAccessBindingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateExpandedDataSet RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] expanded_data_set + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # Required. The ExpandedDataSet to create. + class CreateExpandedDataSetRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateExpandedDataSet RPC. + # @!attribute [rw] expanded_data_set + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # Required. The ExpandedDataSet to update. + # The resource's `name` field is used to identify the ExpandedDataSet to be + # updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateExpandedDataSetRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteExpandedDataSet RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Example format: properties/1234/expandedDataSets/5678 + class DeleteExpandedDataSetRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetExpandedDataSet RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the ExpandedDataSet to get. + # Example format: properties/1234/expandedDataSets/5678 + class GetExpandedDataSetRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListExpandedDataSets RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListExpandedDataSets` call. Provide + # this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListExpandedDataSet` + # must match the call that provided the page token. + class ListExpandedDataSetsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListExpandedDataSets RPC. + # @!attribute [rw] expanded_data_sets + # @return [::Array<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] + # List of ExpandedDataSet. These will be ordered stably, but in an arbitrary + # order. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListExpandedDataSetsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateChannelGroup RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The property for which to create a ChannelGroup. + # Example format: properties/1234 + # @!attribute [rw] channel_group + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # Required. The ChannelGroup to create. + class CreateChannelGroupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateChannelGroup RPC. + # @!attribute [rw] channel_group + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # Required. The ChannelGroup to update. + # The resource's `name` field is used to identify the ChannelGroup to be + # updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateChannelGroupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteChannelGroup RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The ChannelGroup to delete. + # Example format: properties/1234/channelGroups/5678 + class DeleteChannelGroupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetChannelGroup RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The ChannelGroup to get. + # Example format: properties/1234/channelGroups/5678 + class GetChannelGroupRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListChannelGroups RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The property for which to list ChannelGroups. + # Example format: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListChannelGroups` call. Provide + # this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListChannelGroups` + # must match the call that provided the page token. + class ListChannelGroupsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListChannelGroups RPC. + # @!attribute [rw] channel_groups + # @return [::Array<::Google::Analytics::Admin::V1alpha::ChannelGroup>] + # List of ChannelGroup. These will be ordered stably, but in an arbitrary + # order. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListChannelGroupsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateBigQueryLink RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/1234 + # @!attribute [rw] bigquery_link + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # Required. The BigQueryLink to create. + class CreateBigQueryLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetBigQueryLink RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the BigQuery link to lookup. + # Format: properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id} + # Example: properties/123/bigQueryLinks/456 + class GetBigQueryLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListBigQueryLinks RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the property to list BigQuery links under. + # Format: properties/\\{property_id} + # Example: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListBigQueryLinks` call. + # Provide this to retrieve the subsequent page. + # When paginating, all other parameters provided to `ListBigQueryLinks` must + # match the call that provided the page token. + class ListBigQueryLinksRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListBigQueryLinks RPC + # @!attribute [rw] bigquery_links + # @return [::Array<::Google::Analytics::Admin::V1alpha::BigQueryLink>] + # List of BigQueryLinks. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListBigQueryLinksResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateBigQueryLink RPC. + # @!attribute [rw] bigquery_link + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateBigQueryLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteBigQueryLink RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The BigQueryLink to delete. + # Example format: properties/1234/bigQueryLinks/5678 + class DeleteBigQueryLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetEnhancedMeasurementSettings RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/dataStreams/\\{data_stream}/enhancedMeasurementSettings + # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + class GetEnhancedMeasurementSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateEnhancedMeasurementSettings RPC. + # @!attribute [rw] enhanced_measurement_settings + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateEnhancedMeasurementSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetDataRedactionSettings RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/dataStreams/\\{data_stream}/dataRedactionSettings + # Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + class GetDataRedactionSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateDataRedactionSettings RPC. + # @!attribute [rw] data_redaction_settings + # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # Required. The settings to update. + # The `name` field is used to identify the settings to be updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateDataRedactionSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message to be passed to CreateAdSenseLink method. + # @!attribute [rw] parent + # @return [::String] + # Required. The property for which to create an AdSense Link. + # Format: properties/\\{propertyId} + # Example: properties/1234 + # @!attribute [rw] adsense_link + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # Required. The AdSense Link to create + class CreateAdSenseLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message to be passed to GetAdSenseLink method. + # @!attribute [rw] name + # @return [::String] + # Required. Unique identifier for the AdSense Link requested. + # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} + # Example: properties/1234/adSenseLinks/5678 + class GetAdSenseLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message to be passed to DeleteAdSenseLink method. + # @!attribute [rw] name + # @return [::String] + # Required. Unique identifier for the AdSense Link to be deleted. + # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} + # Example: properties/1234/adSenseLinks/5678 + class DeleteAdSenseLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message to be passed to ListAdSenseLinks method. + # @!attribute [rw] parent + # @return [::String] + # Required. Resource name of the parent property. + # Format: properties/\\{propertyId} + # Example: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # A page token received from a previous `ListAdSenseLinks` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListAdSenseLinks` must + # match the call that provided the page token. + class ListAdSenseLinksRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListAdSenseLinks method. + # @!attribute [rw] adsense_links + # @return [::Array<::Google::Analytics::Admin::V1alpha::AdSenseLink>] + # List of AdSenseLinks. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListAdSenseLinksResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateEventCreateRule RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/123/dataStreams/456 + # @!attribute [rw] event_create_rule + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # Required. The EventCreateRule to create. + class CreateEventCreateRuleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateEventCreateRule RPC. + # @!attribute [rw] event_create_rule + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # Required. The EventCreateRule to update. + # The resource's `name` field is used to identify the EventCreateRule to be + # updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateEventCreateRuleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteEventCreateRule RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Example format: + # properties/123/dataStreams/456/eventCreateRules/789 + class DeleteEventCreateRuleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetEventCreateRule RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the EventCreateRule to get. + # Example format: properties/123/dataStreams/456/eventCreateRules/789 + class GetEventCreateRuleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListEventCreateRules RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/123/dataStreams/456 + # @!attribute [rw] page_size + # @return [::Integer] + # The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # A page token, received from a previous `ListEventCreateRules` call. Provide + # this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListEventCreateRules` + # must match the call that provided the page token. + class ListEventCreateRulesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListEventCreateRules RPC. + # @!attribute [rw] event_create_rules + # @return [::Array<::Google::Analytics::Admin::V1alpha::EventCreateRule>] + # List of EventCreateRules. These will be ordered stably, but in an arbitrary + # order. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListEventCreateRulesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateEventEditRule RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/123/dataStreams/456 + # @!attribute [rw] event_edit_rule + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # Required. The EventEditRule to create. + class CreateEventEditRuleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateEventEditRule RPC. + # @!attribute [rw] event_edit_rule + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] + # Required. The EventEditRule to update. + # The resource's `name` field is used to identify the EventEditRule to be + # updated. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to be updated. Field names must be in snake + # case (e.g., "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateEventEditRuleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteEventEditRule RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Example format: properties/123/dataStreams/456/eventEditRules/789 + class DeleteEventEditRuleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetEventEditRule RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the EventEditRule to get. + # Example format: properties/123/dataStreams/456/eventEditRules/789 + class GetEventEditRuleRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListEventEditRules RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/123/dataStreams/456 + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200 (higher values will be coerced to the maximum). + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListEventEditRules` call. + # Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListEventEditRules` + # must match the call that provided the page token. + class ListEventEditRulesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListEventEditRules RPC. + # @!attribute [rw] event_edit_rules + # @return [::Array<::Google::Analytics::Admin::V1alpha::EventEditRule>] + # List of EventEditRules. These will be ordered stably, but in an arbitrary + # order. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListEventEditRulesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ReorderEventEditRules RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Example format: properties/123/dataStreams/456 + # @!attribute [rw] event_edit_rules + # @return [::Array<::String>] + # Required. EventEditRule resource names for the specified data stream, in + # the needed processing order. All EventEditRules for the stream must be + # present in the list. + class ReorderEventEditRulesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateRollupProperty RPC. + # @!attribute [rw] rollup_property + # @return [::Google::Analytics::Admin::V1alpha::Property] + # Required. The roll-up property to create. + # @!attribute [rw] source_properties + # @return [::Array<::String>] + # Optional. The resource names of properties that will be sources to the + # created roll-up property. + class CreateRollupPropertyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for CreateRollupProperty RPC. + # @!attribute [rw] rollup_property + # @return [::Google::Analytics::Admin::V1alpha::Property] + # The created roll-up property. + # @!attribute [rw] rollup_property_source_links + # @return [::Array<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] + # The created roll-up property source links. + class CreateRollupPropertyResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetRollupPropertySourceLink RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the roll-up property source link to lookup. + # Format: + # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} + # Example: properties/123/rollupPropertySourceLinks/456 + class GetRollupPropertySourceLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListRollupPropertySourceLinks RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the roll-up property to list roll-up property source + # links under. Format: properties/\\{property_id} Example: properties/1234 + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. + # If unspecified, at most 50 resources will be returned. + # The maximum value is 200; (higher values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `ListRollupPropertySourceLinks` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListRollupPropertySourceLinks` must match the call that provided the page + # token. + class ListRollupPropertySourceLinksRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListRollupPropertySourceLinks RPC. + # @!attribute [rw] rollup_property_source_links + # @return [::Array<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] + # List of RollupPropertySourceLinks. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + class ListRollupPropertySourceLinksResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateRollupPropertySourceLink RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Format: properties/\\{property_id} + # Example: properties/1234 + # @!attribute [rw] rollup_property_source_link + # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] + # Required. The roll-up property source link to create. + class CreateRollupPropertySourceLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteRollupPropertySourceLink RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Format: + # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} + # Example: properties/1234/rollupPropertySourceLinks/5678 + class DeleteRollupPropertySourceLinkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateSubproperty RPC. + # @!attribute [rw] subproperty + # @return [::Google::Analytics::Admin::V1alpha::Property] + # Required. The subproperty to create. + # @!attribute [rw] subproperty_event_filter + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # Optional. The subproperty event filter to create on an ordinary property. + # @!attribute [rw] custom_dimension_and_metric_synchronization_mode + # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig::SynchronizationMode] + # Optional. The subproperty feature synchronization mode for Custom + # Dimensions and Metrics + class ProvisionSubpropertyRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ProvisionSubproperty RPC. + # @!attribute [rw] subproperty + # @return [::Google::Analytics::Admin::V1alpha::Property] + # The created subproperty. + # @!attribute [rw] subproperty_event_filter + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # The created subproperty event filter. + class ProvisionSubpropertyResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateSubpropertyEventFilter RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The ordinary property for which to create a subproperty event + # filter. Format: properties/property_id Example: properties/123 + # @!attribute [rw] subproperty_event_filter + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # Required. The subproperty event filter to create. + class CreateSubpropertyEventFilterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetSubpropertyEventFilter RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Resource name of the subproperty event filter to lookup. + # Format: + # properties/property_id/subpropertyEventFilters/subproperty_event_filter + # Example: properties/123/subpropertyEventFilters/456 + class GetSubpropertyEventFilterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListSubpropertyEventFilters RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Resource name of the ordinary property. + # Format: properties/property_id + # Example: properties/123 + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. If unspecified, + # at most 50 resources will be returned. The maximum value is 200; (higher + # values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + # page. When paginating, all other parameters provided to + # `ListSubpropertyEventFilters` must match the call that provided the page + # token. + class ListSubpropertyEventFiltersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListSubpropertyEventFilter RPC. + # @!attribute [rw] subproperty_event_filters + # @return [::Array<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter>] + # List of subproperty event filters. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. If + # this field is omitted, there are no subsequent pages. + class ListSubpropertyEventFiltersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateSubpropertyEventFilter RPC. + # @!attribute [rw] subproperty_event_filter + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] + # Required. The subproperty event filter to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Required. The list of fields to update. Field names must be in snake case + # (for example, "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateSubpropertyEventFilterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteSubpropertyEventFilter RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Resource name of the subproperty event filter to delete. + # Format: + # properties/property_id/subpropertyEventFilters/subproperty_event_filter + # Example: properties/123/subpropertyEventFilters/456 + class DeleteSubpropertyEventFilterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for CreateReportingDataAnnotation RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. The property for which to create a Reporting Data Annotation. + # Format: properties/property_id + # Example: properties/123 + # @!attribute [rw] reporting_data_annotation + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # Required. The Reporting Data Annotation to create. + class CreateReportingDataAnnotationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetReportingDataAnnotation RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Resource name of the Reporting Data Annotation to lookup. + # Format: + # properties/property_id/reportingDataAnnotations/reportingDataAnnotation + # Example: properties/123/reportingDataAnnotations/456 + class GetReportingDataAnnotationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListReportingDataAnnotation RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Resource name of the property. + # Format: properties/property_id + # Example: properties/123 + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter that restricts which reporting data annotations under the + # parent property are listed. + # + # Supported fields are: + # + # * 'name' + # * `title` + # * `description` + # * `annotation_date` + # * `annotation_date_range` + # * `color` + # + # Additionally, this API provides the following helper functions: + # + # * annotation_duration() : the duration that this annotation marks, + # [durations](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/duration.proto). + # expect a numeric representation of seconds followed by an `s` suffix. + # * is_annotation_in_range(start_date, end_date) : if the annotation is in + # the range specified by the `start_date` and `end_date`. The dates are in + # ISO-8601 format, for example `2031-06-28`. + # + # Supported operations: + # + # * `=` : equals + # * `!=` : not equals + # * `<` : less than + # * `>` : greater than + # * `<=` : less than or equals + # * `>=` : greater than or equals + # * `:` : has operator + # * `=~` : [regular expression](https://github.com/google/re2/wiki/Syntax) + # match + # * `!~` : [regular expression](https://github.com/google/re2/wiki/Syntax) + # does not match + # * `NOT` : Logical not + # * `AND` : Logical and + # * `OR` : Logical or + # + # Examples: + # + # 1. `title="Holiday Sale"` + # 2. `description=~"[Bb]ig [Gg]ame.*[Ss]ale"` + # 3. `is_annotation_in_range("2025-12-25", "2026-01-16") = true` + # 4. `annotation_duration() >= 172800s AND title:BOGO` + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. If unspecified, + # at most 50 resources will be returned. The maximum value is 200; (higher + # values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `ListReportingDataAnnotations` call. Provide this to retrieve the + # subsequent page. When paginating, all other parameters provided to + # `ListReportingDataAnnotations` must match the call that provided the page + # token. + class ListReportingDataAnnotationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListReportingDataAnnotation RPC. + # @!attribute [rw] reporting_data_annotations + # @return [::Array<::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation>] + # List of Reporting Data Annotations. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. If + # this field is omitted, there are no subsequent pages. + class ListReportingDataAnnotationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateReportingDataAnnotation RPC. + # @!attribute [rw] reporting_data_annotation + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # Required. The Reporting Data Annotation to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. Field names must be in snake case + # (for example, "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateReportingDataAnnotationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for DeleteReportingDataAnnotation RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Resource name of the Reporting Data Annotation to delete. + # Format: + # properties/property_id/reportingDataAnnotations/reporting_data_annotation + # Example: properties/123/reportingDataAnnotations/456 + class DeleteReportingDataAnnotationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for SubmitUserDeletion RPC. + # @!attribute [rw] user_id + # @return [::String] + # Google Analytics [user + # ID](https://firebase.google.com/docs/analytics/userid). + # + # Note: The following fields are mutually exclusive: `user_id`, `client_id`, `app_instance_id`, `user_provided_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] client_id + # @return [::String] + # Google Analytics [client + # ID](https://support.google.com/analytics/answer/11593727). + # + # Note: The following fields are mutually exclusive: `client_id`, `user_id`, `app_instance_id`, `user_provided_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] app_instance_id + # @return [::String] + # Firebase [application instance + # ID](https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.html#getAppInstanceId). + # + # Note: The following fields are mutually exclusive: `app_instance_id`, `user_id`, `client_id`, `user_provided_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] user_provided_data + # @return [::String] + # [User-provided + # data](https://support.google.com/analytics/answer/14077171). May contain + # either one email address or one phone number. + # + # Email addresses should be normalized as such: + # + # * lowercase + # * remove periods before @ for gmail.com/googlemail.com addresses + # * remove all spaces + # + # Phone numbers should be normalized as such: + # + # * remove all non digit characters + # * add + prefix + # + # Note: The following fields are mutually exclusive: `user_provided_data`, `user_id`, `client_id`, `app_instance_id`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the property to submit user deletion for. + class SubmitUserDeletionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for SubmitUserDeletion RPC. + # @!attribute [rw] deletion_request_time + # @return [::Google::Protobuf::Timestamp] + # Marks the moment for which all visitor data before this point should be + # deleted. This is set to the time at which the deletion request was + # received. + class SubmitUserDeletionResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetSubpropertySyncConfig RPC. + # @!attribute [rw] name + # @return [::String] + # Required. Resource name of the SubpropertySyncConfig to lookup. + # Format: + # properties/\\{ordinary_property_id}/subpropertySyncConfigs/\\{subproperty_id} + # Example: properties/1234/subpropertySyncConfigs/5678 + class GetSubpropertySyncConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for ListSubpropertySyncConfigs RPC. + # @!attribute [rw] parent + # @return [::String] + # Required. Resource name of the property. + # Format: properties/property_id + # Example: properties/123 + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of resources to return. The service may return + # fewer than this value, even if there are additional pages. If unspecified, + # at most 50 resources will be returned. The maximum value is 200; (higher + # values will be coerced to the maximum) + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `ListSubpropertySyncConfig` call. Provide this to retrieve the subsequent + # page. When paginating, all other parameters provided to + # `ListSubpropertySyncConfig` must match the call that provided the page + # token. + class ListSubpropertySyncConfigsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for ListSubpropertySyncConfigs RPC. + # @!attribute [rw] subproperty_sync_configs + # @return [::Array<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>] + # List of `SubpropertySyncConfig` resources. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. If + # this field is omitted, there are no subsequent pages. + class ListSubpropertySyncConfigsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateSubpropertySyncConfig RPC. + # @!attribute [rw] subproperty_sync_config + # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # Required. The `SubpropertySyncConfig` to update. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to update. Field names must be in snake case + # (for example, "field_to_update"). Omitted fields will not be updated. To + # replace the entire entity, use one path with the string "*" to match all + # fields. + class UpdateSubpropertySyncConfigRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetReportingIdentitySettings RPC. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the settings to lookup. + # Format: + # properties/\\{property}/reportingIdentitySettings + # Example: "properties/1000/reportingIdentitySettings" + class GetReportingIdentitySettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for UpdateReportingIdentitySettings RPC. + # @!attribute [rw] reporting_identity_settings + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # Required. The reporting identity settings to update. + # The settings' `name` field is used to identify the settings. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to be updated. Field names must be in snake + # case (for example, "field_to_update"). Omitted fields will not be updated. + # To replace the entire entity, use one path with the string "*" to match all + # fields. If omitted, the service will treat it as an implied field mask + # equivalent to all fields that are populated. + class UpdateReportingIdentitySettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for GetUserProvidedDataSettings RPC + # @!attribute [rw] name + # @return [::String] + # Required. The name of the user provided data settings to retrieve. + # Format: properties/\\{property}/userProvidedDataSettings + class GetUserProvidedDataSettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb new file mode 100644 index 000000000000..15c8f1fc5ef1 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb @@ -0,0 +1,447 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Analytics + module Admin + module V1alpha + # A specific filter for a single dimension or metric. + # @!attribute [rw] string_filter + # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::StringFilter] + # A filter for a string-type dimension that matches a particular pattern. + # + # Note: The following fields are mutually exclusive: `string_filter`, `in_list_filter`, `numeric_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] in_list_filter + # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::InListFilter] + # A filter for a string dimension that matches a particular list of + # options. + # + # Note: The following fields are mutually exclusive: `in_list_filter`, `string_filter`, `numeric_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] numeric_filter + # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::NumericFilter] + # A filter for numeric or date values on a dimension or metric. + # + # Note: The following fields are mutually exclusive: `numeric_filter`, `string_filter`, `in_list_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] between_filter + # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::BetweenFilter] + # A filter for numeric or date values between certain values on a dimension + # or metric. + # + # Note: The following fields are mutually exclusive: `between_filter`, `string_filter`, `in_list_filter`, `numeric_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] field_name + # @return [::String] + # Required. Immutable. The dimension name or metric name to filter. If the + # field name refers to a custom dimension or metric, a scope prefix will be + # added to the front of the custom dimensions or metric name. For more on + # scope prefixes or custom dimensions/metrics, reference the [Google + # Analytics Data API documentation] + # (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). + # @!attribute [rw] at_any_point_in_time + # @return [::Boolean] + # Optional. Indicates whether this filter needs dynamic evaluation or not. If + # set to true, users join the Audience if they ever met the condition (static + # evaluation). If unset or set to false, user evaluation for an Audience is + # dynamic; users are added to an Audience when they meet the conditions and + # then removed when they no longer meet them. + # + # This can only be set when Audience scope is ACROSS_ALL_SESSIONS. + # @!attribute [rw] in_any_n_day_period + # @return [::Integer] + # Optional. If set, specifies the time window for which to evaluate data in + # number of days. If not set, then audience data is evaluated against + # lifetime data (For example, infinite time window). + # + # For example, if set to 1 day, only the current day's data is evaluated. The + # reference point is the current day when at_any_point_in_time is unset or + # false. + # + # It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be + # greater than 60 days. + class AudienceDimensionOrMetricFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A filter for a string-type dimension that matches a particular pattern. + # @!attribute [rw] match_type + # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::StringFilter::MatchType] + # Required. The match type for the string filter. + # @!attribute [rw] value + # @return [::String] + # Required. The string value to be matched against. + # @!attribute [rw] case_sensitive + # @return [::Boolean] + # Optional. If true, the match is case-sensitive. If false, the match is + # case-insensitive. + class StringFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The match type for the string filter. + module MatchType + # Unspecified + MATCH_TYPE_UNSPECIFIED = 0 + + # Exact match of the string value. + EXACT = 1 + + # Begins with the string value. + BEGINS_WITH = 2 + + # Ends with the string value. + ENDS_WITH = 3 + + # Contains the string value. + CONTAINS = 4 + + # Full regular expression matches with the string value. + FULL_REGEXP = 5 + end + end + + # A filter for a string dimension that matches a particular list of options. + # @!attribute [rw] values + # @return [::Array<::String>] + # Required. The list of possible string values to match against. Must be + # non-empty. + # @!attribute [rw] case_sensitive + # @return [::Boolean] + # Optional. If true, the match is case-sensitive. If false, the match is + # case-insensitive. + class InListFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # To represent a number. + # @!attribute [rw] int64_value + # @return [::Integer] + # Integer value. + # + # Note: The following fields are mutually exclusive: `int64_value`, `double_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] double_value + # @return [::Float] + # Double value. + # + # Note: The following fields are mutually exclusive: `double_value`, `int64_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class NumericValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A filter for numeric or date values on a dimension or metric. + # @!attribute [rw] operation + # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::NumericFilter::Operation] + # Required. The operation applied to a numeric filter. + # @!attribute [rw] value + # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::NumericValue] + # Required. The numeric or date value to match against. + class NumericFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The operation applied to a numeric filter. + module Operation + # Unspecified. + OPERATION_UNSPECIFIED = 0 + + # Equal. + EQUAL = 1 + + # Less than. + LESS_THAN = 2 + + # Greater than. + GREATER_THAN = 4 + end + end + + # A filter for numeric or date values between certain values on a dimension + # or metric. + # @!attribute [rw] from_value + # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::NumericValue] + # Required. Begins with this number, inclusive. + # @!attribute [rw] to_value + # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::NumericValue] + # Required. Ends with this number, inclusive. + class BetweenFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A filter that matches events of a single event name. If an event parameter + # is specified, only the subset of events that match both the single event name + # and the parameter filter expressions match this event filter. + # @!attribute [rw] event_name + # @return [::String] + # Required. Immutable. The name of the event to match against. + # @!attribute [rw] event_parameter_filter_expression + # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpression] + # Optional. If specified, this filter matches events that match both the + # single event name and the parameter filter expressions. AudienceEventFilter + # inside the parameter filter expression cannot be set (For example, nested + # event filters are not supported). This should be a single and_group of + # dimension_or_metric_filter or not_expression; ANDs of ORs are not + # supported. Also, if it includes a filter for "eventCount", only that one + # will be considered; all the other filters will be ignored. + class AudienceEventFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A logical expression of Audience dimension, metric, or event filters. + # @!attribute [rw] and_group + # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpressionList] + # A list of expressions to be AND’ed together. It can only contain + # AudienceFilterExpressions with or_group. This must be set for the top + # level AudienceFilterExpression. + # + # Note: The following fields are mutually exclusive: `and_group`, `or_group`, `not_expression`, `dimension_or_metric_filter`, `event_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] or_group + # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpressionList] + # A list of expressions to OR’ed together. It cannot contain + # AudienceFilterExpressions with and_group or or_group. + # + # Note: The following fields are mutually exclusive: `or_group`, `and_group`, `not_expression`, `dimension_or_metric_filter`, `event_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] not_expression + # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpression] + # A filter expression to be NOT'ed (For example, inverted, complemented). + # It can only include a dimension_or_metric_filter. This cannot be set on + # the top level AudienceFilterExpression. + # + # Note: The following fields are mutually exclusive: `not_expression`, `and_group`, `or_group`, `dimension_or_metric_filter`, `event_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] dimension_or_metric_filter + # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter] + # A filter on a single dimension or metric. This cannot be set on the top + # level AudienceFilterExpression. + # + # Note: The following fields are mutually exclusive: `dimension_or_metric_filter`, `and_group`, `or_group`, `not_expression`, `event_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] event_filter + # @return [::Google::Analytics::Admin::V1alpha::AudienceEventFilter] + # Creates a filter that matches a specific event. This cannot be set on the + # top level AudienceFilterExpression. + # + # Note: The following fields are mutually exclusive: `event_filter`, `and_group`, `or_group`, `not_expression`, `dimension_or_metric_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class AudienceFilterExpression + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A list of Audience filter expressions. + # @!attribute [rw] filter_expressions + # @return [::Array<::Google::Analytics::Admin::V1alpha::AudienceFilterExpression>] + # A list of Audience filter expressions. + class AudienceFilterExpressionList + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a simple filter that a user must satisfy to be a member of the + # Audience. + # @!attribute [rw] scope + # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterScope] + # Required. Immutable. Specifies the scope for this filter. + # @!attribute [rw] filter_expression + # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpression] + # Required. Immutable. A logical expression of Audience dimension, metric, or + # event filters. + class AudienceSimpleFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines filters that must occur in a specific order for the user to be a + # member of the Audience. + # @!attribute [rw] scope + # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterScope] + # Required. Immutable. Specifies the scope for this filter. + # @!attribute [rw] sequence_maximum_duration + # @return [::Google::Protobuf::Duration] + # Optional. Defines the time period in which the whole sequence must occur. + # @!attribute [rw] sequence_steps + # @return [::Array<::Google::Analytics::Admin::V1alpha::AudienceSequenceFilter::AudienceSequenceStep>] + # Required. An ordered sequence of steps. A user must complete each step in + # order to join the sequence filter. + class AudienceSequenceFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A condition that must occur in the specified step order for this user + # to match the sequence. + # @!attribute [rw] scope + # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterScope] + # Required. Immutable. Specifies the scope for this step. + # @!attribute [rw] immediately_follows + # @return [::Boolean] + # Optional. If true, the event satisfying this step must be the very next + # event after the event satisfying the last step. If unset or false, this + # step indirectly follows the prior step; for example, there may be + # events between the prior step and this step. It is ignored for the + # first step. + # @!attribute [rw] constraint_duration + # @return [::Google::Protobuf::Duration] + # Optional. When set, this step must be satisfied within the + # constraint_duration of the previous step (For example, t[i] - t[i-1] <= + # constraint_duration). If not set, there is no duration requirement (the + # duration is effectively unlimited). It is ignored for the first step. + # @!attribute [rw] filter_expression + # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpression] + # Required. Immutable. A logical expression of Audience dimension, metric, + # or event filters in each step. + class AudienceSequenceStep + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A clause for defining either a simple or sequence filter. A filter can be + # inclusive (For example, users satisfying the filter clause are included in + # the Audience) or exclusive (For example, users satisfying the filter clause + # are excluded from the Audience). + # @!attribute [rw] simple_filter + # @return [::Google::Analytics::Admin::V1alpha::AudienceSimpleFilter] + # A simple filter that a user must satisfy to be a member of the Audience. + # + # Note: The following fields are mutually exclusive: `simple_filter`, `sequence_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] sequence_filter + # @return [::Google::Analytics::Admin::V1alpha::AudienceSequenceFilter] + # Filters that must occur in a specific order for the user to be a member + # of the Audience. + # + # Note: The following fields are mutually exclusive: `sequence_filter`, `simple_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] clause_type + # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterClause::AudienceClauseType] + # Required. Specifies whether this is an include or exclude filter clause. + class AudienceFilterClause + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Specifies whether this is an include or exclude filter clause. + module AudienceClauseType + # Unspecified clause type. + AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0 + + # Users will be included in the Audience if the filter clause is met. + INCLUDE = 1 + + # Users will be excluded from the Audience if the filter clause is met. + EXCLUDE = 2 + end + end + + # Specifies an event to log when a user joins the Audience. + # @!attribute [rw] event_name + # @return [::String] + # Required. The event name that will be logged. + # @!attribute [rw] log_condition + # @return [::Google::Analytics::Admin::V1alpha::AudienceEventTrigger::LogCondition] + # Required. When to log the event. + class AudienceEventTrigger + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Determines when to log the event. + module LogCondition + # Log condition is not specified. + LOG_CONDITION_UNSPECIFIED = 0 + + # The event should be logged only when a user is joined. + AUDIENCE_JOINED = 1 + + # The event should be logged whenever the Audience condition is met, even + # if the user is already a member of the Audience. + AUDIENCE_MEMBERSHIP_RENEWED = 2 + end + end + + # A resource message representing an Audience. + # @!attribute [r] name + # @return [::String] + # Output only. The resource name for this Audience resource. + # Format: properties/\\{propertyId}/audiences/\\{audienceId} + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name of the Audience. + # @!attribute [rw] description + # @return [::String] + # Required. The description of the Audience. + # @!attribute [rw] membership_duration_days + # @return [::Integer] + # Required. Immutable. The duration a user should stay in an Audience. It + # cannot be set to more than 540 days. + # @!attribute [r] ads_personalization_enabled + # @return [::Boolean] + # Output only. It is automatically set by GA to false if this is an NPA + # Audience and is excluded from ads personalization. + # @!attribute [rw] event_trigger + # @return [::Google::Analytics::Admin::V1alpha::AudienceEventTrigger] + # Optional. Specifies an event to log when a user joins the Audience. If not + # set, no event is logged when a user joins the Audience. + # @!attribute [rw] exclusion_duration_mode + # @return [::Google::Analytics::Admin::V1alpha::Audience::AudienceExclusionDurationMode] + # Immutable. Specifies how long an exclusion lasts for users that meet the + # exclusion filter. It is applied to all EXCLUDE filter clauses and is + # ignored when there is no EXCLUDE filter clause in the Audience. + # @!attribute [rw] filter_clauses + # @return [::Array<::Google::Analytics::Admin::V1alpha::AudienceFilterClause>] + # Required. Immutable. Unordered list. Filter clauses that define the + # Audience. All clauses will be AND’ed together. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when the Audience was created. + class Audience + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Specifies how long an exclusion lasts for users that meet the exclusion + # filter. + module AudienceExclusionDurationMode + # Not specified. + AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0 + + # Exclude users from the Audience during periods when they meet the + # filter clause. + EXCLUDE_TEMPORARILY = 1 + + # Exclude users from the Audience if they've ever met the filter clause. + EXCLUDE_PERMANENTLY = 2 + end + end + + # Specifies how to evaluate users for joining an Audience. + module AudienceFilterScope + # Scope is not specified. + AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0 + + # User joins the Audience if the filter condition is met within one + # event. + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1 + + # User joins the Audience if the filter condition is met within one + # session. + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2 + + # User joins the Audience if the filter condition is met by any event + # across any session. + AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3 + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb new file mode 100644 index 000000000000..7d063995ee9b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb @@ -0,0 +1,179 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Analytics + module Admin + module V1alpha + # A specific filter for a single dimension. + # @!attribute [rw] string_filter + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilter::StringFilter] + # A filter for a string-type dimension that matches a particular pattern. + # + # Note: The following fields are mutually exclusive: `string_filter`, `in_list_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] in_list_filter + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilter::InListFilter] + # A filter for a string dimension that matches a particular list of + # options. + # + # Note: The following fields are mutually exclusive: `in_list_filter`, `string_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] field_name + # @return [::String] + # Required. Immutable. The dimension name to filter. + class ChannelGroupFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Filter where the field value is a String. The match is case insensitive. + # @!attribute [rw] match_type + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilter::StringFilter::MatchType] + # Required. The match type for the string filter. + # @!attribute [rw] value + # @return [::String] + # Required. The string value to be matched against. + class StringFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # How the filter will be used to determine a match. + module MatchType + # Default match type. + MATCH_TYPE_UNSPECIFIED = 0 + + # Exact match of the string value. + EXACT = 1 + + # Begins with the string value. + BEGINS_WITH = 2 + + # Ends with the string value. + ENDS_WITH = 3 + + # Contains the string value. + CONTAINS = 4 + + # Full regular expression match with the string value. + FULL_REGEXP = 5 + + # Partial regular expression match with the string value. + PARTIAL_REGEXP = 6 + end + end + + # A filter for a string dimension that matches a particular list of options. + # The match is case insensitive. + # @!attribute [rw] values + # @return [::Array<::String>] + # Required. The list of possible string values to match against. Must be + # non-empty. + class InListFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A logical expression of Channel Group dimension filters. + # @!attribute [rw] and_group + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilterExpressionList] + # A list of expressions to be AND’ed together. It can only contain + # ChannelGroupFilterExpressions with or_group. This must be set for the + # top level ChannelGroupFilterExpression. + # + # Note: The following fields are mutually exclusive: `and_group`, `or_group`, `not_expression`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] or_group + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilterExpressionList] + # A list of expressions to OR’ed together. It cannot contain + # ChannelGroupFilterExpressions with and_group or or_group. + # + # Note: The following fields are mutually exclusive: `or_group`, `and_group`, `not_expression`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] not_expression + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilterExpression] + # A filter expression to be NOT'ed (that is inverted, complemented). It + # can only include a dimension_or_metric_filter. This cannot be set on the + # top level ChannelGroupFilterExpression. + # + # Note: The following fields are mutually exclusive: `not_expression`, `and_group`, `or_group`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] filter + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilter] + # A filter on a single dimension. This cannot be set on the top + # level ChannelGroupFilterExpression. + # + # Note: The following fields are mutually exclusive: `filter`, `and_group`, `or_group`, `not_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class ChannelGroupFilterExpression + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A list of Channel Group filter expressions. + # @!attribute [rw] filter_expressions + # @return [::Array<::Google::Analytics::Admin::V1alpha::ChannelGroupFilterExpression>] + # A list of Channel Group filter expressions. + class ChannelGroupFilterExpressionList + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The rules that govern how traffic is grouped into one channel. + # @!attribute [rw] display_name + # @return [::String] + # Required. Customer defined display name for the channel. + # @!attribute [rw] expression + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilterExpression] + # Required. The Filter Expression that defines the Grouping Rule. + class GroupingRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A resource message representing a Channel Group. + # @!attribute [r] name + # @return [::String] + # Output only. The resource name for this Channel Group resource. + # Format: properties/\\{property}/channelGroups/\\{channel_group} + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name of the Channel Group. Max length of 80 + # characters. + # @!attribute [rw] description + # @return [::String] + # The description of the Channel Group. Max length of 256 characters. + # @!attribute [rw] grouping_rule + # @return [::Array<::Google::Analytics::Admin::V1alpha::GroupingRule>] + # Required. The grouping rules of channels. Maximum number of rules is 50. + # @!attribute [r] system_defined + # @return [::Boolean] + # Output only. If true, then this channel group is the Default Channel Group + # predefined by Google Analytics. Display name and grouping rules cannot be + # updated for this channel group. + # @!attribute [rw] primary + # @return [::Boolean] + # Optional. If true, this channel group will be used as the default channel + # group for reports. Only one channel group can be set as `primary` at any + # time. If the `primary` field gets set on a channel group, it will get unset + # on the previous primary channel group. + # + # The Google Analytics predefined channel group is the primary by default. + class ChannelGroup + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb new file mode 100644 index 000000000000..ef60bd1da6bc --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb @@ -0,0 +1,206 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Analytics + module Admin + module V1alpha + # Defines an event parameter to mutate. + # @!attribute [rw] parameter + # @return [::String] + # Required. The name of the parameter to mutate. + # This value must: + # * be less than 40 characters. + # * be unique across across all mutations within the rule + # * consist only of letters, digits or _ (underscores) + # For event edit rules, the name may also be set to 'event_name' to modify + # the event_name in place. + # @!attribute [rw] parameter_value + # @return [::String] + # Required. The value mutation to perform. + # * Must be less than 100 characters. + # * To specify a constant value for the param, use the value's string. + # * To copy value from another parameter, use syntax like + # "[[other_parameter]]" For more details, see this [help center + # article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). + class ParameterMutation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # An Event Create Rule defines conditions that will trigger the creation + # of an entirely new event based upon matched criteria of a source event. + # Additional mutations of the parameters from the source event can be defined. + # + # Unlike Event Edit rules, Event Creation Rules have no defined order. They + # will all be run independently. + # + # Event Edit and Event Create rules can't be used to modify an event created + # from an Event Create rule. + # @!attribute [r] name + # @return [::String] + # Output only. Resource name for this EventCreateRule resource. + # Format: + # properties/\\{property}/dataStreams/\\{data_stream}/eventCreateRules/\\{event_create_rule} + # @!attribute [rw] destination_event + # @return [::String] + # Required. The name of the new event to be created. + # + # This value must: + # * be less than 40 characters + # * consist only of letters, digits or _ (underscores) + # * start with a letter + # @!attribute [rw] event_conditions + # @return [::Array<::Google::Analytics::Admin::V1alpha::MatchingCondition>] + # Required. Must have at least one condition, and can have up to 10 max. + # Conditions on the source event must match for this rule to be applied. + # @!attribute [rw] source_copy_parameters + # @return [::Boolean] + # If true, the source parameters are copied to the new event. + # If false, or unset, all non-internal parameters are not copied from the + # source event. Parameter mutations are applied after the parameters have + # been copied. + # @!attribute [rw] parameter_mutations + # @return [::Array<::Google::Analytics::Admin::V1alpha::ParameterMutation>] + # Parameter mutations define parameter behavior on the new event, and + # are applied in order. + # A maximum of 20 mutations can be applied. + class EventCreateRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # An Event Edit Rule defines conditions that will trigger the creation of an + # entirely new event based upon matched criteria of a source event. Additional + # mutations of the parameters from the source event can be defined. + # + # Unlike Event Create rules, Event Edit Rules are applied in their defined + # order. + # + # Event Edit rules can't be used to modify an event created from an Event + # Create rule. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name for this EventEditRule resource. + # Format: + # properties/\\{property}/dataStreams/\\{data_stream}/eventEditRules/\\{event_edit_rule} + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name of this event edit rule. Maximum of 255 + # characters. + # @!attribute [rw] event_conditions + # @return [::Array<::Google::Analytics::Admin::V1alpha::MatchingCondition>] + # Required. Conditions on the source event must match for this rule to be + # applied. Must have at least one condition, and can have up to 10 max. + # @!attribute [rw] parameter_mutations + # @return [::Array<::Google::Analytics::Admin::V1alpha::ParameterMutation>] + # Required. Parameter mutations define parameter behavior on the new event, + # and are applied in order. A maximum of 20 mutations can be applied. + # @!attribute [r] processing_order + # @return [::Integer] + # Output only. The order for which this rule will be processed. Rules with an + # order value lower than this will be processed before this rule, rules with + # an order value higher than this will be processed after this rule. New + # event edit rules will be assigned an order value at the end of the order. + # + # This value does not apply to event create rules. + class EventEditRule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Defines a condition for when an Event Edit or Event Creation rule applies to + # an event. + # @!attribute [rw] field + # @return [::String] + # Required. The name of the field that is compared against for the condition. + # If 'event_name' is specified this condition will apply to the name of the + # event. Otherwise the condition will apply to a parameter with the + # specified name. + # + # This value cannot contain spaces. + # @!attribute [rw] comparison_type + # @return [::Google::Analytics::Admin::V1alpha::MatchingCondition::ComparisonType] + # Required. The type of comparison to be applied to the value. + # @!attribute [rw] value + # @return [::String] + # Required. The value being compared against for this condition. The runtime + # implementation may perform type coercion of this value to evaluate this + # condition based on the type of the parameter value. + # @!attribute [rw] negated + # @return [::Boolean] + # Whether or not the result of the comparison should be negated. For example, + # if `negated` is true, then 'equals' comparisons would function as 'not + # equals'. + class MatchingCondition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Comparison type for matching condition + module ComparisonType + # Unknown + COMPARISON_TYPE_UNSPECIFIED = 0 + + # Equals, case sensitive + EQUALS = 1 + + # Equals, case insensitive + EQUALS_CASE_INSENSITIVE = 2 + + # Contains, case sensitive + CONTAINS = 3 + + # Contains, case insensitive + CONTAINS_CASE_INSENSITIVE = 4 + + # Starts with, case sensitive + STARTS_WITH = 5 + + # Starts with, case insensitive + STARTS_WITH_CASE_INSENSITIVE = 6 + + # Ends with, case sensitive + ENDS_WITH = 7 + + # Ends with, case insensitive + ENDS_WITH_CASE_INSENSITIVE = 8 + + # Greater than + GREATER_THAN = 9 + + # Greater than or equal + GREATER_THAN_OR_EQUAL = 10 + + # Less than + LESS_THAN = 11 + + # Less than or equal + LESS_THAN_OR_EQUAL = 12 + + # regular expression. Only supported for web streams. + REGULAR_EXPRESSION = 13 + + # regular expression, case insensitive. Only supported for web streams. + REGULAR_EXPRESSION_CASE_INSENSITIVE = 14 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb new file mode 100644 index 000000000000..3610896c0a8b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb @@ -0,0 +1,166 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Analytics + module Admin + module V1alpha + # A specific filter for a single dimension + # @!attribute [rw] string_filter + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilter::StringFilter] + # A filter for a string-type dimension that matches a particular pattern. + # + # Note: The following fields are mutually exclusive: `string_filter`, `in_list_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] in_list_filter + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilter::InListFilter] + # A filter for a string dimension that matches a particular list of + # options. + # + # Note: The following fields are mutually exclusive: `in_list_filter`, `string_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] field_name + # @return [::String] + # Required. The dimension name to filter. + class ExpandedDataSetFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A filter for a string-type dimension that matches a particular pattern. + # @!attribute [rw] match_type + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilter::StringFilter::MatchType] + # Required. The match type for the string filter. + # @!attribute [rw] value + # @return [::String] + # Required. The string value to be matched against. + # @!attribute [rw] case_sensitive + # @return [::Boolean] + # Optional. If true, the match is case-sensitive. If false, the match is + # case-insensitive. + # Must be true when match_type is EXACT. + # Must be false when match_type is CONTAINS. + class StringFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The match type for the string filter. + module MatchType + # Unspecified + MATCH_TYPE_UNSPECIFIED = 0 + + # Exact match of the string value. + EXACT = 1 + + # Contains the string value. + CONTAINS = 2 + end + end + + # A filter for a string dimension that matches a particular list of options. + # @!attribute [rw] values + # @return [::Array<::String>] + # Required. The list of possible string values to match against. Must be + # non-empty. + # @!attribute [rw] case_sensitive + # @return [::Boolean] + # Optional. If true, the match is case-sensitive. If false, the match is + # case-insensitive. + # Must be true. + class InListFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A logical expression of EnhancedDataSet dimension filters. + # @!attribute [rw] and_group + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilterExpressionList] + # A list of expressions to be AND’ed together. It must contain a + # ExpandedDataSetFilterExpression with either not_expression or + # dimension_filter. This must be set for the top level + # ExpandedDataSetFilterExpression. + # + # Note: The following fields are mutually exclusive: `and_group`, `not_expression`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] not_expression + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilterExpression] + # A filter expression to be NOT'ed (that is, inverted, complemented). It + # must include a dimension_filter. This cannot be set on the + # top level ExpandedDataSetFilterExpression. + # + # Note: The following fields are mutually exclusive: `not_expression`, `and_group`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] filter + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilter] + # A filter on a single dimension. This cannot be set on the top + # level ExpandedDataSetFilterExpression. + # + # Note: The following fields are mutually exclusive: `filter`, `and_group`, `not_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class ExpandedDataSetFilterExpression + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A list of ExpandedDataSet filter expressions. + # @!attribute [rw] filter_expressions + # @return [::Array<::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilterExpression>] + # A list of ExpandedDataSet filter expressions. + class ExpandedDataSetFilterExpressionList + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A resource message representing an `ExpandedDataSet`. + # @!attribute [r] name + # @return [::String] + # Output only. The resource name for this ExpandedDataSet resource. + # Format: properties/\\{property_id}/expandedDataSets/\\{expanded_data_set} + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name of the ExpandedDataSet. + # Max 200 chars. + # @!attribute [rw] description + # @return [::String] + # Optional. The description of the ExpandedDataSet. + # Max 50 chars. + # @!attribute [rw] dimension_names + # @return [::Array<::String>] + # Immutable. The list of dimensions included in the ExpandedDataSet. + # See the [API + # Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + # for the list of dimension names. + # @!attribute [rw] metric_names + # @return [::Array<::String>] + # Immutable. The list of metrics included in the ExpandedDataSet. + # See the [API + # Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + # for the list of dimension names. + # @!attribute [rw] dimension_filter_expression + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilterExpression] + # Immutable. A logical expression of ExpandedDataSet filters applied to + # dimension included in the ExpandedDataSet. This filter is used to reduce + # the number of rows and thus the chance of encountering `other` row. + # @!attribute [r] data_collection_start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when expanded data set began (or will begin) collecing + # data. + class ExpandedDataSet + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb new file mode 100644 index 000000000000..6fabb98c56f1 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb @@ -0,0 +1,2181 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Analytics + module Admin + module V1alpha + # A resource message representing a Google Analytics account. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name of this account. + # Format: accounts/\\{account} + # Example: "accounts/100" + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when this account was originally created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when account payload fields were last updated. + # @!attribute [rw] display_name + # @return [::String] + # Required. Human-readable display name for this account. + # @!attribute [rw] region_code + # @return [::String] + # Country of business. Must be a Unicode CLDR region code. + # @!attribute [r] deleted + # @return [::Boolean] + # Output only. Indicates whether this Account is soft-deleted or not. Deleted + # accounts are excluded from List results unless specifically requested. + # @!attribute [r] gmp_organization + # @return [::String] + # Output only. The URI for a Google Marketing Platform organization resource. + # Only set when this account is connected to a GMP organization. + # Format: marketingplatformadmin.googleapis.com/organizations/\\{org_id} + class Account + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A resource message representing a Google Analytics property. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name of this property. + # Format: properties/\\{property_id} + # Example: "properties/1000" + # @!attribute [rw] property_type + # @return [::Google::Analytics::Admin::V1alpha::PropertyType] + # Immutable. The property type for this Property resource. When creating a + # property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then + # "ORDINARY_PROPERTY" will be implied. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when the entity was originally created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when entity payload fields were last updated. + # @!attribute [rw] parent + # @return [::String] + # Immutable. Resource name of this property's logical parent. + # + # Note: The Property-Moving UI can be used to change the parent. + # Format: accounts/\\{account}, properties/\\{property} + # Example: "accounts/100", "properties/101" + # @!attribute [rw] display_name + # @return [::String] + # Required. Human-readable display name for this property. + # + # The max allowed display name length is 100 UTF-16 code units. + # @!attribute [rw] industry_category + # @return [::Google::Analytics::Admin::V1alpha::IndustryCategory] + # Industry associated with this property + # Example: AUTOMOTIVE, FOOD_AND_DRINK + # @!attribute [rw] time_zone + # @return [::String] + # Required. Reporting Time Zone, used as the day boundary for reports, + # regardless of where the data originates. If the time zone honors DST, + # Analytics will automatically adjust for the changes. + # + # NOTE: Changing the time zone only affects data going forward, and is not + # applied retroactively. + # + # Format: https://www.iana.org/time-zones + # Example: "America/Los_Angeles" + # @!attribute [rw] currency_code + # @return [::String] + # The currency type used in reports involving monetary values. + # + # + # Format: https://en.wikipedia.org/wiki/ISO_4217 + # Examples: "USD", "EUR", "JPY" + # @!attribute [r] service_level + # @return [::Google::Analytics::Admin::V1alpha::ServiceLevel] + # Output only. The Google Analytics service level that applies to this + # property. + # @!attribute [r] delete_time + # @return [::Google::Protobuf::Timestamp] + # Output only. If set, the time at which this property was trashed. If not + # set, then this property is not currently in the trash can. + # @!attribute [r] expire_time + # @return [::Google::Protobuf::Timestamp] + # Output only. If set, the time at which this trashed property will be + # permanently deleted. If not set, then this property is not currently in the + # trash can and is not slated to be deleted. + # @!attribute [rw] account + # @return [::String] + # Immutable. The resource name of the parent account + # Format: accounts/\\{account_id} + # Example: "accounts/123" + class Property + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A resource message representing a data stream. + # @!attribute [rw] web_stream_data + # @return [::Google::Analytics::Admin::V1alpha::DataStream::WebStreamData] + # Data specific to web streams. Must be populated if type is + # WEB_DATA_STREAM. + # + # Note: The following fields are mutually exclusive: `web_stream_data`, `android_app_stream_data`, `ios_app_stream_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] android_app_stream_data + # @return [::Google::Analytics::Admin::V1alpha::DataStream::AndroidAppStreamData] + # Data specific to Android app streams. Must be populated if type is + # ANDROID_APP_DATA_STREAM. + # + # Note: The following fields are mutually exclusive: `android_app_stream_data`, `web_stream_data`, `ios_app_stream_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ios_app_stream_data + # @return [::Google::Analytics::Admin::V1alpha::DataStream::IosAppStreamData] + # Data specific to iOS app streams. Must be populated if type is + # IOS_APP_DATA_STREAM. + # + # Note: The following fields are mutually exclusive: `ios_app_stream_data`, `web_stream_data`, `android_app_stream_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name of this Data Stream. + # Format: properties/\\{property_id}/dataStreams/\\{stream_id} + # Example: "properties/1000/dataStreams/2000" + # @!attribute [rw] type + # @return [::Google::Analytics::Admin::V1alpha::DataStream::DataStreamType] + # Required. Immutable. The type of this DataStream resource. + # @!attribute [rw] display_name + # @return [::String] + # Human-readable display name for the Data Stream. + # + # Required for web data streams. + # + # The max allowed display name length is 255 UTF-16 code units. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when this stream was originally created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when stream payload fields were last updated. + class DataStream + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Data specific to web streams. + # @!attribute [r] measurement_id + # @return [::String] + # Output only. Analytics Measurement ID. + # + # Example: "G-1A2BCD345E" + # @!attribute [r] firebase_app_id + # @return [::String] + # Output only. ID of the corresponding web app in Firebase, if any. + # This ID can change if the web app is deleted and recreated. + # @!attribute [rw] default_uri + # @return [::String] + # Domain name of the web app being measured, or empty. + # Example: "http://www.google.com", "https://www.google.com" + class WebStreamData + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Data specific to Android app streams. + # @!attribute [r] firebase_app_id + # @return [::String] + # Output only. ID of the corresponding Android app in Firebase, if any. + # This ID can change if the Android app is deleted and recreated. + # @!attribute [rw] package_name + # @return [::String] + # Immutable. The package name for the app being measured. + # Example: "com.example.myandroidapp" + class AndroidAppStreamData + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Data specific to iOS app streams. + # @!attribute [r] firebase_app_id + # @return [::String] + # Output only. ID of the corresponding iOS app in Firebase, if any. + # This ID can change if the iOS app is deleted and recreated. + # @!attribute [rw] bundle_id + # @return [::String] + # Required. Immutable. The Apple App Store Bundle ID for the app + # Example: "com.example.myiosapp" + class IosAppStreamData + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The type of the data stream. + module DataStreamType + # Type unknown or not specified. + DATA_STREAM_TYPE_UNSPECIFIED = 0 + + # Web data stream. + WEB_DATA_STREAM = 1 + + # Android app data stream. + ANDROID_APP_DATA_STREAM = 2 + + # iOS app data stream. + IOS_APP_DATA_STREAM = 3 + end + end + + # A link between a Google Analytics property and a Firebase project. + # @!attribute [rw] name + # @return [::String] + # Identifier. Example format: properties/1234/firebaseLinks/5678 + # @!attribute [rw] project + # @return [::String] + # Immutable. Firebase project resource name. When creating a FirebaseLink, + # you may provide this resource name using either a project number or project + # ID. Once this resource has been created, returned FirebaseLinks will always + # have a project_name that contains a project number. + # + # Format: 'projects/\\{project number}' + # Example: 'projects/1234' + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when this FirebaseLink was originally created. + class FirebaseLink + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Read-only resource with the tag for sending data from a website to a + # DataStream. Only present for web DataStream resources. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name for this GlobalSiteTag resource. + # Format: properties/\\{property_id}/dataStreams/\\{stream_id}/globalSiteTag + # Example: "properties/123/dataStreams/456/globalSiteTag" + # @!attribute [rw] snippet + # @return [::String] + # Immutable. JavaScript code snippet to be pasted as the first item into the + # head tag of every webpage to measure. + class GlobalSiteTag + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A link between a Google Analytics property and a Google Ads account. + # @!attribute [rw] name + # @return [::String] + # Identifier. Format: + # properties/\\{propertyId}/googleAdsLinks/\\{googleAdsLinkId} + # + # Note: googleAdsLinkId is not the Google Ads customer ID. + # @!attribute [rw] customer_id + # @return [::String] + # Immutable. Google Ads customer ID. + # @!attribute [r] can_manage_clients + # @return [::Boolean] + # Output only. If true, this link is for a Google Ads manager account. + # @!attribute [rw] ads_personalization_enabled + # @return [::Google::Protobuf::BoolValue] + # Enable personalized advertising features with this integration. + # Automatically publish my Google Analytics audience lists and Google + # Analytics remarketing events/parameters to the linked Google Ads account. + # If this field is not set on create/update, it will be defaulted to true. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when this link was originally created. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when this link was last updated. + # @!attribute [r] creator_email_address + # @return [::String] + # Output only. Email address of the user that created the link. + # An empty string will be returned if the email address can't be retrieved. + class GoogleAdsLink + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A resource message representing data sharing settings of a Google Analytics + # account. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name. + # Format: accounts/\\{account}/dataSharingSettings + # Example: "accounts/1000/dataSharingSettings" + # @!attribute [rw] sharing_with_google_support_enabled + # @return [::Boolean] + # Allows Google technical support representatives access to your Google + # Analytics data and account when necessary to provide service and find + # solutions to technical issues. + # + # This field maps to the "Technical support" field in the Google Analytics + # Admin UI. + # @!attribute [rw] sharing_with_google_assigned_sales_enabled + # @return [::Boolean] + # Allows Google access to your Google Analytics account data, including + # account usage and configuration data, product spending, and users + # associated with your Google Analytics account, so that Google can help you + # make the most of Google products, providing you with insights, offers, + # recommendations, and optimization tips across Google Analytics and other + # Google products for business. + # + # This field maps to the "Recommendations for your business" field in the + # Google Analytics Admin UI. + # @!attribute [rw] sharing_with_google_any_sales_enabled + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Boolean] + # Deprecated. This field is no longer used and always returns false. + # @!attribute [rw] sharing_with_google_products_enabled + # @return [::Boolean] + # Allows Google to use the data to improve other Google products or services. + # + # This fields maps to the "Google products & services" field in the Google + # Analytics Admin UI. + # @!attribute [rw] sharing_with_others_enabled + # @return [::Boolean] + # Enable features like predictions, modeled data, and benchmarking that can + # provide you with richer business insights when you contribute aggregated + # measurement data. The data you share (including information about the + # property from which it is shared) is aggregated and de-identified before + # being used to generate business insights. + # + # This field maps to the "Modeling contributions & business insights" field + # in the Google Analytics Admin UI. + class DataSharingSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A virtual resource representing an overview of an account and + # all its child Google Analytics properties. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name for this account summary. + # Format: accountSummaries/\\{account_id} + # Example: "accountSummaries/1000" + # @!attribute [rw] account + # @return [::String] + # Resource name of account referred to by this account summary + # Format: accounts/\\{account_id} + # Example: "accounts/1000" + # @!attribute [rw] display_name + # @return [::String] + # Display name for the account referred to in this account summary. + # @!attribute [rw] property_summaries + # @return [::Array<::Google::Analytics::Admin::V1alpha::PropertySummary>] + # List of summaries for child accounts of this account. + class AccountSummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A virtual resource representing metadata for a Google Analytics property. + # @!attribute [rw] property + # @return [::String] + # Resource name of property referred to by this property summary + # Format: properties/\\{property_id} + # Example: "properties/1000" + # @!attribute [rw] display_name + # @return [::String] + # Display name for the property referred to in this property summary. + # @!attribute [rw] property_type + # @return [::Google::Analytics::Admin::V1alpha::PropertyType] + # The property's property type. + # @!attribute [rw] parent + # @return [::String] + # Resource name of this property's logical parent. + # + # Note: The Property-Moving UI can be used to change the parent. + # Format: accounts/\\{account}, properties/\\{property} + # Example: "accounts/100", "properties/200" + # @!attribute [rw] can_edit + # @return [::Boolean] + # If true, then the user has a Google Analytics role that permits them to + # edit the property. + class PropertySummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A secret value used for sending hits to Measurement Protocol. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name of this secret. This secret may be a child of any + # type of stream. Format: + # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} + # @!attribute [rw] display_name + # @return [::String] + # Required. Human-readable display name for this secret. + # @!attribute [r] secret_value + # @return [::String] + # Output only. The measurement protocol secret value. Pass this value to the + # api_secret field of the Measurement Protocol API when sending hits to this + # secret's parent property. + class MeasurementProtocolSecret + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # SKAdNetwork conversion value schema of an iOS stream. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name of the schema. This will be child of ONLY an iOS + # stream, and there can be at most one such child under an iOS stream. + # Format: + # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema + # @!attribute [rw] postback_window_one + # @return [::Google::Analytics::Admin::V1alpha::PostbackWindow] + # Required. The conversion value settings for the first postback window. + # These differ from values for postback window two and three in that they + # contain a "Fine" grained conversion value (a numeric value). + # + # Conversion values for this postback window must be set. The other windows + # are optional and may inherit this window's settings if unset or disabled. + # @!attribute [rw] postback_window_two + # @return [::Google::Analytics::Admin::V1alpha::PostbackWindow] + # The conversion value settings for the second postback window. + # + # This field should only be configured if there is a need to define different + # conversion values for this postback window. + # + # If enable_postback_window_settings is set to false for this postback + # window, the values from postback_window_one will be used. + # @!attribute [rw] postback_window_three + # @return [::Google::Analytics::Admin::V1alpha::PostbackWindow] + # The conversion value settings for the third postback window. + # + # This field should only be set if the user chose to define different + # conversion values for this postback window. It is allowed to configure + # window 3 without setting window 2. In case window 1 & 2 settings are set + # and enable_postback_window_settings for this postback window is set to + # false, the schema will inherit settings from postback_window_two. + # @!attribute [rw] apply_conversion_values + # @return [::Boolean] + # If enabled, the GA SDK will set conversion values using this schema + # definition, and schema will be exported to any Google Ads accounts linked + # to this property. If disabled, the GA SDK will not automatically set + # conversion values, and also the schema will not be exported to Ads. + class SKAdNetworkConversionValueSchema + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for a SKAdNetwork conversion postback window. + # @!attribute [rw] conversion_values + # @return [::Array<::Google::Analytics::Admin::V1alpha::ConversionValues>] + # Ordering of the repeated field will be used to prioritize the conversion + # value settings. Lower indexed entries are prioritized higher. The first + # conversion value setting that evaluates to true will be selected. It must + # have at least one entry if enable_postback_window_settings is set to + # true. It can have maximum of 128 entries. + # @!attribute [rw] postback_window_settings_enabled + # @return [::Boolean] + # If enable_postback_window_settings is true, conversion_values + # must be populated and will be used for determining when and how to set the + # Conversion Value on a client device and exporting schema to linked Ads + # accounts. If false, the settings are not used, but are retained in case + # they may be used in the future. This must always be true for + # postback_window_one. + class PostbackWindow + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Conversion value settings for a postback window for SKAdNetwork conversion + # value schema. + # @!attribute [rw] display_name + # @return [::String] + # Display name of the SKAdNetwork conversion value. + # The max allowed display name length is 50 UTF-16 code units. + # @!attribute [rw] fine_value + # @return [::Integer] + # The fine-grained conversion value. This is applicable only to the first + # postback window. Its valid values are [0,63], both inclusive. It must be + # set for postback window 1, and must not be set for postback window 2 & 3. + # This value is not guaranteed to be unique. + # + # If the configuration for the first postback window is re-used for second or + # third postback windows this field has no effect. + # @!attribute [rw] coarse_value + # @return [::Google::Analytics::Admin::V1alpha::CoarseValue] + # Required. A coarse grained conversion value. + # + # This value is not guaranteed to be unique. + # @!attribute [rw] event_mappings + # @return [::Array<::Google::Analytics::Admin::V1alpha::EventMapping>] + # Event conditions that must be met for this Conversion Value to be achieved. + # The conditions in this list are ANDed together. It must have minimum of 1 + # entry and maximum of 3 entries, if the postback window is enabled. + # @!attribute [rw] lock_enabled + # @return [::Boolean] + # If true, the SDK should lock to this conversion value for the current + # postback window. + class ConversionValues + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Event setting conditions to match an event. + # @!attribute [rw] event_name + # @return [::String] + # Required. Name of the Google Analytics event. It must always be set. + # The max allowed display name length is 40 UTF-16 code units. + # @!attribute [rw] min_event_count + # @return [::Integer] + # At least one of the following four min/max values must be set. The + # values set will be ANDed together to qualify an event. + # The minimum number of times the event occurred. If not set, minimum event + # count won't be checked. + # @!attribute [rw] max_event_count + # @return [::Integer] + # The maximum number of times the event occurred. If not set, maximum event + # count won't be checked. + # @!attribute [rw] min_event_value + # @return [::Float] + # The minimum revenue generated due to the event. Revenue currency will be + # defined at the property level. If not set, minimum event value won't be + # checked. + # @!attribute [rw] max_event_value + # @return [::Float] + # The maximum revenue generated due to the event. Revenue currency will be + # defined at the property level. If not set, maximum event value won't be + # checked. + class EventMapping + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A set of changes within a Google Analytics account or its child properties + # that resulted from the same cause. Common causes would be updates made in the + # Google Analytics UI, changes from customer support, or automatic Google + # Analytics system changes. + # @!attribute [rw] id + # @return [::String] + # ID of this change history event. This ID is unique across Google Analytics. + # @!attribute [rw] change_time + # @return [::Google::Protobuf::Timestamp] + # Time when change was made. + # @!attribute [rw] actor_type + # @return [::Google::Analytics::Admin::V1alpha::ActorType] + # The type of actor that made this change. + # @!attribute [rw] user_actor_email + # @return [::String] + # Email address of the Google account that made the change. This will be a + # valid email address if the actor field is set to USER, and empty otherwise. + # Google accounts that have been deleted will cause an error. + # @!attribute [rw] changes_filtered + # @return [::Boolean] + # If true, then the list of changes returned was filtered, and does not + # represent all changes that occurred in this event. + # @!attribute [rw] changes + # @return [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryChange>] + # A list of changes made in this change history event that fit the filters + # specified in SearchChangeHistoryEventsRequest. + class ChangeHistoryEvent + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A description of a change to a single Google Analytics resource. + # @!attribute [rw] resource + # @return [::String] + # Resource name of the resource whose changes are described by this entry. + # @!attribute [rw] action + # @return [::Google::Analytics::Admin::V1alpha::ActionType] + # The type of action that changed this resource. + # @!attribute [rw] resource_before_change + # @return [::Google::Analytics::Admin::V1alpha::ChangeHistoryChange::ChangeHistoryResource] + # Resource contents from before the change was made. If this resource was + # created in this change, this field will be missing. + # @!attribute [rw] resource_after_change + # @return [::Google::Analytics::Admin::V1alpha::ChangeHistoryChange::ChangeHistoryResource] + # Resource contents from after the change was made. If this resource was + # deleted in this change, this field will be missing. + class ChangeHistoryChange + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A snapshot of a resource as before or after the result of a change in + # change history. + # @!attribute [rw] account + # @return [::Google::Analytics::Admin::V1alpha::Account] + # A snapshot of an Account resource in change history. + # + # Note: The following fields are mutually exclusive: `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] property + # @return [::Google::Analytics::Admin::V1alpha::Property] + # A snapshot of a Property resource in change history. + # + # Note: The following fields are mutually exclusive: `property`, `account`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] firebase_link + # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] + # A snapshot of a FirebaseLink resource in change history. + # + # Note: The following fields are mutually exclusive: `firebase_link`, `account`, `property`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] google_ads_link + # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] + # A snapshot of a GoogleAdsLink resource in change history. + # + # Note: The following fields are mutually exclusive: `google_ads_link`, `account`, `property`, `firebase_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] google_signals_settings + # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] + # A snapshot of a GoogleSignalsSettings resource in change history. + # + # Note: The following fields are mutually exclusive: `google_signals_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] display_video_360_advertiser_link + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # A snapshot of a DisplayVideo360AdvertiserLink resource in change + # history. + # + # Note: The following fields are mutually exclusive: `display_video_360_advertiser_link`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] display_video_360_advertiser_link_proposal + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in + # change history. + # + # Note: The following fields are mutually exclusive: `display_video_360_advertiser_link_proposal`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] conversion_event + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] + # A snapshot of a ConversionEvent resource in change history. + # + # Note: The following fields are mutually exclusive: `conversion_event`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] measurement_protocol_secret + # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] + # A snapshot of a MeasurementProtocolSecret resource in change history. + # + # Note: The following fields are mutually exclusive: `measurement_protocol_secret`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] custom_dimension + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # A snapshot of a CustomDimension resource in change history. + # + # Note: The following fields are mutually exclusive: `custom_dimension`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] custom_metric + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # A snapshot of a CustomMetric resource in change history. + # + # Note: The following fields are mutually exclusive: `custom_metric`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_retention_settings + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # A snapshot of a data retention settings resource in change history. + # + # Note: The following fields are mutually exclusive: `data_retention_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] search_ads_360_link + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # A snapshot of a SearchAds360Link resource in change history. + # + # Note: The following fields are mutually exclusive: `search_ads_360_link`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_stream + # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # A snapshot of a DataStream resource in change history. + # + # Note: The following fields are mutually exclusive: `data_stream`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] attribution_settings + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # A snapshot of AttributionSettings resource in change history. + # + # Note: The following fields are mutually exclusive: `attribution_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] expanded_data_set + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # A snapshot of an ExpandedDataSet resource in change history. + # + # Note: The following fields are mutually exclusive: `expanded_data_set`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] channel_group + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # A snapshot of a ChannelGroup resource in change history. + # + # Note: The following fields are mutually exclusive: `channel_group`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bigquery_link + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # A snapshot of a BigQuery link resource in change history. + # + # Note: The following fields are mutually exclusive: `bigquery_link`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] enhanced_measurement_settings + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # A snapshot of EnhancedMeasurementSettings resource in change history. + # + # Note: The following fields are mutually exclusive: `enhanced_measurement_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] data_redaction_settings + # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] + # A snapshot of DataRedactionSettings resource in change history. + # + # Note: The following fields are mutually exclusive: `data_redaction_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] skadnetwork_conversion_value_schema + # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] + # A snapshot of SKAdNetworkConversionValueSchema resource in change + # history. + # + # Note: The following fields are mutually exclusive: `skadnetwork_conversion_value_schema`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] adsense_link + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # A snapshot of an AdSenseLink resource in change history. + # + # Note: The following fields are mutually exclusive: `adsense_link`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] audience + # @return [::Google::Analytics::Admin::V1alpha::Audience] + # A snapshot of an Audience resource in change history. + # + # Note: The following fields are mutually exclusive: `audience`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] event_create_rule + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # A snapshot of an EventCreateRule resource in change history. + # + # Note: The following fields are mutually exclusive: `event_create_rule`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] key_event + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] + # A snapshot of a KeyEvent resource in change history. + # + # Note: The following fields are mutually exclusive: `key_event`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] calculated_metric + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] + # A snapshot of a CalculatedMetric resource in change history. + # + # Note: The following fields are mutually exclusive: `calculated_metric`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] reporting_data_annotation + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] + # A snapshot of a ReportingDataAnnotation resource in change history. + # + # Note: The following fields are mutually exclusive: `reporting_data_annotation`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] subproperty_sync_config + # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] + # A snapshot of a SubpropertySyncConfig resource in change history. + # + # Note: The following fields are mutually exclusive: `subproperty_sync_config`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] reporting_identity_settings + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # A snapshot of a ReportingIdentitySettings resource in change history. + # + # Note: The following fields are mutually exclusive: `reporting_identity_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] user_provided_data_settings + # @return [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] + # A snapshot of a UserProvidedDataSettings resource in change history. + # + # Note: The following fields are mutually exclusive: `user_provided_data_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class ChangeHistoryResource + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # A link between a Google Analytics property and a Display & Video 360 + # advertiser. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name for this DisplayVideo360AdvertiserLink + # resource. Format: + # properties/\\{propertyId}/displayVideo360AdvertiserLinks/\\{linkId} + # + # Note: linkId is not the Display & Video 360 Advertiser ID + # @!attribute [rw] advertiser_id + # @return [::String] + # Immutable. The Display & Video 360 Advertiser's advertiser ID. + # @!attribute [r] advertiser_display_name + # @return [::String] + # Output only. The display name of the Display & Video 360 Advertiser. + # @!attribute [rw] ads_personalization_enabled + # @return [::Google::Protobuf::BoolValue] + # Enables personalized advertising features with this integration. + # If this field is not set on create/update, it will be defaulted to true. + # @!attribute [rw] campaign_data_sharing_enabled + # @return [::Google::Protobuf::BoolValue] + # Immutable. Enables the import of campaign data from Display & Video 360 + # into the Google Analytics property. After link creation, this can only be + # updated from the Display & Video 360 product. If this field is not set on + # create, it will be defaulted to true. + # @!attribute [rw] cost_data_sharing_enabled + # @return [::Google::Protobuf::BoolValue] + # Immutable. Enables the import of cost data from Display & Video 360 into + # the Google Analytics property. This can only be enabled if + # `campaign_data_sharing_enabled` is true. After link creation, this can + # only be updated from the Display & Video 360 product. If this field is not + # set on create, it will be defaulted to true. + class DisplayVideo360AdvertiserLink + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A proposal for a link between a Google Analytics property and a Display & + # Video 360 advertiser. + # + # A proposal is converted to a DisplayVideo360AdvertiserLink once approved. + # Google Analytics admins approve inbound proposals while Display & Video 360 + # admins approve outbound proposals. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name for this + # DisplayVideo360AdvertiserLinkProposal resource. Format: + # properties/\\{propertyId}/displayVideo360AdvertiserLinkProposals/\\{proposalId} + # + # Note: proposalId is not the Display & Video 360 Advertiser ID + # @!attribute [rw] advertiser_id + # @return [::String] + # Immutable. The Display & Video 360 Advertiser's advertiser ID. + # @!attribute [r] link_proposal_status_details + # @return [::Google::Analytics::Admin::V1alpha::LinkProposalStatusDetails] + # Output only. The status information for this link proposal. + # @!attribute [r] advertiser_display_name + # @return [::String] + # Output only. The display name of the Display & Video Advertiser. + # Only populated for proposals that originated from Display & Video 360. + # @!attribute [rw] validation_email + # @return [::String] + # Input only. On a proposal being sent to Display & Video 360, this field + # must be set to the email address of an admin on the target advertiser. This + # is used to verify that the Google Analytics admin is aware of at least one + # admin on the Display & Video 360 Advertiser. This does not restrict + # approval of the proposal to a single user. Any admin on the Display & Video + # 360 Advertiser may approve the proposal. + # @!attribute [rw] ads_personalization_enabled + # @return [::Google::Protobuf::BoolValue] + # Immutable. Enables personalized advertising features with this integration. + # If this field is not set on create, it will be defaulted to true. + # @!attribute [rw] campaign_data_sharing_enabled + # @return [::Google::Protobuf::BoolValue] + # Immutable. Enables the import of campaign data from Display & Video 360. + # If this field is not set on create, it will be defaulted to true. + # @!attribute [rw] cost_data_sharing_enabled + # @return [::Google::Protobuf::BoolValue] + # Immutable. Enables the import of cost data from Display & Video 360. + # This can only be enabled if campaign_data_sharing_enabled is enabled. + # If this field is not set on create, it will be defaulted to true. + class DisplayVideo360AdvertiserLinkProposal + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A link between a Google Analytics property and a Search Ads 360 entity. + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name for this SearchAds360Link resource. + # Format: properties/\\{propertyId}/searchAds360Links/\\{linkId} + # + # Note: linkId is not the Search Ads 360 advertiser ID + # @!attribute [rw] advertiser_id + # @return [::String] + # Immutable. This field represents the Advertiser ID of the Search Ads 360 + # Advertiser. that has been linked. + # @!attribute [rw] campaign_data_sharing_enabled + # @return [::Google::Protobuf::BoolValue] + # Immutable. Enables the import of campaign data from Search Ads 360 into the + # Google Analytics property. After link creation, this can only be updated + # from the Search Ads 360 product. If this field is not set on create, it + # will be defaulted to true. + # @!attribute [rw] cost_data_sharing_enabled + # @return [::Google::Protobuf::BoolValue] + # Immutable. Enables the import of cost data from Search Ads 360 to the + # Google Analytics property. This can only be enabled if + # campaign_data_sharing_enabled is enabled. After link creation, this can + # only be updated from the Search Ads 360 product. If this field is not set + # on create, it will be defaulted to true. + # @!attribute [r] advertiser_display_name + # @return [::String] + # Output only. The display name of the Search Ads 360 Advertiser. + # Allows users to easily identify the linked resource. + # @!attribute [rw] ads_personalization_enabled + # @return [::Google::Protobuf::BoolValue] + # Enables personalized advertising features with this integration. + # If this field is not set on create, it will be defaulted to true. + # @!attribute [rw] site_stats_sharing_enabled + # @return [::Google::Protobuf::BoolValue] + # Enables export of site stats with this integration. + # If this field is not set on create, it will be defaulted to true. + class SearchAds360Link + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Status information for a link proposal. + # @!attribute [r] link_proposal_initiating_product + # @return [::Google::Analytics::Admin::V1alpha::LinkProposalInitiatingProduct] + # Output only. The source of this proposal. + # @!attribute [r] requestor_email + # @return [::String] + # Output only. The email address of the user that proposed this linkage. + # @!attribute [r] link_proposal_state + # @return [::Google::Analytics::Admin::V1alpha::LinkProposalState] + # Output only. The state of this proposal. + class LinkProposalStatusDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A conversion event in a Google Analytics property. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name of this conversion event. + # Format: properties/\\{property}/conversionEvents/\\{conversion_event} + # @!attribute [rw] event_name + # @return [::String] + # Immutable. The event name for this conversion event. + # Examples: 'click', 'purchase' + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when this conversion event was created in the property. + # @!attribute [r] deletable + # @return [::Boolean] + # Output only. If set, this event can currently be deleted with + # DeleteConversionEvent. + # @!attribute [r] custom + # @return [::Boolean] + # Output only. If set to true, this conversion event refers to a custom + # event. If set to false, this conversion event refers to a default event in + # GA. Default events typically have special meaning in GA. Default events are + # usually created for you by the GA system, but in some cases can be created + # by property admins. Custom events count towards the maximum number of + # custom conversion events that may be created per property. + # @!attribute [rw] counting_method + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent::ConversionCountingMethod] + # Optional. The method by which conversions will be counted across multiple + # events within a session. If this value is not provided, it will be set to + # `ONCE_PER_EVENT`. + # @!attribute [rw] default_conversion_value + # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent::DefaultConversionValue] + # Optional. Defines a default value/currency for a conversion event. + class ConversionEvent + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Defines a default value/currency for a conversion event. Both value and + # currency must be provided. + # @!attribute [rw] value + # @return [::Float] + # This value will be used to populate the value for all conversions + # of the specified event_name where the event "value" parameter is unset. + # @!attribute [rw] currency_code + # @return [::String] + # When a conversion event for this event_name has no set currency, + # this currency will be applied as the default. Must be in ISO 4217 + # currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for + # more information. + class DefaultConversionValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The method by which conversions will be counted across multiple events + # within a session. + module ConversionCountingMethod + # Counting method not specified. + CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0 + + # Each Event instance is considered a Conversion. + ONCE_PER_EVENT = 1 + + # An Event instance is considered a Conversion at most once per session per + # user. + ONCE_PER_SESSION = 2 + end + end + + # A key event in a Google Analytics property. + # @!attribute [r] name + # @return [::String] + # Output only. Resource name of this key event. + # Format: properties/\\{property}/keyEvents/\\{key_event} + # @!attribute [rw] event_name + # @return [::String] + # Immutable. The event name for this key event. + # Examples: 'click', 'purchase' + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when this key event was created in the property. + # @!attribute [r] deletable + # @return [::Boolean] + # Output only. If set to true, this event can be deleted. + # @!attribute [r] custom + # @return [::Boolean] + # Output only. If set to true, this key event refers to a custom event. If + # set to false, this key event refers to a default event in GA. Default + # events typically have special meaning in GA. Default events are usually + # created for you by the GA system, but in some cases can be created by + # property admins. Custom events count towards the maximum number of + # custom key events that may be created per property. + # @!attribute [rw] counting_method + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent::CountingMethod] + # Required. The method by which Key Events will be counted across multiple + # events within a session. + # @!attribute [rw] default_value + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent::DefaultValue] + # Optional. Defines a default value/currency for a key event. + class KeyEvent + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Defines a default value/currency for a key event. + # @!attribute [rw] numeric_value + # @return [::Float] + # Required. This will be used to populate the "value" parameter for all + # occurrences of this Key Event (specified by event_name) where that + # parameter is unset. + # @!attribute [rw] currency_code + # @return [::String] + # Required. When an occurrence of this Key Event (specified by event_name) + # has no set currency this currency will be applied as the default. Must be + # in ISO 4217 currency code format. + # + # See https://en.wikipedia.org/wiki/ISO_4217 for more information. + class DefaultValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The method by which Key Events will be counted across multiple events + # within a session. + module CountingMethod + # Counting method not specified. + COUNTING_METHOD_UNSPECIFIED = 0 + + # Each Event instance is considered a Key Event. + ONCE_PER_EVENT = 1 + + # An Event instance is considered a Key Event at most once per session per + # user. + ONCE_PER_SESSION = 2 + end + end + + # Settings values for Google Signals. This is a singleton resource. + # @!attribute [r] name + # @return [::String] + # Output only. Resource name of this setting. + # Format: properties/\\{property_id}/googleSignalsSettings + # Example: "properties/1000/googleSignalsSettings" + # @!attribute [rw] state + # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsState] + # Status of this setting. + # @!attribute [r] consent + # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsConsent] + # Output only. Terms of Service acceptance. + class GoogleSignalsSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A definition for a CustomDimension. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name for this CustomDimension resource. + # Format: properties/\\{property}/customDimensions/\\{customDimension} + # @!attribute [rw] parameter_name + # @return [::String] + # Required. Immutable. Tagging parameter name for this custom dimension. + # + # If this is a user-scoped dimension, then this is the user property name. + # If this is an event-scoped dimension, then this is the event parameter + # name. + # + # If this is an item-scoped dimension, then this is the parameter + # name found in the eCommerce items array. + # + # May only contain alphanumeric and underscore characters, starting with a + # letter. Max length of 24 characters for user-scoped dimensions, 40 + # characters for event-scoped dimensions. + # @!attribute [rw] display_name + # @return [::String] + # Required. Display name for this custom dimension as shown in the Analytics + # UI. Max length of 82 characters, alphanumeric plus space and underscore + # starting with a letter. Legacy system-generated display names may contain + # square brackets, but updates to this field will never permit square + # brackets. + # @!attribute [rw] description + # @return [::String] + # Optional. Description for this custom dimension. Max length of 150 + # characters. + # @!attribute [rw] scope + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension::DimensionScope] + # Required. Immutable. The scope of this dimension. + # @!attribute [rw] disallow_ads_personalization + # @return [::Boolean] + # Optional. If set to true, sets this dimension as NPA and excludes it from + # ads personalization. + # + # This is currently only supported by user-scoped custom dimensions. + class CustomDimension + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Valid values for the scope of this dimension. + module DimensionScope + # Scope unknown or not specified. + DIMENSION_SCOPE_UNSPECIFIED = 0 + + # Dimension scoped to an event. + EVENT = 1 + + # Dimension scoped to a user. + USER = 2 + + # Dimension scoped to eCommerce items + ITEM = 3 + end + end + + # A definition for a custom metric. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name for this CustomMetric resource. + # Format: properties/\\{property}/customMetrics/\\{customMetric} + # @!attribute [rw] parameter_name + # @return [::String] + # Required. Immutable. Tagging name for this custom metric. + # + # If this is an event-scoped metric, then this is the event parameter + # name. + # + # May only contain alphanumeric and underscore charactes, starting with a + # letter. Max length of 40 characters for event-scoped metrics. + # @!attribute [rw] display_name + # @return [::String] + # Required. Display name for this custom metric as shown in the Analytics UI. + # Max length of 82 characters, alphanumeric plus space and underscore + # starting with a letter. Legacy system-generated display names may contain + # square brackets, but updates to this field will never permit square + # brackets. + # @!attribute [rw] description + # @return [::String] + # Optional. Description for this custom dimension. + # Max length of 150 characters. + # @!attribute [rw] measurement_unit + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric::MeasurementUnit] + # Required. The type for the custom metric's value. + # @!attribute [rw] scope + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric::MetricScope] + # Required. Immutable. The scope of this custom metric. + # @!attribute [rw] restricted_metric_type + # @return [::Array<::Google::Analytics::Admin::V1alpha::CustomMetric::RestrictedMetricType>] + # Optional. Types of restricted data that this metric may contain. Required + # for metrics with CURRENCY measurement unit. Must be empty for metrics with + # a non-CURRENCY measurement unit. + class CustomMetric + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible types of representing the custom metric's value. + # + # Currency representation may change in the future, requiring a breaking API + # change. + module MeasurementUnit + # MeasurementUnit unspecified or missing. + MEASUREMENT_UNIT_UNSPECIFIED = 0 + + # This metric uses default units. + STANDARD = 1 + + # This metric measures a currency. + CURRENCY = 2 + + # This metric measures feet. + FEET = 3 + + # This metric measures meters. + METERS = 4 + + # This metric measures kilometers. + KILOMETERS = 5 + + # This metric measures miles. + MILES = 6 + + # This metric measures milliseconds. + MILLISECONDS = 7 + + # This metric measures seconds. + SECONDS = 8 + + # This metric measures minutes. + MINUTES = 9 + + # This metric measures hours. + HOURS = 10 + end + + # The scope of this metric. + module MetricScope + # Scope unknown or not specified. + METRIC_SCOPE_UNSPECIFIED = 0 + + # Metric scoped to an event. + EVENT = 1 + end + + # Labels that mark the data in this custom metric as data that should be + # restricted to specific users. + module RestrictedMetricType + # Type unknown or unspecified. + RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0 + + # Metric reports cost data. + COST_DATA = 1 + + # Metric reports revenue data. + REVENUE_DATA = 2 + end + end + + # A definition for a calculated metric. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name for this CalculatedMetric. + # Format: 'properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id}' + # @!attribute [rw] description + # @return [::String] + # Optional. Description for this calculated metric. + # Max length of 4096 characters. + # @!attribute [rw] display_name + # @return [::String] + # Required. Display name for this calculated metric as shown in the + # Google Analytics UI. Max length 82 characters. + # @!attribute [r] calculated_metric_id + # @return [::String] + # Output only. The ID to use for the calculated metric. In the UI, this is + # referred to as the "API name." + # + # The calculated_metric_id is used when referencing this calculated metric + # from external APIs. For example, "calcMetric:\\{calculated_metric_id}". + # @!attribute [rw] metric_unit + # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric::MetricUnit] + # Required. The type for the calculated metric's value. + # @!attribute [r] restricted_metric_type + # @return [::Array<::Google::Analytics::Admin::V1alpha::CalculatedMetric::RestrictedMetricType>] + # Output only. Types of restricted data that this metric contains. + # @!attribute [rw] formula + # @return [::String] + # Required. The calculated metric's definition. Maximum number of unique + # referenced custom metrics is 5. Formulas supports the following operations: + # + (addition), - (subtraction), - (negative), * (multiplication), / + # (division), () (parenthesis). Any valid real numbers are acceptable that + # fit in a Long (64bit integer) or a Double (64 bit floating point number). + # Example formula: + # "( customEvent:parameter_name + cartPurchaseQuantity ) / 2.0" + # @!attribute [r] invalid_metric_reference + # @return [::Boolean] + # Output only. If true, this calculated metric has a invalid metric + # reference. Anything using a calculated metric with invalid_metric_reference + # set to true may fail, produce warnings, or produce unexpected results. + class CalculatedMetric + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible types of representing the calculated metric's value. + module MetricUnit + # MetricUnit unspecified or missing. + METRIC_UNIT_UNSPECIFIED = 0 + + # This metric uses default units. + STANDARD = 1 + + # This metric measures a currency. + CURRENCY = 2 + + # This metric measures feet. + FEET = 3 + + # This metric measures miles. + MILES = 4 + + # This metric measures meters. + METERS = 5 + + # This metric measures kilometers. + KILOMETERS = 6 + + # This metric measures milliseconds. + MILLISECONDS = 7 + + # This metric measures seconds. + SECONDS = 8 + + # This metric measures minutes. + MINUTES = 9 + + # This metric measures hours. + HOURS = 10 + end + + # Labels that mark the data in calculated metric used in conjunction with + # user roles that restrict access to cost and/or revenue metrics. + module RestrictedMetricType + # Type unknown or unspecified. + RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0 + + # Metric reports cost data. + COST_DATA = 1 + + # Metric reports revenue data. + REVENUE_DATA = 2 + end + end + + # Settings values for data retention. This is a singleton resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name for this DataRetentionSetting resource. + # Format: properties/\\{property}/dataRetentionSettings + # @!attribute [rw] event_data_retention + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings::RetentionDuration] + # Required. The length of time that event-level data is retained. + # @!attribute [rw] user_data_retention + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings::RetentionDuration] + # Required. The length of time that user-level data is retained. + # @!attribute [rw] reset_user_data_on_new_activity + # @return [::Boolean] + # If true, reset the retention period for the user identifier with every + # event from that user. + class DataRetentionSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Valid values for the data retention duration. + module RetentionDuration + # Data retention time duration is not specified. + RETENTION_DURATION_UNSPECIFIED = 0 + + # The data retention time duration is 2 months. + TWO_MONTHS = 1 + + # The data retention time duration is 14 months. + FOURTEEN_MONTHS = 3 + + # The data retention time duration is 26 months. + # Available to 360 properties only. Available for event data only. + TWENTY_SIX_MONTHS = 4 + + # The data retention time duration is 38 months. + # Available to 360 properties only. Available for event data only. + THIRTY_EIGHT_MONTHS = 5 + + # The data retention time duration is 50 months. + # Available to 360 properties only. Available for event data only. + FIFTY_MONTHS = 6 + end + end + + # The attribution settings used for a given property. This is a singleton + # resource. + # @!attribute [r] name + # @return [::String] + # Output only. Resource name of this attribution settings resource. + # Format: properties/\\{property_id}/attributionSettings + # Example: "properties/1000/attributionSettings" + # @!attribute [rw] acquisition_conversion_event_lookback_window + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings::AcquisitionConversionEventLookbackWindow] + # Required. The lookback window configuration for acquisition conversion + # events. The default window size is 30 days. + # @!attribute [rw] other_conversion_event_lookback_window + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings::OtherConversionEventLookbackWindow] + # Required. The lookback window for all other, non-acquisition conversion + # events. The default window size is 90 days. + # @!attribute [rw] reporting_attribution_model + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings::ReportingAttributionModel] + # Required. The reporting attribution model used to calculate conversion + # credit in this property's reports. + # + # Changing the attribution model will apply to both historical and future + # data. These changes will be reflected in reports with conversion and + # revenue data. User and session data will be unaffected. + # @!attribute [rw] ads_web_conversion_data_export_scope + # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings::AdsWebConversionDataExportScope] + # Required. The Conversion Export Scope for data exported to linked Ads + # Accounts. + class AttributionSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # How far back in time events should be considered for inclusion in a + # converting path which leads to the first install of an app or the first + # visit to a site. + module AcquisitionConversionEventLookbackWindow + # Lookback window size unspecified. + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0 + + # 7-day lookback window. + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1 + + # 30-day lookback window. + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2 + end + + # How far back in time events should be considered for inclusion in a + # converting path for all conversions other than first app install/first site + # visit. + module OtherConversionEventLookbackWindow + # Lookback window size unspecified. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0 + + # 30-day lookback window. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1 + + # 60-day lookback window. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2 + + # 90-day lookback window. + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3 + end + + # The reporting attribution model used to calculate conversion credit in this + # property's reports. + module ReportingAttributionModel + # Reporting attribution model unspecified. + REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0 + + # Data-driven attribution distributes credit for the conversion based on + # data for each conversion event. Each Data-driven model is specific to + # each advertiser and each conversion event. + # Previously CROSS_CHANNEL_DATA_DRIVEN + PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1 + + # Ignores direct traffic and attributes 100% of the conversion value to the + # last channel that the customer clicked through (or engaged view through + # for YouTube) before converting. + # Previously CROSS_CHANNEL_LAST_CLICK + PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2 + + # Attributes 100% of the conversion value to the last Google Paid channel + # that the customer clicked through before converting. + # Previously ADS_PREFERRED_LAST_CLICK + GOOGLE_PAID_CHANNELS_LAST_CLICK = 7 + end + + # The Conversion Export Scope for data exported to linked Ads Accounts. + module AdsWebConversionDataExportScope + # Default value. This value is unused. + ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0 + + # No data export scope selected yet. + # Export scope can never be changed back to this value. + NOT_SELECTED_YET = 1 + + # Paid and organic channels are eligible to receive conversion credit, but + # only credit assigned to Google Ads channels will appear in your Ads + # accounts. To learn more, see [Paid and Organic + # channels](https://support.google.com/analytics/answer/10632359). + PAID_AND_ORGANIC_CHANNELS = 2 + + # Only Google Ads paid channels are eligible to receive conversion credit. + # To learn more, see [Google Paid + # channels](https://support.google.com/analytics/answer/10632359). + GOOGLE_PAID_CHANNELS = 3 + end + end + + # A binding of a user to a set of roles. + # @!attribute [rw] user + # @return [::String] + # If set, the email address of the user to set roles for. + # Format: "someuser@gmail.com" + # @!attribute [r] name + # @return [::String] + # Output only. Resource name of this binding. + # + # Format: accounts/\\{account}/accessBindings/\\{access_binding} or + # properties/\\{property}/accessBindings/\\{access_binding} + # + # Example: + # "accounts/100/accessBindings/200" + # @!attribute [rw] roles + # @return [::Array<::String>] + # A list of roles for to grant to the parent resource. + # + # Valid values: + # predefinedRoles/viewer + # predefinedRoles/analyst + # predefinedRoles/editor + # predefinedRoles/admin + # predefinedRoles/no-cost-data + # predefinedRoles/no-revenue-data + # + # For users, if an empty list of roles is set, this AccessBinding will be + # deleted. + class AccessBinding + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A link between a Google Analytics property and BigQuery project. + # @!attribute [r] name + # @return [::String] + # Output only. Resource name of this BigQuery link. + # Format: 'properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id}' + # Format: 'properties/1234/bigQueryLinks/abc567' + # @!attribute [rw] project + # @return [::String] + # Immutable. The linked Google Cloud project. When creating a BigQueryLink, + # you may provide this resource name using either a project number or project + # ID. Once this resource has been created, the returned project will always + # have a project that contains a project number. + # Format: 'projects/\\{project number}' + # Example: 'projects/1234' + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Time when the link was created. + # @!attribute [rw] daily_export_enabled + # @return [::Boolean] + # If set true, enables daily data export to the linked Google Cloud project. + # @!attribute [rw] streaming_export_enabled + # @return [::Boolean] + # If set true, enables streaming export to the linked Google Cloud project. + # @!attribute [rw] fresh_daily_export_enabled + # @return [::Boolean] + # If set true, enables fresh daily export to the linked Google Cloud project. + # @!attribute [rw] include_advertising_id + # @return [::Boolean] + # If set true, exported data will include advertising identifiers for mobile + # app streams. + # @!attribute [rw] export_streams + # @return [::Array<::String>] + # The list of streams under the parent property for which data will be + # exported. + # Format: properties/\\{property_id}/dataStreams/\\{stream_id} + # Example: ['properties/1000/dataStreams/2000'] + # @!attribute [rw] excluded_events + # @return [::Array<::String>] + # The list of event names that will be excluded from exports. + # @!attribute [rw] dataset_location + # @return [::String] + # Required. Immutable. The geographic location where the created BigQuery + # dataset should reside. See https://cloud.google.com/bigquery/docs/locations + # for supported locations. + class BigQueryLink + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Singleton resource under a web DataStream, configuring measurement of + # additional site interactions and content. + # @!attribute [r] name + # @return [::String] + # Output only. Resource name of the Enhanced Measurement Settings. + # Format: + # properties/\\{property_id}/dataStreams/\\{data_stream}/enhancedMeasurementSettings + # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + # @!attribute [rw] stream_enabled + # @return [::Boolean] + # Indicates whether Enhanced Measurement Settings will be used to + # automatically measure interactions and content on this web stream. + # + # Changing this value does not affect the settings themselves, but determines + # whether they are respected. + # @!attribute [rw] scrolls_enabled + # @return [::Boolean] + # If enabled, capture scroll events each time a visitor gets to the bottom of + # a page. + # @!attribute [rw] outbound_clicks_enabled + # @return [::Boolean] + # If enabled, capture an outbound click event each time a visitor clicks a + # link that leads them away from your domain. + # @!attribute [rw] site_search_enabled + # @return [::Boolean] + # If enabled, capture a view search results event each time a visitor + # performs a search on your site (based on a query parameter). + # @!attribute [rw] video_engagement_enabled + # @return [::Boolean] + # If enabled, capture video play, progress, and complete events as visitors + # view embedded videos on your site. + # @!attribute [rw] file_downloads_enabled + # @return [::Boolean] + # If enabled, capture a file download event each time a link is clicked with + # a common document, compressed file, application, video, or audio extension. + # @!attribute [rw] page_changes_enabled + # @return [::Boolean] + # If enabled, capture a page view event each time the website changes the + # browser history state. + # @!attribute [rw] form_interactions_enabled + # @return [::Boolean] + # If enabled, capture a form interaction event each time a visitor interacts + # with a form on your website. + # False by default. + # @!attribute [rw] search_query_parameter + # @return [::String] + # Required. URL query parameters to interpret as site search parameters. + # Max length is 1024 characters. Must not be empty. + # @!attribute [rw] uri_query_parameter + # @return [::String] + # Additional URL query parameters. + # Max length is 1024 characters. + class EnhancedMeasurementSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for client-side data redaction. Singleton resource under a Web + # Stream. + # @!attribute [r] name + # @return [::String] + # Output only. Name of this Data Redaction Settings resource. + # Format: + # properties/\\{property_id}/dataStreams/\\{data_stream}/dataRedactionSettings + # Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + # @!attribute [rw] email_redaction_enabled + # @return [::Boolean] + # If enabled, any event parameter or user property values that look like an + # email will be redacted. + # @!attribute [rw] query_parameter_redaction_enabled + # @return [::Boolean] + # Query Parameter redaction removes the key and value portions of a + # query parameter if it is in the configured set of query parameters. + # + # If enabled, URL query replacement logic will be run for the Stream. Any + # query parameters defined in query_parameter_keys will be redacted. + # @!attribute [rw] query_parameter_keys + # @return [::Array<::String>] + # The query parameter keys to apply redaction logic to if present in the URL. + # Query parameter matching is case-insensitive. + # + # Must contain at least one element if query_parameter_replacement_enabled + # is true. Keys cannot contain commas. + class DataRedactionSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A link between a Google Analytics property and an AdSense for Content ad + # client. + # @!attribute [r] name + # @return [::String] + # Output only. The resource name for this AdSense Link resource. + # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} + # Example: properties/1234/adSenseLinks/6789 + # @!attribute [rw] ad_client_code + # @return [::String] + # Immutable. The AdSense ad client code that the Google Analytics property is + # linked to. Example format: "ca-pub-1234567890" + class AdSenseLink + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A link that references a source property under the parent rollup property. + # @!attribute [r] name + # @return [::String] + # Output only. Resource name of this RollupPropertySourceLink. + # Format: + # 'properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link}' + # Format: 'properties/123/rollupPropertySourceLinks/456' + # @!attribute [rw] source_property + # @return [::String] + # Immutable. Resource name of the source property. + # Format: properties/\\{property_id} + # Example: "properties/789" + class RollupPropertySourceLink + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A Reporting Data Annotation is a comment connected to certain dates for + # reporting data. + # @!attribute [rw] annotation_date + # @return [::Google::Type::Date] + # If set, the Reporting Data Annotation is for a specific date represented + # by this field. The date must be a valid date with year, month and day + # set. The date may be in the past, present, or future. + # + # Note: The following fields are mutually exclusive: `annotation_date`, `annotation_date_range`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] annotation_date_range + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation::DateRange] + # If set, the Reporting Data Annotation is for a range of dates represented + # by this field. + # + # Note: The following fields are mutually exclusive: `annotation_date_range`, `annotation_date`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] name + # @return [::String] + # Required. Identifier. Resource name of this Reporting Data Annotation. + # Format: + # 'properties/\\{property_id}/reportingDataAnnotations/\\{reporting_data_annotation}' + # Format: 'properties/123/reportingDataAnnotations/456' + # @!attribute [rw] title + # @return [::String] + # Required. Human-readable title for this Reporting Data Annotation. + # @!attribute [rw] description + # @return [::String] + # Optional. Description for this Reporting Data Annotation. + # @!attribute [rw] color + # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation::Color] + # Required. The color used for display of this Reporting Data Annotation. + # @!attribute [r] system_generated + # @return [::Boolean] + # Output only. If true, this annotation was generated by the Google Analytics + # system. System-generated annotations cannot be updated or deleted. + class ReportingDataAnnotation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Represents a Reporting Data Annotation's date range, both start and end + # dates are inclusive. Time zones are based on the parent property. + # @!attribute [rw] start_date + # @return [::Google::Type::Date] + # Required. The start date for this range. Must be a valid date with + # year, month, and day set. The date may be in the past, present, or + # future. + # @!attribute [rw] end_date + # @return [::Google::Type::Date] + # Required. The end date for this range. Must be a valid date with + # year, month, and day set. This date must be greater than or equal to + # the start date. + class DateRange + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Colors that may be used for this Reporting Data Annotation + module Color + # Color unknown or not specified. + COLOR_UNSPECIFIED = 0 + + # Purple color. + PURPLE = 1 + + # Brown color. + BROWN = 2 + + # Blue color. + BLUE = 3 + + # Green color. + GREEN = 4 + + # Red color. + RED = 5 + + # Cyan color. + CYAN = 6 + + # Orange color. (Only used for system-generated annotations) + ORANGE = 7 + end + end + + # Subproperty synchronization configuration controls how ordinary property + # configurations are synchronized to subproperties. This resource is + # provisioned automatically for each subproperty. + # @!attribute [r] name + # @return [::String] + # Output only. Identifier. Format: + # properties/\\{ordinary_property_id}/subpropertySyncConfigs/\\{subproperty_id} + # Example: properties/1234/subpropertySyncConfigs/5678 + # @!attribute [r] apply_to_property + # @return [::String] + # Output only. Immutable. Resource name of the subproperty that these + # settings apply to. + # @!attribute [rw] custom_dimension_and_metric_sync_mode + # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig::SynchronizationMode] + # Required. Specifies the Custom Dimension / Metric synchronization mode for + # the subproperty. + # + # If set to ALL, Custom Dimension / Metric synchronization will be + # immediately enabled. Local configuration of Custom Dimensions / Metrics + # will not be allowed on the subproperty so long as the synchronization mode + # is set to ALL. + # + # If set to NONE, Custom Dimensions / Metric synchronization is disabled. + # Custom Dimensions / Metrics must be configured explicitly on the + # Subproperty. + class SubpropertySyncConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Synchronization modes for a subproperty + module SynchronizationMode + # Synchronization mode unknown or not specified. + SYNCHRONIZATION_MODE_UNSPECIFIED = 0 + + # Entities are not synchronized. + # Local edits are allowed on the subproperty. + NONE = 1 + + # Entities are synchronized from parent property. + # Local mutations are not allowed on the subproperty (Create / Update / + # Delete) + ALL = 2 + end + end + + # A resource containing settings related to reporting identity. + # @!attribute [r] name + # @return [::String] + # Output only. Identifier. Resource name for this reporting identity settings + # singleton resource. Format: + # properties/\\{property_id}/reportingIdentitySettings Example: + # "properties/1234/reportingIdentitySettings" + # @!attribute [rw] reporting_identity + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings::ReportingIdentity] + # The strategy used for identifying user identities in reports. + class ReportingIdentitySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Various strategies for identifying user identities in reports. + module ReportingIdentity + # Unspecified blending strategy. + IDENTITY_BLENDING_STRATEGY_UNSPECIFIED = 0 + + # Blended reporting identity strategy. + BLENDED = 1 + + # Observed reporting identity strategy. + OBSERVED = 2 + + # Device-based reporting identity strategy. + DEVICE_BASED = 3 + end + end + + # Configuration for user-provided data collection. This is a singleton resource + # for a Google Analytics property. + # @!attribute [rw] name + # @return [::String] + # Identifier. Resource name of this setting. + # Format: properties/\\{property}/userProvidedDataSettings + # Example: "properties/1000/userProvidedDataSettings" + # @!attribute [rw] user_provided_data_collection_enabled + # @return [::Boolean] + # Optional. Whether this property accepts user-provided data sent to it. + # @!attribute [rw] automatically_detected_data_collection_enabled + # @return [::Boolean] + # Optional. Whether this property allows a Google Tag to automatically + # collect user-provided data from your website. This setting only takes + # effect if `user_provided_data_collection_enabled` is also true. + class UserProvidedDataSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The category selected for this property, used for industry benchmarking. + module IndustryCategory + # Industry category unspecified + INDUSTRY_CATEGORY_UNSPECIFIED = 0 + + # Automotive + AUTOMOTIVE = 1 + + # Business and industrial markets + BUSINESS_AND_INDUSTRIAL_MARKETS = 2 + + # Finance + FINANCE = 3 + + # Healthcare + HEALTHCARE = 4 + + # Technology + TECHNOLOGY = 5 + + # Travel + TRAVEL = 6 + + # Other + OTHER = 7 + + # Arts and entertainment + ARTS_AND_ENTERTAINMENT = 8 + + # Beauty and fitness + BEAUTY_AND_FITNESS = 9 + + # Books and literature + BOOKS_AND_LITERATURE = 10 + + # Food and drink + FOOD_AND_DRINK = 11 + + # Games + GAMES = 12 + + # Hobbies and leisure + HOBBIES_AND_LEISURE = 13 + + # Home and garden + HOME_AND_GARDEN = 14 + + # Internet and telecom + INTERNET_AND_TELECOM = 15 + + # Law and government + LAW_AND_GOVERNMENT = 16 + + # News + NEWS = 17 + + # Online communities + ONLINE_COMMUNITIES = 18 + + # People and society + PEOPLE_AND_SOCIETY = 19 + + # Pets and animals + PETS_AND_ANIMALS = 20 + + # Real estate + REAL_ESTATE = 21 + + # Reference + REFERENCE = 22 + + # Science + SCIENCE = 23 + + # Sports + SPORTS = 24 + + # Jobs and education + JOBS_AND_EDUCATION = 25 + + # Shopping + SHOPPING = 26 + end + + # Various levels of service for Google Analytics. + module ServiceLevel + # Service level not specified or invalid. + SERVICE_LEVEL_UNSPECIFIED = 0 + + # The standard version of Google Analytics. + GOOGLE_ANALYTICS_STANDARD = 1 + + # The paid, premium version of Google Analytics. + GOOGLE_ANALYTICS_360 = 2 + end + + # Different kinds of actors that can make changes to Google Analytics + # resources. + module ActorType + # Unknown or unspecified actor type. + ACTOR_TYPE_UNSPECIFIED = 0 + + # Changes made by the user specified in actor_email. + USER = 1 + + # Changes made by the Google Analytics system. + SYSTEM = 2 + + # Changes made by Google Analytics support team staff. + SUPPORT = 3 + end + + # Types of actions that may change a resource. + module ActionType + # Action type unknown or not specified. + ACTION_TYPE_UNSPECIFIED = 0 + + # Resource was created in this change. + CREATED = 1 + + # Resource was updated in this change. + UPDATED = 2 + + # Resource was deleted in this change. + DELETED = 3 + end + + # Types of resources whose changes may be returned from change history. + module ChangeHistoryResourceType + # Resource type unknown or not specified. + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0 + + # Account resource + ACCOUNT = 1 + + # Property resource + PROPERTY = 2 + + # FirebaseLink resource + FIREBASE_LINK = 6 + + # GoogleAdsLink resource + GOOGLE_ADS_LINK = 7 + + # GoogleSignalsSettings resource + GOOGLE_SIGNALS_SETTINGS = 8 + + # ConversionEvent resource + CONVERSION_EVENT = 9 + + # MeasurementProtocolSecret resource + MEASUREMENT_PROTOCOL_SECRET = 10 + + # CustomDimension resource + CUSTOM_DIMENSION = 11 + + # CustomMetric resource + CUSTOM_METRIC = 12 + + # DataRetentionSettings resource + DATA_RETENTION_SETTINGS = 13 + + # DisplayVideo360AdvertiserLink resource + DISPLAY_VIDEO_360_ADVERTISER_LINK = 14 + + # DisplayVideo360AdvertiserLinkProposal resource + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15 + + # SearchAds360Link resource + SEARCH_ADS_360_LINK = 16 + + # DataStream resource + DATA_STREAM = 18 + + # AttributionSettings resource + ATTRIBUTION_SETTINGS = 20 + + # ExpandedDataSet resource + EXPANDED_DATA_SET = 21 + + # ChannelGroup resource + CHANNEL_GROUP = 22 + + # BigQuery link resource + BIGQUERY_LINK = 23 + + # EnhancedMeasurementSettings resource + ENHANCED_MEASUREMENT_SETTINGS = 24 + + # DataRedactionSettings resource + DATA_REDACTION_SETTINGS = 25 + + # SKAdNetworkConversionValueSchema resource + SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26 + + # AdSenseLink resource + ADSENSE_LINK = 27 + + # Audience resource + AUDIENCE = 28 + + # EventCreateRule resource + EVENT_CREATE_RULE = 29 + + # KeyEvent resource + KEY_EVENT = 30 + + # CalculatedMetric resource + CALCULATED_METRIC = 31 + + # ReportingDataAnnotation resource + REPORTING_DATA_ANNOTATION = 32 + + # SubpropertySyncConfig resource + SUBPROPERTY_SYNC_CONFIG = 33 + + # ReportingIdentitySettings resource + REPORTING_IDENTITY_SETTINGS = 34 + + # UserProvidedDataSettings resource + USER_PROVIDED_DATA_SETTINGS = 35 + end + + # Status of the Google Signals settings. + module GoogleSignalsState + # Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to + # represent that the user has not made an explicit choice. + GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0 + + # Google Signals is enabled. + GOOGLE_SIGNALS_ENABLED = 1 + + # Google Signals is disabled. + GOOGLE_SIGNALS_DISABLED = 2 + end + + # Consent field of the Google Signals settings. + module GoogleSignalsConsent + # Google Signals consent value defaults to + # GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as + # GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED. + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0 + + # Terms of service have been accepted + GOOGLE_SIGNALS_CONSENT_CONSENTED = 2 + + # Terms of service have not been accepted + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1 + end + + # An indication of which product the user initiated a link proposal from. + module LinkProposalInitiatingProduct + # Unspecified product. + LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0 + + # This proposal was created by a user from Google Analytics. + GOOGLE_ANALYTICS = 1 + + # This proposal was created by a user from a linked product (not Google + # Analytics). + LINKED_PRODUCT = 2 + end + + # The state of a link proposal resource. + module LinkProposalState + # Unspecified state + LINK_PROPOSAL_STATE_UNSPECIFIED = 0 + + # This proposal is awaiting review from a Google Analytics user. This + # proposal will automatically expire after some time. + AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1 + + # This proposal is awaiting review from a user of a linked product. This + # proposal will automatically expire after some time. + AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2 + + # This proposal has been withdrawn by an admin on the initiating product. + # This proposal will be automatically deleted after some time. + WITHDRAWN = 3 + + # This proposal has been declined by an admin on the receiving product. This + # proposal will be automatically deleted after some time. + DECLINED = 4 + + # This proposal expired due to lack of response from an admin on the + # receiving product. This proposal will be automatically deleted after some + # time. + EXPIRED = 5 + + # This proposal has become obsolete because a link was directly created to + # the same external product resource that this proposal specifies. This + # proposal will be automatically deleted after some time. + OBSOLETE = 6 + end + + # Types of `Property` resources. + module PropertyType + # Unknown or unspecified property type + PROPERTY_TYPE_UNSPECIFIED = 0 + + # Ordinary Google Analytics property + PROPERTY_TYPE_ORDINARY = 1 + + # Google Analytics subproperty + PROPERTY_TYPE_SUBPROPERTY = 2 + + # Google Analytics rollup property + PROPERTY_TYPE_ROLLUP = 3 + end + + # The coarse conversion value set on the updatePostbackConversionValue SDK call + # when a ConversionValues.event_mappings conditions are satisfied. For + # more information, see + # [SKAdNetwork.CoarseConversionValue](https://developer.apple.com/documentation/storekit/skadnetwork/coarseconversionvalue). + module CoarseValue + # Coarse value not specified. + COARSE_VALUE_UNSPECIFIED = 0 + + # Coarse value of low. + COARSE_VALUE_LOW = 1 + + # Coarse value of medium. + COARSE_VALUE_MEDIUM = 2 + + # Coarse value of high. + COARSE_VALUE_HIGH = 3 + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/subproperty_event_filter.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/subproperty_event_filter.rb new file mode 100644 index 000000000000..f0af8ec11750 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/subproperty_event_filter.rb @@ -0,0 +1,167 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Analytics + module Admin + module V1alpha + # A specific filter expression + # @!attribute [rw] null_filter + # @return [::Boolean] + # A filter for null values. + # + # Note: The following fields are mutually exclusive: `null_filter`, `string_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] string_filter + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterCondition::StringFilter] + # A filter for a string-type dimension that matches a particular pattern. + # + # Note: The following fields are mutually exclusive: `string_filter`, `null_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] field_name + # @return [::String] + # Required. The field that is being filtered. + class SubpropertyEventFilterCondition + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A filter for a string-type dimension that matches a particular pattern. + # @!attribute [rw] match_type + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterCondition::StringFilter::MatchType] + # Required. The match type for the string filter. + # @!attribute [rw] value + # @return [::String] + # Required. The string value used for the matching. + # @!attribute [rw] case_sensitive + # @return [::Boolean] + # Optional. If true, the string value is case sensitive. If false, the + # match is case-insensitive. + class StringFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # How the filter will be used to determine a match. + module MatchType + # Match type unknown or not specified. + MATCH_TYPE_UNSPECIFIED = 0 + + # Exact match of the string value. + EXACT = 1 + + # Begins with the string value. + BEGINS_WITH = 2 + + # Ends with the string value. + ENDS_WITH = 3 + + # Contains the string value. + CONTAINS = 4 + + # Full regular expression matches with the string value. + FULL_REGEXP = 5 + + # Partial regular expression matches with the string value. + PARTIAL_REGEXP = 6 + end + end + end + + # A logical expression of Subproperty event filters. + # @!attribute [rw] or_group + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterExpressionList] + # A list of expressions to OR’ed together. Must only contain + # not_expression or filter_condition expressions. + # + # Note: The following fields are mutually exclusive: `or_group`, `not_expression`, `filter_condition`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] not_expression + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterExpression] + # A filter expression to be NOT'ed (inverted, complemented). It can only + # include a filter. This cannot be set on the top level + # SubpropertyEventFilterExpression. + # + # Note: The following fields are mutually exclusive: `not_expression`, `or_group`, `filter_condition`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] filter_condition + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterCondition] + # Creates a filter that matches a specific event. This cannot be set on the + # top level SubpropertyEventFilterExpression. + # + # Note: The following fields are mutually exclusive: `filter_condition`, `or_group`, `not_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class SubpropertyEventFilterExpression + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A list of Subproperty event filter expressions. + # @!attribute [rw] filter_expressions + # @return [::Array<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterExpression>] + # Required. Unordered list. A list of Subproperty event filter expressions + class SubpropertyEventFilterExpressionList + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A clause for defining a filter. A filter may be inclusive (events satisfying + # the filter clause are included in the subproperty's data) or exclusive + # (events satisfying the filter clause are excluded from the subproperty's + # data). + # @!attribute [rw] filter_clause_type + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterClause::FilterClauseType] + # Required. The type for the filter clause. + # @!attribute [rw] filter_expression + # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterExpression] + # Required. The logical expression for what events are sent to the + # subproperty. + class SubpropertyEventFilterClause + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Specifies whether this is an include or exclude filter clause. + module FilterClauseType + # Filter clause type unknown or not specified. + FILTER_CLAUSE_TYPE_UNSPECIFIED = 0 + + # Events will be included in the Sub property if the filter clause is met. + INCLUDE = 1 + + # Events will be excluded from the Sub property if the filter clause is + # met. + EXCLUDE = 2 + end + end + + # A resource message representing a Google Analytics subproperty event filter. + # @!attribute [r] name + # @return [::String] + # Output only. Format: + # properties/\\{ordinary_property_id}/subpropertyEventFilters/\\{sub_property_event_filter} + # Example: properties/1234/subpropertyEventFilters/5678 + # @!attribute [rw] apply_to_property + # @return [::String] + # Immutable. Resource name of the Subproperty that uses this filter. + # @!attribute [rw] filter_clauses + # @return [::Array<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterClause>] + # Required. Unordered list. Filter clauses that define the + # SubpropertyEventFilter. All clauses are AND'ed together to determine what + # data is sent to the subproperty. + class SubpropertyEventFilter + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/client.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..3ab0b096d445 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/client.rb @@ -0,0 +1,593 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # + # Note: This feature should not be used in most cases. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/resource.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/empty.rb new file mode 100644 index 000000000000..83e4481834a6 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/empty.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A generic empty message that you can re-use to avoid defining duplicated + # empty messages in your APIs. A typical example is to use it as the request + # or the response type of an API method. For instance: + # + # service Foo { + # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + # } + class Empty + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/wrappers.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/wrappers.rb new file mode 100644 index 000000000000..9a7c0269fa42 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/wrappers.rb @@ -0,0 +1,148 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # Wrapper message for `double`. + # + # The JSON representation for `DoubleValue` is JSON number. + # + # Not recommended for use in new APIs, but still useful for legacy APIs and + # has no plan to be removed. + # @!attribute [rw] value + # @return [::Float] + # The double value. + class DoubleValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `float`. + # + # The JSON representation for `FloatValue` is JSON number. + # + # Not recommended for use in new APIs, but still useful for legacy APIs and + # has no plan to be removed. + # @!attribute [rw] value + # @return [::Float] + # The float value. + class FloatValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `int64`. + # + # The JSON representation for `Int64Value` is JSON string. + # + # Not recommended for use in new APIs, but still useful for legacy APIs and + # has no plan to be removed. + # @!attribute [rw] value + # @return [::Integer] + # The int64 value. + class Int64Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `uint64`. + # + # The JSON representation for `UInt64Value` is JSON string. + # + # Not recommended for use in new APIs, but still useful for legacy APIs and + # has no plan to be removed. + # @!attribute [rw] value + # @return [::Integer] + # The uint64 value. + class UInt64Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `int32`. + # + # The JSON representation for `Int32Value` is JSON number. + # + # Not recommended for use in new APIs, but still useful for legacy APIs and + # has no plan to be removed. + # @!attribute [rw] value + # @return [::Integer] + # The int32 value. + class Int32Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `uint32`. + # + # The JSON representation for `UInt32Value` is JSON number. + # + # Not recommended for use in new APIs, but still useful for legacy APIs and + # has no plan to be removed. + # @!attribute [rw] value + # @return [::Integer] + # The uint32 value. + class UInt32Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `bool`. + # + # The JSON representation for `BoolValue` is JSON `true` and `false`. + # + # Not recommended for use in new APIs, but still useful for legacy APIs and + # has no plan to be removed. + # @!attribute [rw] value + # @return [::Boolean] + # The bool value. + class BoolValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `string`. + # + # The JSON representation for `StringValue` is JSON string. + # + # Not recommended for use in new APIs, but still useful for legacy APIs and + # has no plan to be removed. + # @!attribute [rw] value + # @return [::String] + # The string value. + class StringValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Wrapper message for `bytes`. + # + # The JSON representation for `BytesValue` is JSON string. + # + # Not recommended for use in new APIs, but still useful for legacy APIs and + # has no plan to be removed. + # @!attribute [rw] value + # @return [::String] + # The bytes value. + class BytesValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/type/date.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/type/date.rb new file mode 100644 index 000000000000..a52275cebf89 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/type/date.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: + # + # * A full date, with non-zero year, month, and day values. + # * A month and day, with a zero year (for example, an anniversary). + # * A year on its own, with a zero month and a zero day. + # * A year and month, with a zero day (for example, a credit card expiration + # date). + # + # Related types: + # + # * [google.type.TimeOfDay][google.type.TimeOfDay] + # * [google.type.DateTime][google.type.DateTime] + # * {::Google::Protobuf::Timestamp google.protobuf.Timestamp} + # @!attribute [rw] year + # @return [::Integer] + # Year of the date. Must be from 1 to 9999, or 0 to specify a date without + # a year. + # @!attribute [rw] month + # @return [::Integer] + # Month of a year. Must be from 1 to 12, or 0 to specify a year without a + # month and day. + # @!attribute [rw] day + # @return [::Integer] + # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 + # to specify a year by itself or a year and month where the day isn't + # significant. + class Date + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/Gemfile b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/Gemfile new file mode 100644 index 000000000000..4a679dff2d5b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-analytics-admin-v1alpha", path: "../" +else + gem "google-analytics-admin-v1alpha" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/acknowledge_user_data_collection.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/acknowledge_user_data_collection.rb new file mode 100644 index 000000000000..1cace4b29fea --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/acknowledge_user_data_collection.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the acknowledge_user_data_collection call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#acknowledge_user_data_collection. +# +def acknowledge_user_data_collection + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new + + # Call the acknowledge_user_data_collection method. + result = client.acknowledge_user_data_collection request + + # The returned object is of type Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/approve_display_video360_advertiser_link_proposal.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/approve_display_video360_advertiser_link_proposal.rb new file mode 100644 index 000000000000..8bc2abf2448c --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/approve_display_video360_advertiser_link_proposal.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the approve_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#approve_display_video360_advertiser_link_proposal. +# +def approve_display_video360_advertiser_link_proposal + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new + + # Call the approve_display_video360_advertiser_link_proposal method. + result = client.approve_display_video360_advertiser_link_proposal request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_audience.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_audience.rb new file mode 100644 index 000000000000..ef426db4b474 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_audience.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the archive_audience call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_audience. +# +def archive_audience + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new + + # Call the archive_audience method. + result = client.archive_audience request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_dimension.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_dimension.rb new file mode 100644 index 000000000000..04b27e174cf3 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_dimension.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the archive_custom_dimension call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_dimension. +# +def archive_custom_dimension + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new + + # Call the archive_custom_dimension method. + result = client.archive_custom_dimension request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_metric.rb new file mode 100644 index 000000000000..32a3d977fc02 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_metric.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the archive_custom_metric call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_metric. +# +def archive_custom_metric + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new + + # Call the archive_custom_metric method. + result = client.archive_custom_metric request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_create_access_bindings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_create_access_bindings.rb new file mode 100644 index 000000000000..9bb1f9d05a2b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_create_access_bindings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the batch_create_access_bindings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_create_access_bindings. +# +def batch_create_access_bindings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new + + # Call the batch_create_access_bindings method. + result = client.batch_create_access_bindings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_delete_access_bindings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_delete_access_bindings.rb new file mode 100644 index 000000000000..6ae804d5056e --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_delete_access_bindings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the batch_delete_access_bindings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_delete_access_bindings. +# +def batch_delete_access_bindings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new + + # Call the batch_delete_access_bindings method. + result = client.batch_delete_access_bindings request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_get_access_bindings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_get_access_bindings.rb new file mode 100644 index 000000000000..073a9549ebd7 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_get_access_bindings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the batch_get_access_bindings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_get_access_bindings. +# +def batch_get_access_bindings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new + + # Call the batch_get_access_bindings method. + result = client.batch_get_access_bindings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_update_access_bindings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_update_access_bindings.rb new file mode 100644 index 000000000000..ea5d5f182d60 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_update_access_bindings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the batch_update_access_bindings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_update_access_bindings. +# +def batch_update_access_bindings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new + + # Call the batch_update_access_bindings method. + result = client.batch_update_access_bindings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/cancel_display_video360_advertiser_link_proposal.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/cancel_display_video360_advertiser_link_proposal.rb new file mode 100644 index 000000000000..4eec0792c913 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/cancel_display_video360_advertiser_link_proposal.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the cancel_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#cancel_display_video360_advertiser_link_proposal. +# +def cancel_display_video360_advertiser_link_proposal + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new + + # Call the cancel_display_video360_advertiser_link_proposal method. + result = client.cancel_display_video360_advertiser_link_proposal request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_access_binding.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_access_binding.rb new file mode 100644 index 000000000000..6d93106c1a53 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_access_binding.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_access_binding call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_access_binding. +# +def create_access_binding + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new + + # Call the create_access_binding method. + result = client.create_access_binding request + + # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_ad_sense_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_ad_sense_link.rb new file mode 100644 index 000000000000..a765725a9ffd --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_ad_sense_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_ad_sense_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_ad_sense_link. +# +def create_ad_sense_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new + + # Call the create_ad_sense_link method. + result = client.create_ad_sense_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_audience.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_audience.rb new file mode 100644 index 000000000000..0831a9090929 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_audience.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_audience call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_audience. +# +def create_audience + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new + + # Call the create_audience method. + result = client.create_audience request + + # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb new file mode 100644 index 000000000000..f0f7fa58a8f5 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateBigQueryLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_big_query_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_big_query_link. +# +def create_big_query_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new + + # Call the create_big_query_link method. + result = client.create_big_query_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateBigQueryLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_calculated_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_calculated_metric.rb new file mode 100644 index 000000000000..4adb224dcdee --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_calculated_metric.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCalculatedMetric_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_calculated_metric call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_calculated_metric. +# +def create_calculated_metric + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new + + # Call the create_calculated_metric method. + result = client.create_calculated_metric request + + # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCalculatedMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_channel_group.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_channel_group.rb new file mode 100644 index 000000000000..c6c9de9dca4b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_channel_group.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateChannelGroup_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_channel_group call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_channel_group. +# +def create_channel_group + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new + + # Call the create_channel_group method. + result = client.create_channel_group request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateChannelGroup_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_conversion_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_conversion_event.rb new file mode 100644 index 000000000000..6ac06ca6ef64 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_conversion_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_conversion_event call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_conversion_event. +# +def create_conversion_event + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new + + # Call the create_conversion_event method. + result = client.create_conversion_event request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_dimension.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_dimension.rb new file mode 100644 index 000000000000..716b532ea1c5 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_dimension.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_custom_dimension call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_dimension. +# +def create_custom_dimension + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new + + # Call the create_custom_dimension method. + result = client.create_custom_dimension request + + # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_metric.rb new file mode 100644 index 000000000000..f8ff0b0bbb2f --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_metric.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_custom_metric call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_metric. +# +def create_custom_metric + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new + + # Call the create_custom_metric method. + result = client.create_custom_metric request + + # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_data_stream.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_data_stream.rb new file mode 100644 index 000000000000..d4b81a5d635f --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_data_stream.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_data_stream call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_data_stream. +# +def create_data_stream + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new + + # Call the create_data_stream method. + result = client.create_data_stream request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link.rb new file mode 100644 index 000000000000..0f0c164f778f --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_display_video360_advertiser_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link. +# +def create_display_video360_advertiser_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new + + # Call the create_display_video360_advertiser_link method. + result = client.create_display_video360_advertiser_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link_proposal.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link_proposal.rb new file mode 100644 index 000000000000..1deca67fa136 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link_proposal.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link_proposal. +# +def create_display_video360_advertiser_link_proposal + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new + + # Call the create_display_video360_advertiser_link_proposal method. + result = client.create_display_video360_advertiser_link_proposal request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_create_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_create_rule.rb new file mode 100644 index 000000000000..91da2659bc99 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_create_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_event_create_rule call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_create_rule. +# +def create_event_create_rule + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new + + # Call the create_event_create_rule method. + result = client.create_event_create_rule request + + # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb new file mode 100644 index 000000000000..4aa5c25103a6 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventEditRule_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_event_edit_rule call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_edit_rule. +# +def create_event_edit_rule + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new + + # Call the create_event_edit_rule method. + result = client.create_event_edit_rule request + + # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventEditRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_expanded_data_set.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_expanded_data_set.rb new file mode 100644 index 000000000000..0960e77017e3 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_expanded_data_set.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_expanded_data_set call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_expanded_data_set. +# +def create_expanded_data_set + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new + + # Call the create_expanded_data_set method. + result = client.create_expanded_data_set request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_firebase_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_firebase_link.rb new file mode 100644 index 000000000000..5ad3217081f5 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_firebase_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_firebase_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_firebase_link. +# +def create_firebase_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new + + # Call the create_firebase_link method. + result = client.create_firebase_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::FirebaseLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_google_ads_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_google_ads_link.rb new file mode 100644 index 000000000000..21e392635228 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_google_ads_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_google_ads_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_google_ads_link. +# +def create_google_ads_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new + + # Call the create_google_ads_link method. + result = client.create_google_ads_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb new file mode 100644 index 000000000000..b1aabc54e3ec --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_key_event call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_key_event. +# +def create_key_event + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new + + # Call the create_key_event method. + result = client.create_key_event request + + # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_measurement_protocol_secret.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_measurement_protocol_secret.rb new file mode 100644 index 000000000000..cd9380db92a9 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_measurement_protocol_secret.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_measurement_protocol_secret call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_measurement_protocol_secret. +# +def create_measurement_protocol_secret + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new + + # Call the create_measurement_protocol_secret method. + result = client.create_measurement_protocol_secret request + + # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_property.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_property.rb new file mode 100644 index 000000000000..690579b5d190 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_property.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_property call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_property. +# +def create_property + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new + + # Call the create_property method. + result = client.create_property request + + # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_reporting_data_annotation.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_reporting_data_annotation.rb new file mode 100644 index 000000000000..3c6cb8d2b1d1 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_reporting_data_annotation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateReportingDataAnnotation_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_reporting_data_annotation call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_reporting_data_annotation. +# +def create_reporting_data_annotation + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new + + # Call the create_reporting_data_annotation method. + result = client.create_reporting_data_annotation request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateReportingDataAnnotation_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property.rb new file mode 100644 index 000000000000..95335db94b2b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_rollup_property call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property. +# +def create_rollup_property + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new + + # Call the create_rollup_property method. + result = client.create_rollup_property request + + # The returned object is of type Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property_source_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property_source_link.rb new file mode 100644 index 000000000000..120d11a5fe39 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property_source_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_rollup_property_source_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property_source_link. +# +def create_rollup_property_source_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new + + # Call the create_rollup_property_source_link method. + result = client.create_rollup_property_source_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_search_ads360_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_search_ads360_link.rb new file mode 100644 index 000000000000..d0fd4d3337a6 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_search_ads360_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_search_ads360_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_search_ads360_link. +# +def create_search_ads360_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new + + # Call the create_search_ads360_link method. + result = client.create_search_ads360_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb new file mode 100644 index 000000000000..e43364c088a4 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSKAdNetworkConversionValueSchema_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_sk_ad_network_conversion_value_schema. +# +def create_sk_ad_network_conversion_value_schema + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new + + # Call the create_sk_ad_network_conversion_value_schema method. + result = client.create_sk_ad_network_conversion_value_schema request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty_event_filter.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty_event_filter.rb new file mode 100644 index 000000000000..b49bda256192 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty_event_filter.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the create_subproperty_event_filter call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_subproperty_event_filter. +# +def create_subproperty_event_filter + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new + + # Call the create_subproperty_event_filter method. + result = client.create_subproperty_event_filter request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_access_binding.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_access_binding.rb new file mode 100644 index 000000000000..4e5d79f9cc5b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_access_binding.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_access_binding call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_access_binding. +# +def delete_access_binding + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new + + # Call the delete_access_binding method. + result = client.delete_access_binding request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_account.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_account.rb new file mode 100644 index 000000000000..a7a9b31f46a4 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_account.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_account call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_account. +# +def delete_account + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new + + # Call the delete_account method. + result = client.delete_account request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_ad_sense_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_ad_sense_link.rb new file mode 100644 index 000000000000..f856159f4254 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_ad_sense_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_ad_sense_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_ad_sense_link. +# +def delete_ad_sense_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new + + # Call the delete_ad_sense_link method. + result = client.delete_ad_sense_link request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb new file mode 100644 index 000000000000..c77534c28b36 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteBigQueryLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_big_query_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_big_query_link. +# +def delete_big_query_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new + + # Call the delete_big_query_link method. + result = client.delete_big_query_link request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteBigQueryLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_calculated_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_calculated_metric.rb new file mode 100644 index 000000000000..2ddc15c80c2a --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_calculated_metric.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteCalculatedMetric_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_calculated_metric call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_calculated_metric. +# +def delete_calculated_metric + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new + + # Call the delete_calculated_metric method. + result = client.delete_calculated_metric request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteCalculatedMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_channel_group.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_channel_group.rb new file mode 100644 index 000000000000..b8ec703e7af5 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_channel_group.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteChannelGroup_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_channel_group call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_channel_group. +# +def delete_channel_group + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new + + # Call the delete_channel_group method. + result = client.delete_channel_group request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteChannelGroup_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_conversion_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_conversion_event.rb new file mode 100644 index 000000000000..cc4578e3d724 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_conversion_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_conversion_event call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_conversion_event. +# +def delete_conversion_event + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new + + # Call the delete_conversion_event method. + result = client.delete_conversion_event request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_data_stream.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_data_stream.rb new file mode 100644 index 000000000000..a3199ec51340 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_data_stream.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_data_stream call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_data_stream. +# +def delete_data_stream + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new + + # Call the delete_data_stream method. + result = client.delete_data_stream request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link.rb new file mode 100644 index 000000000000..9bb594f394a6 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_display_video360_advertiser_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link. +# +def delete_display_video360_advertiser_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new + + # Call the delete_display_video360_advertiser_link method. + result = client.delete_display_video360_advertiser_link request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb new file mode 100644 index 000000000000..95556e53db71 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link_proposal. +# +def delete_display_video360_advertiser_link_proposal + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new + + # Call the delete_display_video360_advertiser_link_proposal method. + result = client.delete_display_video360_advertiser_link_proposal request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_create_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_create_rule.rb new file mode 100644 index 000000000000..06fdb8ad97a0 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_create_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_event_create_rule call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_create_rule. +# +def delete_event_create_rule + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new + + # Call the delete_event_create_rule method. + result = client.delete_event_create_rule request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb new file mode 100644 index 000000000000..3d909ca75deb --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventEditRule_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_event_edit_rule call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_edit_rule. +# +def delete_event_edit_rule + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new + + # Call the delete_event_edit_rule method. + result = client.delete_event_edit_rule request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventEditRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_expanded_data_set.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_expanded_data_set.rb new file mode 100644 index 000000000000..b4281d4e9243 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_expanded_data_set.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_expanded_data_set call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_expanded_data_set. +# +def delete_expanded_data_set + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new + + # Call the delete_expanded_data_set method. + result = client.delete_expanded_data_set request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_firebase_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_firebase_link.rb new file mode 100644 index 000000000000..fddbd58695f0 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_firebase_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_firebase_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_firebase_link. +# +def delete_firebase_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new + + # Call the delete_firebase_link method. + result = client.delete_firebase_link request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_google_ads_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_google_ads_link.rb new file mode 100644 index 000000000000..85a6fde08425 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_google_ads_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_google_ads_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_google_ads_link. +# +def delete_google_ads_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new + + # Call the delete_google_ads_link method. + result = client.delete_google_ads_link request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb new file mode 100644 index 000000000000..c29d8a677777 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteKeyEvent_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_key_event call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_key_event. +# +def delete_key_event + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new + + # Call the delete_key_event method. + result = client.delete_key_event request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteKeyEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_measurement_protocol_secret.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_measurement_protocol_secret.rb new file mode 100644 index 000000000000..d0f3d9a85658 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_measurement_protocol_secret.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_measurement_protocol_secret call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_measurement_protocol_secret. +# +def delete_measurement_protocol_secret + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new + + # Call the delete_measurement_protocol_secret method. + result = client.delete_measurement_protocol_secret request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_property.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_property.rb new file mode 100644 index 000000000000..4d88afe10f97 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_property.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_property call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_property. +# +def delete_property + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new + + # Call the delete_property method. + result = client.delete_property request + + # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_reporting_data_annotation.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_reporting_data_annotation.rb new file mode 100644 index 000000000000..861c6e1923b4 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_reporting_data_annotation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteReportingDataAnnotation_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_reporting_data_annotation call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_reporting_data_annotation. +# +def delete_reporting_data_annotation + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new + + # Call the delete_reporting_data_annotation method. + result = client.delete_reporting_data_annotation request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteReportingDataAnnotation_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_rollup_property_source_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_rollup_property_source_link.rb new file mode 100644 index 000000000000..f8fd171a0fde --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_rollup_property_source_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_rollup_property_source_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_rollup_property_source_link. +# +def delete_rollup_property_source_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new + + # Call the delete_rollup_property_source_link method. + result = client.delete_rollup_property_source_link request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_search_ads360_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_search_ads360_link.rb new file mode 100644 index 000000000000..b95e9d8d2382 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_search_ads360_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_search_ads360_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_search_ads360_link. +# +def delete_search_ads360_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new + + # Call the delete_search_ads360_link method. + result = client.delete_search_ads360_link request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_sk_ad_network_conversion_value_schema.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_sk_ad_network_conversion_value_schema.rb new file mode 100644 index 000000000000..1cf3997e0115 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_sk_ad_network_conversion_value_schema.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSKAdNetworkConversionValueSchema_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_sk_ad_network_conversion_value_schema. +# +def delete_sk_ad_network_conversion_value_schema + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new + + # Call the delete_sk_ad_network_conversion_value_schema method. + result = client.delete_sk_ad_network_conversion_value_schema request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_subproperty_event_filter.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_subproperty_event_filter.rb new file mode 100644 index 000000000000..c926990089c5 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_subproperty_event_filter.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the delete_subproperty_event_filter call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_subproperty_event_filter. +# +def delete_subproperty_event_filter + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new + + # Call the delete_subproperty_event_filter method. + result = client.delete_subproperty_event_filter request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_access_binding.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_access_binding.rb new file mode 100644 index 000000000000..7486e550fef5 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_access_binding.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_access_binding call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_access_binding. +# +def get_access_binding + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new + + # Call the get_access_binding method. + result = client.get_access_binding request + + # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_account.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_account.rb new file mode 100644 index 000000000000..258f7eee23b7 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_account.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_account call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_account. +# +def get_account + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetAccountRequest.new + + # Call the get_account method. + result = client.get_account request + + # The returned object is of type Google::Analytics::Admin::V1alpha::Account. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_ad_sense_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_ad_sense_link.rb new file mode 100644 index 000000000000..c607f4e89e4e --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_ad_sense_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_ad_sense_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_ad_sense_link. +# +def get_ad_sense_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new + + # Call the get_ad_sense_link method. + result = client.get_ad_sense_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_attribution_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_attribution_settings.rb new file mode 100644 index 000000000000..dab2f3e261ee --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_attribution_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_attribution_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_attribution_settings. +# +def get_attribution_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new + + # Call the get_attribution_settings method. + result = client.get_attribution_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_audience.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_audience.rb new file mode 100644 index 000000000000..30f2675b63c0 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_audience.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_audience call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_audience. +# +def get_audience + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetAudienceRequest.new + + # Call the get_audience method. + result = client.get_audience request + + # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_big_query_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_big_query_link.rb new file mode 100644 index 000000000000..4d2343485da1 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_big_query_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_big_query_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_big_query_link. +# +def get_big_query_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new + + # Call the get_big_query_link method. + result = client.get_big_query_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_calculated_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_calculated_metric.rb new file mode 100644 index 000000000000..2630aad693e6 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_calculated_metric.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCalculatedMetric_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_calculated_metric call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_calculated_metric. +# +def get_calculated_metric + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new + + # Call the get_calculated_metric method. + result = client.get_calculated_metric request + + # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCalculatedMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_channel_group.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_channel_group.rb new file mode 100644 index 000000000000..8a6a15fad8f1 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_channel_group.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetChannelGroup_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_channel_group call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_channel_group. +# +def get_channel_group + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new + + # Call the get_channel_group method. + result = client.get_channel_group request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetChannelGroup_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_conversion_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_conversion_event.rb new file mode 100644 index 000000000000..87cc0e8e4c2b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_conversion_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_conversion_event call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_conversion_event. +# +def get_conversion_event + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new + + # Call the get_conversion_event method. + result = client.get_conversion_event request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_dimension.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_dimension.rb new file mode 100644 index 000000000000..661c601e47ac --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_dimension.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_custom_dimension call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_dimension. +# +def get_custom_dimension + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new + + # Call the get_custom_dimension method. + result = client.get_custom_dimension request + + # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_metric.rb new file mode 100644 index 000000000000..acdc35f0a613 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_metric.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_custom_metric call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_metric. +# +def get_custom_metric + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new + + # Call the get_custom_metric method. + result = client.get_custom_metric request + + # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_redaction_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_redaction_settings.rb new file mode 100644 index 000000000000..90784d322ed5 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_redaction_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_data_redaction_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_redaction_settings. +# +def get_data_redaction_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new + + # Call the get_data_redaction_settings method. + result = client.get_data_redaction_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_retention_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_retention_settings.rb new file mode 100644 index 000000000000..924097c39f8c --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_retention_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_data_retention_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_retention_settings. +# +def get_data_retention_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new + + # Call the get_data_retention_settings method. + result = client.get_data_retention_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_sharing_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_sharing_settings.rb new file mode 100644 index 000000000000..031c5d7144d1 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_sharing_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_data_sharing_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_sharing_settings. +# +def get_data_sharing_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new + + # Call the get_data_sharing_settings method. + result = client.get_data_sharing_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DataSharingSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_stream.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_stream.rb new file mode 100644 index 000000000000..2bcbb3152533 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_stream.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_data_stream call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_stream. +# +def get_data_stream + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new + + # Call the get_data_stream method. + result = client.get_data_stream request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link.rb new file mode 100644 index 000000000000..29fd01c2c774 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_display_video360_advertiser_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link. +# +def get_display_video360_advertiser_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new + + # Call the get_display_video360_advertiser_link method. + result = client.get_display_video360_advertiser_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link_proposal.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link_proposal.rb new file mode 100644 index 000000000000..b3eeb334c328 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link_proposal.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link_proposal. +# +def get_display_video360_advertiser_link_proposal + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new + + # Call the get_display_video360_advertiser_link_proposal method. + result = client.get_display_video360_advertiser_link_proposal request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_enhanced_measurement_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_enhanced_measurement_settings.rb new file mode 100644 index 000000000000..3663ae9e7300 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_enhanced_measurement_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_enhanced_measurement_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_enhanced_measurement_settings. +# +def get_enhanced_measurement_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new + + # Call the get_enhanced_measurement_settings method. + result = client.get_enhanced_measurement_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_create_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_create_rule.rb new file mode 100644 index 000000000000..95cd99d6ff95 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_create_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_event_create_rule call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_create_rule. +# +def get_event_create_rule + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new + + # Call the get_event_create_rule method. + result = client.get_event_create_rule request + + # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb new file mode 100644 index 000000000000..5d7acb27371b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventEditRule_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_event_edit_rule call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_edit_rule. +# +def get_event_edit_rule + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new + + # Call the get_event_edit_rule method. + result = client.get_event_edit_rule request + + # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventEditRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_expanded_data_set.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_expanded_data_set.rb new file mode 100644 index 000000000000..9aa415ff8af7 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_expanded_data_set.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_expanded_data_set call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_expanded_data_set. +# +def get_expanded_data_set + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new + + # Call the get_expanded_data_set method. + result = client.get_expanded_data_set request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_global_site_tag.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_global_site_tag.rb new file mode 100644 index 000000000000..21f37430cf34 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_global_site_tag.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_global_site_tag call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_global_site_tag. +# +def get_global_site_tag + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new + + # Call the get_global_site_tag method. + result = client.get_global_site_tag request + + # The returned object is of type Google::Analytics::Admin::V1alpha::GlobalSiteTag. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_google_signals_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_google_signals_settings.rb new file mode 100644 index 000000000000..61cb640f6651 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_google_signals_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_google_signals_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_google_signals_settings. +# +def get_google_signals_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new + + # Call the get_google_signals_settings method. + result = client.get_google_signals_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb new file mode 100644 index 000000000000..2da18239b6b0 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetKeyEvent_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_key_event call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_key_event. +# +def get_key_event + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new + + # Call the get_key_event method. + result = client.get_key_event request + + # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetKeyEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_measurement_protocol_secret.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_measurement_protocol_secret.rb new file mode 100644 index 000000000000..9149ffe694a9 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_measurement_protocol_secret.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_measurement_protocol_secret call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_measurement_protocol_secret. +# +def get_measurement_protocol_secret + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new + + # Call the get_measurement_protocol_secret method. + result = client.get_measurement_protocol_secret request + + # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_property.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_property.rb new file mode 100644 index 000000000000..ceef8bfc6c45 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_property.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_property call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_property. +# +def get_property + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetPropertyRequest.new + + # Call the get_property method. + result = client.get_property request + + # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_data_annotation.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_data_annotation.rb new file mode 100644 index 000000000000..f3aa0d2f2d0c --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_data_annotation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingDataAnnotation_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_reporting_data_annotation call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_data_annotation. +# +def get_reporting_data_annotation + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new + + # Call the get_reporting_data_annotation method. + result = client.get_reporting_data_annotation request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingDataAnnotation_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_identity_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_identity_settings.rb new file mode 100644 index 000000000000..db686c584aea --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_identity_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingIdentitySettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_reporting_identity_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_identity_settings. +# +def get_reporting_identity_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new + + # Call the get_reporting_identity_settings method. + result = client.get_reporting_identity_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingIdentitySettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_rollup_property_source_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_rollup_property_source_link.rb new file mode 100644 index 000000000000..c3bbfbbe1b2e --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_rollup_property_source_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_rollup_property_source_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_rollup_property_source_link. +# +def get_rollup_property_source_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new + + # Call the get_rollup_property_source_link method. + result = client.get_rollup_property_source_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_search_ads360_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_search_ads360_link.rb new file mode 100644 index 000000000000..e26c6c6da26e --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_search_ads360_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_search_ads360_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_search_ads360_link. +# +def get_search_ads360_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new + + # Call the get_search_ads360_link method. + result = client.get_search_ads360_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_sk_ad_network_conversion_value_schema.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_sk_ad_network_conversion_value_schema.rb new file mode 100644 index 000000000000..3708426d28f1 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_sk_ad_network_conversion_value_schema.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSKAdNetworkConversionValueSchema_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_sk_ad_network_conversion_value_schema. +# +def get_sk_ad_network_conversion_value_schema + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new + + # Call the get_sk_ad_network_conversion_value_schema method. + result = client.get_sk_ad_network_conversion_value_schema request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_event_filter.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_event_filter.rb new file mode 100644 index 000000000000..c232130cd63b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_event_filter.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_subproperty_event_filter call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_event_filter. +# +def get_subproperty_event_filter + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new + + # Call the get_subproperty_event_filter method. + result = client.get_subproperty_event_filter request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_sync_config.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_sync_config.rb new file mode 100644 index 000000000000..7f36ca5e58b7 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_sync_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertySyncConfig_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_subproperty_sync_config call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_sync_config. +# +def get_subproperty_sync_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new + + # Call the get_subproperty_sync_config method. + result = client.get_subproperty_sync_config request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertySyncConfig_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_user_provided_data_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_user_provided_data_settings.rb new file mode 100644 index 000000000000..cb89591c08de --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_user_provided_data_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the get_user_provided_data_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_user_provided_data_settings. +# +def get_user_provided_data_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new + + # Call the get_user_provided_data_settings method. + result = client.get_user_provided_data_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::UserProvidedDataSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_access_bindings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_access_bindings.rb new file mode 100644 index 000000000000..244efb4100e8 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_access_bindings.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_access_bindings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_access_bindings. +# +def list_access_bindings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new + + # Call the list_access_bindings method. + result = client.list_access_bindings request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::AccessBinding. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_account_summaries.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_account_summaries.rb new file mode 100644 index 000000000000..76ce12a7eacf --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_account_summaries.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_account_summaries call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_account_summaries. +# +def list_account_summaries + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new + + # Call the list_account_summaries method. + result = client.list_account_summaries request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::AccountSummary. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_accounts.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_accounts.rb new file mode 100644 index 000000000000..25f0f6533cf0 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_accounts.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_accounts call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_accounts. +# +def list_accounts + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListAccountsRequest.new + + # Call the list_accounts method. + result = client.list_accounts request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::Account. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_ad_sense_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_ad_sense_links.rb new file mode 100644 index 000000000000..ec40d9f36286 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_ad_sense_links.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_ad_sense_links call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_ad_sense_links. +# +def list_ad_sense_links + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new + + # Call the list_ad_sense_links method. + result = client.list_ad_sense_links request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::AdSenseLink. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_audiences.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_audiences.rb new file mode 100644 index 000000000000..d892adf5145b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_audiences.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_audiences call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_audiences. +# +def list_audiences + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new + + # Call the list_audiences method. + result = client.list_audiences request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::Audience. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_big_query_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_big_query_links.rb new file mode 100644 index 000000000000..76ac25a3205a --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_big_query_links.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_big_query_links call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_big_query_links. +# +def list_big_query_links + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new + + # Call the list_big_query_links method. + result = client.list_big_query_links request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::BigQueryLink. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_calculated_metrics.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_calculated_metrics.rb new file mode 100644 index 000000000000..1acd317598bf --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_calculated_metrics.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCalculatedMetrics_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_calculated_metrics call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_calculated_metrics. +# +def list_calculated_metrics + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new + + # Call the list_calculated_metrics method. + result = client.list_calculated_metrics request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::CalculatedMetric. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCalculatedMetrics_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_channel_groups.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_channel_groups.rb new file mode 100644 index 000000000000..6a6aa83244d0 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_channel_groups.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_channel_groups call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_channel_groups. +# +def list_channel_groups + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new + + # Call the list_channel_groups method. + result = client.list_channel_groups request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::ChannelGroup. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_conversion_events.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_conversion_events.rb new file mode 100644 index 000000000000..633665ad39f0 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_conversion_events.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_conversion_events call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_conversion_events. +# +def list_conversion_events + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new + + # Call the list_conversion_events method. + result = client.list_conversion_events request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::ConversionEvent. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_dimensions.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_dimensions.rb new file mode 100644 index 000000000000..d1a314682cad --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_dimensions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_custom_dimensions call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_dimensions. +# +def list_custom_dimensions + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new + + # Call the list_custom_dimensions method. + result = client.list_custom_dimensions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_metrics.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_metrics.rb new file mode 100644 index 000000000000..85b5d4d13f82 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_metrics.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_custom_metrics call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_metrics. +# +def list_custom_metrics + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new + + # Call the list_custom_metrics method. + result = client.list_custom_metrics request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomMetric. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_data_streams.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_data_streams.rb new file mode 100644 index 000000000000..bac32867335c --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_data_streams.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_data_streams call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_data_streams. +# +def list_data_streams + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new + + # Call the list_data_streams method. + result = client.list_data_streams request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::DataStream. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_link_proposals.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_link_proposals.rb new file mode 100644 index 000000000000..801e8a890714 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_link_proposals.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_display_video360_advertiser_link_proposals call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_link_proposals. +# +def list_display_video360_advertiser_link_proposals + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new + + # Call the list_display_video360_advertiser_link_proposals method. + result = client.list_display_video360_advertiser_link_proposals request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_links.rb new file mode 100644 index 000000000000..356b1eb6a82d --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_links.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_display_video360_advertiser_links call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_links. +# +def list_display_video360_advertiser_links + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new + + # Call the list_display_video360_advertiser_links method. + result = client.list_display_video360_advertiser_links request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_create_rules.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_create_rules.rb new file mode 100644 index 000000000000..0064f609dd4a --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_create_rules.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_event_create_rules call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_create_rules. +# +def list_event_create_rules + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new + + # Call the list_event_create_rules method. + result = client.list_event_create_rules request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::EventCreateRule. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb new file mode 100644 index 000000000000..e14fdbfbeb9e --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventEditRules_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_event_edit_rules call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_edit_rules. +# +def list_event_edit_rules + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new + + # Call the list_event_edit_rules method. + result = client.list_event_edit_rules request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::EventEditRule. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventEditRules_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_expanded_data_sets.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_expanded_data_sets.rb new file mode 100644 index 000000000000..bd7a678e74f7 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_expanded_data_sets.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_expanded_data_sets call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_expanded_data_sets. +# +def list_expanded_data_sets + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new + + # Call the list_expanded_data_sets method. + result = client.list_expanded_data_sets request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::ExpandedDataSet. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_firebase_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_firebase_links.rb new file mode 100644 index 000000000000..ae529c5a1621 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_firebase_links.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_firebase_links call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_firebase_links. +# +def list_firebase_links + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new + + # Call the list_firebase_links method. + result = client.list_firebase_links request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::FirebaseLink. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_google_ads_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_google_ads_links.rb new file mode 100644 index 000000000000..311765ab3708 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_google_ads_links.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_google_ads_links call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_google_ads_links. +# +def list_google_ads_links + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new + + # Call the list_google_ads_links method. + result = client.list_google_ads_links request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::GoogleAdsLink. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb new file mode 100644 index 000000000000..feacbf6fa026 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListKeyEvents_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_key_events call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_key_events. +# +def list_key_events + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new + + # Call the list_key_events method. + result = client.list_key_events request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::KeyEvent. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListKeyEvents_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_measurement_protocol_secrets.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_measurement_protocol_secrets.rb new file mode 100644 index 000000000000..ab2f9d25b9e3 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_measurement_protocol_secrets.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_measurement_protocol_secrets call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_measurement_protocol_secrets. +# +def list_measurement_protocol_secrets + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new + + # Call the list_measurement_protocol_secrets method. + result = client.list_measurement_protocol_secrets request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_properties.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_properties.rb new file mode 100644 index 000000000000..8d08c4dbc34f --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_properties.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_properties call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_properties. +# +def list_properties + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new + + # Call the list_properties method. + result = client.list_properties request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::Property. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_reporting_data_annotations.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_reporting_data_annotations.rb new file mode 100644 index 000000000000..c6e86ecf0a0e --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_reporting_data_annotations.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListReportingDataAnnotations_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_reporting_data_annotations call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_reporting_data_annotations. +# +def list_reporting_data_annotations + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new + + # Call the list_reporting_data_annotations method. + result = client.list_reporting_data_annotations request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListReportingDataAnnotations_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_rollup_property_source_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_rollup_property_source_links.rb new file mode 100644 index 000000000000..f4c0ab06e80a --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_rollup_property_source_links.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_rollup_property_source_links call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_rollup_property_source_links. +# +def list_rollup_property_source_links + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new + + # Call the list_rollup_property_source_links method. + result = client.list_rollup_property_source_links request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_search_ads360_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_search_ads360_links.rb new file mode 100644 index 000000000000..80f8a62106ba --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_search_ads360_links.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_search_ads360_links call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_search_ads360_links. +# +def list_search_ads360_links + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new + + # Call the list_search_ads360_links method. + result = client.list_search_ads360_links request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::SearchAds360Link. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb new file mode 100644 index 000000000000..92ad9a85c50b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSKAdNetworkConversionValueSchemas_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_sk_ad_network_conversion_value_schemas call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_sk_ad_network_conversion_value_schemas. +# +def list_sk_ad_network_conversion_value_schemas + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new + + # Call the list_sk_ad_network_conversion_value_schemas method. + result = client.list_sk_ad_network_conversion_value_schemas request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSKAdNetworkConversionValueSchemas_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_event_filters.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_event_filters.rb new file mode 100644 index 000000000000..5129969d1753 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_event_filters.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_subproperty_event_filters call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_event_filters. +# +def list_subproperty_event_filters + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new + + # Call the list_subproperty_event_filters method. + result = client.list_subproperty_event_filters request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_sync_configs.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_sync_configs.rb new file mode 100644 index 000000000000..50a84027f652 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_sync_configs.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertySyncConfigs_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the list_subproperty_sync_configs call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_sync_configs. +# +def list_subproperty_sync_configs + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new + + # Call the list_subproperty_sync_configs method. + result = client.list_subproperty_sync_configs request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertySyncConfigs_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_account_ticket.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_account_ticket.rb new file mode 100644 index 000000000000..64fea397419b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_account_ticket.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the provision_account_ticket call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_account_ticket. +# +def provision_account_ticket + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new + + # Call the provision_account_ticket method. + result = client.provision_account_ticket request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb new file mode 100644 index 000000000000..f5f6b7858114 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionSubproperty_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the provision_subproperty call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_subproperty. +# +def provision_subproperty + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new + + # Call the provision_subproperty method. + result = client.provision_subproperty request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionSubproperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb new file mode 100644 index 000000000000..7f2c5f3ef6f0 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ReorderEventEditRules_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the reorder_event_edit_rules call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#reorder_event_edit_rules. +# +def reorder_event_edit_rules + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new + + # Call the reorder_event_edit_rules method. + result = client.reorder_event_edit_rules request + + # The returned object is of type Google::Protobuf::Empty. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ReorderEventEditRules_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/run_access_report.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/run_access_report.rb new file mode 100644 index 000000000000..09b5c1d1c9c2 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/run_access_report.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the run_access_report call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#run_access_report. +# +def run_access_report + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new + + # Call the run_access_report method. + result = client.run_access_report request + + # The returned object is of type Google::Analytics::Admin::V1alpha::RunAccessReportResponse. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/search_change_history_events.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/search_change_history_events.rb new file mode 100644 index 000000000000..ed9d86d4bad2 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/search_change_history_events.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the search_change_history_events call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#search_change_history_events. +# +def search_change_history_events + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new + + # Call the search_change_history_events method. + result = client.search_change_history_events request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent. + p item + end +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/submit_user_deletion.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/submit_user_deletion.rb new file mode 100644 index 000000000000..2d793d2b2a72 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/submit_user_deletion.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_SubmitUserDeletion_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the submit_user_deletion call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#submit_user_deletion. +# +def submit_user_deletion + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new + + # Call the submit_user_deletion method. + result = client.submit_user_deletion request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SubmitUserDeletion_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_access_binding.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_access_binding.rb new file mode 100644 index 000000000000..0815edc0078b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_access_binding.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_access_binding call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_access_binding. +# +def update_access_binding + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new + + # Call the update_access_binding method. + result = client.update_access_binding request + + # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_account.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_account.rb new file mode 100644 index 000000000000..110e43484e5a --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_account.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_account call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_account. +# +def update_account + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new + + # Call the update_account method. + result = client.update_account request + + # The returned object is of type Google::Analytics::Admin::V1alpha::Account. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_attribution_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_attribution_settings.rb new file mode 100644 index 000000000000..0bd6bf1364f8 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_attribution_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_attribution_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_attribution_settings. +# +def update_attribution_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new + + # Call the update_attribution_settings method. + result = client.update_attribution_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_audience.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_audience.rb new file mode 100644 index 000000000000..7623ce389891 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_audience.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_audience call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_audience. +# +def update_audience + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new + + # Call the update_audience method. + result = client.update_audience request + + # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb new file mode 100644 index 000000000000..2bc3ee2a91a7 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateBigQueryLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_big_query_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_big_query_link. +# +def update_big_query_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new + + # Call the update_big_query_link method. + result = client.update_big_query_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateBigQueryLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_calculated_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_calculated_metric.rb new file mode 100644 index 000000000000..62d9cfa64541 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_calculated_metric.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCalculatedMetric_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_calculated_metric call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_calculated_metric. +# +def update_calculated_metric + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new + + # Call the update_calculated_metric method. + result = client.update_calculated_metric request + + # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCalculatedMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_channel_group.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_channel_group.rb new file mode 100644 index 000000000000..29801d90dc3c --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_channel_group.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateChannelGroup_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_channel_group call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_channel_group. +# +def update_channel_group + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new + + # Call the update_channel_group method. + result = client.update_channel_group request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateChannelGroup_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_conversion_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_conversion_event.rb new file mode 100644 index 000000000000..7854d9e2467e --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_conversion_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateConversionEvent_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_conversion_event call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_conversion_event. +# +def update_conversion_event + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new + + # Call the update_conversion_event method. + result = client.update_conversion_event request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateConversionEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_dimension.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_dimension.rb new file mode 100644 index 000000000000..8ac165074392 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_dimension.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_custom_dimension call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_dimension. +# +def update_custom_dimension + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new + + # Call the update_custom_dimension method. + result = client.update_custom_dimension request + + # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_metric.rb new file mode 100644 index 000000000000..713603f31919 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_metric.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_custom_metric call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_metric. +# +def update_custom_metric + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new + + # Call the update_custom_metric method. + result = client.update_custom_metric request + + # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_redaction_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_redaction_settings.rb new file mode 100644 index 000000000000..774884deb39b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_redaction_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_data_redaction_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_redaction_settings. +# +def update_data_redaction_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new + + # Call the update_data_redaction_settings method. + result = client.update_data_redaction_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_retention_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_retention_settings.rb new file mode 100644 index 000000000000..141dd24dbf92 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_retention_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_data_retention_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_retention_settings. +# +def update_data_retention_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new + + # Call the update_data_retention_settings method. + result = client.update_data_retention_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_stream.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_stream.rb new file mode 100644 index 000000000000..e3e7eb6d4af2 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_stream.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_data_stream call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_stream. +# +def update_data_stream + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new + + # Call the update_data_stream method. + result = client.update_data_stream request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_display_video360_advertiser_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_display_video360_advertiser_link.rb new file mode 100644 index 000000000000..8e782d337c83 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_display_video360_advertiser_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_display_video360_advertiser_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_display_video360_advertiser_link. +# +def update_display_video360_advertiser_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new + + # Call the update_display_video360_advertiser_link method. + result = client.update_display_video360_advertiser_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_enhanced_measurement_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_enhanced_measurement_settings.rb new file mode 100644 index 000000000000..d425515caa06 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_enhanced_measurement_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_enhanced_measurement_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_enhanced_measurement_settings. +# +def update_enhanced_measurement_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new + + # Call the update_enhanced_measurement_settings method. + result = client.update_enhanced_measurement_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_create_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_create_rule.rb new file mode 100644 index 000000000000..20bedc24606d --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_create_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_event_create_rule call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_create_rule. +# +def update_event_create_rule + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new + + # Call the update_event_create_rule method. + result = client.update_event_create_rule request + + # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb new file mode 100644 index 000000000000..ab15886b9d85 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventEditRule_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_event_edit_rule call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_edit_rule. +# +def update_event_edit_rule + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new + + # Call the update_event_edit_rule method. + result = client.update_event_edit_rule request + + # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventEditRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_expanded_data_set.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_expanded_data_set.rb new file mode 100644 index 000000000000..81717bfb48a5 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_expanded_data_set.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_expanded_data_set call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_expanded_data_set. +# +def update_expanded_data_set + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new + + # Call the update_expanded_data_set method. + result = client.update_expanded_data_set request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_ads_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_ads_link.rb new file mode 100644 index 000000000000..fdc0828a1ae6 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_ads_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_google_ads_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_ads_link. +# +def update_google_ads_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new + + # Call the update_google_ads_link method. + result = client.update_google_ads_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_signals_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_signals_settings.rb new file mode 100644 index 000000000000..b6e2070d7e5f --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_signals_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_google_signals_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_signals_settings. +# +def update_google_signals_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new + + # Call the update_google_signals_settings method. + result = client.update_google_signals_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb new file mode 100644 index 000000000000..aa1b33f46ef0 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateKeyEvent_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_key_event call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_key_event. +# +def update_key_event + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new + + # Call the update_key_event method. + result = client.update_key_event request + + # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateKeyEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_measurement_protocol_secret.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_measurement_protocol_secret.rb new file mode 100644 index 000000000000..5d9b751ef77e --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_measurement_protocol_secret.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_measurement_protocol_secret call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_measurement_protocol_secret. +# +def update_measurement_protocol_secret + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new + + # Call the update_measurement_protocol_secret method. + result = client.update_measurement_protocol_secret request + + # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_property.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_property.rb new file mode 100644 index 000000000000..111203eee46b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_property.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_property call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_property. +# +def update_property + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new + + # Call the update_property method. + result = client.update_property request + + # The returned object is of type Google::Analytics::Admin::V1alpha::Property. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_data_annotation.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_data_annotation.rb new file mode 100644 index 000000000000..20adc8a26da9 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_data_annotation.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingDataAnnotation_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_reporting_data_annotation call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_data_annotation. +# +def update_reporting_data_annotation + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new + + # Call the update_reporting_data_annotation method. + result = client.update_reporting_data_annotation request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingDataAnnotation_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_identity_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_identity_settings.rb new file mode 100644 index 000000000000..bdee4769e66c --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_identity_settings.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_reporting_identity_settings call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_identity_settings. +# +def update_reporting_identity_settings + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new + + # Call the update_reporting_identity_settings method. + result = client.update_reporting_identity_settings request + + # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_search_ads360_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_search_ads360_link.rb new file mode 100644 index 000000000000..9a746ffc13da --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_search_ads360_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_search_ads360_link call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_search_ads360_link. +# +def update_search_ads360_link + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new + + # Call the update_search_ads360_link method. + result = client.update_search_ads360_link request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb new file mode 100644 index 000000000000..35e0b798388b --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSKAdNetworkConversionValueSchema_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_sk_ad_network_conversion_value_schema. +# +def update_sk_ad_network_conversion_value_schema + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new + + # Call the update_sk_ad_network_conversion_value_schema method. + result = client.update_sk_ad_network_conversion_value_schema request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_event_filter.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_event_filter.rb new file mode 100644 index 000000000000..f1687c9cb6c1 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_event_filter.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_subproperty_event_filter call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_event_filter. +# +def update_subproperty_event_filter + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new + + # Call the update_subproperty_event_filter method. + result = client.update_subproperty_event_filter request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_sync_config.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_sync_config.rb new file mode 100644 index 000000000000..2380b33171ef --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_sync_config.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertySyncConfig_sync] +require "google/analytics/admin/v1alpha" + +## +# Snippet for the update_subproperty_sync_config call in the AnalyticsAdminService service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_sync_config. +# +def update_subproperty_sync_config + # Create a client object. The client can be reused for multiple calls. + client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new + + # Call the update_subproperty_sync_config method. + result = client.update_subproperty_sync_config request + + # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. + p result +end +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertySyncConfig_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json new file mode 100644 index 000000000000..277fa313d341 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json @@ -0,0 +1,6255 @@ +{ + "client_library": { + "name": "google-analytics-admin-v1alpha", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.analytics.admin.v1alpha", + "version": "v1alpha" + } + ] + }, + "snippets": [ + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync", + "title": "Snippet for the get_account call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_account.", + "file": "analytics_admin_service/get_account.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_account", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_account", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetAccountRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::Account", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetAccount", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync", + "title": "Snippet for the list_accounts call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_accounts.", + "file": "analytics_admin_service/list_accounts.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_accounts", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_accounts", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListAccountsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListAccountsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListAccounts", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync", + "title": "Snippet for the delete_account call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_account.", + "file": "analytics_admin_service/delete_account.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_account", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_account", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteAccountRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteAccount", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccount", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync", + "title": "Snippet for the update_account call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_account.", + "file": "analytics_admin_service/update_account.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_account", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_account", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateAccountRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::Account", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateAccount", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccount", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync", + "title": "Snippet for the provision_account_ticket call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_account_ticket.", + "file": "analytics_admin_service/provision_account_ticket.rb", + "language": "RUBY", + "client_method": { + "short_name": "provision_account_ticket", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_account_ticket", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ProvisionAccountTicket", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicket", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync", + "title": "Snippet for the list_account_summaries call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_account_summaries.", + "file": "analytics_admin_service/list_account_summaries.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_account_summaries", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_account_summaries", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListAccountSummaries", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync", + "title": "Snippet for the get_property call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_property.", + "file": "analytics_admin_service/get_property.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_property", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_property", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetPropertyRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::Property", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetProperty", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync", + "title": "Snippet for the list_properties call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_properties.", + "file": "analytics_admin_service/list_properties.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_properties", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_properties", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListPropertiesRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListPropertiesResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListProperties", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync", + "title": "Snippet for the create_property call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_property.", + "file": "analytics_admin_service/create_property.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_property", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_property", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreatePropertyRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::Property", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateProperty", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateProperty", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync", + "title": "Snippet for the delete_property call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_property.", + "file": "analytics_admin_service/delete_property.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_property", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_property", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeletePropertyRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::Property", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteProperty", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteProperty", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync", + "title": "Snippet for the update_property call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_property.", + "file": "analytics_admin_service/update_property.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_property", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_property", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::Property", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateProperty", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateProperty", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync", + "title": "Snippet for the create_firebase_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_firebase_link.", + "file": "analytics_admin_service/create_firebase_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_firebase_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_firebase_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::FirebaseLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateFirebaseLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync", + "title": "Snippet for the delete_firebase_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_firebase_link.", + "file": "analytics_admin_service/delete_firebase_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_firebase_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_firebase_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteFirebaseLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync", + "title": "Snippet for the list_firebase_links call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_firebase_links.", + "file": "analytics_admin_service/list_firebase_links.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_firebase_links", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_firebase_links", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListFirebaseLinks", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync", + "title": "Snippet for the get_global_site_tag call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_global_site_tag.", + "file": "analytics_admin_service/get_global_site_tag.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_global_site_tag", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_global_site_tag", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::GlobalSiteTag", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetGlobalSiteTag", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync", + "title": "Snippet for the create_google_ads_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_google_ads_link.", + "file": "analytics_admin_service/create_google_ads_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_google_ads_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_google_ads_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::GoogleAdsLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateGoogleAdsLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync", + "title": "Snippet for the update_google_ads_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_ads_link.", + "file": "analytics_admin_service/update_google_ads_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_google_ads_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_ads_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::GoogleAdsLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateGoogleAdsLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync", + "title": "Snippet for the delete_google_ads_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_google_ads_link.", + "file": "analytics_admin_service/delete_google_ads_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_google_ads_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_google_ads_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteGoogleAdsLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync", + "title": "Snippet for the list_google_ads_links call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_google_ads_links.", + "file": "analytics_admin_service/list_google_ads_links.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_google_ads_links", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_google_ads_links", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListGoogleAdsLinks", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync", + "title": "Snippet for the get_data_sharing_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_sharing_settings.", + "file": "analytics_admin_service/get_data_sharing_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_data_sharing_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_sharing_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DataSharingSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetDataSharingSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync", + "title": "Snippet for the get_measurement_protocol_secret call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_measurement_protocol_secret.", + "file": "analytics_admin_service/get_measurement_protocol_secret.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_measurement_protocol_secret", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_measurement_protocol_secret", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetMeasurementProtocolSecret", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecret", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync", + "title": "Snippet for the list_measurement_protocol_secrets call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_measurement_protocol_secrets.", + "file": "analytics_admin_service/list_measurement_protocol_secrets.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_measurement_protocol_secrets", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_measurement_protocol_secrets", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListMeasurementProtocolSecrets", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecrets", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync", + "title": "Snippet for the create_measurement_protocol_secret call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_measurement_protocol_secret.", + "file": "analytics_admin_service/create_measurement_protocol_secret.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_measurement_protocol_secret", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_measurement_protocol_secret", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateMeasurementProtocolSecret", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecret", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync", + "title": "Snippet for the delete_measurement_protocol_secret call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_measurement_protocol_secret.", + "file": "analytics_admin_service/delete_measurement_protocol_secret.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_measurement_protocol_secret", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_measurement_protocol_secret", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteMeasurementProtocolSecret", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecret", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync", + "title": "Snippet for the update_measurement_protocol_secret call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_measurement_protocol_secret.", + "file": "analytics_admin_service/update_measurement_protocol_secret.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_measurement_protocol_secret", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_measurement_protocol_secret", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateMeasurementProtocolSecret", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecret", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync", + "title": "Snippet for the acknowledge_user_data_collection call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#acknowledge_user_data_collection.", + "file": "analytics_admin_service/acknowledge_user_data_collection.rb", + "language": "RUBY", + "client_method": { + "short_name": "acknowledge_user_data_collection", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#acknowledge_user_data_collection", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "AcknowledgeUserDataCollection", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollection", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSKAdNetworkConversionValueSchema_sync", + "title": "Snippet for the get_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_sk_ad_network_conversion_value_schema.", + "file": "analytics_admin_service/get_sk_ad_network_conversion_value_schema.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_sk_ad_network_conversion_value_schema", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_sk_ad_network_conversion_value_schema", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetSKAdNetworkConversionValueSchema", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSKAdNetworkConversionValueSchema", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSKAdNetworkConversionValueSchema_sync", + "title": "Snippet for the create_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_sk_ad_network_conversion_value_schema.", + "file": "analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_sk_ad_network_conversion_value_schema", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_sk_ad_network_conversion_value_schema", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateSKAdNetworkConversionValueSchema", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSKAdNetworkConversionValueSchema", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSKAdNetworkConversionValueSchema_sync", + "title": "Snippet for the delete_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_sk_ad_network_conversion_value_schema.", + "file": "analytics_admin_service/delete_sk_ad_network_conversion_value_schema.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_sk_ad_network_conversion_value_schema", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_sk_ad_network_conversion_value_schema", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteSKAdNetworkConversionValueSchema", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSKAdNetworkConversionValueSchema", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSKAdNetworkConversionValueSchema_sync", + "title": "Snippet for the update_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_sk_ad_network_conversion_value_schema.", + "file": "analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_sk_ad_network_conversion_value_schema", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_sk_ad_network_conversion_value_schema", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateSKAdNetworkConversionValueSchema", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSKAdNetworkConversionValueSchema", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSKAdNetworkConversionValueSchemas_sync", + "title": "Snippet for the list_sk_ad_network_conversion_value_schemas call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_sk_ad_network_conversion_value_schemas.", + "file": "analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_sk_ad_network_conversion_value_schemas", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_sk_ad_network_conversion_value_schemas", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListSKAdNetworkConversionValueSchemas", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSKAdNetworkConversionValueSchemas", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync", + "title": "Snippet for the search_change_history_events call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#search_change_history_events.", + "file": "analytics_admin_service/search_change_history_events.rb", + "language": "RUBY", + "client_method": { + "short_name": "search_change_history_events", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#search_change_history_events", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "SearchChangeHistoryEvents", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEvents", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_sync", + "title": "Snippet for the get_google_signals_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_google_signals_settings.", + "file": "analytics_admin_service/get_google_signals_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_google_signals_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_google_signals_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetGoogleSignalsSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_sync", + "title": "Snippet for the update_google_signals_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_signals_settings.", + "file": "analytics_admin_service/update_google_signals_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_google_signals_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_signals_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateGoogleSignalsSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_sync", + "title": "Snippet for the create_conversion_event call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_conversion_event.", + "file": "analytics_admin_service/create_conversion_event.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_conversion_event", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_conversion_event", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ConversionEvent", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateConversionEvent", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEvent", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateConversionEvent_sync", + "title": "Snippet for the update_conversion_event call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_conversion_event.", + "file": "analytics_admin_service/update_conversion_event.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_conversion_event", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_conversion_event", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ConversionEvent", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateConversionEvent", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateConversionEvent", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_sync", + "title": "Snippet for the get_conversion_event call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_conversion_event.", + "file": "analytics_admin_service/get_conversion_event.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_conversion_event", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_conversion_event", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetConversionEventRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ConversionEvent", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetConversionEvent", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEvent", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_sync", + "title": "Snippet for the delete_conversion_event call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_conversion_event.", + "file": "analytics_admin_service/delete_conversion_event.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_conversion_event", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_conversion_event", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteConversionEvent", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEvent", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_sync", + "title": "Snippet for the list_conversion_events call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_conversion_events.", + "file": "analytics_admin_service/list_conversion_events.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_conversion_events", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_conversion_events", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListConversionEvents", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEvents", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_sync", + "title": "Snippet for the create_key_event call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_key_event.", + "file": "analytics_admin_service/create_key_event.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_key_event", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_key_event", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::KeyEvent", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateKeyEvent", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateKeyEvent", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateKeyEvent_sync", + "title": "Snippet for the update_key_event call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_key_event.", + "file": "analytics_admin_service/update_key_event.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_key_event", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_key_event", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::KeyEvent", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateKeyEvent", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateKeyEvent", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetKeyEvent_sync", + "title": "Snippet for the get_key_event call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_key_event.", + "file": "analytics_admin_service/get_key_event.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_key_event", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_key_event", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetKeyEventRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::KeyEvent", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetKeyEvent", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetKeyEvent", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteKeyEvent_sync", + "title": "Snippet for the delete_key_event call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_key_event.", + "file": "analytics_admin_service/delete_key_event.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_key_event", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_key_event", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteKeyEvent", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteKeyEvent", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListKeyEvents_sync", + "title": "Snippet for the list_key_events call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_key_events.", + "file": "analytics_admin_service/list_key_events.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_key_events", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_key_events", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListKeyEvents", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListKeyEvents", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_sync", + "title": "Snippet for the get_display_video360_advertiser_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link.", + "file": "analytics_admin_service/get_display_video360_advertiser_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_display_video360_advertiser_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetDisplayVideo360AdvertiserLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_sync", + "title": "Snippet for the list_display_video360_advertiser_links call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_links.", + "file": "analytics_admin_service/list_display_video360_advertiser_links.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_display_video360_advertiser_links", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_links", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListDisplayVideo360AdvertiserLinks", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinks", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_sync", + "title": "Snippet for the create_display_video360_advertiser_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link.", + "file": "analytics_admin_service/create_display_video360_advertiser_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_display_video360_advertiser_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateDisplayVideo360AdvertiserLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_sync", + "title": "Snippet for the delete_display_video360_advertiser_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link.", + "file": "analytics_admin_service/delete_display_video360_advertiser_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_display_video360_advertiser_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteDisplayVideo360AdvertiserLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_sync", + "title": "Snippet for the update_display_video360_advertiser_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_display_video360_advertiser_link.", + "file": "analytics_admin_service/update_display_video360_advertiser_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_display_video360_advertiser_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_display_video360_advertiser_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateDisplayVideo360AdvertiserLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_sync", + "title": "Snippet for the get_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link_proposal.", + "file": "analytics_admin_service/get_display_video360_advertiser_link_proposal.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_display_video360_advertiser_link_proposal", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link_proposal", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetDisplayVideo360AdvertiserLinkProposal", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposal", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_sync", + "title": "Snippet for the list_display_video360_advertiser_link_proposals call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_link_proposals.", + "file": "analytics_admin_service/list_display_video360_advertiser_link_proposals.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_display_video360_advertiser_link_proposals", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_link_proposals", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListDisplayVideo360AdvertiserLinkProposals", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposals", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_sync", + "title": "Snippet for the create_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link_proposal.", + "file": "analytics_admin_service/create_display_video360_advertiser_link_proposal.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_display_video360_advertiser_link_proposal", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link_proposal", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateDisplayVideo360AdvertiserLinkProposal", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposal", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_sync", + "title": "Snippet for the delete_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link_proposal.", + "file": "analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_display_video360_advertiser_link_proposal", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link_proposal", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteDisplayVideo360AdvertiserLinkProposal", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposal", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync", + "title": "Snippet for the approve_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#approve_display_video360_advertiser_link_proposal.", + "file": "analytics_admin_service/approve_display_video360_advertiser_link_proposal.rb", + "language": "RUBY", + "client_method": { + "short_name": "approve_display_video360_advertiser_link_proposal", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#approve_display_video360_advertiser_link_proposal", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ApproveDisplayVideo360AdvertiserLinkProposal", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposal", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_sync", + "title": "Snippet for the cancel_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#cancel_display_video360_advertiser_link_proposal.", + "file": "analytics_admin_service/cancel_display_video360_advertiser_link_proposal.rb", + "language": "RUBY", + "client_method": { + "short_name": "cancel_display_video360_advertiser_link_proposal", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#cancel_display_video360_advertiser_link_proposal", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CancelDisplayVideo360AdvertiserLinkProposal", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposal", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_sync", + "title": "Snippet for the create_custom_dimension call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_dimension.", + "file": "analytics_admin_service/create_custom_dimension.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_custom_dimension", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_dimension", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::CustomDimension", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateCustomDimension", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimension", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_sync", + "title": "Snippet for the update_custom_dimension call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_dimension.", + "file": "analytics_admin_service/update_custom_dimension.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_custom_dimension", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_dimension", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::CustomDimension", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateCustomDimension", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimension", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_sync", + "title": "Snippet for the list_custom_dimensions call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_dimensions.", + "file": "analytics_admin_service/list_custom_dimensions.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_custom_dimensions", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_dimensions", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListCustomDimensions", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensions", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_sync", + "title": "Snippet for the archive_custom_dimension call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_dimension.", + "file": "analytics_admin_service/archive_custom_dimension.rb", + "language": "RUBY", + "client_method": { + "short_name": "archive_custom_dimension", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_dimension", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ArchiveCustomDimension", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimension", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_sync", + "title": "Snippet for the get_custom_dimension call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_dimension.", + "file": "analytics_admin_service/get_custom_dimension.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_custom_dimension", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_dimension", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::CustomDimension", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetCustomDimension", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimension", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_sync", + "title": "Snippet for the create_custom_metric call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_metric.", + "file": "analytics_admin_service/create_custom_metric.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_custom_metric", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_metric", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::CustomMetric", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateCustomMetric", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetric", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_sync", + "title": "Snippet for the update_custom_metric call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_metric.", + "file": "analytics_admin_service/update_custom_metric.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_custom_metric", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_metric", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::CustomMetric", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateCustomMetric", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetric", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_sync", + "title": "Snippet for the list_custom_metrics call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_metrics.", + "file": "analytics_admin_service/list_custom_metrics.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_custom_metrics", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_metrics", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListCustomMetrics", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetrics", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_sync", + "title": "Snippet for the archive_custom_metric call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_metric.", + "file": "analytics_admin_service/archive_custom_metric.rb", + "language": "RUBY", + "client_method": { + "short_name": "archive_custom_metric", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_metric", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ArchiveCustomMetric", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetric", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_sync", + "title": "Snippet for the get_custom_metric call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_metric.", + "file": "analytics_admin_service/get_custom_metric.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_custom_metric", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_metric", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::CustomMetric", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetCustomMetric", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetric", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_sync", + "title": "Snippet for the get_data_retention_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_retention_settings.", + "file": "analytics_admin_service/get_data_retention_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_data_retention_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_retention_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DataRetentionSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetDataRetentionSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync", + "title": "Snippet for the update_data_retention_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_retention_settings.", + "file": "analytics_admin_service/update_data_retention_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_data_retention_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_retention_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DataRetentionSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateDataRetentionSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_sync", + "title": "Snippet for the create_data_stream call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_data_stream.", + "file": "analytics_admin_service/create_data_stream.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_data_stream", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_data_stream", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DataStream", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateDataStream", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStream", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_sync", + "title": "Snippet for the delete_data_stream call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_data_stream.", + "file": "analytics_admin_service/delete_data_stream.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_data_stream", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_data_stream", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteDataStream", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStream", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_sync", + "title": "Snippet for the update_data_stream call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_stream.", + "file": "analytics_admin_service/update_data_stream.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_data_stream", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_stream", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DataStream", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateDataStream", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStream", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_sync", + "title": "Snippet for the list_data_streams call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_data_streams.", + "file": "analytics_admin_service/list_data_streams.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_data_streams", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_data_streams", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListDataStreams", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreams", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_sync", + "title": "Snippet for the get_data_stream call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_stream.", + "file": "analytics_admin_service/get_data_stream.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_data_stream", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_stream", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetDataStreamRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DataStream", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetDataStream", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStream", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_sync", + "title": "Snippet for the get_audience call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_audience.", + "file": "analytics_admin_service/get_audience.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_audience", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_audience", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetAudienceRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::Audience", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetAudience", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAudience", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_sync", + "title": "Snippet for the list_audiences call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_audiences.", + "file": "analytics_admin_service/list_audiences.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_audiences", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_audiences", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListAudiencesRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListAudiencesResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListAudiences", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAudiences", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_sync", + "title": "Snippet for the create_audience call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_audience.", + "file": "analytics_admin_service/create_audience.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_audience", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_audience", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateAudienceRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::Audience", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateAudience", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAudience", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_sync", + "title": "Snippet for the update_audience call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_audience.", + "file": "analytics_admin_service/update_audience.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_audience", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_audience", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::Audience", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateAudience", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAudience", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_sync", + "title": "Snippet for the archive_audience call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_audience.", + "file": "analytics_admin_service/archive_audience.rb", + "language": "RUBY", + "client_method": { + "short_name": "archive_audience", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_audience", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ArchiveAudience", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveAudience", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_sync", + "title": "Snippet for the get_search_ads360_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_search_ads360_link.", + "file": "analytics_admin_service/get_search_ads360_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_search_ads360_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_search_ads360_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SearchAds360Link", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetSearchAds360Link", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSearchAds360Link", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_sync", + "title": "Snippet for the list_search_ads360_links call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_search_ads360_links.", + "file": "analytics_admin_service/list_search_ads360_links.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_search_ads360_links", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_search_ads360_links", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListSearchAds360Links", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSearchAds360Links", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_sync", + "title": "Snippet for the create_search_ads360_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_search_ads360_link.", + "file": "analytics_admin_service/create_search_ads360_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_search_ads360_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_search_ads360_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SearchAds360Link", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateSearchAds360Link", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSearchAds360Link", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_sync", + "title": "Snippet for the delete_search_ads360_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_search_ads360_link.", + "file": "analytics_admin_service/delete_search_ads360_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_search_ads360_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_search_ads360_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteSearchAds360Link", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSearchAds360Link", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_sync", + "title": "Snippet for the update_search_ads360_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_search_ads360_link.", + "file": "analytics_admin_service/update_search_ads360_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_search_ads360_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_search_ads360_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SearchAds360Link", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateSearchAds360Link", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSearchAds360Link", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_sync", + "title": "Snippet for the get_attribution_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_attribution_settings.", + "file": "analytics_admin_service/get_attribution_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_attribution_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_attribution_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::AttributionSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetAttributionSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAttributionSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_sync", + "title": "Snippet for the update_attribution_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_attribution_settings.", + "file": "analytics_admin_service/update_attribution_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_attribution_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_attribution_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::AttributionSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateAttributionSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAttributionSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_sync", + "title": "Snippet for the run_access_report call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#run_access_report.", + "file": "analytics_admin_service/run_access_report.rb", + "language": "RUBY", + "client_method": { + "short_name": "run_access_report", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#run_access_report", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::RunAccessReportRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::RunAccessReportResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "RunAccessReport", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.RunAccessReport", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync", + "title": "Snippet for the create_access_binding call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_access_binding.", + "file": "analytics_admin_service/create_access_binding.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_access_binding", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_access_binding", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::AccessBinding", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateAccessBinding", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAccessBinding", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync", + "title": "Snippet for the get_access_binding call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_access_binding.", + "file": "analytics_admin_service/get_access_binding.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_access_binding", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_access_binding", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::AccessBinding", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetAccessBinding", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccessBinding", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync", + "title": "Snippet for the update_access_binding call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_access_binding.", + "file": "analytics_admin_service/update_access_binding.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_access_binding", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_access_binding", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::AccessBinding", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateAccessBinding", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccessBinding", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync", + "title": "Snippet for the delete_access_binding call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_access_binding.", + "file": "analytics_admin_service/delete_access_binding.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_access_binding", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_access_binding", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteAccessBinding", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccessBinding", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync", + "title": "Snippet for the list_access_bindings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_access_bindings.", + "file": "analytics_admin_service/list_access_bindings.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_access_bindings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_access_bindings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListAccessBindings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccessBindings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync", + "title": "Snippet for the batch_create_access_bindings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_create_access_bindings.", + "file": "analytics_admin_service/batch_create_access_bindings.rb", + "language": "RUBY", + "client_method": { + "short_name": "batch_create_access_bindings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_create_access_bindings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "BatchCreateAccessBindings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateAccessBindings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync", + "title": "Snippet for the batch_get_access_bindings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_get_access_bindings.", + "file": "analytics_admin_service/batch_get_access_bindings.rb", + "language": "RUBY", + "client_method": { + "short_name": "batch_get_access_bindings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_get_access_bindings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "BatchGetAccessBindings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetAccessBindings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync", + "title": "Snippet for the batch_update_access_bindings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_update_access_bindings.", + "file": "analytics_admin_service/batch_update_access_bindings.rb", + "language": "RUBY", + "client_method": { + "short_name": "batch_update_access_bindings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_update_access_bindings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "BatchUpdateAccessBindings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateAccessBindings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync", + "title": "Snippet for the batch_delete_access_bindings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_delete_access_bindings.", + "file": "analytics_admin_service/batch_delete_access_bindings.rb", + "language": "RUBY", + "client_method": { + "short_name": "batch_delete_access_bindings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_delete_access_bindings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "BatchDeleteAccessBindings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteAccessBindings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync", + "title": "Snippet for the get_expanded_data_set call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_expanded_data_set.", + "file": "analytics_admin_service/get_expanded_data_set.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_expanded_data_set", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_expanded_data_set", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ExpandedDataSet", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetExpandedDataSet", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetExpandedDataSet", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync", + "title": "Snippet for the list_expanded_data_sets call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_expanded_data_sets.", + "file": "analytics_admin_service/list_expanded_data_sets.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_expanded_data_sets", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_expanded_data_sets", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListExpandedDataSets", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListExpandedDataSets", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync", + "title": "Snippet for the create_expanded_data_set call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_expanded_data_set.", + "file": "analytics_admin_service/create_expanded_data_set.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_expanded_data_set", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_expanded_data_set", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ExpandedDataSet", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateExpandedDataSet", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateExpandedDataSet", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync", + "title": "Snippet for the update_expanded_data_set call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_expanded_data_set.", + "file": "analytics_admin_service/update_expanded_data_set.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_expanded_data_set", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_expanded_data_set", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ExpandedDataSet", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateExpandedDataSet", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateExpandedDataSet", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync", + "title": "Snippet for the delete_expanded_data_set call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_expanded_data_set.", + "file": "analytics_admin_service/delete_expanded_data_set.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_expanded_data_set", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_expanded_data_set", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteExpandedDataSet", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteExpandedDataSet", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetChannelGroup_sync", + "title": "Snippet for the get_channel_group call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_channel_group.", + "file": "analytics_admin_service/get_channel_group.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_channel_group", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_channel_group", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ChannelGroup", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetChannelGroup", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetChannelGroup", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_sync", + "title": "Snippet for the list_channel_groups call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_channel_groups.", + "file": "analytics_admin_service/list_channel_groups.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_channel_groups", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_channel_groups", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListChannelGroups", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListChannelGroups", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateChannelGroup_sync", + "title": "Snippet for the create_channel_group call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_channel_group.", + "file": "analytics_admin_service/create_channel_group.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_channel_group", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_channel_group", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ChannelGroup", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateChannelGroup", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateChannelGroup", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateChannelGroup_sync", + "title": "Snippet for the update_channel_group call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_channel_group.", + "file": "analytics_admin_service/update_channel_group.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_channel_group", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_channel_group", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ChannelGroup", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateChannelGroup", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateChannelGroup", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteChannelGroup_sync", + "title": "Snippet for the delete_channel_group call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_channel_group.", + "file": "analytics_admin_service/delete_channel_group.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_channel_group", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_channel_group", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteChannelGroup", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteChannelGroup", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateBigQueryLink_sync", + "title": "Snippet for the create_big_query_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_big_query_link.", + "file": "analytics_admin_service/create_big_query_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_big_query_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_big_query_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::BigQueryLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateBigQueryLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateBigQueryLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_sync", + "title": "Snippet for the get_big_query_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_big_query_link.", + "file": "analytics_admin_service/get_big_query_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_big_query_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_big_query_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::BigQueryLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetBigQueryLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetBigQueryLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_sync", + "title": "Snippet for the list_big_query_links call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_big_query_links.", + "file": "analytics_admin_service/list_big_query_links.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_big_query_links", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_big_query_links", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListBigQueryLinks", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListBigQueryLinks", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteBigQueryLink_sync", + "title": "Snippet for the delete_big_query_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_big_query_link.", + "file": "analytics_admin_service/delete_big_query_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_big_query_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_big_query_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteBigQueryLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteBigQueryLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateBigQueryLink_sync", + "title": "Snippet for the update_big_query_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_big_query_link.", + "file": "analytics_admin_service/update_big_query_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_big_query_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_big_query_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::BigQueryLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateBigQueryLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateBigQueryLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync", + "title": "Snippet for the get_enhanced_measurement_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_enhanced_measurement_settings.", + "file": "analytics_admin_service/get_enhanced_measurement_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_enhanced_measurement_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_enhanced_measurement_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetEnhancedMeasurementSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEnhancedMeasurementSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync", + "title": "Snippet for the update_enhanced_measurement_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_enhanced_measurement_settings.", + "file": "analytics_admin_service/update_enhanced_measurement_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_enhanced_measurement_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_enhanced_measurement_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateEnhancedMeasurementSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEnhancedMeasurementSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_sync", + "title": "Snippet for the get_ad_sense_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_ad_sense_link.", + "file": "analytics_admin_service/get_ad_sense_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_ad_sense_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_ad_sense_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::AdSenseLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetAdSenseLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAdSenseLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_sync", + "title": "Snippet for the create_ad_sense_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_ad_sense_link.", + "file": "analytics_admin_service/create_ad_sense_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_ad_sense_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_ad_sense_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::AdSenseLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateAdSenseLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAdSenseLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_sync", + "title": "Snippet for the delete_ad_sense_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_ad_sense_link.", + "file": "analytics_admin_service/delete_ad_sense_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_ad_sense_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_ad_sense_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteAdSenseLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAdSenseLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_sync", + "title": "Snippet for the list_ad_sense_links call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_ad_sense_links.", + "file": "analytics_admin_service/list_ad_sense_links.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_ad_sense_links", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_ad_sense_links", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListAdSenseLinks", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAdSenseLinks", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_sync", + "title": "Snippet for the get_event_create_rule call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_create_rule.", + "file": "analytics_admin_service/get_event_create_rule.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_event_create_rule", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_create_rule", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::EventCreateRule", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetEventCreateRule", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventCreateRule", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_sync", + "title": "Snippet for the list_event_create_rules call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_create_rules.", + "file": "analytics_admin_service/list_event_create_rules.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_event_create_rules", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_create_rules", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListEventCreateRules", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventCreateRules", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_sync", + "title": "Snippet for the create_event_create_rule call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_create_rule.", + "file": "analytics_admin_service/create_event_create_rule.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_event_create_rule", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_create_rule", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::EventCreateRule", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateEventCreateRule", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventCreateRule", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_sync", + "title": "Snippet for the update_event_create_rule call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_create_rule.", + "file": "analytics_admin_service/update_event_create_rule.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_event_create_rule", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_create_rule", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::EventCreateRule", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateEventCreateRule", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventCreateRule", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_sync", + "title": "Snippet for the delete_event_create_rule call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_create_rule.", + "file": "analytics_admin_service/delete_event_create_rule.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_event_create_rule", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_create_rule", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteEventCreateRule", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventCreateRule", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventEditRule_sync", + "title": "Snippet for the get_event_edit_rule call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_edit_rule.", + "file": "analytics_admin_service/get_event_edit_rule.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_event_edit_rule", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_edit_rule", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::EventEditRule", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetEventEditRule", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventEditRule", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventEditRules_sync", + "title": "Snippet for the list_event_edit_rules call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_edit_rules.", + "file": "analytics_admin_service/list_event_edit_rules.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_event_edit_rules", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_edit_rules", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListEventEditRules", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventEditRules", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventEditRule_sync", + "title": "Snippet for the create_event_edit_rule call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_edit_rule.", + "file": "analytics_admin_service/create_event_edit_rule.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_event_edit_rule", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_edit_rule", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::EventEditRule", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateEventEditRule", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventEditRule", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventEditRule_sync", + "title": "Snippet for the update_event_edit_rule call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_edit_rule.", + "file": "analytics_admin_service/update_event_edit_rule.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_event_edit_rule", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_edit_rule", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::EventEditRule", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateEventEditRule", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventEditRule", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventEditRule_sync", + "title": "Snippet for the delete_event_edit_rule call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_edit_rule.", + "file": "analytics_admin_service/delete_event_edit_rule.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_event_edit_rule", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_edit_rule", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteEventEditRule", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventEditRule", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ReorderEventEditRules_sync", + "title": "Snippet for the reorder_event_edit_rules call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#reorder_event_edit_rules.", + "file": "analytics_admin_service/reorder_event_edit_rules.rb", + "language": "RUBY", + "client_method": { + "short_name": "reorder_event_edit_rules", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#reorder_event_edit_rules", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ReorderEventEditRules", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ReorderEventEditRules", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync", + "title": "Snippet for the update_data_redaction_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_redaction_settings.", + "file": "analytics_admin_service/update_data_redaction_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_data_redaction_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_redaction_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DataRedactionSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateDataRedactionSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRedactionSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync", + "title": "Snippet for the get_data_redaction_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_redaction_settings.", + "file": "analytics_admin_service/get_data_redaction_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_data_redaction_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_redaction_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::DataRedactionSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetDataRedactionSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRedactionSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCalculatedMetric_sync", + "title": "Snippet for the get_calculated_metric call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_calculated_metric.", + "file": "analytics_admin_service/get_calculated_metric.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_calculated_metric", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_calculated_metric", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::CalculatedMetric", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetCalculatedMetric", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCalculatedMetric", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCalculatedMetric_sync", + "title": "Snippet for the create_calculated_metric call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_calculated_metric.", + "file": "analytics_admin_service/create_calculated_metric.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_calculated_metric", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_calculated_metric", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::CalculatedMetric", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateCalculatedMetric", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCalculatedMetric", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCalculatedMetrics_sync", + "title": "Snippet for the list_calculated_metrics call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_calculated_metrics.", + "file": "analytics_admin_service/list_calculated_metrics.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_calculated_metrics", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_calculated_metrics", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListCalculatedMetrics", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCalculatedMetrics", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCalculatedMetric_sync", + "title": "Snippet for the update_calculated_metric call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_calculated_metric.", + "file": "analytics_admin_service/update_calculated_metric.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_calculated_metric", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_calculated_metric", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::CalculatedMetric", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateCalculatedMetric", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCalculatedMetric", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteCalculatedMetric_sync", + "title": "Snippet for the delete_calculated_metric call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_calculated_metric.", + "file": "analytics_admin_service/delete_calculated_metric.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_calculated_metric", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_calculated_metric", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteCalculatedMetric", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteCalculatedMetric", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync", + "title": "Snippet for the create_rollup_property call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property.", + "file": "analytics_admin_service/create_rollup_property.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_rollup_property", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateRollupProperty", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateRollupProperty", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync", + "title": "Snippet for the get_rollup_property_source_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_rollup_property_source_link.", + "file": "analytics_admin_service/get_rollup_property_source_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_rollup_property_source_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_rollup_property_source_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetRollupPropertySourceLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetRollupPropertySourceLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync", + "title": "Snippet for the list_rollup_property_source_links call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_rollup_property_source_links.", + "file": "analytics_admin_service/list_rollup_property_source_links.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_rollup_property_source_links", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_rollup_property_source_links", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListRollupPropertySourceLinks", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListRollupPropertySourceLinks", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync", + "title": "Snippet for the create_rollup_property_source_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property_source_link.", + "file": "analytics_admin_service/create_rollup_property_source_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_rollup_property_source_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property_source_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateRollupPropertySourceLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateRollupPropertySourceLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync", + "title": "Snippet for the delete_rollup_property_source_link call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_rollup_property_source_link.", + "file": "analytics_admin_service/delete_rollup_property_source_link.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_rollup_property_source_link", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_rollup_property_source_link", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteRollupPropertySourceLink", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteRollupPropertySourceLink", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionSubproperty_sync", + "title": "Snippet for the provision_subproperty call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_subproperty.", + "file": "analytics_admin_service/provision_subproperty.rb", + "language": "RUBY", + "client_method": { + "short_name": "provision_subproperty", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_subproperty", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ProvisionSubproperty", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionSubproperty", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync", + "title": "Snippet for the create_subproperty_event_filter call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_subproperty_event_filter.", + "file": "analytics_admin_service/create_subproperty_event_filter.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_subproperty_event_filter", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_subproperty_event_filter", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateSubpropertyEventFilter", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSubpropertyEventFilter", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_sync", + "title": "Snippet for the get_subproperty_event_filter call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_event_filter.", + "file": "analytics_admin_service/get_subproperty_event_filter.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_subproperty_event_filter", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_event_filter", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetSubpropertyEventFilter", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSubpropertyEventFilter", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_sync", + "title": "Snippet for the list_subproperty_event_filters call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_event_filters.", + "file": "analytics_admin_service/list_subproperty_event_filters.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_subproperty_event_filters", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_event_filters", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListSubpropertyEventFilters", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSubpropertyEventFilters", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_sync", + "title": "Snippet for the update_subproperty_event_filter call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_event_filter.", + "file": "analytics_admin_service/update_subproperty_event_filter.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_subproperty_event_filter", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_event_filter", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateSubpropertyEventFilter", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSubpropertyEventFilter", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync", + "title": "Snippet for the delete_subproperty_event_filter call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_subproperty_event_filter.", + "file": "analytics_admin_service/delete_subproperty_event_filter.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_subproperty_event_filter", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_subproperty_event_filter", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteSubpropertyEventFilter", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSubpropertyEventFilter", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateReportingDataAnnotation_sync", + "title": "Snippet for the create_reporting_data_annotation call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_reporting_data_annotation.", + "file": "analytics_admin_service/create_reporting_data_annotation.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_reporting_data_annotation", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_reporting_data_annotation", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "CreateReportingDataAnnotation", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateReportingDataAnnotation", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingDataAnnotation_sync", + "title": "Snippet for the get_reporting_data_annotation call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_data_annotation.", + "file": "analytics_admin_service/get_reporting_data_annotation.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_reporting_data_annotation", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_data_annotation", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetReportingDataAnnotation", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetReportingDataAnnotation", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListReportingDataAnnotations_sync", + "title": "Snippet for the list_reporting_data_annotations call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_reporting_data_annotations.", + "file": "analytics_admin_service/list_reporting_data_annotations.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_reporting_data_annotations", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_reporting_data_annotations", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListReportingDataAnnotations", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListReportingDataAnnotations", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingDataAnnotation_sync", + "title": "Snippet for the update_reporting_data_annotation call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_data_annotation.", + "file": "analytics_admin_service/update_reporting_data_annotation.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_reporting_data_annotation", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_data_annotation", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateReportingDataAnnotation", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateReportingDataAnnotation", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteReportingDataAnnotation_sync", + "title": "Snippet for the delete_reporting_data_annotation call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_reporting_data_annotation.", + "file": "analytics_admin_service/delete_reporting_data_annotation.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_reporting_data_annotation", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_reporting_data_annotation", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest", + "name": "request" + } + ], + "result_type": "::Google::Protobuf::Empty", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "DeleteReportingDataAnnotation", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteReportingDataAnnotation", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_SubmitUserDeletion_sync", + "title": "Snippet for the submit_user_deletion call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#submit_user_deletion.", + "file": "analytics_admin_service/submit_user_deletion.rb", + "language": "RUBY", + "client_method": { + "short_name": "submit_user_deletion", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#submit_user_deletion", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "SubmitUserDeletion", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.SubmitUserDeletion", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertySyncConfigs_sync", + "title": "Snippet for the list_subproperty_sync_configs call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_sync_configs.", + "file": "analytics_admin_service/list_subproperty_sync_configs.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_subproperty_sync_configs", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_sync_configs", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "ListSubpropertySyncConfigs", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSubpropertySyncConfigs", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertySyncConfig_sync", + "title": "Snippet for the update_subproperty_sync_config call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_sync_config.", + "file": "analytics_admin_service/update_subproperty_sync_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_subproperty_sync_config", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_sync_config", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateSubpropertySyncConfig", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSubpropertySyncConfig", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertySyncConfig_sync", + "title": "Snippet for the get_subproperty_sync_config call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_sync_config.", + "file": "analytics_admin_service/get_subproperty_sync_config.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_subproperty_sync_config", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_sync_config", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetSubpropertySyncConfig", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSubpropertySyncConfig", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingIdentitySettings_sync", + "title": "Snippet for the get_reporting_identity_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_identity_settings.", + "file": "analytics_admin_service/get_reporting_identity_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_reporting_identity_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_identity_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetReportingIdentitySettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetReportingIdentitySettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_sync", + "title": "Snippet for the update_reporting_identity_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_identity_settings.", + "file": "analytics_admin_service/update_reporting_identity_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_reporting_identity_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_identity_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateReportingIdentitySettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateReportingIdentitySettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync", + "title": "Snippet for the get_user_provided_data_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_user_provided_data_settings.", + "file": "analytics_admin_service/get_user_provided_data_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_user_provided_data_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_user_provided_data_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "GetUserProvidedDataSettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserProvidedDataSettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb b/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb new file mode 100644 index 000000000000..a1bde679507c --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb @@ -0,0 +1,490 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/analytics/admin/v1alpha/analytics_admin_service" + +class ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_access_binding_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.access_binding_path account: "value0", access_binding: "value1" + assert_equal "accounts/value0/accessBindings/value1", path + + path = client.access_binding_path property: "value0", access_binding: "value1" + assert_equal "properties/value0/accessBindings/value1", path + end + end + + def test_account_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.account_path account: "value0" + assert_equal "accounts/value0", path + end + end + + def test_ad_sense_link_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.ad_sense_link_path property: "value0", adsense_link: "value1" + assert_equal "properties/value0/adSenseLinks/value1", path + end + end + + def test_attribution_settings_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.attribution_settings_path property: "value0" + assert_equal "properties/value0/attributionSettings", path + end + end + + def test_audience_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.audience_path property: "value0", audience: "value1" + assert_equal "properties/value0/audiences/value1", path + end + end + + def test_big_query_link_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.big_query_link_path property: "value0", bigquery_link: "value1" + assert_equal "properties/value0/bigQueryLinks/value1", path + end + end + + def test_calculated_metric_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.calculated_metric_path property: "value0", calculated_metric: "value1" + assert_equal "properties/value0/calculatedMetrics/value1", path + end + end + + def test_channel_group_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.channel_group_path property: "value0", channel_group: "value1" + assert_equal "properties/value0/channelGroups/value1", path + end + end + + def test_conversion_event_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.conversion_event_path property: "value0", conversion_event: "value1" + assert_equal "properties/value0/conversionEvents/value1", path + end + end + + def test_custom_dimension_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.custom_dimension_path property: "value0", custom_dimension: "value1" + assert_equal "properties/value0/customDimensions/value1", path + end + end + + def test_custom_metric_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.custom_metric_path property: "value0", custom_metric: "value1" + assert_equal "properties/value0/customMetrics/value1", path + end + end + + def test_data_redaction_settings_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.data_redaction_settings_path property: "value0", data_stream: "value1" + assert_equal "properties/value0/dataStreams/value1/dataRedactionSettings", path + end + end + + def test_data_retention_settings_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.data_retention_settings_path property: "value0" + assert_equal "properties/value0/dataRetentionSettings", path + end + end + + def test_data_sharing_settings_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.data_sharing_settings_path account: "value0" + assert_equal "accounts/value0/dataSharingSettings", path + end + end + + def test_data_stream_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.data_stream_path property: "value0", data_stream: "value1" + assert_equal "properties/value0/dataStreams/value1", path + end + end + + def test_display_video360_advertiser_link_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.display_video360_advertiser_link_path property: "value0", display_video_360_advertiser_link: "value1" + assert_equal "properties/value0/displayVideo360AdvertiserLinks/value1", path + end + end + + def test_display_video360_advertiser_link_proposal_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.display_video360_advertiser_link_proposal_path property: "value0", display_video_360_advertiser_link_proposal: "value1" + assert_equal "properties/value0/displayVideo360AdvertiserLinkProposals/value1", path + end + end + + def test_enhanced_measurement_settings_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.enhanced_measurement_settings_path property: "value0", data_stream: "value1" + assert_equal "properties/value0/dataStreams/value1/enhancedMeasurementSettings", path + end + end + + def test_event_create_rule_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.event_create_rule_path property: "value0", data_stream: "value1", event_create_rule: "value2" + assert_equal "properties/value0/dataStreams/value1/eventCreateRules/value2", path + end + end + + def test_event_edit_rule_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.event_edit_rule_path property: "value0", data_stream: "value1", event_edit_rule: "value2" + assert_equal "properties/value0/dataStreams/value1/eventEditRules/value2", path + end + end + + def test_expanded_data_set_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.expanded_data_set_path property: "value0", expanded_data_set: "value1" + assert_equal "properties/value0/expandedDataSets/value1", path + end + end + + def test_firebase_link_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.firebase_link_path property: "value0", firebase_link: "value1" + assert_equal "properties/value0/firebaseLinks/value1", path + end + end + + def test_global_site_tag_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.global_site_tag_path property: "value0", data_stream: "value1" + assert_equal "properties/value0/dataStreams/value1/globalSiteTag", path + end + end + + def test_google_ads_link_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.google_ads_link_path property: "value0", google_ads_link: "value1" + assert_equal "properties/value0/googleAdsLinks/value1", path + end + end + + def test_google_signals_settings_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.google_signals_settings_path property: "value0" + assert_equal "properties/value0/googleSignalsSettings", path + end + end + + def test_key_event_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.key_event_path property: "value0", key_event: "value1" + assert_equal "properties/value0/keyEvents/value1", path + end + end + + def test_measurement_protocol_secret_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.measurement_protocol_secret_path property: "value0", data_stream: "value1", measurement_protocol_secret: "value2" + assert_equal "properties/value0/dataStreams/value1/measurementProtocolSecrets/value2", path + end + end + + def test_organization_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.organization_path organization: "value0" + assert_equal "organizations/value0", path + end + end + + def test_property_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.property_path property: "value0" + assert_equal "properties/value0", path + end + end + + def test_reporting_data_annotation_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.reporting_data_annotation_path property: "value0", reporting_data_annotation: "value1" + assert_equal "properties/value0/reportingDataAnnotations/value1", path + end + end + + def test_reporting_identity_settings_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.reporting_identity_settings_path property: "value0" + assert_equal "properties/value0/reportingIdentitySettings", path + end + end + + def test_rollup_property_source_link_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.rollup_property_source_link_path property: "value0", rollup_property_source_link: "value1" + assert_equal "properties/value0/rollupPropertySourceLinks/value1", path + end + end + + def test_sk_ad_network_conversion_value_schema_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.sk_ad_network_conversion_value_schema_path property: "value0", data_stream: "value1", skadnetwork_conversion_value_schema: "value2" + assert_equal "properties/value0/dataStreams/value1/sKAdNetworkConversionValueSchema/value2", path + end + end + + def test_search_ads360_link_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.search_ads360_link_path property: "value0", search_ads_360_link: "value1" + assert_equal "properties/value0/searchAds360Links/value1", path + end + end + + def test_subproperty_event_filter_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.subproperty_event_filter_path property: "value0", sub_property_event_filter: "value1" + assert_equal "properties/value0/subpropertyEventFilters/value1", path + end + end + + def test_subproperty_sync_config_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.subproperty_sync_config_path property: "value0", subproperty_sync_config: "value1" + assert_equal "properties/value0/subpropertySyncConfigs/value1", path + end + end + + def test_user_provided_data_settings_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.user_provided_data_settings_path property: "value0" + assert_equal "properties/value0/userProvidedDataSettings", path + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb b/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb new file mode 100644 index 000000000000..2f362e2eb9be --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb @@ -0,0 +1,8664 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/analytics/admin/v1alpha/analytics_admin_pb" +require "google/analytics/admin/v1alpha/analytics_admin_service/rest" + + +class ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_account + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::Account.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_account_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_account_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_account_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_account({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_account name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_account ::Google::Analytics::Admin::V1alpha::GetAccountRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_account({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_account(::Google::Analytics::Admin::V1alpha::GetAccountRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_account_client_stub.call_count + end + end + end + + def test_list_accounts + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListAccountsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + page_size = 42 + page_token = "hello world" + show_deleted = true + + list_accounts_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_accounts_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_accounts_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_accounts({ page_size: page_size, page_token: page_token, show_deleted: show_deleted }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_accounts page_size: page_size, page_token: page_token, show_deleted: show_deleted do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_accounts ::Google::Analytics::Admin::V1alpha::ListAccountsRequest.new(page_size: page_size, page_token: page_token, show_deleted: show_deleted) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_accounts({ page_size: page_size, page_token: page_token, show_deleted: show_deleted }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_accounts(::Google::Analytics::Admin::V1alpha::ListAccountsRequest.new(page_size: page_size, page_token: page_token, show_deleted: show_deleted), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_accounts_client_stub.call_count + end + end + end + + def test_delete_account + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_account_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_account_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_account_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_account({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_account name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_account ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_account({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_account(::Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_account_client_stub.call_count + end + end + end + + def test_update_account + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::Account.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + account = {} + update_mask = {} + + update_account_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_account_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_account_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_account({ account: account, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_account account: account, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_account ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new(account: account, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_account({ account: account, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_account(::Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new(account: account, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_account_client_stub.call_count + end + end + end + + def test_provision_account_ticket + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + account = {} + redirect_uri = "hello world" + + provision_account_ticket_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_provision_account_ticket_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, provision_account_ticket_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.provision_account_ticket({ account: account, redirect_uri: redirect_uri }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.provision_account_ticket account: account, redirect_uri: redirect_uri do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.provision_account_ticket ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new(account: account, redirect_uri: redirect_uri) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.provision_account_ticket({ account: account, redirect_uri: redirect_uri }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.provision_account_ticket(::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new(account: account, redirect_uri: redirect_uri), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, provision_account_ticket_client_stub.call_count + end + end + end + + def test_list_account_summaries + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + page_size = 42 + page_token = "hello world" + + list_account_summaries_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_account_summaries_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_account_summaries_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_account_summaries({ page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_account_summaries page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_account_summaries ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new(page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_account_summaries({ page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_account_summaries(::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new(page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_account_summaries_client_stub.call_count + end + end + end + + def test_get_property + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::Property.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_property_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_property_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_property_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_property({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_property name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_property ::Google::Analytics::Admin::V1alpha::GetPropertyRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_property({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_property(::Google::Analytics::Admin::V1alpha::GetPropertyRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_property_client_stub.call_count + end + end + end + + def test_list_properties + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListPropertiesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + filter = "hello world" + page_size = 42 + page_token = "hello world" + show_deleted = true + + list_properties_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_properties_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_properties_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_properties({ filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_properties filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_properties ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new(filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_properties({ filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_properties(::Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new(filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_properties_client_stub.call_count + end + end + end + + def test_create_property + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::Property.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + property = {} + + create_property_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_property_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_property_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_property({ property: property }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_property property: property do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_property ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new(property: property) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_property({ property: property }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_property(::Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new(property: property), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_property_client_stub.call_count + end + end + end + + def test_delete_property + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::Property.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_property_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_property_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_property_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_property({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_property name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_property ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_property({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_property(::Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_property_client_stub.call_count + end + end + end + + def test_update_property + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::Property.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + property = {} + update_mask = {} + + update_property_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_property_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_property_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_property({ property: property, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_property property: property, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_property ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new(property: property, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_property({ property: property, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_property(::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new(property: property, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_property_client_stub.call_count + end + end + end + + def test_create_firebase_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::FirebaseLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + firebase_link = {} + + create_firebase_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_firebase_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_firebase_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_firebase_link({ parent: parent, firebase_link: firebase_link }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_firebase_link parent: parent, firebase_link: firebase_link do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_firebase_link ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new(parent: parent, firebase_link: firebase_link) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_firebase_link({ parent: parent, firebase_link: firebase_link }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_firebase_link(::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new(parent: parent, firebase_link: firebase_link), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_firebase_link_client_stub.call_count + end + end + end + + def test_delete_firebase_link + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_firebase_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_firebase_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_firebase_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_firebase_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_firebase_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_firebase_link ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_firebase_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_firebase_link(::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_firebase_link_client_stub.call_count + end + end + end + + def test_list_firebase_links + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_firebase_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_firebase_links_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_firebase_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_firebase_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_firebase_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_firebase_links ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_firebase_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_firebase_links(::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_firebase_links_client_stub.call_count + end + end + end + + def test_get_global_site_tag + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::GlobalSiteTag.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_global_site_tag_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_global_site_tag_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_global_site_tag_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_global_site_tag({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_global_site_tag name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_global_site_tag ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_global_site_tag({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_global_site_tag(::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_global_site_tag_client_stub.call_count + end + end + end + + def test_create_google_ads_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + google_ads_link = {} + + create_google_ads_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_google_ads_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_google_ads_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_google_ads_link({ parent: parent, google_ads_link: google_ads_link }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_google_ads_link parent: parent, google_ads_link: google_ads_link do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_google_ads_link ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new(parent: parent, google_ads_link: google_ads_link) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_google_ads_link({ parent: parent, google_ads_link: google_ads_link }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_google_ads_link(::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new(parent: parent, google_ads_link: google_ads_link), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_google_ads_link_client_stub.call_count + end + end + end + + def test_update_google_ads_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + google_ads_link = {} + update_mask = {} + + update_google_ads_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_google_ads_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_google_ads_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_google_ads_link({ google_ads_link: google_ads_link, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_google_ads_link google_ads_link: google_ads_link, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_google_ads_link ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new(google_ads_link: google_ads_link, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_google_ads_link({ google_ads_link: google_ads_link, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_google_ads_link(::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new(google_ads_link: google_ads_link, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_google_ads_link_client_stub.call_count + end + end + end + + def test_delete_google_ads_link + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_google_ads_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_google_ads_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_google_ads_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_google_ads_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_google_ads_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_google_ads_link ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_google_ads_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_google_ads_link(::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_google_ads_link_client_stub.call_count + end + end + end + + def test_list_google_ads_links + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_google_ads_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_google_ads_links_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_google_ads_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_google_ads_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_google_ads_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_google_ads_links ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_google_ads_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_google_ads_links(::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_google_ads_links_client_stub.call_count + end + end + end + + def test_get_data_sharing_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DataSharingSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_data_sharing_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_data_sharing_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_data_sharing_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_data_sharing_settings({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_data_sharing_settings name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_data_sharing_settings ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_data_sharing_settings({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_data_sharing_settings(::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_data_sharing_settings_client_stub.call_count + end + end + end + + def test_get_measurement_protocol_secret + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_measurement_protocol_secret_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_measurement_protocol_secret_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_measurement_protocol_secret_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_measurement_protocol_secret({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_measurement_protocol_secret name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_measurement_protocol_secret({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_measurement_protocol_secret_client_stub.call_count + end + end + end + + def test_list_measurement_protocol_secrets + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_measurement_protocol_secrets_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_measurement_protocol_secrets_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_measurement_protocol_secrets_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_measurement_protocol_secrets({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_measurement_protocol_secrets parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_measurement_protocol_secrets ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_measurement_protocol_secrets({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_measurement_protocol_secrets(::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_measurement_protocol_secrets_client_stub.call_count + end + end + end + + def test_create_measurement_protocol_secret + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + measurement_protocol_secret = {} + + create_measurement_protocol_secret_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_measurement_protocol_secret_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_measurement_protocol_secret_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_measurement_protocol_secret({ parent: parent, measurement_protocol_secret: measurement_protocol_secret }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_measurement_protocol_secret parent: parent, measurement_protocol_secret: measurement_protocol_secret do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new(parent: parent, measurement_protocol_secret: measurement_protocol_secret) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_measurement_protocol_secret({ parent: parent, measurement_protocol_secret: measurement_protocol_secret }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new(parent: parent, measurement_protocol_secret: measurement_protocol_secret), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_measurement_protocol_secret_client_stub.call_count + end + end + end + + def test_delete_measurement_protocol_secret + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_measurement_protocol_secret_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_measurement_protocol_secret_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_measurement_protocol_secret_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_measurement_protocol_secret({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_measurement_protocol_secret name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_measurement_protocol_secret({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_measurement_protocol_secret_client_stub.call_count + end + end + end + + def test_update_measurement_protocol_secret + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + measurement_protocol_secret = {} + update_mask = {} + + update_measurement_protocol_secret_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_measurement_protocol_secret_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_measurement_protocol_secret_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_measurement_protocol_secret({ measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_measurement_protocol_secret measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new(measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_measurement_protocol_secret({ measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new(measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_measurement_protocol_secret_client_stub.call_count + end + end + end + + def test_acknowledge_user_data_collection + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + property = "hello world" + acknowledgement = "hello world" + + acknowledge_user_data_collection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_acknowledge_user_data_collection_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, acknowledge_user_data_collection_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.acknowledge_user_data_collection({ property: property, acknowledgement: acknowledgement }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.acknowledge_user_data_collection property: property, acknowledgement: acknowledgement do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.acknowledge_user_data_collection ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new(property: property, acknowledgement: acknowledgement) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.acknowledge_user_data_collection({ property: property, acknowledgement: acknowledgement }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.acknowledge_user_data_collection(::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new(property: property, acknowledgement: acknowledgement), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, acknowledge_user_data_collection_client_stub.call_count + end + end + end + + def test_get_sk_ad_network_conversion_value_schema + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_sk_ad_network_conversion_value_schema_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_sk_ad_network_conversion_value_schema_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_sk_ad_network_conversion_value_schema({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_sk_ad_network_conversion_value_schema name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_sk_ad_network_conversion_value_schema({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_sk_ad_network_conversion_value_schema_client_stub.call_count + end + end + end + + def test_create_sk_ad_network_conversion_value_schema + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + skadnetwork_conversion_value_schema = {} + + create_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_sk_ad_network_conversion_value_schema_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_sk_ad_network_conversion_value_schema_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_sk_ad_network_conversion_value_schema({ parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_sk_ad_network_conversion_value_schema parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new(parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_sk_ad_network_conversion_value_schema({ parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new(parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_sk_ad_network_conversion_value_schema_client_stub.call_count + end + end + end + + def test_delete_sk_ad_network_conversion_value_schema + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_sk_ad_network_conversion_value_schema_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_sk_ad_network_conversion_value_schema_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_sk_ad_network_conversion_value_schema({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_sk_ad_network_conversion_value_schema name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_sk_ad_network_conversion_value_schema({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_sk_ad_network_conversion_value_schema_client_stub.call_count + end + end + end + + def test_update_sk_ad_network_conversion_value_schema + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + skadnetwork_conversion_value_schema = {} + update_mask = {} + + update_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_sk_ad_network_conversion_value_schema_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_sk_ad_network_conversion_value_schema_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_sk_ad_network_conversion_value_schema({ skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_sk_ad_network_conversion_value_schema skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new(skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_sk_ad_network_conversion_value_schema({ skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new(skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_sk_ad_network_conversion_value_schema_client_stub.call_count + end + end + end + + def test_list_sk_ad_network_conversion_value_schemas + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_sk_ad_network_conversion_value_schemas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_sk_ad_network_conversion_value_schemas_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_sk_ad_network_conversion_value_schemas_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_sk_ad_network_conversion_value_schemas({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_sk_ad_network_conversion_value_schemas parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_sk_ad_network_conversion_value_schemas ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_sk_ad_network_conversion_value_schemas({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_sk_ad_network_conversion_value_schemas(::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_sk_ad_network_conversion_value_schemas_client_stub.call_count + end + end + end + + def test_search_change_history_events + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + account = "hello world" + property = "hello world" + resource_type = [:CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED] + action = [:ACTION_TYPE_UNSPECIFIED] + actor_email = ["hello world"] + earliest_change_time = {} + latest_change_time = {} + page_size = 42 + page_token = "hello world" + + search_change_history_events_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_search_change_history_events_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, search_change_history_events_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.search_change_history_events({ account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.search_change_history_events account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.search_change_history_events ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new(account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.search_change_history_events({ account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.search_change_history_events(::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new(account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, search_change_history_events_client_stub.call_count + end + end + end + + def test_get_google_signals_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_google_signals_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_google_signals_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_google_signals_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_google_signals_settings({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_google_signals_settings name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_google_signals_settings ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_google_signals_settings({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_google_signals_settings(::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_google_signals_settings_client_stub.call_count + end + end + end + + def test_update_google_signals_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + google_signals_settings = {} + update_mask = {} + + update_google_signals_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_google_signals_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_google_signals_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_google_signals_settings({ google_signals_settings: google_signals_settings, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_google_signals_settings google_signals_settings: google_signals_settings, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_google_signals_settings ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new(google_signals_settings: google_signals_settings, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_google_signals_settings({ google_signals_settings: google_signals_settings, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_google_signals_settings(::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new(google_signals_settings: google_signals_settings, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_google_signals_settings_client_stub.call_count + end + end + end + + def test_create_conversion_event + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + conversion_event = {} + parent = "hello world" + + create_conversion_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_conversion_event_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_conversion_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_conversion_event({ conversion_event: conversion_event, parent: parent }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_conversion_event conversion_event: conversion_event, parent: parent do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_conversion_event ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new(conversion_event: conversion_event, parent: parent) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_conversion_event({ conversion_event: conversion_event, parent: parent }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_conversion_event(::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new(conversion_event: conversion_event, parent: parent), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_conversion_event_client_stub.call_count + end + end + end + + def test_update_conversion_event + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + conversion_event = {} + update_mask = {} + + update_conversion_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_conversion_event_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_conversion_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_conversion_event({ conversion_event: conversion_event, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_conversion_event conversion_event: conversion_event, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_conversion_event ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new(conversion_event: conversion_event, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_conversion_event({ conversion_event: conversion_event, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_conversion_event(::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new(conversion_event: conversion_event, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_conversion_event_client_stub.call_count + end + end + end + + def test_get_conversion_event + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_conversion_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_conversion_event_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_conversion_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_conversion_event({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_conversion_event name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_conversion_event ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_conversion_event({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_conversion_event(::Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_conversion_event_client_stub.call_count + end + end + end + + def test_delete_conversion_event + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_conversion_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_conversion_event_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_conversion_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_conversion_event({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_conversion_event name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_conversion_event ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_conversion_event({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_conversion_event(::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_conversion_event_client_stub.call_count + end + end + end + + def test_list_conversion_events + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_conversion_events_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_conversion_events_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_conversion_events_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_conversion_events({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_conversion_events parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_conversion_events ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_conversion_events({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_conversion_events(::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_conversion_events_client_stub.call_count + end + end + end + + def test_create_key_event + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::KeyEvent.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + key_event = {} + parent = "hello world" + + create_key_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_key_event_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_key_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_key_event({ key_event: key_event, parent: parent }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_key_event key_event: key_event, parent: parent do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_key_event ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new(key_event: key_event, parent: parent) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_key_event({ key_event: key_event, parent: parent }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_key_event(::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new(key_event: key_event, parent: parent), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_key_event_client_stub.call_count + end + end + end + + def test_update_key_event + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::KeyEvent.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + key_event = {} + update_mask = {} + + update_key_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_key_event_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_key_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_key_event({ key_event: key_event, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_key_event key_event: key_event, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_key_event ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new(key_event: key_event, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_key_event({ key_event: key_event, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_key_event(::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new(key_event: key_event, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_key_event_client_stub.call_count + end + end + end + + def test_get_key_event + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::KeyEvent.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_key_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_key_event_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_key_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_key_event({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_key_event name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_key_event ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_key_event({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_key_event(::Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_key_event_client_stub.call_count + end + end + end + + def test_delete_key_event + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_key_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_key_event_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_key_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_key_event({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_key_event name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_key_event ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_key_event({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_key_event(::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_key_event_client_stub.call_count + end + end + end + + def test_list_key_events + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_key_events_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_key_events_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_key_events_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_key_events({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_key_events parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_key_events ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_key_events({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_key_events(::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_key_events_client_stub.call_count + end + end + end + + def test_get_display_video360_advertiser_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_display_video360_advertiser_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_display_video360_advertiser_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_display_video360_advertiser_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_display_video360_advertiser_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_display_video360_advertiser_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_display_video360_advertiser_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_display_video360_advertiser_link_client_stub.call_count + end + end + end + + def test_list_display_video360_advertiser_links + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_display_video360_advertiser_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_display_video360_advertiser_links_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_display_video360_advertiser_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_display_video360_advertiser_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_display_video360_advertiser_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_display_video360_advertiser_links ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_display_video360_advertiser_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_display_video360_advertiser_links(::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_display_video360_advertiser_links_client_stub.call_count + end + end + end + + def test_create_display_video360_advertiser_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + display_video_360_advertiser_link = {} + + create_display_video360_advertiser_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_display_video360_advertiser_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_display_video360_advertiser_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_display_video360_advertiser_link({ parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_display_video360_advertiser_link parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new(parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_display_video360_advertiser_link({ parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new(parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_display_video360_advertiser_link_client_stub.call_count + end + end + end + + def test_delete_display_video360_advertiser_link + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_display_video360_advertiser_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_display_video360_advertiser_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_display_video360_advertiser_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_display_video360_advertiser_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_display_video360_advertiser_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_display_video360_advertiser_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_display_video360_advertiser_link_client_stub.call_count + end + end + end + + def test_update_display_video360_advertiser_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + display_video_360_advertiser_link = {} + update_mask = {} + + update_display_video360_advertiser_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_display_video360_advertiser_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_display_video360_advertiser_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_display_video360_advertiser_link({ display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_display_video360_advertiser_link display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new(display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_display_video360_advertiser_link({ display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new(display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_display_video360_advertiser_link_client_stub.call_count + end + end + end + + def test_get_display_video360_advertiser_link_proposal + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_display_video360_advertiser_link_proposal_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_display_video360_advertiser_link_proposal_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_display_video360_advertiser_link_proposal_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_display_video360_advertiser_link_proposal({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_display_video360_advertiser_link_proposal name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_display_video360_advertiser_link_proposal({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_display_video360_advertiser_link_proposal_client_stub.call_count + end + end + end + + def test_list_display_video360_advertiser_link_proposals + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_display_video360_advertiser_link_proposals_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_display_video360_advertiser_link_proposals_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_display_video360_advertiser_link_proposals_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_display_video360_advertiser_link_proposals({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_display_video360_advertiser_link_proposals parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_display_video360_advertiser_link_proposals ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_display_video360_advertiser_link_proposals({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_display_video360_advertiser_link_proposals(::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_display_video360_advertiser_link_proposals_client_stub.call_count + end + end + end + + def test_create_display_video360_advertiser_link_proposal + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + display_video_360_advertiser_link_proposal = {} + + create_display_video360_advertiser_link_proposal_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_display_video360_advertiser_link_proposal_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_display_video360_advertiser_link_proposal_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_display_video360_advertiser_link_proposal({ parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_display_video360_advertiser_link_proposal parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new(parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_display_video360_advertiser_link_proposal({ parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new(parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_display_video360_advertiser_link_proposal_client_stub.call_count + end + end + end + + def test_delete_display_video360_advertiser_link_proposal + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_display_video360_advertiser_link_proposal_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_display_video360_advertiser_link_proposal_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_display_video360_advertiser_link_proposal_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_display_video360_advertiser_link_proposal({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_display_video360_advertiser_link_proposal name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_display_video360_advertiser_link_proposal({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_display_video360_advertiser_link_proposal_client_stub.call_count + end + end + end + + def test_approve_display_video360_advertiser_link_proposal + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + approve_display_video360_advertiser_link_proposal_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_approve_display_video360_advertiser_link_proposal_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, approve_display_video360_advertiser_link_proposal_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.approve_display_video360_advertiser_link_proposal({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.approve_display_video360_advertiser_link_proposal name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.approve_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.approve_display_video360_advertiser_link_proposal({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.approve_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, approve_display_video360_advertiser_link_proposal_client_stub.call_count + end + end + end + + def test_cancel_display_video360_advertiser_link_proposal + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_display_video360_advertiser_link_proposal_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_cancel_display_video360_advertiser_link_proposal_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, cancel_display_video360_advertiser_link_proposal_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.cancel_display_video360_advertiser_link_proposal({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.cancel_display_video360_advertiser_link_proposal name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.cancel_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.cancel_display_video360_advertiser_link_proposal({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.cancel_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, cancel_display_video360_advertiser_link_proposal_client_stub.call_count + end + end + end + + def test_create_custom_dimension + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::CustomDimension.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + custom_dimension = {} + + create_custom_dimension_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_custom_dimension_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_custom_dimension_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_custom_dimension({ parent: parent, custom_dimension: custom_dimension }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_custom_dimension parent: parent, custom_dimension: custom_dimension do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_custom_dimension ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new(parent: parent, custom_dimension: custom_dimension) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_custom_dimension({ parent: parent, custom_dimension: custom_dimension }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_custom_dimension(::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new(parent: parent, custom_dimension: custom_dimension), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_custom_dimension_client_stub.call_count + end + end + end + + def test_update_custom_dimension + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::CustomDimension.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + custom_dimension = {} + update_mask = {} + + update_custom_dimension_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_custom_dimension_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_custom_dimension_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_custom_dimension({ custom_dimension: custom_dimension, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_custom_dimension custom_dimension: custom_dimension, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_custom_dimension ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new(custom_dimension: custom_dimension, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_custom_dimension({ custom_dimension: custom_dimension, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_custom_dimension(::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new(custom_dimension: custom_dimension, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_custom_dimension_client_stub.call_count + end + end + end + + def test_list_custom_dimensions + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_custom_dimensions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_custom_dimensions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_custom_dimensions_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_custom_dimensions({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_custom_dimensions parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_custom_dimensions ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_custom_dimensions({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_custom_dimensions(::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_custom_dimensions_client_stub.call_count + end + end + end + + def test_archive_custom_dimension + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + archive_custom_dimension_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_archive_custom_dimension_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, archive_custom_dimension_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.archive_custom_dimension({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.archive_custom_dimension name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.archive_custom_dimension ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.archive_custom_dimension({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.archive_custom_dimension(::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, archive_custom_dimension_client_stub.call_count + end + end + end + + def test_get_custom_dimension + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::CustomDimension.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_custom_dimension_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_custom_dimension_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_custom_dimension_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_custom_dimension({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_custom_dimension name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_custom_dimension ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_custom_dimension({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_custom_dimension(::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_custom_dimension_client_stub.call_count + end + end + end + + def test_create_custom_metric + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::CustomMetric.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + custom_metric = {} + + create_custom_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_custom_metric_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_custom_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_custom_metric({ parent: parent, custom_metric: custom_metric }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_custom_metric parent: parent, custom_metric: custom_metric do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_custom_metric ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new(parent: parent, custom_metric: custom_metric) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_custom_metric({ parent: parent, custom_metric: custom_metric }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_custom_metric(::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new(parent: parent, custom_metric: custom_metric), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_custom_metric_client_stub.call_count + end + end + end + + def test_update_custom_metric + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::CustomMetric.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + custom_metric = {} + update_mask = {} + + update_custom_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_custom_metric_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_custom_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_custom_metric({ custom_metric: custom_metric, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_custom_metric custom_metric: custom_metric, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_custom_metric ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new(custom_metric: custom_metric, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_custom_metric({ custom_metric: custom_metric, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_custom_metric(::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new(custom_metric: custom_metric, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_custom_metric_client_stub.call_count + end + end + end + + def test_list_custom_metrics + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_custom_metrics_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_custom_metrics_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_custom_metrics_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_custom_metrics({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_custom_metrics parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_custom_metrics ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_custom_metrics({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_custom_metrics(::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_custom_metrics_client_stub.call_count + end + end + end + + def test_archive_custom_metric + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + archive_custom_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_archive_custom_metric_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, archive_custom_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.archive_custom_metric({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.archive_custom_metric name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.archive_custom_metric ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.archive_custom_metric({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.archive_custom_metric(::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, archive_custom_metric_client_stub.call_count + end + end + end + + def test_get_custom_metric + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::CustomMetric.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_custom_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_custom_metric_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_custom_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_custom_metric({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_custom_metric name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_custom_metric ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_custom_metric({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_custom_metric(::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_custom_metric_client_stub.call_count + end + end + end + + def test_get_data_retention_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_data_retention_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_data_retention_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_data_retention_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_data_retention_settings({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_data_retention_settings name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_data_retention_settings ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_data_retention_settings({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_data_retention_settings(::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_data_retention_settings_client_stub.call_count + end + end + end + + def test_update_data_retention_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + data_retention_settings = {} + update_mask = {} + + update_data_retention_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_data_retention_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_data_retention_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_data_retention_settings({ data_retention_settings: data_retention_settings, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_data_retention_settings data_retention_settings: data_retention_settings, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_data_retention_settings ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new(data_retention_settings: data_retention_settings, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_data_retention_settings({ data_retention_settings: data_retention_settings, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_data_retention_settings(::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new(data_retention_settings: data_retention_settings, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_data_retention_settings_client_stub.call_count + end + end + end + + def test_create_data_stream + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DataStream.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + data_stream = {} + + create_data_stream_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_data_stream_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_data_stream_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_data_stream({ parent: parent, data_stream: data_stream }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_data_stream parent: parent, data_stream: data_stream do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_data_stream ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new(parent: parent, data_stream: data_stream) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_data_stream({ parent: parent, data_stream: data_stream }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_data_stream(::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new(parent: parent, data_stream: data_stream), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_data_stream_client_stub.call_count + end + end + end + + def test_delete_data_stream + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_data_stream_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_data_stream_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_data_stream_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_data_stream({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_data_stream name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_data_stream ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_data_stream({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_data_stream(::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_data_stream_client_stub.call_count + end + end + end + + def test_update_data_stream + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DataStream.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + data_stream = {} + update_mask = {} + + update_data_stream_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_data_stream_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_data_stream_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_data_stream({ data_stream: data_stream, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_data_stream data_stream: data_stream, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_data_stream ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new(data_stream: data_stream, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_data_stream({ data_stream: data_stream, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_data_stream(::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new(data_stream: data_stream, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_data_stream_client_stub.call_count + end + end + end + + def test_list_data_streams + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_data_streams_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_data_streams_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_data_streams_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_data_streams({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_data_streams parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_data_streams ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_data_streams({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_data_streams(::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_data_streams_client_stub.call_count + end + end + end + + def test_get_data_stream + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DataStream.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_data_stream_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_data_stream_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_data_stream_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_data_stream({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_data_stream name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_data_stream ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_data_stream({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_data_stream(::Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_data_stream_client_stub.call_count + end + end + end + + def test_get_audience + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::Audience.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_audience_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_audience_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_audience_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_audience({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_audience name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_audience ::Google::Analytics::Admin::V1alpha::GetAudienceRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_audience({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_audience(::Google::Analytics::Admin::V1alpha::GetAudienceRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_audience_client_stub.call_count + end + end + end + + def test_list_audiences + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListAudiencesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_audiences_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_audiences_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_audiences_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_audiences({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_audiences parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_audiences ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_audiences({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_audiences(::Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_audiences_client_stub.call_count + end + end + end + + def test_create_audience + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::Audience.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + audience = {} + + create_audience_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_audience_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_audience_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_audience({ parent: parent, audience: audience }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_audience parent: parent, audience: audience do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_audience ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new(parent: parent, audience: audience) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_audience({ parent: parent, audience: audience }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_audience(::Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new(parent: parent, audience: audience), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_audience_client_stub.call_count + end + end + end + + def test_update_audience + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::Audience.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + audience = {} + update_mask = {} + + update_audience_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_audience_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_audience_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_audience({ audience: audience, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_audience audience: audience, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_audience ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new(audience: audience, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_audience({ audience: audience, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_audience(::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new(audience: audience, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_audience_client_stub.call_count + end + end + end + + def test_archive_audience + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + archive_audience_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_archive_audience_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, archive_audience_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.archive_audience({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.archive_audience name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.archive_audience ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.archive_audience({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.archive_audience(::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, archive_audience_client_stub.call_count + end + end + end + + def test_get_search_ads360_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_search_ads360_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_search_ads360_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_search_ads360_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_search_ads360_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_search_ads360_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_search_ads360_link ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_search_ads360_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_search_ads360_link(::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_search_ads360_link_client_stub.call_count + end + end + end + + def test_list_search_ads360_links + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_search_ads360_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_search_ads360_links_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_search_ads360_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_search_ads360_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_search_ads360_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_search_ads360_links ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_search_ads360_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_search_ads360_links(::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_search_ads360_links_client_stub.call_count + end + end + end + + def test_create_search_ads360_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + search_ads_360_link = {} + + create_search_ads360_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_search_ads360_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_search_ads360_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_search_ads360_link({ parent: parent, search_ads_360_link: search_ads_360_link }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_search_ads360_link parent: parent, search_ads_360_link: search_ads_360_link do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_search_ads360_link ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new(parent: parent, search_ads_360_link: search_ads_360_link) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_search_ads360_link({ parent: parent, search_ads_360_link: search_ads_360_link }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_search_ads360_link(::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new(parent: parent, search_ads_360_link: search_ads_360_link), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_search_ads360_link_client_stub.call_count + end + end + end + + def test_delete_search_ads360_link + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_search_ads360_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_search_ads360_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_search_ads360_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_search_ads360_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_search_ads360_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_search_ads360_link ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_search_ads360_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_search_ads360_link(::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_search_ads360_link_client_stub.call_count + end + end + end + + def test_update_search_ads360_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + search_ads_360_link = {} + update_mask = {} + + update_search_ads360_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_search_ads360_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_search_ads360_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_search_ads360_link({ search_ads_360_link: search_ads_360_link, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_search_ads360_link search_ads_360_link: search_ads_360_link, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_search_ads360_link ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new(search_ads_360_link: search_ads_360_link, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_search_ads360_link({ search_ads_360_link: search_ads_360_link, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_search_ads360_link(::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new(search_ads_360_link: search_ads_360_link, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_search_ads360_link_client_stub.call_count + end + end + end + + def test_get_attribution_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::AttributionSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_attribution_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_attribution_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_attribution_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_attribution_settings({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_attribution_settings name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_attribution_settings ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_attribution_settings({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_attribution_settings(::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_attribution_settings_client_stub.call_count + end + end + end + + def test_update_attribution_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::AttributionSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + attribution_settings = {} + update_mask = {} + + update_attribution_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_attribution_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_attribution_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_attribution_settings({ attribution_settings: attribution_settings, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_attribution_settings attribution_settings: attribution_settings, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_attribution_settings ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new(attribution_settings: attribution_settings, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_attribution_settings({ attribution_settings: attribution_settings, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_attribution_settings(::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new(attribution_settings: attribution_settings, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_attribution_settings_client_stub.call_count + end + end + end + + def test_run_access_report + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::RunAccessReportResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + entity = "hello world" + dimensions = [{}] + metrics = [{}] + date_ranges = [{}] + dimension_filter = {} + metric_filter = {} + offset = 42 + limit = 42 + time_zone = "hello world" + order_bys = [{}] + return_entity_quota = true + include_all_users = true + expand_groups = true + + run_access_report_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_run_access_report_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, run_access_report_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.run_access_report({ entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.run_access_report entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.run_access_report ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new(entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.run_access_report({ entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.run_access_report(::Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new(entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, run_access_report_client_stub.call_count + end + end + end + + def test_create_access_binding + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::AccessBinding.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + access_binding = {} + + create_access_binding_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_access_binding_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_access_binding_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_access_binding({ parent: parent, access_binding: access_binding }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_access_binding parent: parent, access_binding: access_binding do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_access_binding ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new(parent: parent, access_binding: access_binding) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_access_binding({ parent: parent, access_binding: access_binding }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_access_binding(::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new(parent: parent, access_binding: access_binding), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_access_binding_client_stub.call_count + end + end + end + + def test_get_access_binding + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::AccessBinding.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_access_binding_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_access_binding_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_access_binding_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_access_binding({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_access_binding name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_access_binding ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_access_binding({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_access_binding(::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_access_binding_client_stub.call_count + end + end + end + + def test_update_access_binding + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::AccessBinding.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + access_binding = {} + + update_access_binding_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_access_binding_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_access_binding_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_access_binding({ access_binding: access_binding }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_access_binding access_binding: access_binding do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_access_binding ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new(access_binding: access_binding) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_access_binding({ access_binding: access_binding }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_access_binding(::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new(access_binding: access_binding), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_access_binding_client_stub.call_count + end + end + end + + def test_delete_access_binding + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_access_binding_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_access_binding_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_access_binding_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_access_binding({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_access_binding name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_access_binding ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_access_binding({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_access_binding(::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_access_binding_client_stub.call_count + end + end + end + + def test_list_access_bindings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_access_bindings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_access_bindings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_access_bindings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_access_bindings({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_access_bindings parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_access_bindings ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_access_bindings({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_access_bindings(::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_access_bindings_client_stub.call_count + end + end + end + + def test_batch_create_access_bindings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_create_access_bindings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_batch_create_access_bindings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_create_access_bindings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_create_access_bindings({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_create_access_bindings parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_create_access_bindings ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_create_access_bindings({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_create_access_bindings(::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_create_access_bindings_client_stub.call_count + end + end + end + + def test_batch_get_access_bindings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + names = ["hello world"] + + batch_get_access_bindings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_batch_get_access_bindings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_get_access_bindings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_get_access_bindings({ parent: parent, names: names }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_get_access_bindings parent: parent, names: names do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_get_access_bindings ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new(parent: parent, names: names) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_get_access_bindings({ parent: parent, names: names }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_get_access_bindings(::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new(parent: parent, names: names), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_get_access_bindings_client_stub.call_count + end + end + end + + def test_batch_update_access_bindings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_update_access_bindings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_batch_update_access_bindings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_update_access_bindings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_update_access_bindings({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_update_access_bindings parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_update_access_bindings ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_update_access_bindings({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_update_access_bindings(::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_update_access_bindings_client_stub.call_count + end + end + end + + def test_batch_delete_access_bindings + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_delete_access_bindings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_batch_delete_access_bindings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, batch_delete_access_bindings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.batch_delete_access_bindings({ parent: parent, requests: requests }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.batch_delete_access_bindings parent: parent, requests: requests do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.batch_delete_access_bindings ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new(parent: parent, requests: requests) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.batch_delete_access_bindings({ parent: parent, requests: requests }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.batch_delete_access_bindings(::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new(parent: parent, requests: requests), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, batch_delete_access_bindings_client_stub.call_count + end + end + end + + def test_get_expanded_data_set + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_expanded_data_set_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_expanded_data_set_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_expanded_data_set_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_expanded_data_set({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_expanded_data_set name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_expanded_data_set ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_expanded_data_set({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_expanded_data_set(::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_expanded_data_set_client_stub.call_count + end + end + end + + def test_list_expanded_data_sets + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_expanded_data_sets_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_expanded_data_sets_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_expanded_data_sets_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_expanded_data_sets({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_expanded_data_sets parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_expanded_data_sets ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_expanded_data_sets({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_expanded_data_sets(::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_expanded_data_sets_client_stub.call_count + end + end + end + + def test_create_expanded_data_set + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + expanded_data_set = {} + + create_expanded_data_set_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_expanded_data_set_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_expanded_data_set_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_expanded_data_set({ parent: parent, expanded_data_set: expanded_data_set }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_expanded_data_set parent: parent, expanded_data_set: expanded_data_set do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_expanded_data_set ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new(parent: parent, expanded_data_set: expanded_data_set) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_expanded_data_set({ parent: parent, expanded_data_set: expanded_data_set }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_expanded_data_set(::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new(parent: parent, expanded_data_set: expanded_data_set), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_expanded_data_set_client_stub.call_count + end + end + end + + def test_update_expanded_data_set + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + expanded_data_set = {} + update_mask = {} + + update_expanded_data_set_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_expanded_data_set_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_expanded_data_set_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_expanded_data_set({ expanded_data_set: expanded_data_set, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_expanded_data_set expanded_data_set: expanded_data_set, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_expanded_data_set ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new(expanded_data_set: expanded_data_set, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_expanded_data_set({ expanded_data_set: expanded_data_set, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_expanded_data_set(::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new(expanded_data_set: expanded_data_set, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_expanded_data_set_client_stub.call_count + end + end + end + + def test_delete_expanded_data_set + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_expanded_data_set_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_expanded_data_set_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_expanded_data_set_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_expanded_data_set({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_expanded_data_set name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_expanded_data_set ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_expanded_data_set({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_expanded_data_set(::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_expanded_data_set_client_stub.call_count + end + end + end + + def test_get_channel_group + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_channel_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_channel_group_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_channel_group_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_channel_group({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_channel_group name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_channel_group ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_channel_group({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_channel_group(::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_channel_group_client_stub.call_count + end + end + end + + def test_list_channel_groups + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_channel_groups_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_channel_groups_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_channel_groups_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_channel_groups({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_channel_groups parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_channel_groups ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_channel_groups({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_channel_groups(::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_channel_groups_client_stub.call_count + end + end + end + + def test_create_channel_group + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + channel_group = {} + + create_channel_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_channel_group_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_channel_group_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_channel_group({ parent: parent, channel_group: channel_group }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_channel_group parent: parent, channel_group: channel_group do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_channel_group ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new(parent: parent, channel_group: channel_group) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_channel_group({ parent: parent, channel_group: channel_group }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_channel_group(::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new(parent: parent, channel_group: channel_group), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_channel_group_client_stub.call_count + end + end + end + + def test_update_channel_group + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + channel_group = {} + update_mask = {} + + update_channel_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_channel_group_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_channel_group_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_channel_group({ channel_group: channel_group, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_channel_group channel_group: channel_group, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_channel_group ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new(channel_group: channel_group, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_channel_group({ channel_group: channel_group, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_channel_group(::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new(channel_group: channel_group, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_channel_group_client_stub.call_count + end + end + end + + def test_delete_channel_group + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_channel_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_channel_group_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_channel_group_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_channel_group({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_channel_group name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_channel_group ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_channel_group({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_channel_group(::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_channel_group_client_stub.call_count + end + end + end + + def test_create_big_query_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + bigquery_link = {} + + create_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_big_query_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_big_query_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_big_query_link({ parent: parent, bigquery_link: bigquery_link }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_big_query_link parent: parent, bigquery_link: bigquery_link do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_big_query_link ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new(parent: parent, bigquery_link: bigquery_link) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_big_query_link({ parent: parent, bigquery_link: bigquery_link }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_big_query_link(::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new(parent: parent, bigquery_link: bigquery_link), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_big_query_link_client_stub.call_count + end + end + end + + def test_get_big_query_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_big_query_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_big_query_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_big_query_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_big_query_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_big_query_link ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_big_query_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_big_query_link(::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_big_query_link_client_stub.call_count + end + end + end + + def test_list_big_query_links + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_big_query_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_big_query_links_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_big_query_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_big_query_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_big_query_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_big_query_links ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_big_query_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_big_query_links(::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_big_query_links_client_stub.call_count + end + end + end + + def test_delete_big_query_link + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_big_query_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_big_query_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_big_query_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_big_query_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_big_query_link ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_big_query_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_big_query_link(::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_big_query_link_client_stub.call_count + end + end + end + + def test_update_big_query_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + bigquery_link = {} + update_mask = {} + + update_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_big_query_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_big_query_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_big_query_link({ bigquery_link: bigquery_link, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_big_query_link bigquery_link: bigquery_link, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_big_query_link ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new(bigquery_link: bigquery_link, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_big_query_link({ bigquery_link: bigquery_link, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_big_query_link(::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new(bigquery_link: bigquery_link, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_big_query_link_client_stub.call_count + end + end + end + + def test_get_enhanced_measurement_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_enhanced_measurement_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_enhanced_measurement_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_enhanced_measurement_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_enhanced_measurement_settings({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_enhanced_measurement_settings name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_enhanced_measurement_settings ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_enhanced_measurement_settings({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_enhanced_measurement_settings(::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_enhanced_measurement_settings_client_stub.call_count + end + end + end + + def test_update_enhanced_measurement_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + enhanced_measurement_settings = {} + update_mask = {} + + update_enhanced_measurement_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_enhanced_measurement_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_enhanced_measurement_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_enhanced_measurement_settings({ enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_enhanced_measurement_settings enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_enhanced_measurement_settings ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new(enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_enhanced_measurement_settings({ enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_enhanced_measurement_settings(::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new(enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_enhanced_measurement_settings_client_stub.call_count + end + end + end + + def test_get_ad_sense_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::AdSenseLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_ad_sense_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_ad_sense_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_ad_sense_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_ad_sense_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_ad_sense_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_ad_sense_link ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_ad_sense_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_ad_sense_link(::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_ad_sense_link_client_stub.call_count + end + end + end + + def test_create_ad_sense_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::AdSenseLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + adsense_link = {} + + create_ad_sense_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_ad_sense_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_ad_sense_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_ad_sense_link({ parent: parent, adsense_link: adsense_link }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_ad_sense_link parent: parent, adsense_link: adsense_link do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_ad_sense_link ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new(parent: parent, adsense_link: adsense_link) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_ad_sense_link({ parent: parent, adsense_link: adsense_link }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_ad_sense_link(::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new(parent: parent, adsense_link: adsense_link), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_ad_sense_link_client_stub.call_count + end + end + end + + def test_delete_ad_sense_link + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_ad_sense_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_ad_sense_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_ad_sense_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_ad_sense_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_ad_sense_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_ad_sense_link ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_ad_sense_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_ad_sense_link(::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_ad_sense_link_client_stub.call_count + end + end + end + + def test_list_ad_sense_links + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_ad_sense_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_ad_sense_links_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_ad_sense_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_ad_sense_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_ad_sense_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_ad_sense_links ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_ad_sense_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_ad_sense_links(::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_ad_sense_links_client_stub.call_count + end + end + end + + def test_get_event_create_rule + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_event_create_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_event_create_rule_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_event_create_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_event_create_rule({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_event_create_rule name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_event_create_rule ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_event_create_rule({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_event_create_rule(::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_event_create_rule_client_stub.call_count + end + end + end + + def test_list_event_create_rules + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_event_create_rules_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_event_create_rules_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_event_create_rules_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_event_create_rules({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_event_create_rules parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_event_create_rules ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_event_create_rules({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_event_create_rules(::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_event_create_rules_client_stub.call_count + end + end + end + + def test_create_event_create_rule + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + event_create_rule = {} + + create_event_create_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_event_create_rule_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_event_create_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_event_create_rule({ parent: parent, event_create_rule: event_create_rule }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_event_create_rule parent: parent, event_create_rule: event_create_rule do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_event_create_rule ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new(parent: parent, event_create_rule: event_create_rule) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_event_create_rule({ parent: parent, event_create_rule: event_create_rule }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_event_create_rule(::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new(parent: parent, event_create_rule: event_create_rule), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_event_create_rule_client_stub.call_count + end + end + end + + def test_update_event_create_rule + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + event_create_rule = {} + update_mask = {} + + update_event_create_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_event_create_rule_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_event_create_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_event_create_rule({ event_create_rule: event_create_rule, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_event_create_rule event_create_rule: event_create_rule, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_event_create_rule ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new(event_create_rule: event_create_rule, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_event_create_rule({ event_create_rule: event_create_rule, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_event_create_rule(::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new(event_create_rule: event_create_rule, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_event_create_rule_client_stub.call_count + end + end + end + + def test_delete_event_create_rule + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_event_create_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_event_create_rule_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_event_create_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_event_create_rule({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_event_create_rule name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_event_create_rule ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_event_create_rule({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_event_create_rule(::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_event_create_rule_client_stub.call_count + end + end + end + + def test_get_event_edit_rule + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::EventEditRule.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_event_edit_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_event_edit_rule_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_event_edit_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_event_edit_rule({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_event_edit_rule name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_event_edit_rule ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_event_edit_rule({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_event_edit_rule(::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_event_edit_rule_client_stub.call_count + end + end + end + + def test_list_event_edit_rules + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_event_edit_rules_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_event_edit_rules_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_event_edit_rules_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_event_edit_rules({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_event_edit_rules parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_event_edit_rules ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_event_edit_rules({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_event_edit_rules(::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_event_edit_rules_client_stub.call_count + end + end + end + + def test_create_event_edit_rule + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::EventEditRule.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + event_edit_rule = {} + + create_event_edit_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_event_edit_rule_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_event_edit_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_event_edit_rule({ parent: parent, event_edit_rule: event_edit_rule }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_event_edit_rule parent: parent, event_edit_rule: event_edit_rule do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_event_edit_rule ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new(parent: parent, event_edit_rule: event_edit_rule) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_event_edit_rule({ parent: parent, event_edit_rule: event_edit_rule }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_event_edit_rule(::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new(parent: parent, event_edit_rule: event_edit_rule), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_event_edit_rule_client_stub.call_count + end + end + end + + def test_update_event_edit_rule + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::EventEditRule.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + event_edit_rule = {} + update_mask = {} + + update_event_edit_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_event_edit_rule_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_event_edit_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_event_edit_rule({ event_edit_rule: event_edit_rule, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_event_edit_rule event_edit_rule: event_edit_rule, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_event_edit_rule ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new(event_edit_rule: event_edit_rule, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_event_edit_rule({ event_edit_rule: event_edit_rule, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_event_edit_rule(::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new(event_edit_rule: event_edit_rule, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_event_edit_rule_client_stub.call_count + end + end + end + + def test_delete_event_edit_rule + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_event_edit_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_event_edit_rule_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_event_edit_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_event_edit_rule({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_event_edit_rule name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_event_edit_rule ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_event_edit_rule({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_event_edit_rule(::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_event_edit_rule_client_stub.call_count + end + end + end + + def test_reorder_event_edit_rules + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + event_edit_rules = ["hello world"] + + reorder_event_edit_rules_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_reorder_event_edit_rules_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, reorder_event_edit_rules_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.reorder_event_edit_rules({ parent: parent, event_edit_rules: event_edit_rules }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.reorder_event_edit_rules parent: parent, event_edit_rules: event_edit_rules do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.reorder_event_edit_rules ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new(parent: parent, event_edit_rules: event_edit_rules) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.reorder_event_edit_rules({ parent: parent, event_edit_rules: event_edit_rules }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.reorder_event_edit_rules(::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new(parent: parent, event_edit_rules: event_edit_rules), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, reorder_event_edit_rules_client_stub.call_count + end + end + end + + def test_update_data_redaction_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + data_redaction_settings = {} + update_mask = {} + + update_data_redaction_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_data_redaction_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_data_redaction_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_data_redaction_settings({ data_redaction_settings: data_redaction_settings, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_data_redaction_settings data_redaction_settings: data_redaction_settings, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_data_redaction_settings ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new(data_redaction_settings: data_redaction_settings, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_data_redaction_settings({ data_redaction_settings: data_redaction_settings, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_data_redaction_settings(::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new(data_redaction_settings: data_redaction_settings, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_data_redaction_settings_client_stub.call_count + end + end + end + + def test_get_data_redaction_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_data_redaction_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_data_redaction_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_data_redaction_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_data_redaction_settings({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_data_redaction_settings name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_data_redaction_settings ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_data_redaction_settings({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_data_redaction_settings(::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_data_redaction_settings_client_stub.call_count + end + end + end + + def test_get_calculated_metric + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_calculated_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_calculated_metric_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_calculated_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_calculated_metric({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_calculated_metric name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_calculated_metric ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_calculated_metric({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_calculated_metric(::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_calculated_metric_client_stub.call_count + end + end + end + + def test_create_calculated_metric + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + calculated_metric_id = "hello world" + calculated_metric = {} + + create_calculated_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_calculated_metric_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_calculated_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_calculated_metric({ parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_calculated_metric parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_calculated_metric ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new(parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_calculated_metric({ parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_calculated_metric(::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new(parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_calculated_metric_client_stub.call_count + end + end + end + + def test_list_calculated_metrics + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_calculated_metrics_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_calculated_metrics_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_calculated_metrics_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_calculated_metrics({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_calculated_metrics parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_calculated_metrics ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_calculated_metrics({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_calculated_metrics(::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_calculated_metrics_client_stub.call_count + end + end + end + + def test_update_calculated_metric + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + calculated_metric = {} + update_mask = {} + + update_calculated_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_calculated_metric_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_calculated_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_calculated_metric({ calculated_metric: calculated_metric, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_calculated_metric calculated_metric: calculated_metric, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_calculated_metric ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new(calculated_metric: calculated_metric, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_calculated_metric({ calculated_metric: calculated_metric, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_calculated_metric(::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new(calculated_metric: calculated_metric, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_calculated_metric_client_stub.call_count + end + end + end + + def test_delete_calculated_metric + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_calculated_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_calculated_metric_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_calculated_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_calculated_metric({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_calculated_metric name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_calculated_metric ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_calculated_metric({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_calculated_metric(::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_calculated_metric_client_stub.call_count + end + end + end + + def test_create_rollup_property + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + rollup_property = {} + source_properties = ["hello world"] + + create_rollup_property_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_rollup_property_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_rollup_property_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_rollup_property({ rollup_property: rollup_property, source_properties: source_properties }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_rollup_property rollup_property: rollup_property, source_properties: source_properties do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_rollup_property ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new(rollup_property: rollup_property, source_properties: source_properties) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_rollup_property({ rollup_property: rollup_property, source_properties: source_properties }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_rollup_property(::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new(rollup_property: rollup_property, source_properties: source_properties), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_rollup_property_client_stub.call_count + end + end + end + + def test_get_rollup_property_source_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_rollup_property_source_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_rollup_property_source_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_rollup_property_source_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_rollup_property_source_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_rollup_property_source_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_rollup_property_source_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_rollup_property_source_link_client_stub.call_count + end + end + end + + def test_list_rollup_property_source_links + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_rollup_property_source_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_rollup_property_source_links_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_rollup_property_source_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_rollup_property_source_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_rollup_property_source_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_rollup_property_source_links ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_rollup_property_source_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_rollup_property_source_links(::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_rollup_property_source_links_client_stub.call_count + end + end + end + + def test_create_rollup_property_source_link + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + rollup_property_source_link = {} + + create_rollup_property_source_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_rollup_property_source_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_rollup_property_source_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_rollup_property_source_link({ parent: parent, rollup_property_source_link: rollup_property_source_link }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_rollup_property_source_link parent: parent, rollup_property_source_link: rollup_property_source_link do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new(parent: parent, rollup_property_source_link: rollup_property_source_link) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_rollup_property_source_link({ parent: parent, rollup_property_source_link: rollup_property_source_link }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new(parent: parent, rollup_property_source_link: rollup_property_source_link), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_rollup_property_source_link_client_stub.call_count + end + end + end + + def test_delete_rollup_property_source_link + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_rollup_property_source_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_rollup_property_source_link_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_rollup_property_source_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_rollup_property_source_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_rollup_property_source_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_rollup_property_source_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_rollup_property_source_link_client_stub.call_count + end + end + end + + def test_provision_subproperty + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + subproperty = {} + subproperty_event_filter = {} + custom_dimension_and_metric_synchronization_mode = :SYNCHRONIZATION_MODE_UNSPECIFIED + + provision_subproperty_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_provision_subproperty_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, provision_subproperty_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.provision_subproperty subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.provision_subproperty ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.provision_subproperty(::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, provision_subproperty_client_stub.call_count + end + end + end + + def test_create_subproperty_event_filter + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + subproperty_event_filter = {} + + create_subproperty_event_filter_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_subproperty_event_filter_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_subproperty_event_filter_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_subproperty_event_filter({ parent: parent, subproperty_event_filter: subproperty_event_filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_subproperty_event_filter parent: parent, subproperty_event_filter: subproperty_event_filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new(parent: parent, subproperty_event_filter: subproperty_event_filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_subproperty_event_filter({ parent: parent, subproperty_event_filter: subproperty_event_filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new(parent: parent, subproperty_event_filter: subproperty_event_filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_subproperty_event_filter_client_stub.call_count + end + end + end + + def test_get_subproperty_event_filter + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_subproperty_event_filter_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_subproperty_event_filter_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_subproperty_event_filter_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_subproperty_event_filter({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_subproperty_event_filter name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_subproperty_event_filter({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_subproperty_event_filter_client_stub.call_count + end + end + end + + def test_list_subproperty_event_filters + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_subproperty_event_filters_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_subproperty_event_filters_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_subproperty_event_filters_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_subproperty_event_filters({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_subproperty_event_filters parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_subproperty_event_filters ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_subproperty_event_filters({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_subproperty_event_filters(::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_subproperty_event_filters_client_stub.call_count + end + end + end + + def test_update_subproperty_event_filter + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + subproperty_event_filter = {} + update_mask = {} + + update_subproperty_event_filter_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_subproperty_event_filter_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_subproperty_event_filter_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_subproperty_event_filter({ subproperty_event_filter: subproperty_event_filter, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_subproperty_event_filter subproperty_event_filter: subproperty_event_filter, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new(subproperty_event_filter: subproperty_event_filter, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_subproperty_event_filter({ subproperty_event_filter: subproperty_event_filter, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new(subproperty_event_filter: subproperty_event_filter, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_subproperty_event_filter_client_stub.call_count + end + end + end + + def test_delete_subproperty_event_filter + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_subproperty_event_filter_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_subproperty_event_filter_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_subproperty_event_filter_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_subproperty_event_filter({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_subproperty_event_filter name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_subproperty_event_filter({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_subproperty_event_filter_client_stub.call_count + end + end + end + + def test_create_reporting_data_annotation + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + reporting_data_annotation = {} + + create_reporting_data_annotation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_reporting_data_annotation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_reporting_data_annotation_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.create_reporting_data_annotation({ parent: parent, reporting_data_annotation: reporting_data_annotation }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.create_reporting_data_annotation parent: parent, reporting_data_annotation: reporting_data_annotation do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.create_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new(parent: parent, reporting_data_annotation: reporting_data_annotation) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.create_reporting_data_annotation({ parent: parent, reporting_data_annotation: reporting_data_annotation }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.create_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new(parent: parent, reporting_data_annotation: reporting_data_annotation), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_reporting_data_annotation_client_stub.call_count + end + end + end + + def test_get_reporting_data_annotation + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_reporting_data_annotation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_reporting_data_annotation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_reporting_data_annotation_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_reporting_data_annotation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_reporting_data_annotation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_reporting_data_annotation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_reporting_data_annotation_client_stub.call_count + end + end + end + + def test_list_reporting_data_annotations + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + + list_reporting_data_annotations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_reporting_data_annotations_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_reporting_data_annotations_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_reporting_data_annotations({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_reporting_data_annotations parent: parent, filter: filter, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_reporting_data_annotations ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_reporting_data_annotations({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_reporting_data_annotations(::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_reporting_data_annotations_client_stub.call_count + end + end + end + + def test_update_reporting_data_annotation + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + reporting_data_annotation = {} + update_mask = {} + + update_reporting_data_annotation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_reporting_data_annotation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_reporting_data_annotation_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_reporting_data_annotation({ reporting_data_annotation: reporting_data_annotation, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_reporting_data_annotation reporting_data_annotation: reporting_data_annotation, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new(reporting_data_annotation: reporting_data_annotation, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_reporting_data_annotation({ reporting_data_annotation: reporting_data_annotation, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new(reporting_data_annotation: reporting_data_annotation, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_reporting_data_annotation_client_stub.call_count + end + end + end + + def test_delete_reporting_data_annotation + # Create test objects. + client_result = ::Google::Protobuf::Empty.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_reporting_data_annotation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_reporting_data_annotation_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_reporting_data_annotation_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.delete_reporting_data_annotation({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.delete_reporting_data_annotation name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.delete_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.delete_reporting_data_annotation({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.delete_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_reporting_data_annotation_client_stub.call_count + end + end + end + + def test_submit_user_deletion + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + user_id = "hello world" + name = "hello world" + + submit_user_deletion_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_submit_user_deletion_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, submit_user_deletion_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.submit_user_deletion({ user_id: user_id, name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.submit_user_deletion user_id: user_id, name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.submit_user_deletion ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new(user_id: user_id, name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.submit_user_deletion({ user_id: user_id, name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.submit_user_deletion(::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new(user_id: user_id, name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, submit_user_deletion_client_stub.call_count + end + end + end + + def test_list_subproperty_sync_configs + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_subproperty_sync_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_subproperty_sync_configs_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_subproperty_sync_configs_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.list_subproperty_sync_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.list_subproperty_sync_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.list_subproperty_sync_configs ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.list_subproperty_sync_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.list_subproperty_sync_configs(::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_subproperty_sync_configs_client_stub.call_count + end + end + end + + def test_update_subproperty_sync_config + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + subproperty_sync_config = {} + update_mask = {} + + update_subproperty_sync_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_subproperty_sync_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_subproperty_sync_config_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_subproperty_sync_config({ subproperty_sync_config: subproperty_sync_config, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_subproperty_sync_config subproperty_sync_config: subproperty_sync_config, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_subproperty_sync_config ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new(subproperty_sync_config: subproperty_sync_config, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_subproperty_sync_config({ subproperty_sync_config: subproperty_sync_config, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_subproperty_sync_config(::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new(subproperty_sync_config: subproperty_sync_config, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_subproperty_sync_config_client_stub.call_count + end + end + end + + def test_get_subproperty_sync_config + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_subproperty_sync_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_subproperty_sync_config_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_subproperty_sync_config_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_subproperty_sync_config({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_subproperty_sync_config name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_subproperty_sync_config ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_subproperty_sync_config({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_subproperty_sync_config(::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_subproperty_sync_config_client_stub.call_count + end + end + end + + def test_get_reporting_identity_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_reporting_identity_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_reporting_identity_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_reporting_identity_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_reporting_identity_settings({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_reporting_identity_settings name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_reporting_identity_settings ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_reporting_identity_settings({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_reporting_identity_settings(::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_reporting_identity_settings_client_stub.call_count + end + end + end + + def test_update_reporting_identity_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + reporting_identity_settings = {} + update_mask = {} + + update_reporting_identity_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_reporting_identity_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_reporting_identity_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_reporting_identity_settings reporting_identity_settings: reporting_identity_settings, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_reporting_identity_settings ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_reporting_identity_settings(::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_reporting_identity_settings_client_stub.call_count + end + end + end + + def test_get_user_provided_data_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_user_provided_data_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_user_provided_data_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_user_provided_data_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.get_user_provided_data_settings({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.get_user_provided_data_settings name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.get_user_provided_data_settings ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.get_user_provided_data_settings({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.get_user_provided_data_settings(::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_user_provided_data_settings_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb b/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb new file mode 100644 index 000000000000..b837f0b7e63d --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb @@ -0,0 +1,9580 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/analytics/admin/v1alpha/analytics_admin_pb" +require "google/analytics/admin/v1alpha/analytics_admin_service" + +class ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_get_account + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::Account.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_account_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_account, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetAccountRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_account_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_account({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_account name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_account ::Google::Analytics::Admin::V1alpha::GetAccountRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_account({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_account(::Google::Analytics::Admin::V1alpha::GetAccountRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_account_client_stub.call_rpc_count + end + end + + def test_list_accounts + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListAccountsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + page_size = 42 + page_token = "hello world" + show_deleted = true + + list_accounts_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_accounts, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListAccountsRequest, request + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["show_deleted"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_accounts_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_accounts({ page_size: page_size, page_token: page_token, show_deleted: show_deleted }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_accounts page_size: page_size, page_token: page_token, show_deleted: show_deleted do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_accounts ::Google::Analytics::Admin::V1alpha::ListAccountsRequest.new(page_size: page_size, page_token: page_token, show_deleted: show_deleted) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_accounts({ page_size: page_size, page_token: page_token, show_deleted: show_deleted }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_accounts(::Google::Analytics::Admin::V1alpha::ListAccountsRequest.new(page_size: page_size, page_token: page_token, show_deleted: show_deleted), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_accounts_client_stub.call_rpc_count + end + end + + def test_delete_account + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_account_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_account, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_account_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_account({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_account name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_account ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_account({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_account(::Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_account_client_stub.call_rpc_count + end + end + + def test_update_account + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::Account.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + account = {} + update_mask = {} + + update_account_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_account, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Account), request["account"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_account_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_account({ account: account, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_account account: account, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_account ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new(account: account, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_account({ account: account, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_account(::Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new(account: account, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_account_client_stub.call_rpc_count + end + end + + def test_provision_account_ticket + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + account = {} + redirect_uri = "hello world" + + provision_account_ticket_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :provision_account_ticket, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Account), request["account"] + assert_equal "hello world", request["redirect_uri"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, provision_account_ticket_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.provision_account_ticket({ account: account, redirect_uri: redirect_uri }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.provision_account_ticket account: account, redirect_uri: redirect_uri do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.provision_account_ticket ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new(account: account, redirect_uri: redirect_uri) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.provision_account_ticket({ account: account, redirect_uri: redirect_uri }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.provision_account_ticket(::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new(account: account, redirect_uri: redirect_uri), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, provision_account_ticket_client_stub.call_rpc_count + end + end + + def test_list_account_summaries + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + page_size = 42 + page_token = "hello world" + + list_account_summaries_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_account_summaries, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, request + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_account_summaries_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_account_summaries({ page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_account_summaries page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_account_summaries ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new(page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_account_summaries({ page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_account_summaries(::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new(page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_account_summaries_client_stub.call_rpc_count + end + end + + def test_get_property + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::Property.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_property_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_property, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetPropertyRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_property_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_property({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_property name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_property ::Google::Analytics::Admin::V1alpha::GetPropertyRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_property({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_property(::Google::Analytics::Admin::V1alpha::GetPropertyRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_property_client_stub.call_rpc_count + end + end + + def test_list_properties + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListPropertiesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + filter = "hello world" + page_size = 42 + page_token = "hello world" + show_deleted = true + + list_properties_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_properties, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, request + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["show_deleted"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_properties_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_properties({ filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_properties filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_properties ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new(filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_properties({ filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_properties(::Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new(filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_properties_client_stub.call_rpc_count + end + end + + def test_create_property + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::Property.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + property = {} + + create_property_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_property, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Property), request["property"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_property_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_property({ property: property }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_property property: property do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_property ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new(property: property) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_property({ property: property }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_property(::Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new(property: property), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_property_client_stub.call_rpc_count + end + end + + def test_delete_property + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::Property.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_property_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_property, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_property_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_property({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_property name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_property ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_property({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_property(::Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_property_client_stub.call_rpc_count + end + end + + def test_update_property + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::Property.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + property = {} + update_mask = {} + + update_property_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_property, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Property), request["property"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_property_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_property({ property: property, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_property property: property, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_property ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new(property: property, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_property({ property: property, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_property(::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new(property: property, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_property_client_stub.call_rpc_count + end + end + + def test_create_firebase_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::FirebaseLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + firebase_link = {} + + create_firebase_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_firebase_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::FirebaseLink), request["firebase_link"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_firebase_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_firebase_link({ parent: parent, firebase_link: firebase_link }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_firebase_link parent: parent, firebase_link: firebase_link do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_firebase_link ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new(parent: parent, firebase_link: firebase_link) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_firebase_link({ parent: parent, firebase_link: firebase_link }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_firebase_link(::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new(parent: parent, firebase_link: firebase_link), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_firebase_link_client_stub.call_rpc_count + end + end + + def test_delete_firebase_link + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_firebase_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_firebase_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_firebase_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_firebase_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_firebase_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_firebase_link ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_firebase_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_firebase_link(::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_firebase_link_client_stub.call_rpc_count + end + end + + def test_list_firebase_links + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_firebase_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_firebase_links, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_firebase_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_firebase_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_firebase_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_firebase_links ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_firebase_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_firebase_links(::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_firebase_links_client_stub.call_rpc_count + end + end + + def test_get_global_site_tag + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::GlobalSiteTag.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_global_site_tag_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_global_site_tag, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_global_site_tag_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_global_site_tag({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_global_site_tag name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_global_site_tag ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_global_site_tag({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_global_site_tag(::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_global_site_tag_client_stub.call_rpc_count + end + end + + def test_create_google_ads_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + google_ads_link = {} + + create_google_ads_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_google_ads_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::GoogleAdsLink), request["google_ads_link"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_google_ads_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_google_ads_link({ parent: parent, google_ads_link: google_ads_link }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_google_ads_link parent: parent, google_ads_link: google_ads_link do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_google_ads_link ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new(parent: parent, google_ads_link: google_ads_link) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_google_ads_link({ parent: parent, google_ads_link: google_ads_link }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_google_ads_link(::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new(parent: parent, google_ads_link: google_ads_link), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_google_ads_link_client_stub.call_rpc_count + end + end + + def test_update_google_ads_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + google_ads_link = {} + update_mask = {} + + update_google_ads_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_google_ads_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::GoogleAdsLink), request["google_ads_link"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_google_ads_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_google_ads_link({ google_ads_link: google_ads_link, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_google_ads_link google_ads_link: google_ads_link, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_google_ads_link ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new(google_ads_link: google_ads_link, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_google_ads_link({ google_ads_link: google_ads_link, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_google_ads_link(::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new(google_ads_link: google_ads_link, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_google_ads_link_client_stub.call_rpc_count + end + end + + def test_delete_google_ads_link + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_google_ads_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_google_ads_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_google_ads_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_google_ads_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_google_ads_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_google_ads_link ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_google_ads_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_google_ads_link(::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_google_ads_link_client_stub.call_rpc_count + end + end + + def test_list_google_ads_links + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_google_ads_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_google_ads_links, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_google_ads_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_google_ads_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_google_ads_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_google_ads_links ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_google_ads_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_google_ads_links(::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_google_ads_links_client_stub.call_rpc_count + end + end + + def test_get_data_sharing_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DataSharingSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_data_sharing_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_data_sharing_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_data_sharing_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_data_sharing_settings({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_data_sharing_settings name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_data_sharing_settings ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_data_sharing_settings({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_data_sharing_settings(::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_data_sharing_settings_client_stub.call_rpc_count + end + end + + def test_get_measurement_protocol_secret + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_measurement_protocol_secret_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_measurement_protocol_secret, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_measurement_protocol_secret_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_measurement_protocol_secret({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_measurement_protocol_secret name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_measurement_protocol_secret({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_measurement_protocol_secret_client_stub.call_rpc_count + end + end + + def test_list_measurement_protocol_secrets + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_measurement_protocol_secrets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_measurement_protocol_secrets, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_measurement_protocol_secrets_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_measurement_protocol_secrets({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_measurement_protocol_secrets parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_measurement_protocol_secrets ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_measurement_protocol_secrets({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_measurement_protocol_secrets(::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_measurement_protocol_secrets_client_stub.call_rpc_count + end + end + + def test_create_measurement_protocol_secret + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + measurement_protocol_secret = {} + + create_measurement_protocol_secret_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_measurement_protocol_secret, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret), request["measurement_protocol_secret"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_measurement_protocol_secret_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_measurement_protocol_secret({ parent: parent, measurement_protocol_secret: measurement_protocol_secret }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_measurement_protocol_secret parent: parent, measurement_protocol_secret: measurement_protocol_secret do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new(parent: parent, measurement_protocol_secret: measurement_protocol_secret) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_measurement_protocol_secret({ parent: parent, measurement_protocol_secret: measurement_protocol_secret }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new(parent: parent, measurement_protocol_secret: measurement_protocol_secret), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_measurement_protocol_secret_client_stub.call_rpc_count + end + end + + def test_delete_measurement_protocol_secret + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_measurement_protocol_secret_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_measurement_protocol_secret, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_measurement_protocol_secret_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_measurement_protocol_secret({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_measurement_protocol_secret name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_measurement_protocol_secret({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_measurement_protocol_secret_client_stub.call_rpc_count + end + end + + def test_update_measurement_protocol_secret + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + measurement_protocol_secret = {} + update_mask = {} + + update_measurement_protocol_secret_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_measurement_protocol_secret, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret), request["measurement_protocol_secret"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_measurement_protocol_secret_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_measurement_protocol_secret({ measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_measurement_protocol_secret measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new(measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_measurement_protocol_secret({ measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new(measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_measurement_protocol_secret_client_stub.call_rpc_count + end + end + + def test_acknowledge_user_data_collection + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + property = "hello world" + acknowledgement = "hello world" + + acknowledge_user_data_collection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :acknowledge_user_data_collection, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest, request + assert_equal "hello world", request["property"] + assert_equal "hello world", request["acknowledgement"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, acknowledge_user_data_collection_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.acknowledge_user_data_collection({ property: property, acknowledgement: acknowledgement }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.acknowledge_user_data_collection property: property, acknowledgement: acknowledgement do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.acknowledge_user_data_collection ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new(property: property, acknowledgement: acknowledgement) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.acknowledge_user_data_collection({ property: property, acknowledgement: acknowledgement }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.acknowledge_user_data_collection(::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new(property: property, acknowledgement: acknowledgement), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, acknowledge_user_data_collection_client_stub.call_rpc_count + end + end + + def test_get_sk_ad_network_conversion_value_schema + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_sk_ad_network_conversion_value_schema, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_sk_ad_network_conversion_value_schema_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_sk_ad_network_conversion_value_schema({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_sk_ad_network_conversion_value_schema name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_sk_ad_network_conversion_value_schema({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_sk_ad_network_conversion_value_schema_client_stub.call_rpc_count + end + end + + def test_create_sk_ad_network_conversion_value_schema + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + skadnetwork_conversion_value_schema = {} + + create_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_sk_ad_network_conversion_value_schema, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema), request["skadnetwork_conversion_value_schema"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_sk_ad_network_conversion_value_schema_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_sk_ad_network_conversion_value_schema({ parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_sk_ad_network_conversion_value_schema parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new(parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_sk_ad_network_conversion_value_schema({ parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new(parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_sk_ad_network_conversion_value_schema_client_stub.call_rpc_count + end + end + + def test_delete_sk_ad_network_conversion_value_schema + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_sk_ad_network_conversion_value_schema, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_sk_ad_network_conversion_value_schema_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_sk_ad_network_conversion_value_schema({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_sk_ad_network_conversion_value_schema name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_sk_ad_network_conversion_value_schema({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_sk_ad_network_conversion_value_schema_client_stub.call_rpc_count + end + end + + def test_update_sk_ad_network_conversion_value_schema + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + skadnetwork_conversion_value_schema = {} + update_mask = {} + + update_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_sk_ad_network_conversion_value_schema, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema), request["skadnetwork_conversion_value_schema"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_sk_ad_network_conversion_value_schema_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_sk_ad_network_conversion_value_schema({ skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_sk_ad_network_conversion_value_schema skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new(skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_sk_ad_network_conversion_value_schema({ skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new(skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_sk_ad_network_conversion_value_schema_client_stub.call_rpc_count + end + end + + def test_list_sk_ad_network_conversion_value_schemas + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_sk_ad_network_conversion_value_schemas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_sk_ad_network_conversion_value_schemas, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_sk_ad_network_conversion_value_schemas_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_sk_ad_network_conversion_value_schemas({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_sk_ad_network_conversion_value_schemas parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_sk_ad_network_conversion_value_schemas ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_sk_ad_network_conversion_value_schemas({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_sk_ad_network_conversion_value_schemas(::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_sk_ad_network_conversion_value_schemas_client_stub.call_rpc_count + end + end + + def test_search_change_history_events + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + account = "hello world" + property = "hello world" + resource_type = [:CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED] + action = [:ACTION_TYPE_UNSPECIFIED] + actor_email = ["hello world"] + earliest_change_time = {} + latest_change_time = {} + page_size = 42 + page_token = "hello world" + + search_change_history_events_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :search_change_history_events, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest, request + assert_equal "hello world", request["account"] + assert_equal "hello world", request["property"] + assert_equal [:CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED], request["resource_type"] + assert_equal [:ACTION_TYPE_UNSPECIFIED], request["action"] + assert_equal ["hello world"], request["actor_email"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["earliest_change_time"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["latest_change_time"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, search_change_history_events_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.search_change_history_events({ account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.search_change_history_events account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.search_change_history_events ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new(account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.search_change_history_events({ account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.search_change_history_events(::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new(account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, search_change_history_events_client_stub.call_rpc_count + end + end + + def test_get_google_signals_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_google_signals_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_google_signals_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_google_signals_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_google_signals_settings({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_google_signals_settings name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_google_signals_settings ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_google_signals_settings({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_google_signals_settings(::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_google_signals_settings_client_stub.call_rpc_count + end + end + + def test_update_google_signals_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + google_signals_settings = {} + update_mask = {} + + update_google_signals_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_google_signals_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings), request["google_signals_settings"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_google_signals_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_google_signals_settings({ google_signals_settings: google_signals_settings, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_google_signals_settings google_signals_settings: google_signals_settings, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_google_signals_settings ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new(google_signals_settings: google_signals_settings, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_google_signals_settings({ google_signals_settings: google_signals_settings, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_google_signals_settings(::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new(google_signals_settings: google_signals_settings, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_google_signals_settings_client_stub.call_rpc_count + end + end + + def test_create_conversion_event + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + conversion_event = {} + parent = "hello world" + + create_conversion_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_conversion_event, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ConversionEvent), request["conversion_event"] + assert_equal "hello world", request["parent"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_conversion_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_conversion_event({ conversion_event: conversion_event, parent: parent }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_conversion_event conversion_event: conversion_event, parent: parent do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_conversion_event ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new(conversion_event: conversion_event, parent: parent) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_conversion_event({ conversion_event: conversion_event, parent: parent }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_conversion_event(::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new(conversion_event: conversion_event, parent: parent), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_conversion_event_client_stub.call_rpc_count + end + end + + def test_update_conversion_event + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + conversion_event = {} + update_mask = {} + + update_conversion_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_conversion_event, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ConversionEvent), request["conversion_event"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_conversion_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_conversion_event({ conversion_event: conversion_event, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_conversion_event conversion_event: conversion_event, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_conversion_event ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new(conversion_event: conversion_event, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_conversion_event({ conversion_event: conversion_event, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_conversion_event(::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new(conversion_event: conversion_event, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_conversion_event_client_stub.call_rpc_count + end + end + + def test_get_conversion_event + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_conversion_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_conversion_event, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_conversion_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_conversion_event({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_conversion_event name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_conversion_event ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_conversion_event({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_conversion_event(::Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_conversion_event_client_stub.call_rpc_count + end + end + + def test_delete_conversion_event + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_conversion_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_conversion_event, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_conversion_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_conversion_event({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_conversion_event name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_conversion_event ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_conversion_event({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_conversion_event(::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_conversion_event_client_stub.call_rpc_count + end + end + + def test_list_conversion_events + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_conversion_events_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_conversion_events, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_conversion_events_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_conversion_events({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_conversion_events parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_conversion_events ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_conversion_events({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_conversion_events(::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_conversion_events_client_stub.call_rpc_count + end + end + + def test_create_key_event + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::KeyEvent.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + key_event = {} + parent = "hello world" + + create_key_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_key_event, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::KeyEvent), request["key_event"] + assert_equal "hello world", request["parent"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_key_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_key_event({ key_event: key_event, parent: parent }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_key_event key_event: key_event, parent: parent do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_key_event ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new(key_event: key_event, parent: parent) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_key_event({ key_event: key_event, parent: parent }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_key_event(::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new(key_event: key_event, parent: parent), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_key_event_client_stub.call_rpc_count + end + end + + def test_update_key_event + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::KeyEvent.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + key_event = {} + update_mask = {} + + update_key_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_key_event, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::KeyEvent), request["key_event"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_key_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_key_event({ key_event: key_event, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_key_event key_event: key_event, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_key_event ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new(key_event: key_event, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_key_event({ key_event: key_event, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_key_event(::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new(key_event: key_event, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_key_event_client_stub.call_rpc_count + end + end + + def test_get_key_event + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::KeyEvent.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_key_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_key_event, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_key_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_key_event({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_key_event name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_key_event ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_key_event({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_key_event(::Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_key_event_client_stub.call_rpc_count + end + end + + def test_delete_key_event + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_key_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_key_event, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_key_event_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_key_event({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_key_event name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_key_event ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_key_event({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_key_event(::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_key_event_client_stub.call_rpc_count + end + end + + def test_list_key_events + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_key_events_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_key_events, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_key_events_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_key_events({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_key_events parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_key_events ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_key_events({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_key_events(::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_key_events_client_stub.call_rpc_count + end + end + + def test_get_display_video360_advertiser_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_display_video360_advertiser_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_display_video360_advertiser_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_display_video360_advertiser_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_display_video360_advertiser_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_display_video360_advertiser_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_display_video360_advertiser_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_display_video360_advertiser_link_client_stub.call_rpc_count + end + end + + def test_list_display_video360_advertiser_links + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_display_video360_advertiser_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_display_video360_advertiser_links, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_display_video360_advertiser_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_display_video360_advertiser_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_display_video360_advertiser_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_display_video360_advertiser_links ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_display_video360_advertiser_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_display_video360_advertiser_links(::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_display_video360_advertiser_links_client_stub.call_rpc_count + end + end + + def test_create_display_video360_advertiser_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + display_video_360_advertiser_link = {} + + create_display_video360_advertiser_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_display_video360_advertiser_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink), request["display_video_360_advertiser_link"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_display_video360_advertiser_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_display_video360_advertiser_link({ parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_display_video360_advertiser_link parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new(parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_display_video360_advertiser_link({ parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new(parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_display_video360_advertiser_link_client_stub.call_rpc_count + end + end + + def test_delete_display_video360_advertiser_link + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_display_video360_advertiser_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_display_video360_advertiser_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_display_video360_advertiser_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_display_video360_advertiser_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_display_video360_advertiser_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_display_video360_advertiser_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_display_video360_advertiser_link_client_stub.call_rpc_count + end + end + + def test_update_display_video360_advertiser_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + display_video_360_advertiser_link = {} + update_mask = {} + + update_display_video360_advertiser_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_display_video360_advertiser_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink), request["display_video_360_advertiser_link"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_display_video360_advertiser_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_display_video360_advertiser_link({ display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_display_video360_advertiser_link display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new(display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_display_video360_advertiser_link({ display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new(display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_display_video360_advertiser_link_client_stub.call_rpc_count + end + end + + def test_get_display_video360_advertiser_link_proposal + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_display_video360_advertiser_link_proposal_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_display_video360_advertiser_link_proposal, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_display_video360_advertiser_link_proposal_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_display_video360_advertiser_link_proposal({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_display_video360_advertiser_link_proposal name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_display_video360_advertiser_link_proposal({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_display_video360_advertiser_link_proposal_client_stub.call_rpc_count + end + end + + def test_list_display_video360_advertiser_link_proposals + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_display_video360_advertiser_link_proposals_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_display_video360_advertiser_link_proposals, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_display_video360_advertiser_link_proposals_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_display_video360_advertiser_link_proposals({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_display_video360_advertiser_link_proposals parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_display_video360_advertiser_link_proposals ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_display_video360_advertiser_link_proposals({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_display_video360_advertiser_link_proposals(::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_display_video360_advertiser_link_proposals_client_stub.call_rpc_count + end + end + + def test_create_display_video360_advertiser_link_proposal + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + display_video_360_advertiser_link_proposal = {} + + create_display_video360_advertiser_link_proposal_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_display_video360_advertiser_link_proposal, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal), request["display_video_360_advertiser_link_proposal"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_display_video360_advertiser_link_proposal_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_display_video360_advertiser_link_proposal({ parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_display_video360_advertiser_link_proposal parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new(parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_display_video360_advertiser_link_proposal({ parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new(parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_display_video360_advertiser_link_proposal_client_stub.call_rpc_count + end + end + + def test_delete_display_video360_advertiser_link_proposal + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_display_video360_advertiser_link_proposal_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_display_video360_advertiser_link_proposal, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_display_video360_advertiser_link_proposal_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_display_video360_advertiser_link_proposal({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_display_video360_advertiser_link_proposal name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_display_video360_advertiser_link_proposal({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_display_video360_advertiser_link_proposal_client_stub.call_rpc_count + end + end + + def test_approve_display_video360_advertiser_link_proposal + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + approve_display_video360_advertiser_link_proposal_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :approve_display_video360_advertiser_link_proposal, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, approve_display_video360_advertiser_link_proposal_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.approve_display_video360_advertiser_link_proposal({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.approve_display_video360_advertiser_link_proposal name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.approve_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.approve_display_video360_advertiser_link_proposal({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.approve_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, approve_display_video360_advertiser_link_proposal_client_stub.call_rpc_count + end + end + + def test_cancel_display_video360_advertiser_link_proposal + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_display_video360_advertiser_link_proposal_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_display_video360_advertiser_link_proposal, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_display_video360_advertiser_link_proposal_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.cancel_display_video360_advertiser_link_proposal({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.cancel_display_video360_advertiser_link_proposal name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.cancel_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.cancel_display_video360_advertiser_link_proposal({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.cancel_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_display_video360_advertiser_link_proposal_client_stub.call_rpc_count + end + end + + def test_create_custom_dimension + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::CustomDimension.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + custom_dimension = {} + + create_custom_dimension_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_custom_dimension, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CustomDimension), request["custom_dimension"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_custom_dimension_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_custom_dimension({ parent: parent, custom_dimension: custom_dimension }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_custom_dimension parent: parent, custom_dimension: custom_dimension do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_custom_dimension ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new(parent: parent, custom_dimension: custom_dimension) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_custom_dimension({ parent: parent, custom_dimension: custom_dimension }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_custom_dimension(::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new(parent: parent, custom_dimension: custom_dimension), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_custom_dimension_client_stub.call_rpc_count + end + end + + def test_update_custom_dimension + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::CustomDimension.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + custom_dimension = {} + update_mask = {} + + update_custom_dimension_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_custom_dimension, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CustomDimension), request["custom_dimension"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_custom_dimension_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_custom_dimension({ custom_dimension: custom_dimension, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_custom_dimension custom_dimension: custom_dimension, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_custom_dimension ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new(custom_dimension: custom_dimension, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_custom_dimension({ custom_dimension: custom_dimension, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_custom_dimension(::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new(custom_dimension: custom_dimension, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_custom_dimension_client_stub.call_rpc_count + end + end + + def test_list_custom_dimensions + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_custom_dimensions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_custom_dimensions, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_custom_dimensions_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_custom_dimensions({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_custom_dimensions parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_custom_dimensions ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_custom_dimensions({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_custom_dimensions(::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_custom_dimensions_client_stub.call_rpc_count + end + end + + def test_archive_custom_dimension + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + archive_custom_dimension_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :archive_custom_dimension, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, archive_custom_dimension_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.archive_custom_dimension({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.archive_custom_dimension name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.archive_custom_dimension ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.archive_custom_dimension({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.archive_custom_dimension(::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, archive_custom_dimension_client_stub.call_rpc_count + end + end + + def test_get_custom_dimension + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::CustomDimension.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_custom_dimension_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_custom_dimension, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_custom_dimension_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_custom_dimension({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_custom_dimension name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_custom_dimension ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_custom_dimension({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_custom_dimension(::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_custom_dimension_client_stub.call_rpc_count + end + end + + def test_create_custom_metric + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::CustomMetric.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + custom_metric = {} + + create_custom_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_custom_metric, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CustomMetric), request["custom_metric"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_custom_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_custom_metric({ parent: parent, custom_metric: custom_metric }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_custom_metric parent: parent, custom_metric: custom_metric do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_custom_metric ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new(parent: parent, custom_metric: custom_metric) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_custom_metric({ parent: parent, custom_metric: custom_metric }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_custom_metric(::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new(parent: parent, custom_metric: custom_metric), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_custom_metric_client_stub.call_rpc_count + end + end + + def test_update_custom_metric + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::CustomMetric.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + custom_metric = {} + update_mask = {} + + update_custom_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_custom_metric, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CustomMetric), request["custom_metric"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_custom_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_custom_metric({ custom_metric: custom_metric, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_custom_metric custom_metric: custom_metric, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_custom_metric ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new(custom_metric: custom_metric, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_custom_metric({ custom_metric: custom_metric, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_custom_metric(::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new(custom_metric: custom_metric, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_custom_metric_client_stub.call_rpc_count + end + end + + def test_list_custom_metrics + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_custom_metrics_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_custom_metrics, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_custom_metrics_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_custom_metrics({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_custom_metrics parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_custom_metrics ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_custom_metrics({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_custom_metrics(::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_custom_metrics_client_stub.call_rpc_count + end + end + + def test_archive_custom_metric + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + archive_custom_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :archive_custom_metric, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, archive_custom_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.archive_custom_metric({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.archive_custom_metric name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.archive_custom_metric ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.archive_custom_metric({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.archive_custom_metric(::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, archive_custom_metric_client_stub.call_rpc_count + end + end + + def test_get_custom_metric + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::CustomMetric.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_custom_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_custom_metric, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_custom_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_custom_metric({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_custom_metric name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_custom_metric ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_custom_metric({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_custom_metric(::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_custom_metric_client_stub.call_rpc_count + end + end + + def test_get_data_retention_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_data_retention_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_data_retention_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_data_retention_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_data_retention_settings({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_data_retention_settings name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_data_retention_settings ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_data_retention_settings({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_data_retention_settings(::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_data_retention_settings_client_stub.call_rpc_count + end + end + + def test_update_data_retention_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + data_retention_settings = {} + update_mask = {} + + update_data_retention_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_data_retention_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DataRetentionSettings), request["data_retention_settings"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_data_retention_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_data_retention_settings({ data_retention_settings: data_retention_settings, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_data_retention_settings data_retention_settings: data_retention_settings, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_data_retention_settings ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new(data_retention_settings: data_retention_settings, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_data_retention_settings({ data_retention_settings: data_retention_settings, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_data_retention_settings(::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new(data_retention_settings: data_retention_settings, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_data_retention_settings_client_stub.call_rpc_count + end + end + + def test_create_data_stream + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DataStream.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + data_stream = {} + + create_data_stream_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_data_stream, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DataStream), request["data_stream"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_data_stream_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_data_stream({ parent: parent, data_stream: data_stream }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_data_stream parent: parent, data_stream: data_stream do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_data_stream ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new(parent: parent, data_stream: data_stream) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_data_stream({ parent: parent, data_stream: data_stream }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_data_stream(::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new(parent: parent, data_stream: data_stream), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_data_stream_client_stub.call_rpc_count + end + end + + def test_delete_data_stream + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_data_stream_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_data_stream, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_data_stream_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_data_stream({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_data_stream name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_data_stream ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_data_stream({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_data_stream(::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_data_stream_client_stub.call_rpc_count + end + end + + def test_update_data_stream + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DataStream.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + data_stream = {} + update_mask = {} + + update_data_stream_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_data_stream, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DataStream), request["data_stream"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_data_stream_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_data_stream({ data_stream: data_stream, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_data_stream data_stream: data_stream, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_data_stream ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new(data_stream: data_stream, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_data_stream({ data_stream: data_stream, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_data_stream(::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new(data_stream: data_stream, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_data_stream_client_stub.call_rpc_count + end + end + + def test_list_data_streams + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_data_streams_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_data_streams, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_data_streams_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_data_streams({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_data_streams parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_data_streams ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_data_streams({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_data_streams(::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_data_streams_client_stub.call_rpc_count + end + end + + def test_get_data_stream + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DataStream.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_data_stream_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_data_stream, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_data_stream_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_data_stream({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_data_stream name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_data_stream ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_data_stream({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_data_stream(::Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_data_stream_client_stub.call_rpc_count + end + end + + def test_get_audience + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::Audience.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_audience_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_audience, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetAudienceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_audience_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_audience({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_audience name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_audience ::Google::Analytics::Admin::V1alpha::GetAudienceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_audience({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_audience(::Google::Analytics::Admin::V1alpha::GetAudienceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_audience_client_stub.call_rpc_count + end + end + + def test_list_audiences + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListAudiencesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_audiences_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_audiences, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_audiences_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_audiences({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_audiences parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_audiences ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_audiences({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_audiences(::Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_audiences_client_stub.call_rpc_count + end + end + + def test_create_audience + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::Audience.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + audience = {} + + create_audience_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_audience, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Audience), request["audience"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_audience_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_audience({ parent: parent, audience: audience }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_audience parent: parent, audience: audience do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_audience ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new(parent: parent, audience: audience) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_audience({ parent: parent, audience: audience }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_audience(::Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new(parent: parent, audience: audience), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_audience_client_stub.call_rpc_count + end + end + + def test_update_audience + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::Audience.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + audience = {} + update_mask = {} + + update_audience_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_audience, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Audience), request["audience"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_audience_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_audience({ audience: audience, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_audience audience: audience, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_audience ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new(audience: audience, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_audience({ audience: audience, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_audience(::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new(audience: audience, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_audience_client_stub.call_rpc_count + end + end + + def test_archive_audience + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + archive_audience_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :archive_audience, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, archive_audience_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.archive_audience({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.archive_audience name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.archive_audience ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.archive_audience({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.archive_audience(::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, archive_audience_client_stub.call_rpc_count + end + end + + def test_get_search_ads360_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_search_ads360_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_search_ads360_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_search_ads360_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_search_ads360_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_search_ads360_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_search_ads360_link ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_search_ads360_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_search_ads360_link(::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_search_ads360_link_client_stub.call_rpc_count + end + end + + def test_list_search_ads360_links + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_search_ads360_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_search_ads360_links, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_search_ads360_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_search_ads360_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_search_ads360_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_search_ads360_links ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_search_ads360_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_search_ads360_links(::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_search_ads360_links_client_stub.call_rpc_count + end + end + + def test_create_search_ads360_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + search_ads_360_link = {} + + create_search_ads360_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_search_ads360_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SearchAds360Link), request["search_ads_360_link"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_search_ads360_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_search_ads360_link({ parent: parent, search_ads_360_link: search_ads_360_link }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_search_ads360_link parent: parent, search_ads_360_link: search_ads_360_link do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_search_ads360_link ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new(parent: parent, search_ads_360_link: search_ads_360_link) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_search_ads360_link({ parent: parent, search_ads_360_link: search_ads_360_link }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_search_ads360_link(::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new(parent: parent, search_ads_360_link: search_ads_360_link), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_search_ads360_link_client_stub.call_rpc_count + end + end + + def test_delete_search_ads360_link + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_search_ads360_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_search_ads360_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_search_ads360_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_search_ads360_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_search_ads360_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_search_ads360_link ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_search_ads360_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_search_ads360_link(::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_search_ads360_link_client_stub.call_rpc_count + end + end + + def test_update_search_ads360_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + search_ads_360_link = {} + update_mask = {} + + update_search_ads360_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_search_ads360_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SearchAds360Link), request["search_ads_360_link"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_search_ads360_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_search_ads360_link({ search_ads_360_link: search_ads_360_link, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_search_ads360_link search_ads_360_link: search_ads_360_link, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_search_ads360_link ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new(search_ads_360_link: search_ads_360_link, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_search_ads360_link({ search_ads_360_link: search_ads_360_link, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_search_ads360_link(::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new(search_ads_360_link: search_ads_360_link, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_search_ads360_link_client_stub.call_rpc_count + end + end + + def test_get_attribution_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::AttributionSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_attribution_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_attribution_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_attribution_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_attribution_settings({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_attribution_settings name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_attribution_settings ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_attribution_settings({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_attribution_settings(::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_attribution_settings_client_stub.call_rpc_count + end + end + + def test_update_attribution_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::AttributionSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + attribution_settings = {} + update_mask = {} + + update_attribution_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_attribution_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AttributionSettings), request["attribution_settings"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_attribution_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_attribution_settings({ attribution_settings: attribution_settings, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_attribution_settings attribution_settings: attribution_settings, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_attribution_settings ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new(attribution_settings: attribution_settings, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_attribution_settings({ attribution_settings: attribution_settings, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_attribution_settings(::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new(attribution_settings: attribution_settings, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_attribution_settings_client_stub.call_rpc_count + end + end + + def test_run_access_report + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::RunAccessReportResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + entity = "hello world" + dimensions = [{}] + metrics = [{}] + date_ranges = [{}] + dimension_filter = {} + metric_filter = {} + offset = 42 + limit = 42 + time_zone = "hello world" + order_bys = [{}] + return_entity_quota = true + include_all_users = true + expand_groups = true + + run_access_report_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :run_access_report, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest, request + assert_equal "hello world", request["entity"] + assert_kind_of ::Google::Analytics::Admin::V1alpha::AccessDimension, request["dimensions"].first + assert_kind_of ::Google::Analytics::Admin::V1alpha::AccessMetric, request["metrics"].first + assert_kind_of ::Google::Analytics::Admin::V1alpha::AccessDateRange, request["date_ranges"].first + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AccessFilterExpression), request["dimension_filter"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AccessFilterExpression), request["metric_filter"] + assert_equal 42, request["offset"] + assert_equal 42, request["limit"] + assert_equal "hello world", request["time_zone"] + assert_kind_of ::Google::Analytics::Admin::V1alpha::AccessOrderBy, request["order_bys"].first + assert_equal true, request["return_entity_quota"] + assert_equal true, request["include_all_users"] + assert_equal true, request["expand_groups"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, run_access_report_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.run_access_report({ entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.run_access_report entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.run_access_report ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new(entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.run_access_report({ entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.run_access_report(::Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new(entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, run_access_report_client_stub.call_rpc_count + end + end + + def test_create_access_binding + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::AccessBinding.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + access_binding = {} + + create_access_binding_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_access_binding, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AccessBinding), request["access_binding"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_access_binding_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_access_binding({ parent: parent, access_binding: access_binding }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_access_binding parent: parent, access_binding: access_binding do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_access_binding ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new(parent: parent, access_binding: access_binding) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_access_binding({ parent: parent, access_binding: access_binding }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_access_binding(::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new(parent: parent, access_binding: access_binding), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_access_binding_client_stub.call_rpc_count + end + end + + def test_get_access_binding + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::AccessBinding.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_access_binding_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_access_binding, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_access_binding_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_access_binding({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_access_binding name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_access_binding ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_access_binding({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_access_binding(::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_access_binding_client_stub.call_rpc_count + end + end + + def test_update_access_binding + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::AccessBinding.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + access_binding = {} + + update_access_binding_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_access_binding, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AccessBinding), request["access_binding"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_access_binding_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_access_binding({ access_binding: access_binding }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_access_binding access_binding: access_binding do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_access_binding ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new(access_binding: access_binding) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_access_binding({ access_binding: access_binding }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_access_binding(::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new(access_binding: access_binding), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_access_binding_client_stub.call_rpc_count + end + end + + def test_delete_access_binding + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_access_binding_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_access_binding, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_access_binding_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_access_binding({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_access_binding name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_access_binding ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_access_binding({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_access_binding(::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_access_binding_client_stub.call_rpc_count + end + end + + def test_list_access_bindings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_access_bindings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_access_bindings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_access_bindings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_access_bindings({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_access_bindings parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_access_bindings ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_access_bindings({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_access_bindings(::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_access_bindings_client_stub.call_rpc_count + end + end + + def test_batch_create_access_bindings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_create_access_bindings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :batch_create_access_bindings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest, request + assert_equal "hello world", request["parent"] + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, request["requests"].first + refute_nil options + end + + Gapic::ServiceStub.stub :new, batch_create_access_bindings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.batch_create_access_bindings({ parent: parent, requests: requests }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.batch_create_access_bindings parent: parent, requests: requests do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.batch_create_access_bindings ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new(parent: parent, requests: requests) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.batch_create_access_bindings({ parent: parent, requests: requests }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.batch_create_access_bindings(::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new(parent: parent, requests: requests), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, batch_create_access_bindings_client_stub.call_rpc_count + end + end + + def test_batch_get_access_bindings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + names = ["hello world"] + + batch_get_access_bindings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :batch_get_access_bindings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest, request + assert_equal "hello world", request["parent"] + assert_equal ["hello world"], request["names"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, batch_get_access_bindings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.batch_get_access_bindings({ parent: parent, names: names }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.batch_get_access_bindings parent: parent, names: names do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.batch_get_access_bindings ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new(parent: parent, names: names) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.batch_get_access_bindings({ parent: parent, names: names }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.batch_get_access_bindings(::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new(parent: parent, names: names), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, batch_get_access_bindings_client_stub.call_rpc_count + end + end + + def test_batch_update_access_bindings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_update_access_bindings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :batch_update_access_bindings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest, request + assert_equal "hello world", request["parent"] + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, request["requests"].first + refute_nil options + end + + Gapic::ServiceStub.stub :new, batch_update_access_bindings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.batch_update_access_bindings({ parent: parent, requests: requests }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.batch_update_access_bindings parent: parent, requests: requests do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.batch_update_access_bindings ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new(parent: parent, requests: requests) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.batch_update_access_bindings({ parent: parent, requests: requests }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.batch_update_access_bindings(::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new(parent: parent, requests: requests), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, batch_update_access_bindings_client_stub.call_rpc_count + end + end + + def test_batch_delete_access_bindings + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + requests = [{}] + + batch_delete_access_bindings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :batch_delete_access_bindings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest, request + assert_equal "hello world", request["parent"] + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, request["requests"].first + refute_nil options + end + + Gapic::ServiceStub.stub :new, batch_delete_access_bindings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.batch_delete_access_bindings({ parent: parent, requests: requests }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.batch_delete_access_bindings parent: parent, requests: requests do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.batch_delete_access_bindings ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new(parent: parent, requests: requests) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.batch_delete_access_bindings({ parent: parent, requests: requests }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.batch_delete_access_bindings(::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new(parent: parent, requests: requests), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, batch_delete_access_bindings_client_stub.call_rpc_count + end + end + + def test_get_expanded_data_set + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_expanded_data_set_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_expanded_data_set, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_expanded_data_set_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_expanded_data_set({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_expanded_data_set name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_expanded_data_set ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_expanded_data_set({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_expanded_data_set(::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_expanded_data_set_client_stub.call_rpc_count + end + end + + def test_list_expanded_data_sets + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_expanded_data_sets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_expanded_data_sets, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_expanded_data_sets_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_expanded_data_sets({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_expanded_data_sets parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_expanded_data_sets ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_expanded_data_sets({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_expanded_data_sets(::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_expanded_data_sets_client_stub.call_rpc_count + end + end + + def test_create_expanded_data_set + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + expanded_data_set = {} + + create_expanded_data_set_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_expanded_data_set, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ExpandedDataSet), request["expanded_data_set"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_expanded_data_set_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_expanded_data_set({ parent: parent, expanded_data_set: expanded_data_set }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_expanded_data_set parent: parent, expanded_data_set: expanded_data_set do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_expanded_data_set ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new(parent: parent, expanded_data_set: expanded_data_set) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_expanded_data_set({ parent: parent, expanded_data_set: expanded_data_set }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_expanded_data_set(::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new(parent: parent, expanded_data_set: expanded_data_set), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_expanded_data_set_client_stub.call_rpc_count + end + end + + def test_update_expanded_data_set + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + expanded_data_set = {} + update_mask = {} + + update_expanded_data_set_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_expanded_data_set, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ExpandedDataSet), request["expanded_data_set"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_expanded_data_set_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_expanded_data_set({ expanded_data_set: expanded_data_set, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_expanded_data_set expanded_data_set: expanded_data_set, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_expanded_data_set ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new(expanded_data_set: expanded_data_set, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_expanded_data_set({ expanded_data_set: expanded_data_set, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_expanded_data_set(::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new(expanded_data_set: expanded_data_set, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_expanded_data_set_client_stub.call_rpc_count + end + end + + def test_delete_expanded_data_set + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_expanded_data_set_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_expanded_data_set, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_expanded_data_set_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_expanded_data_set({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_expanded_data_set name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_expanded_data_set ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_expanded_data_set({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_expanded_data_set(::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_expanded_data_set_client_stub.call_rpc_count + end + end + + def test_get_channel_group + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_channel_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_channel_group, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_channel_group_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_channel_group({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_channel_group name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_channel_group ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_channel_group({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_channel_group(::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_channel_group_client_stub.call_rpc_count + end + end + + def test_list_channel_groups + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_channel_groups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_channel_groups, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_channel_groups_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_channel_groups({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_channel_groups parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_channel_groups ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_channel_groups({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_channel_groups(::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_channel_groups_client_stub.call_rpc_count + end + end + + def test_create_channel_group + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + channel_group = {} + + create_channel_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_channel_group, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ChannelGroup), request["channel_group"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_channel_group_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_channel_group({ parent: parent, channel_group: channel_group }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_channel_group parent: parent, channel_group: channel_group do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_channel_group ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new(parent: parent, channel_group: channel_group) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_channel_group({ parent: parent, channel_group: channel_group }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_channel_group(::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new(parent: parent, channel_group: channel_group), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_channel_group_client_stub.call_rpc_count + end + end + + def test_update_channel_group + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + channel_group = {} + update_mask = {} + + update_channel_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_channel_group, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ChannelGroup), request["channel_group"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_channel_group_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_channel_group({ channel_group: channel_group, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_channel_group channel_group: channel_group, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_channel_group ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new(channel_group: channel_group, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_channel_group({ channel_group: channel_group, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_channel_group(::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new(channel_group: channel_group, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_channel_group_client_stub.call_rpc_count + end + end + + def test_delete_channel_group + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_channel_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_channel_group, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_channel_group_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_channel_group({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_channel_group name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_channel_group ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_channel_group({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_channel_group(::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_channel_group_client_stub.call_rpc_count + end + end + + def test_create_big_query_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + bigquery_link = {} + + create_big_query_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_big_query_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::BigQueryLink), request["bigquery_link"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_big_query_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_big_query_link({ parent: parent, bigquery_link: bigquery_link }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_big_query_link parent: parent, bigquery_link: bigquery_link do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_big_query_link ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new(parent: parent, bigquery_link: bigquery_link) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_big_query_link({ parent: parent, bigquery_link: bigquery_link }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_big_query_link(::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new(parent: parent, bigquery_link: bigquery_link), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_big_query_link_client_stub.call_rpc_count + end + end + + def test_get_big_query_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_big_query_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_big_query_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_big_query_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_big_query_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_big_query_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_big_query_link ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_big_query_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_big_query_link(::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_big_query_link_client_stub.call_rpc_count + end + end + + def test_list_big_query_links + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_big_query_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_big_query_links, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_big_query_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_big_query_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_big_query_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_big_query_links ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_big_query_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_big_query_links(::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_big_query_links_client_stub.call_rpc_count + end + end + + def test_delete_big_query_link + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_big_query_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_big_query_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_big_query_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_big_query_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_big_query_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_big_query_link ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_big_query_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_big_query_link(::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_big_query_link_client_stub.call_rpc_count + end + end + + def test_update_big_query_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + bigquery_link = {} + update_mask = {} + + update_big_query_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_big_query_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::BigQueryLink), request["bigquery_link"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_big_query_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_big_query_link({ bigquery_link: bigquery_link, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_big_query_link bigquery_link: bigquery_link, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_big_query_link ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new(bigquery_link: bigquery_link, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_big_query_link({ bigquery_link: bigquery_link, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_big_query_link(::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new(bigquery_link: bigquery_link, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_big_query_link_client_stub.call_rpc_count + end + end + + def test_get_enhanced_measurement_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_enhanced_measurement_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_enhanced_measurement_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_enhanced_measurement_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_enhanced_measurement_settings({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_enhanced_measurement_settings name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_enhanced_measurement_settings ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_enhanced_measurement_settings({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_enhanced_measurement_settings(::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_enhanced_measurement_settings_client_stub.call_rpc_count + end + end + + def test_update_enhanced_measurement_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + enhanced_measurement_settings = {} + update_mask = {} + + update_enhanced_measurement_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_enhanced_measurement_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings), request["enhanced_measurement_settings"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_enhanced_measurement_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_enhanced_measurement_settings({ enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_enhanced_measurement_settings enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_enhanced_measurement_settings ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new(enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_enhanced_measurement_settings({ enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_enhanced_measurement_settings(::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new(enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_enhanced_measurement_settings_client_stub.call_rpc_count + end + end + + def test_get_ad_sense_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::AdSenseLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_ad_sense_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_ad_sense_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_ad_sense_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_ad_sense_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_ad_sense_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_ad_sense_link ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_ad_sense_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_ad_sense_link(::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_ad_sense_link_client_stub.call_rpc_count + end + end + + def test_create_ad_sense_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::AdSenseLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + adsense_link = {} + + create_ad_sense_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_ad_sense_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AdSenseLink), request["adsense_link"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_ad_sense_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_ad_sense_link({ parent: parent, adsense_link: adsense_link }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_ad_sense_link parent: parent, adsense_link: adsense_link do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_ad_sense_link ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new(parent: parent, adsense_link: adsense_link) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_ad_sense_link({ parent: parent, adsense_link: adsense_link }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_ad_sense_link(::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new(parent: parent, adsense_link: adsense_link), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_ad_sense_link_client_stub.call_rpc_count + end + end + + def test_delete_ad_sense_link + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_ad_sense_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_ad_sense_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_ad_sense_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_ad_sense_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_ad_sense_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_ad_sense_link ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_ad_sense_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_ad_sense_link(::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_ad_sense_link_client_stub.call_rpc_count + end + end + + def test_list_ad_sense_links + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_ad_sense_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_ad_sense_links, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_ad_sense_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_ad_sense_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_ad_sense_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_ad_sense_links ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_ad_sense_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_ad_sense_links(::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_ad_sense_links_client_stub.call_rpc_count + end + end + + def test_get_event_create_rule + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_event_create_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_event_create_rule, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_event_create_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_event_create_rule({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_event_create_rule name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_event_create_rule ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_event_create_rule({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_event_create_rule(::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_event_create_rule_client_stub.call_rpc_count + end + end + + def test_list_event_create_rules + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_event_create_rules_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_event_create_rules, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_event_create_rules_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_event_create_rules({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_event_create_rules parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_event_create_rules ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_event_create_rules({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_event_create_rules(::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_event_create_rules_client_stub.call_rpc_count + end + end + + def test_create_event_create_rule + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + event_create_rule = {} + + create_event_create_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_event_create_rule, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::EventCreateRule), request["event_create_rule"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_event_create_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_event_create_rule({ parent: parent, event_create_rule: event_create_rule }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_event_create_rule parent: parent, event_create_rule: event_create_rule do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_event_create_rule ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new(parent: parent, event_create_rule: event_create_rule) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_event_create_rule({ parent: parent, event_create_rule: event_create_rule }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_event_create_rule(::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new(parent: parent, event_create_rule: event_create_rule), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_event_create_rule_client_stub.call_rpc_count + end + end + + def test_update_event_create_rule + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + event_create_rule = {} + update_mask = {} + + update_event_create_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_event_create_rule, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::EventCreateRule), request["event_create_rule"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_event_create_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_event_create_rule({ event_create_rule: event_create_rule, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_event_create_rule event_create_rule: event_create_rule, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_event_create_rule ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new(event_create_rule: event_create_rule, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_event_create_rule({ event_create_rule: event_create_rule, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_event_create_rule(::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new(event_create_rule: event_create_rule, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_event_create_rule_client_stub.call_rpc_count + end + end + + def test_delete_event_create_rule + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_event_create_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_event_create_rule, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_event_create_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_event_create_rule({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_event_create_rule name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_event_create_rule ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_event_create_rule({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_event_create_rule(::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_event_create_rule_client_stub.call_rpc_count + end + end + + def test_get_event_edit_rule + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::EventEditRule.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_event_edit_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_event_edit_rule, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_event_edit_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_event_edit_rule({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_event_edit_rule name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_event_edit_rule ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_event_edit_rule({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_event_edit_rule(::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_event_edit_rule_client_stub.call_rpc_count + end + end + + def test_list_event_edit_rules + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_event_edit_rules_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_event_edit_rules, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_event_edit_rules_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_event_edit_rules({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_event_edit_rules parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_event_edit_rules ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_event_edit_rules({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_event_edit_rules(::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_event_edit_rules_client_stub.call_rpc_count + end + end + + def test_create_event_edit_rule + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::EventEditRule.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + event_edit_rule = {} + + create_event_edit_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_event_edit_rule, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::EventEditRule), request["event_edit_rule"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_event_edit_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_event_edit_rule({ parent: parent, event_edit_rule: event_edit_rule }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_event_edit_rule parent: parent, event_edit_rule: event_edit_rule do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_event_edit_rule ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new(parent: parent, event_edit_rule: event_edit_rule) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_event_edit_rule({ parent: parent, event_edit_rule: event_edit_rule }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_event_edit_rule(::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new(parent: parent, event_edit_rule: event_edit_rule), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_event_edit_rule_client_stub.call_rpc_count + end + end + + def test_update_event_edit_rule + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::EventEditRule.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + event_edit_rule = {} + update_mask = {} + + update_event_edit_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_event_edit_rule, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::EventEditRule), request["event_edit_rule"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_event_edit_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_event_edit_rule({ event_edit_rule: event_edit_rule, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_event_edit_rule event_edit_rule: event_edit_rule, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_event_edit_rule ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new(event_edit_rule: event_edit_rule, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_event_edit_rule({ event_edit_rule: event_edit_rule, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_event_edit_rule(::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new(event_edit_rule: event_edit_rule, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_event_edit_rule_client_stub.call_rpc_count + end + end + + def test_delete_event_edit_rule + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_event_edit_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_event_edit_rule, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_event_edit_rule_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_event_edit_rule({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_event_edit_rule name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_event_edit_rule ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_event_edit_rule({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_event_edit_rule(::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_event_edit_rule_client_stub.call_rpc_count + end + end + + def test_reorder_event_edit_rules + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + event_edit_rules = ["hello world"] + + reorder_event_edit_rules_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :reorder_event_edit_rules, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest, request + assert_equal "hello world", request["parent"] + assert_equal ["hello world"], request["event_edit_rules"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, reorder_event_edit_rules_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.reorder_event_edit_rules({ parent: parent, event_edit_rules: event_edit_rules }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.reorder_event_edit_rules parent: parent, event_edit_rules: event_edit_rules do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.reorder_event_edit_rules ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new(parent: parent, event_edit_rules: event_edit_rules) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.reorder_event_edit_rules({ parent: parent, event_edit_rules: event_edit_rules }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.reorder_event_edit_rules(::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new(parent: parent, event_edit_rules: event_edit_rules), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, reorder_event_edit_rules_client_stub.call_rpc_count + end + end + + def test_update_data_redaction_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + data_redaction_settings = {} + update_mask = {} + + update_data_redaction_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_data_redaction_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DataRedactionSettings), request["data_redaction_settings"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_data_redaction_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_data_redaction_settings({ data_redaction_settings: data_redaction_settings, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_data_redaction_settings data_redaction_settings: data_redaction_settings, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_data_redaction_settings ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new(data_redaction_settings: data_redaction_settings, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_data_redaction_settings({ data_redaction_settings: data_redaction_settings, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_data_redaction_settings(::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new(data_redaction_settings: data_redaction_settings, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_data_redaction_settings_client_stub.call_rpc_count + end + end + + def test_get_data_redaction_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_data_redaction_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_data_redaction_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_data_redaction_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_data_redaction_settings({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_data_redaction_settings name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_data_redaction_settings ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_data_redaction_settings({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_data_redaction_settings(::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_data_redaction_settings_client_stub.call_rpc_count + end + end + + def test_get_calculated_metric + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_calculated_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_calculated_metric, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_calculated_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_calculated_metric({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_calculated_metric name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_calculated_metric ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_calculated_metric({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_calculated_metric(::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_calculated_metric_client_stub.call_rpc_count + end + end + + def test_create_calculated_metric + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + calculated_metric_id = "hello world" + calculated_metric = {} + + create_calculated_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_calculated_metric, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["calculated_metric_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CalculatedMetric), request["calculated_metric"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_calculated_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_calculated_metric({ parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_calculated_metric parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_calculated_metric ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new(parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_calculated_metric({ parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_calculated_metric(::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new(parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_calculated_metric_client_stub.call_rpc_count + end + end + + def test_list_calculated_metrics + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_calculated_metrics_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_calculated_metrics, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_calculated_metrics_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_calculated_metrics({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_calculated_metrics parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_calculated_metrics ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_calculated_metrics({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_calculated_metrics(::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_calculated_metrics_client_stub.call_rpc_count + end + end + + def test_update_calculated_metric + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + calculated_metric = {} + update_mask = {} + + update_calculated_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_calculated_metric, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CalculatedMetric), request["calculated_metric"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_calculated_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_calculated_metric({ calculated_metric: calculated_metric, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_calculated_metric calculated_metric: calculated_metric, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_calculated_metric ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new(calculated_metric: calculated_metric, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_calculated_metric({ calculated_metric: calculated_metric, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_calculated_metric(::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new(calculated_metric: calculated_metric, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_calculated_metric_client_stub.call_rpc_count + end + end + + def test_delete_calculated_metric + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_calculated_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_calculated_metric, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_calculated_metric_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_calculated_metric({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_calculated_metric name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_calculated_metric ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_calculated_metric({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_calculated_metric(::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_calculated_metric_client_stub.call_rpc_count + end + end + + def test_create_rollup_property + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + rollup_property = {} + source_properties = ["hello world"] + + create_rollup_property_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_rollup_property, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Property), request["rollup_property"] + assert_equal ["hello world"], request["source_properties"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_rollup_property_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_rollup_property({ rollup_property: rollup_property, source_properties: source_properties }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_rollup_property rollup_property: rollup_property, source_properties: source_properties do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_rollup_property ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new(rollup_property: rollup_property, source_properties: source_properties) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_rollup_property({ rollup_property: rollup_property, source_properties: source_properties }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_rollup_property(::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new(rollup_property: rollup_property, source_properties: source_properties), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_rollup_property_client_stub.call_rpc_count + end + end + + def test_get_rollup_property_source_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_rollup_property_source_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_rollup_property_source_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_rollup_property_source_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_rollup_property_source_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_rollup_property_source_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_rollup_property_source_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_rollup_property_source_link_client_stub.call_rpc_count + end + end + + def test_list_rollup_property_source_links + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_rollup_property_source_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_rollup_property_source_links, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_rollup_property_source_links_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_rollup_property_source_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_rollup_property_source_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_rollup_property_source_links ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_rollup_property_source_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_rollup_property_source_links(::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_rollup_property_source_links_client_stub.call_rpc_count + end + end + + def test_create_rollup_property_source_link + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + rollup_property_source_link = {} + + create_rollup_property_source_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_rollup_property_source_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink), request["rollup_property_source_link"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_rollup_property_source_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_rollup_property_source_link({ parent: parent, rollup_property_source_link: rollup_property_source_link }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_rollup_property_source_link parent: parent, rollup_property_source_link: rollup_property_source_link do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new(parent: parent, rollup_property_source_link: rollup_property_source_link) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_rollup_property_source_link({ parent: parent, rollup_property_source_link: rollup_property_source_link }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new(parent: parent, rollup_property_source_link: rollup_property_source_link), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_rollup_property_source_link_client_stub.call_rpc_count + end + end + + def test_delete_rollup_property_source_link + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_rollup_property_source_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_rollup_property_source_link, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_rollup_property_source_link_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_rollup_property_source_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_rollup_property_source_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_rollup_property_source_link({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_rollup_property_source_link_client_stub.call_rpc_count + end + end + + def test_provision_subproperty + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + subproperty = {} + subproperty_event_filter = {} + custom_dimension_and_metric_synchronization_mode = :SYNCHRONIZATION_MODE_UNSPECIFIED + + provision_subproperty_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :provision_subproperty, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Property), request["subproperty"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter), request["subproperty_event_filter"] + assert_equal :SYNCHRONIZATION_MODE_UNSPECIFIED, request["custom_dimension_and_metric_synchronization_mode"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, provision_subproperty_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.provision_subproperty subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.provision_subproperty ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.provision_subproperty(::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, provision_subproperty_client_stub.call_rpc_count + end + end + + def test_create_subproperty_event_filter + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + subproperty_event_filter = {} + + create_subproperty_event_filter_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_subproperty_event_filter, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter), request["subproperty_event_filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_subproperty_event_filter_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_subproperty_event_filter({ parent: parent, subproperty_event_filter: subproperty_event_filter }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_subproperty_event_filter parent: parent, subproperty_event_filter: subproperty_event_filter do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new(parent: parent, subproperty_event_filter: subproperty_event_filter) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_subproperty_event_filter({ parent: parent, subproperty_event_filter: subproperty_event_filter }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new(parent: parent, subproperty_event_filter: subproperty_event_filter), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_subproperty_event_filter_client_stub.call_rpc_count + end + end + + def test_get_subproperty_event_filter + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_subproperty_event_filter_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_subproperty_event_filter, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_subproperty_event_filter_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_subproperty_event_filter({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_subproperty_event_filter name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_subproperty_event_filter({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_subproperty_event_filter_client_stub.call_rpc_count + end + end + + def test_list_subproperty_event_filters + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_subproperty_event_filters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_subproperty_event_filters, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_subproperty_event_filters_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_subproperty_event_filters({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_subproperty_event_filters parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_subproperty_event_filters ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_subproperty_event_filters({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_subproperty_event_filters(::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_subproperty_event_filters_client_stub.call_rpc_count + end + end + + def test_update_subproperty_event_filter + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + subproperty_event_filter = {} + update_mask = {} + + update_subproperty_event_filter_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_subproperty_event_filter, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter), request["subproperty_event_filter"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_subproperty_event_filter_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_subproperty_event_filter({ subproperty_event_filter: subproperty_event_filter, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_subproperty_event_filter subproperty_event_filter: subproperty_event_filter, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new(subproperty_event_filter: subproperty_event_filter, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_subproperty_event_filter({ subproperty_event_filter: subproperty_event_filter, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new(subproperty_event_filter: subproperty_event_filter, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_subproperty_event_filter_client_stub.call_rpc_count + end + end + + def test_delete_subproperty_event_filter + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_subproperty_event_filter_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_subproperty_event_filter, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_subproperty_event_filter_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_subproperty_event_filter({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_subproperty_event_filter name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_subproperty_event_filter({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_subproperty_event_filter_client_stub.call_rpc_count + end + end + + def test_create_reporting_data_annotation + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + reporting_data_annotation = {} + + create_reporting_data_annotation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_reporting_data_annotation, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest, request + assert_equal "hello world", request["parent"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation), request["reporting_data_annotation"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_reporting_data_annotation_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.create_reporting_data_annotation({ parent: parent, reporting_data_annotation: reporting_data_annotation }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.create_reporting_data_annotation parent: parent, reporting_data_annotation: reporting_data_annotation do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.create_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new(parent: parent, reporting_data_annotation: reporting_data_annotation) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.create_reporting_data_annotation({ parent: parent, reporting_data_annotation: reporting_data_annotation }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.create_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new(parent: parent, reporting_data_annotation: reporting_data_annotation), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_reporting_data_annotation_client_stub.call_rpc_count + end + end + + def test_get_reporting_data_annotation + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_reporting_data_annotation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_reporting_data_annotation, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_reporting_data_annotation_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_reporting_data_annotation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_reporting_data_annotation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_reporting_data_annotation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_reporting_data_annotation_client_stub.call_rpc_count + end + end + + def test_list_reporting_data_annotations + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + + list_reporting_data_annotations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_reporting_data_annotations, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_reporting_data_annotations_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_reporting_data_annotations({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_reporting_data_annotations parent: parent, filter: filter, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_reporting_data_annotations ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_reporting_data_annotations({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_reporting_data_annotations(::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_reporting_data_annotations_client_stub.call_rpc_count + end + end + + def test_update_reporting_data_annotation + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + reporting_data_annotation = {} + update_mask = {} + + update_reporting_data_annotation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_reporting_data_annotation, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation), request["reporting_data_annotation"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_reporting_data_annotation_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_reporting_data_annotation({ reporting_data_annotation: reporting_data_annotation, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_reporting_data_annotation reporting_data_annotation: reporting_data_annotation, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new(reporting_data_annotation: reporting_data_annotation, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_reporting_data_annotation({ reporting_data_annotation: reporting_data_annotation, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new(reporting_data_annotation: reporting_data_annotation, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_reporting_data_annotation_client_stub.call_rpc_count + end + end + + def test_delete_reporting_data_annotation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_reporting_data_annotation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_reporting_data_annotation, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_reporting_data_annotation_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.delete_reporting_data_annotation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.delete_reporting_data_annotation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.delete_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.delete_reporting_data_annotation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.delete_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_reporting_data_annotation_client_stub.call_rpc_count + end + end + + def test_submit_user_deletion + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + user_id = "hello world" + name = "hello world" + + submit_user_deletion_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :submit_user_deletion, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest, request + assert_equal "hello world", request["user_id"] + assert_equal :user_id, request.user + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, submit_user_deletion_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.submit_user_deletion({ user_id: user_id, name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.submit_user_deletion user_id: user_id, name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.submit_user_deletion ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new(user_id: user_id, name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.submit_user_deletion({ user_id: user_id, name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.submit_user_deletion(::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new(user_id: user_id, name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, submit_user_deletion_client_stub.call_rpc_count + end + end + + def test_list_subproperty_sync_configs + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_subproperty_sync_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_subproperty_sync_configs, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_subproperty_sync_configs_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.list_subproperty_sync_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.list_subproperty_sync_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.list_subproperty_sync_configs ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.list_subproperty_sync_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.list_subproperty_sync_configs(::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_subproperty_sync_configs_client_stub.call_rpc_count + end + end + + def test_update_subproperty_sync_config + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + subproperty_sync_config = {} + update_mask = {} + + update_subproperty_sync_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_subproperty_sync_config, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig), request["subproperty_sync_config"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_subproperty_sync_config_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_subproperty_sync_config({ subproperty_sync_config: subproperty_sync_config, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_subproperty_sync_config subproperty_sync_config: subproperty_sync_config, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_subproperty_sync_config ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new(subproperty_sync_config: subproperty_sync_config, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_subproperty_sync_config({ subproperty_sync_config: subproperty_sync_config, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_subproperty_sync_config(::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new(subproperty_sync_config: subproperty_sync_config, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_subproperty_sync_config_client_stub.call_rpc_count + end + end + + def test_get_subproperty_sync_config + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_subproperty_sync_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_subproperty_sync_config, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_subproperty_sync_config_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_subproperty_sync_config({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_subproperty_sync_config name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_subproperty_sync_config ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_subproperty_sync_config({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_subproperty_sync_config(::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_subproperty_sync_config_client_stub.call_rpc_count + end + end + + def test_get_reporting_identity_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_reporting_identity_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_reporting_identity_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_reporting_identity_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_reporting_identity_settings({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_reporting_identity_settings name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_reporting_identity_settings ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_reporting_identity_settings({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_reporting_identity_settings(::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_reporting_identity_settings_client_stub.call_rpc_count + end + end + + def test_update_reporting_identity_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + reporting_identity_settings = {} + update_mask = {} + + update_reporting_identity_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_reporting_identity_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings), request["reporting_identity_settings"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_reporting_identity_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_reporting_identity_settings reporting_identity_settings: reporting_identity_settings, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_reporting_identity_settings ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_reporting_identity_settings(::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_reporting_identity_settings_client_stub.call_rpc_count + end + end + + def test_get_user_provided_data_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_user_provided_data_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_user_provided_data_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_user_provided_data_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.get_user_provided_data_settings({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.get_user_provided_data_settings name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.get_user_provided_data_settings ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.get_user_provided_data_settings({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.get_user_provided_data_settings(::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_user_provided_data_settings_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client, client + assert_equal creds, client.configure.credentials + end + end +end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/test/helper.rb b/owl-bot-staging/google-analytics-admin-v1alpha/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-analytics-admin-v1alpha/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From 2b3caae3cb2a8fe48ca9f6b973c046997fba9187 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 18 Jun 2026 22:07:54 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../.owlbot-manifest.json | 1 + .../gapic_metadata.json | 5 + .../admin/v1alpha/analytics_admin_pb.rb | 3 +- .../v1alpha/analytics_admin_service/client.rb | 99 + .../analytics_admin_service/rest/client.rb | 92 + .../rest/service_stub.rb | 62 + .../v1alpha/analytics_admin_services_pb.rb | 2 + .../analytics/admin/v1alpha/resources_pb.rb | 2 +- .../admin/v1alpha/analytics_admin.rb | 17 + .../analytics/admin/v1alpha/resources.rb | 4 + .../update_reporting_identity_settings.rb | 0 ...tadata_google.analytics.admin.v1alpha.json | 40 + .../analytics_admin_service_rest_test.rb | 55 + .../v1alpha/analytics_admin_service_test.rb | 60 + .../google-analytics-admin-v1alpha/.gitignore | 22 - .../.repo-metadata.json | 16 - .../.rubocop.yml | 33 - .../google-analytics-admin-v1alpha/.toys.rb | 28 - .../google-analytics-admin-v1alpha/.yardopts | 12 - .../AUTHENTICATION.md | 122 - .../CHANGELOG.md | 2 - .../google-analytics-admin-v1alpha/Gemfile | 14 - .../google-analytics-admin-v1alpha/LICENSE.md | 201 - .../google-analytics-admin-v1alpha/README.md | 151 - .../google-analytics-admin-v1alpha/Rakefile | 169 - .../gapic_metadata.json | 798 - .../google-analytics-admin-v1alpha.gemspec | 28 - .../lib/google-analytics-admin-v1alpha.rb | 21 - .../lib/google/analytics/admin/v1alpha.rb | 45 - .../admin/v1alpha/access_report_pb.rb | 44 - .../admin/v1alpha/analytics_admin_pb.rb | 230 - .../admin/v1alpha/analytics_admin_service.rb | 55 - .../v1alpha/analytics_admin_service/client.rb | 15919 ---------------- .../analytics_admin_service/credentials.rb | 54 - .../v1alpha/analytics_admin_service/paths.rb | 665 - .../v1alpha/analytics_admin_service/rest.rb | 52 - .../analytics_admin_service/rest/client.rb | 14830 -------------- .../rest/service_stub.rb | 9729 ---------- .../v1alpha/analytics_admin_services_pb.rb | 459 - .../analytics/admin/v1alpha/audience_pb.rb | 46 - .../admin/v1alpha/channel_group_pb.rb | 31 - .../admin/v1alpha/event_create_and_edit_pb.rb | 28 - .../admin/v1alpha/expanded_data_set_pb.rb | 31 - .../analytics/admin/v1alpha/resources_pb.rb | 103 - .../google/analytics/admin/v1alpha/rest.rb | 37 - .../v1alpha/subproperty_event_filter_pb.rb | 31 - .../google/analytics/admin/v1alpha/version.rb | 28 - .../proto_docs/README.md | 4 - .../analytics/admin/v1alpha/access_report.rb | 413 - .../admin/v1alpha/analytics_admin.rb | 2988 --- .../analytics/admin/v1alpha/audience.rb | 447 - .../analytics/admin/v1alpha/channel_group.rb | 179 - .../admin/v1alpha/event_create_and_edit.rb | 206 - .../admin/v1alpha/expanded_data_set.rb | 166 - .../analytics/admin/v1alpha/resources.rb | 2181 --- .../admin/v1alpha/subproperty_event_filter.rb | 167 - .../proto_docs/google/api/client.rb | 593 - .../proto_docs/google/api/field_behavior.rb | 85 - .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 - .../proto_docs/google/protobuf/duration.rb | 98 - .../proto_docs/google/protobuf/empty.rb | 34 - .../proto_docs/google/protobuf/field_mask.rb | 229 - .../proto_docs/google/protobuf/timestamp.rb | 127 - .../proto_docs/google/protobuf/wrappers.rb | 148 - .../proto_docs/google/type/date.rb | 56 - .../snippets/Gemfile | 32 - .../acknowledge_user_data_collection.rb | 47 - ...splay_video360_advertiser_link_proposal.rb | 47 - .../archive_audience.rb | 47 - .../archive_custom_dimension.rb | 47 - .../archive_custom_metric.rb | 47 - .../batch_create_access_bindings.rb | 47 - .../batch_delete_access_bindings.rb | 47 - .../batch_get_access_bindings.rb | 47 - .../batch_update_access_bindings.rb | 47 - ...splay_video360_advertiser_link_proposal.rb | 47 - .../create_access_binding.rb | 47 - .../create_ad_sense_link.rb | 47 - .../create_audience.rb | 47 - .../create_big_query_link.rb | 47 - .../create_calculated_metric.rb | 47 - .../create_channel_group.rb | 47 - .../create_conversion_event.rb | 47 - .../create_custom_dimension.rb | 47 - .../create_custom_metric.rb | 47 - .../create_data_stream.rb | 47 - ...create_display_video360_advertiser_link.rb | 47 - ...splay_video360_advertiser_link_proposal.rb | 47 - .../create_event_create_rule.rb | 47 - .../create_event_edit_rule.rb | 47 - .../create_expanded_data_set.rb | 47 - .../create_firebase_link.rb | 47 - .../create_google_ads_link.rb | 47 - .../create_key_event.rb | 47 - .../create_measurement_protocol_secret.rb | 47 - .../create_property.rb | 47 - .../create_reporting_data_annotation.rb | 47 - .../create_rollup_property.rb | 47 - .../create_rollup_property_source_link.rb | 47 - .../create_search_ads360_link.rb | 47 - ...e_sk_ad_network_conversion_value_schema.rb | 47 - .../create_subproperty_event_filter.rb | 47 - .../delete_access_binding.rb | 47 - .../analytics_admin_service/delete_account.rb | 47 - .../delete_ad_sense_link.rb | 47 - .../delete_big_query_link.rb | 47 - .../delete_calculated_metric.rb | 47 - .../delete_channel_group.rb | 47 - .../delete_conversion_event.rb | 47 - .../delete_data_stream.rb | 47 - ...delete_display_video360_advertiser_link.rb | 47 - ...splay_video360_advertiser_link_proposal.rb | 47 - .../delete_event_create_rule.rb | 47 - .../delete_event_edit_rule.rb | 47 - .../delete_expanded_data_set.rb | 47 - .../delete_firebase_link.rb | 47 - .../delete_google_ads_link.rb | 47 - .../delete_key_event.rb | 47 - .../delete_measurement_protocol_secret.rb | 47 - .../delete_property.rb | 47 - .../delete_reporting_data_annotation.rb | 47 - .../delete_rollup_property_source_link.rb | 47 - .../delete_search_ads360_link.rb | 47 - ...e_sk_ad_network_conversion_value_schema.rb | 47 - .../delete_subproperty_event_filter.rb | 47 - .../get_access_binding.rb | 47 - .../analytics_admin_service/get_account.rb | 47 - .../get_ad_sense_link.rb | 47 - .../get_attribution_settings.rb | 47 - .../analytics_admin_service/get_audience.rb | 47 - .../get_big_query_link.rb | 47 - .../get_calculated_metric.rb | 47 - .../get_channel_group.rb | 47 - .../get_conversion_event.rb | 47 - .../get_custom_dimension.rb | 47 - .../get_custom_metric.rb | 47 - .../get_data_redaction_settings.rb | 47 - .../get_data_retention_settings.rb | 47 - .../get_data_sharing_settings.rb | 47 - .../get_data_stream.rb | 47 - .../get_display_video360_advertiser_link.rb | 47 - ...splay_video360_advertiser_link_proposal.rb | 47 - .../get_enhanced_measurement_settings.rb | 47 - .../get_event_create_rule.rb | 47 - .../get_event_edit_rule.rb | 47 - .../get_expanded_data_set.rb | 47 - .../get_global_site_tag.rb | 47 - .../get_google_signals_settings.rb | 47 - .../analytics_admin_service/get_key_event.rb | 47 - .../get_measurement_protocol_secret.rb | 47 - .../analytics_admin_service/get_property.rb | 47 - .../get_reporting_data_annotation.rb | 47 - .../get_reporting_identity_settings.rb | 47 - .../get_rollup_property_source_link.rb | 47 - .../get_search_ads360_link.rb | 47 - ...t_sk_ad_network_conversion_value_schema.rb | 47 - .../get_subproperty_event_filter.rb | 47 - .../get_subproperty_sync_config.rb | 47 - .../get_user_provided_data_settings.rb | 47 - .../list_access_bindings.rb | 51 - .../list_account_summaries.rb | 51 - .../analytics_admin_service/list_accounts.rb | 51 - .../list_ad_sense_links.rb | 51 - .../analytics_admin_service/list_audiences.rb | 51 - .../list_big_query_links.rb | 51 - .../list_calculated_metrics.rb | 51 - .../list_channel_groups.rb | 51 - .../list_conversion_events.rb | 51 - .../list_custom_dimensions.rb | 51 - .../list_custom_metrics.rb | 51 - .../list_data_streams.rb | 51 - ...play_video360_advertiser_link_proposals.rb | 51 - .../list_display_video360_advertiser_links.rb | 51 - .../list_event_create_rules.rb | 51 - .../list_event_edit_rules.rb | 51 - .../list_expanded_data_sets.rb | 51 - .../list_firebase_links.rb | 51 - .../list_google_ads_links.rb | 51 - .../list_key_events.rb | 51 - .../list_measurement_protocol_secrets.rb | 51 - .../list_properties.rb | 51 - .../list_reporting_data_annotations.rb | 51 - .../list_rollup_property_source_links.rb | 51 - .../list_search_ads360_links.rb | 51 - ..._sk_ad_network_conversion_value_schemas.rb | 51 - .../list_subproperty_event_filters.rb | 51 - .../list_subproperty_sync_configs.rb | 51 - .../provision_account_ticket.rb | 47 - .../provision_subproperty.rb | 47 - .../reorder_event_edit_rules.rb | 47 - .../run_access_report.rb | 47 - .../search_change_history_events.rb | 51 - .../submit_user_deletion.rb | 47 - .../update_access_binding.rb | 47 - .../analytics_admin_service/update_account.rb | 47 - .../update_attribution_settings.rb | 47 - .../update_audience.rb | 47 - .../update_big_query_link.rb | 47 - .../update_calculated_metric.rb | 47 - .../update_channel_group.rb | 47 - .../update_conversion_event.rb | 47 - .../update_custom_dimension.rb | 47 - .../update_custom_metric.rb | 47 - .../update_data_redaction_settings.rb | 47 - .../update_data_retention_settings.rb | 47 - .../update_data_stream.rb | 47 - ...update_display_video360_advertiser_link.rb | 47 - .../update_enhanced_measurement_settings.rb | 47 - .../update_event_create_rule.rb | 47 - .../update_event_edit_rule.rb | 47 - .../update_expanded_data_set.rb | 47 - .../update_google_ads_link.rb | 47 - .../update_google_signals_settings.rb | 47 - .../update_key_event.rb | 47 - .../update_measurement_protocol_secret.rb | 47 - .../update_property.rb | 47 - .../update_reporting_data_annotation.rb | 47 - .../update_search_ads360_link.rb | 47 - ...e_sk_ad_network_conversion_value_schema.rb | 47 - .../update_subproperty_event_filter.rb | 47 - .../update_subproperty_sync_config.rb | 47 - ...tadata_google.analytics.admin.v1alpha.json | 6255 ------ .../analytics_admin_service_paths_test.rb | 490 - .../analytics_admin_service_rest_test.rb | 8664 --------- .../v1alpha/analytics_admin_service_test.rb | 9580 ---------- .../test/helper.rb | 26 - 227 files changed, 440 insertions(+), 84903 deletions(-) rename {owl-bot-staging/google-analytics-admin-v1alpha => google-analytics-admin-v1alpha}/snippets/analytics_admin_service/update_reporting_identity_settings.rb (100%) delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/.gitignore delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/.repo-metadata.json delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/.rubocop.yml delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/.toys.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/.yardopts delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/CHANGELOG.md delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/Gemfile delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/LICENSE.md delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/README.md delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/Rakefile delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/gapic_metadata.json delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/google-analytics-admin-v1alpha.gemspec delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google-analytics-admin-v1alpha.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/access_report_pb.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/credentials.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/expanded_data_set_pb.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/rest.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/subproperty_event_filter_pb.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/version.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/README.md delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/access_report.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/subproperty_event_filter.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/empty.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/wrappers.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/type/date.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/Gemfile delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/acknowledge_user_data_collection.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/approve_display_video360_advertiser_link_proposal.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_audience.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_dimension.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_metric.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_create_access_bindings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_delete_access_bindings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_get_access_bindings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_update_access_bindings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/cancel_display_video360_advertiser_link_proposal.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_access_binding.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_ad_sense_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_audience.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_calculated_metric.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_channel_group.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_conversion_event.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_dimension.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_metric.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_data_stream.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link_proposal.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_create_rule.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_expanded_data_set.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_firebase_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_google_ads_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_measurement_protocol_secret.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_property.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_reporting_data_annotation.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property_source_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_search_ads360_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty_event_filter.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_access_binding.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_account.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_ad_sense_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_calculated_metric.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_channel_group.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_conversion_event.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_data_stream.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_create_rule.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_expanded_data_set.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_firebase_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_google_ads_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_measurement_protocol_secret.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_property.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_reporting_data_annotation.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_rollup_property_source_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_search_ads360_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_sk_ad_network_conversion_value_schema.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_subproperty_event_filter.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_access_binding.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_account.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_ad_sense_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_attribution_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_audience.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_big_query_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_calculated_metric.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_channel_group.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_conversion_event.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_dimension.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_metric.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_redaction_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_retention_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_sharing_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_stream.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link_proposal.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_enhanced_measurement_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_create_rule.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_expanded_data_set.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_global_site_tag.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_google_signals_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_measurement_protocol_secret.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_property.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_data_annotation.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_identity_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_rollup_property_source_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_search_ads360_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_sk_ad_network_conversion_value_schema.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_event_filter.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_sync_config.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_user_provided_data_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_access_bindings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_account_summaries.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_accounts.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_ad_sense_links.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_audiences.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_big_query_links.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_calculated_metrics.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_channel_groups.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_conversion_events.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_dimensions.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_metrics.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_data_streams.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_link_proposals.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_links.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_create_rules.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_expanded_data_sets.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_firebase_links.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_google_ads_links.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_measurement_protocol_secrets.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_properties.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_reporting_data_annotations.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_rollup_property_source_links.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_search_ads360_links.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_event_filters.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_sync_configs.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_account_ticket.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/run_access_report.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/search_change_history_events.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/submit_user_deletion.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_access_binding.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_account.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_attribution_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_audience.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_calculated_metric.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_channel_group.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_conversion_event.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_dimension.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_metric.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_redaction_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_retention_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_stream.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_display_video360_advertiser_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_enhanced_measurement_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_create_rule.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_expanded_data_set.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_ads_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_signals_settings.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_measurement_protocol_secret.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_property.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_data_annotation.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_search_ads360_link.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_event_filter.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_sync_config.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb delete mode 100644 owl-bot-staging/google-analytics-admin-v1alpha/test/helper.rb diff --git a/google-analytics-admin-v1alpha/.owlbot-manifest.json b/google-analytics-admin-v1alpha/.owlbot-manifest.json index 42bd2757663c..6c1ca622a2af 100644 --- a/google-analytics-admin-v1alpha/.owlbot-manifest.json +++ b/google-analytics-admin-v1alpha/.owlbot-manifest.json @@ -204,6 +204,7 @@ "snippets/analytics_admin_service/update_measurement_protocol_secret.rb", "snippets/analytics_admin_service/update_property.rb", "snippets/analytics_admin_service/update_reporting_data_annotation.rb", + "snippets/analytics_admin_service/update_reporting_identity_settings.rb", "snippets/analytics_admin_service/update_search_ads360_link.rb", "snippets/analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb", "snippets/analytics_admin_service/update_subproperty_event_filter.rb", diff --git a/google-analytics-admin-v1alpha/gapic_metadata.json b/google-analytics-admin-v1alpha/gapic_metadata.json index 838da112526a..398dc40c6db3 100644 --- a/google-analytics-admin-v1alpha/gapic_metadata.json +++ b/google-analytics-admin-v1alpha/gapic_metadata.json @@ -780,6 +780,11 @@ "get_reporting_identity_settings" ] }, + "UpdateReportingIdentitySettings": { + "methods": [ + "update_reporting_identity_settings" + ] + }, "GetUserProvidedDataSettings": { "methods": [ "get_user_provided_data_settings" diff --git a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb index 2de79b46be7a..19988dbd9e2b 100644 --- a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb +++ b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb @@ -20,7 +20,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n4google/analytics/admin/v1alpha/analytics_admin.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x32google/analytics/admin/v1alpha/access_report.proto\x1a-google/analytics/admin/v1alpha/audience.proto\x1a\x32google/analytics/admin/v1alpha/channel_group.proto\x1a:google/analytics/admin/v1alpha/event_create_and_edit.proto\x1a\x36google/analytics/admin/v1alpha/expanded_data_set.proto\x1a.google/analytics/admin/v1alpha/resources.proto\x1a=google/analytics/admin/v1alpha/subproperty_event_filter.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe0\x04\n\x16RunAccessReportRequest\x12\x0e\n\x06\x65ntity\x18\x01 \x01(\t\x12\x43\n\ndimensions\x18\x02 \x03(\x0b\x32/.google.analytics.admin.v1alpha.AccessDimension\x12=\n\x07metrics\x18\x03 \x03(\x0b\x32,.google.analytics.admin.v1alpha.AccessMetric\x12\x44\n\x0b\x64\x61te_ranges\x18\x04 \x03(\x0b\x32/.google.analytics.admin.v1alpha.AccessDateRange\x12P\n\x10\x64imension_filter\x18\x05 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpression\x12M\n\rmetric_filter\x18\x06 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpression\x12\x0e\n\x06offset\x18\x07 \x01(\x03\x12\r\n\x05limit\x18\x08 \x01(\x03\x12\x11\n\ttime_zone\x18\t \x01(\t\x12@\n\torder_bys\x18\n \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessOrderBy\x12\x1b\n\x13return_entity_quota\x18\x0b \x01(\x08\x12\x1e\n\x11include_all_users\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rexpand_groups\x18\r \x01(\x08\x42\x03\xe0\x41\x01\"\xbf\x02\n\x17RunAccessReportResponse\x12P\n\x11\x64imension_headers\x18\x01 \x03(\x0b\x32\x35.google.analytics.admin.v1alpha.AccessDimensionHeader\x12J\n\x0emetric_headers\x18\x02 \x03(\x0b\x32\x32.google.analytics.admin.v1alpha.AccessMetricHeader\x12\x37\n\x04rows\x18\x03 \x03(\x0b\x32).google.analytics.admin.v1alpha.AccessRow\x12\x11\n\trow_count\x18\x04 \x01(\x05\x12:\n\x05quota\x18\x05 \x01(\x0b\x32+.google.analytics.admin.v1alpha.AccessQuota\"P\n\x11GetAccountRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\"\\\n\x13ListAccountsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x0cshow_deleted\x18\x03 \x01(\x08\"j\n\x14ListAccountsResponse\x12\x39\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\'.google.analytics.admin.v1alpha.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x14\x44\x65leteAccountRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\"\x8b\x01\n\x14UpdateAccountRequest\x12=\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.AccountB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"o\n\x1dProvisionAccountTicketRequest\x12\x38\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.Account\x12\x14\n\x0credirect_uri\x18\x02 \x01(\t\";\n\x1eProvisionAccountTicketResponse\x12\x19\n\x11\x61\x63\x63ount_ticket_id\x18\x01 \x01(\t\"R\n\x12GetPropertyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"s\n\x15ListPropertiesRequest\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"o\n\x16ListPropertiesResponse\x12<\n\nproperties\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8e\x01\n\x15UpdatePropertyRequest\x12?\n\x08property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"X\n\x15\x43reatePropertyRequest\x12?\n\x08property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\"U\n\x15\x44\x65letePropertyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"\xa9\x01\n\x19\x43reateFirebaseLinkRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/FirebaseLink\x12H\n\rfirebase_link\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLinkB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteFirebaseLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/FirebaseLink\"\x8f\x01\n\x18ListFirebaseLinksRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/FirebaseLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"z\n\x19ListFirebaseLinksResponse\x12\x44\n\x0e\x66irebase_links\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\\\n\x17GetGlobalSiteTagRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/GlobalSiteTag\"\xae\x01\n\x1a\x43reateGoogleAdsLinkRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/GoogleAdsLink\x12K\n\x0fgoogle_ads_link\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLinkB\x03\xe0\x41\x02\"\x9a\x01\n\x1aUpdateGoogleAdsLinkRequest\x12\x46\n\x0fgoogle_ads_link\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLink\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x1a\x44\x65leteGoogleAdsLinkRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/GoogleAdsLink\"\x91\x01\n\x19ListGoogleAdsLinksRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListGoogleAdsLinksResponse\x12G\n\x10google_ads_links\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"h\n\x1dGetDataSharingSettingsRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1analyticsadmin.googleapis.com/DataSharingSettings\"N\n\x1bListAccountSummariesRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x1cListAccountSummariesResponse\x12I\n\x11\x61\x63\x63ount_summaries\x18\x01 \x03(\x0b\x32..google.analytics.admin.v1alpha.AccountSummary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x86\x01\n$AcknowledgeUserDataCollectionRequest\x12@\n\x08property\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12\x1c\n\x0f\x61\x63knowledgement\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\'\n%AcknowledgeUserDataCollectionResponse\"\x83\x04\n SearchChangeHistoryEventsRequest\x12>\n\x07\x61\x63\x63ount\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12@\n\x08property\x18\x02 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12U\n\rresource_type\x18\x03 \x03(\x0e\x32\x39.google.analytics.admin.v1alpha.ChangeHistoryResourceTypeB\x03\xe0\x41\x01\x12?\n\x06\x61\x63tion\x18\x04 \x03(\x0e\x32*.google.analytics.admin.v1alpha.ActionTypeB\x03\xe0\x41\x01\x12\x18\n\x0b\x61\x63tor_email\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12=\n\x14\x65\x61rliest_change_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12;\n\x12latest_change_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\t \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n!SearchChangeHistoryEventsResponse\x12Q\n\x15\x63hange_history_events\x18\x01 \x03(\x0b\x32\x32.google.analytics.admin.v1alpha.ChangeHistoryEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"t\n#GetMeasurementProtocolSecretRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\xde\x01\n&CreateMeasurementProtocolSecretRequest\x12O\n\x06parent\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37\x61nalyticsadmin.googleapis.com/MeasurementProtocolSecret\x12\x63\n\x1bmeasurement_protocol_secret\x18\x02 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\x03\xe0\x41\x02\"w\n&DeleteMeasurementProtocolSecretRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\xc3\x01\n&UpdateMeasurementProtocolSecretRequest\x12\x63\n\x1bmeasurement_protocol_secret\x18\x01 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa9\x01\n%ListMeasurementProtocolSecretsRequest\x12O\n\x06parent\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37\x61nalyticsadmin.googleapis.com/MeasurementProtocolSecret\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa2\x01\n&ListMeasurementProtocolSecretsResponse\x12_\n\x1cmeasurement_protocol_secrets\x18\x01 \x03(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x01\n*GetSKAdNetworkConversionValueSchemaRequest\x12T\n\x04name\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\xfb\x01\n-CreateSKAdNetworkConversionValueSchemaRequest\x12V\n\x06parent\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\x12>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12r\n#skadnetwork_conversion_value_schema\x18\x02 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\x03\xe0\x41\x02\"\x85\x01\n-DeleteSKAdNetworkConversionValueSchemaRequest\x12T\n\x04name\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\xd9\x01\n-UpdateSKAdNetworkConversionValueSchemaRequest\x12r\n#skadnetwork_conversion_value_schema\x18\x01 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb7\x01\n,ListSKAdNetworkConversionValueSchemasRequest\x12V\n\x06parent\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\x12>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xb8\x01\n-ListSKAdNetworkConversionValueSchemasResponse\x12n\n$skadnetwork_conversion_value_schemas\x18\x01 \x03(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"l\n\x1fGetGoogleSignalsSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/GoogleSignalsSettings\"\xb7\x01\n\"UpdateGoogleSignalsSettingsRequest\x12[\n\x17google_signals_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.GoogleSignalsSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb5\x01\n\x1c\x43reateConversionEventRequest\x12N\n\x10\x63onversion_event\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventB\x03\xe0\x41\x02\x12\x45\n\x06parent\x18\x02 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ConversionEvent\"\xa4\x01\n\x1cUpdateConversionEventRequest\x12N\n\x10\x63onversion_event\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"`\n\x19GetConversionEventRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ConversionEvent\"c\n\x1c\x44\x65leteConversionEventRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ConversionEvent\"\x95\x01\n\x1bListConversionEventsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ConversionEvent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x1cListConversionEventsResponse\x12J\n\x11\x63onversion_events\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x99\x01\n\x15\x43reateKeyEventRequest\x12@\n\tkey_event\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventB\x03\xe0\x41\x02\x12>\n\x06parent\x18\x02 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/KeyEvent\"\x8f\x01\n\x15UpdateKeyEventRequest\x12@\n\tkey_event\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"R\n\x12GetKeyEventRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/KeyEvent\"U\n\x15\x44\x65leteKeyEventRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/KeyEvent\"\x87\x01\n\x14ListKeyEventsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/KeyEvent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"n\n\x15ListKeyEventsResponse\x12<\n\nkey_events\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.KeyEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"|\n\'GetDisplayVideo360AdvertiserLinkRequest\x12Q\n\x04name\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\xa7\x01\n)ListDisplayVideo360AdvertiserLinksRequest\x12S\n\x06parent\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\x12;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xb0\x01\n*ListDisplayVideo360AdvertiserLinksResponse\x12i\n\"display_video_360_advertiser_links\x18\x01 \x03(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf0\x01\n*CreateDisplayVideo360AdvertiserLinkRequest\x12S\n\x06parent\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\x12;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12m\n!display_video_360_advertiser_link\x18\x02 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkB\x03\xe0\x41\x02\"\x7f\n*DeleteDisplayVideo360AdvertiserLinkRequest\x12Q\n\x04name\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\xcc\x01\n*UpdateDisplayVideo360AdvertiserLinkRequest\x12h\n!display_video_360_advertiser_link\x18\x01 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x8c\x01\n/GetDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\xb7\x01\n1ListDisplayVideo360AdvertiserLinkProposalsRequest\x12[\n\x06parent\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\x12\x43\x61nalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xc9\x01\n2ListDisplayVideo360AdvertiserLinkProposalsResponse\x12z\n+display_video_360_advertiser_link_proposals\x18\x01 \x03(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x91\x02\n2CreateDisplayVideo360AdvertiserLinkProposalRequest\x12[\n\x06parent\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\x12\x43\x61nalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12~\n*display_video_360_advertiser_link_proposal\x18\x02 \x01(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalB\x03\xe0\x41\x02\"\x8f\x01\n2DeleteDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\x90\x01\n3ApproveDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\xa0\x01\n4ApproveDisplayVideo360AdvertiserLinkProposalResponse\x12h\n!display_video_360_advertiser_link\x18\x01 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\x8f\x01\n2CancelDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"b\n\x1aGetSearchAds360LinkRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/SearchAds360Link\"\x8d\x01\n\x1cListSearchAds360LinksRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/SearchAds360Link\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x88\x01\n\x1dListSearchAds360LinksResponse\x12N\n\x14search_ads_360_links\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360Link\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbb\x01\n\x1d\x43reateSearchAds360LinkRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/SearchAds360Link\x12R\n\x13search_ads_360_link\x18\x02 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360LinkB\x03\xe0\x41\x02\"e\n\x1d\x44\x65leteSearchAds360LinkRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/SearchAds360Link\"\xa4\x01\n\x1dUpdateSearchAds360LinkRequest\x12M\n\x13search_ads_360_link\x18\x01 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360Link\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb5\x01\n\x1c\x43reateCustomDimensionRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/CustomDimension\x12N\n\x10\x63ustom_dimension\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimensionB\x03\xe0\x41\x02\"\x9f\x01\n\x1cUpdateCustomDimensionRequest\x12I\n\x10\x63ustom_dimension\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimension\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x95\x01\n\x1bListCustomDimensionsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/CustomDimension\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x1cListCustomDimensionsResponse\x12J\n\x11\x63ustom_dimensions\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimension\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x1d\x41rchiveCustomDimensionRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/CustomDimension\"`\n\x19GetCustomDimensionRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/CustomDimension\"\xa9\x01\n\x19\x43reateCustomMetricRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/CustomMetric\x12H\n\rcustom_metric\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetricB\x03\xe0\x41\x02\"\x96\x01\n\x19UpdateCustomMetricRequest\x12\x43\n\rcustom_metric\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetric\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x85\x01\n\x18ListCustomMetricsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/CustomMetric\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListCustomMetricsResponse\x12\x44\n\x0e\x63ustom_metrics\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetric\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"^\n\x1a\x41rchiveCustomMetricRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/CustomMetric\"Z\n\x16GetCustomMetricRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/CustomMetric\"\xdc\x01\n\x1d\x43reateCalculatedMetricRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/CalculatedMetric\x12!\n\x14\x63\x61lculated_metric_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x11\x63\x61lculated_metric\x18\x03 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricB\x03\xe0\x41\x02\"\xa7\x01\n\x1dUpdateCalculatedMetricRequest\x12P\n\x11\x63\x61lculated_metric\x18\x01 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"e\n\x1d\x44\x65leteCalculatedMetricRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/CalculatedMetric\"\x97\x01\n\x1cListCalculatedMetricsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/CalculatedMetric\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x86\x01\n\x1dListCalculatedMetricsResponse\x12L\n\x12\x63\x61lculated_metrics\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetric\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"b\n\x1aGetCalculatedMetricRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/CalculatedMetric\"l\n\x1fGetDataRetentionSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/DataRetentionSettings\"\xb7\x01\n\"UpdateDataRetentionSettingsRequest\x12[\n\x17\x64\x61ta_retention_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRetentionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa1\x01\n\x17\x43reateDataStreamRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(analyticsadmin.googleapis.com/DataStream\x12\x44\n\x0b\x64\x61ta_stream\x18\x02 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStreamB\x03\xe0\x41\x02\"Y\n\x17\x44\x65leteDataStreamRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(analyticsadmin.googleapis.com/DataStream\"\x90\x01\n\x17UpdateDataStreamRequest\x12?\n\x0b\x64\x61ta_stream\x18\x01 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStream\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x81\x01\n\x16ListDataStreamsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(analyticsadmin.googleapis.com/DataStream\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x17ListDataStreamsResponse\x12@\n\x0c\x64\x61ta_streams\x18\x01 \x03(\x0b\x32*.google.analytics.admin.v1alpha.DataStream\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x14GetDataStreamRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(analyticsadmin.googleapis.com/DataStream\"R\n\x12GetAudienceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Audience\"}\n\x14ListAudiencesRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"m\n\x15ListAudiencesResponse\x12;\n\taudiences\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.Audience\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x98\x01\n\x15\x43reateAudienceRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\x12?\n\x08\x61udience\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceB\x03\xe0\x41\x02\"\x8e\x01\n\x15UpdateAudienceRequest\x12?\n\x08\x61udience\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"V\n\x16\x41rchiveAudienceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\"h\n\x1dGetAttributionSettingsRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1analyticsadmin.googleapis.com/AttributionSettings\"\xb0\x01\n UpdateAttributionSettingsRequest\x12V\n\x14\x61ttribution_settings\x18\x01 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AttributionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\\\n\x17GetAccessBindingRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"\xa8\x01\n\x1d\x42\x61tchGetAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12\x42\n\x05names\x18\x02 \x03(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"h\n\x1e\x42\x61tchGetAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"\x87\x01\n\x19ListAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"}\n\x1aListAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x01\n\x1a\x43reateAccessBindingRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12J\n\x0e\x61\x63\x63\x65ss_binding\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.AccessBindingB\x03\xe0\x41\x02\"\xba\x01\n BatchCreateAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x03 \x03(\x0b\x32:.google.analytics.admin.v1alpha.CreateAccessBindingRequestB\x03\xe0\x41\x02\"k\n!BatchCreateAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"h\n\x1aUpdateAccessBindingRequest\x12J\n\x0e\x61\x63\x63\x65ss_binding\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.AccessBindingB\x03\xe0\x41\x02\"\xba\x01\n BatchUpdateAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x02 \x03(\x0b\x32:.google.analytics.admin.v1alpha.UpdateAccessBindingRequestB\x03\xe0\x41\x02\"k\n!BatchUpdateAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"_\n\x1a\x44\x65leteAccessBindingRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"\xba\x01\n BatchDeleteAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x02 \x03(\x0b\x32:.google.analytics.admin.v1alpha.DeleteAccessBindingRequestB\x03\xe0\x41\x02\"\xb6\x01\n\x1c\x43reateExpandedDataSetRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ExpandedDataSet\x12O\n\x11\x65xpanded_data_set\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetB\x03\xe0\x41\x02\"\xa5\x01\n\x1cUpdateExpandedDataSetRequest\x12O\n\x11\x65xpanded_data_set\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"c\n\x1c\x44\x65leteExpandedDataSetRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ExpandedDataSet\"`\n\x19GetExpandedDataSetRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ExpandedDataSet\"\x8b\x01\n\x1bListExpandedDataSetsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ExpandedDataSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1cListExpandedDataSetsResponse\x12K\n\x12\x65xpanded_data_sets\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa9\x01\n\x19\x43reateChannelGroupRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/ChannelGroup\x12H\n\rchannel_group\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupB\x03\xe0\x41\x02\"\x9b\x01\n\x19UpdateChannelGroupRequest\x12H\n\rchannel_group\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteChannelGroupRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/ChannelGroup\"Z\n\x16GetChannelGroupRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/ChannelGroup\"\x85\x01\n\x18ListChannelGroupsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/ChannelGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListChannelGroupsResponse\x12\x44\n\x0e\x63hannel_groups\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa9\x01\n\x19\x43reateBigQueryLinkRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/BigQueryLink\x12H\n\rbigquery_link\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkB\x03\xe0\x41\x02\"Z\n\x16GetBigQueryLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/BigQueryLink\"\x85\x01\n\x18ListBigQueryLinksRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/BigQueryLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListBigQueryLinksResponse\x12\x44\n\x0e\x62igquery_links\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9b\x01\n\x19UpdateBigQueryLinkRequest\x12H\n\rbigquery_link\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteBigQueryLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/BigQueryLink\"x\n%GetEnhancedMeasurementSettingsRequest\x12O\n\x04name\x18\x01 \x01(\tBA\xe0\x41\x02\xfa\x41;\n9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\"\xc9\x01\n(UpdateEnhancedMeasurementSettingsRequest\x12g\n\x1d\x65nhanced_measurement_settings\x18\x01 \x01(\x0b\x32;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"l\n\x1fGetDataRedactionSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/DataRedactionSettings\"\xb7\x01\n\"UpdateDataRedactionSettingsRequest\x12[\n\x17\x64\x61ta_redaction_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRedactionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa5\x01\n\x18\x43reateAdSenseLinkRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)analyticsadmin.googleapis.com/AdSenseLink\x12\x46\n\x0c\x61\x64sense_link\x18\x02 \x01(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLinkB\x03\xe0\x41\x02\"X\n\x15GetAdSenseLinkRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)analyticsadmin.googleapis.com/AdSenseLink\"[\n\x18\x44\x65leteAdSenseLinkRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)analyticsadmin.googleapis.com/AdSenseLink\"\x83\x01\n\x17ListAdSenseLinksRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)analyticsadmin.googleapis.com/AdSenseLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"w\n\x18ListAdSenseLinksResponse\x12\x42\n\radsense_links\x18\x01 \x03(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb6\x01\n\x1c\x43reateEventCreateRuleRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/EventCreateRule\x12O\n\x11\x65vent_create_rule\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleB\x03\xe0\x41\x02\"\xa5\x01\n\x1cUpdateEventCreateRuleRequest\x12O\n\x11\x65vent_create_rule\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"c\n\x1c\x44\x65leteEventCreateRuleRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/EventCreateRule\"`\n\x19GetEventCreateRuleRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/EventCreateRule\"\x8b\x01\n\x1bListEventCreateRulesRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/EventCreateRule\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1cListEventCreateRulesResponse\x12K\n\x12\x65vent_create_rules\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xae\x01\n\x1a\x43reateEventEditRuleRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12K\n\x0f\x65vent_edit_rule\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRuleB\x03\xe0\x41\x02\"\x9f\x01\n\x1aUpdateEventEditRuleRequest\x12K\n\x0f\x65vent_edit_rule\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRuleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x1a\x44\x65leteEventEditRuleRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/EventEditRule\"\\\n\x17GetEventEditRuleRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/EventEditRule\"\x91\x01\n\x19ListEventEditRulesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListEventEditRulesResponse\x12G\n\x10\x65vent_edit_rules\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x01\n\x1cReorderEventEditRulesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12\x1d\n\x10\x65vent_edit_rules\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\x85\x01\n\x1b\x43reateRollupPropertyRequest\x12\x46\n\x0frollup_property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12\x1e\n\x11source_properties\x18\x02 \x03(\tB\x03\xe0\x41\x01\"\xc1\x01\n\x1c\x43reateRollupPropertyResponse\x12\x41\n\x0frollup_property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12^\n\x1crollup_property_source_links\x18\x02 \x03(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"r\n\"GetRollupPropertySourceLinkRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\xa7\x01\n$ListRollupPropertySourceLinksRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36\x61nalyticsadmin.googleapis.com/RollupPropertySourceLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa0\x01\n%ListRollupPropertySourceLinksResponse\x12^\n\x1crollup_property_source_links\x18\x01 \x03(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdb\x01\n%CreateRollupPropertySourceLinkRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36\x61nalyticsadmin.googleapis.com/RollupPropertySourceLink\x12\x62\n\x1brollup_property_source_link\x18\x02 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLinkB\x03\xe0\x41\x02\"u\n%DeleteRollupPropertySourceLinkRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\xcb\x02\n\x1bProvisionSubpropertyRequest\x12\x42\n\x0bsubproperty\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12]\n\x18subproperty_event_filter\x18\x03 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x01\x12\x88\x01\n0custom_dimension_and_metric_synchronization_mode\x18\x04 \x01(\x0e\x32I.google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationModeB\x03\xe0\x41\x01\"\xb7\x01\n\x1cProvisionSubpropertyResponse\x12=\n\x0bsubproperty\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12X\n\x18subproperty_event_filter\x18\x02 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"\xd2\x01\n#CreateSubpropertyEventFilterRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x61nalyticsadmin.googleapis.com/SubpropertyEventFilter\x12]\n\x18subproperty_event_filter\x18\x02 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x02\"n\n GetSubpropertyEventFilterRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\xa3\x01\n\"ListSubpropertyEventFiltersRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x61nalyticsadmin.googleapis.com/SubpropertyEventFilter\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n#ListSubpropertyEventFiltersResponse\x12Y\n\x19subproperty_event_filters\x18\x01 \x03(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xba\x01\n#UpdateSubpropertyEventFilterRequest\x12]\n\x18subproperty_event_filter\x18\x01 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"q\n#DeleteSubpropertyEventFilterRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\xd6\x01\n$CreateReportingDataAnnotationRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x61nalyticsadmin.googleapis.com/ReportingDataAnnotation\x12_\n\x19reporting_data_annotation\x18\x02 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationB\x03\xe0\x41\x02\"p\n!GetReportingDataAnnotationRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\xba\x01\n#ListReportingDataAnnotationsRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x61nalyticsadmin.googleapis.com/ReportingDataAnnotation\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x9c\x01\n$ListReportingDataAnnotationsResponse\x12[\n\x1areporting_data_annotations\x18\x01 \x03(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbd\x01\n$UpdateReportingDataAnnotationRequest\x12_\n\x19reporting_data_annotation\x18\x01 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"s\n$DeleteReportingDataAnnotationRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\xc2\x01\n\x19SubmitUserDeletionRequest\x12\x11\n\x07user_id\x18\x02 \x01(\tH\x00\x12\x13\n\tclient_id\x18\x03 \x01(\tH\x00\x12\x19\n\x0f\x61pp_instance_id\x18\x04 \x01(\tH\x00\x12\x1c\n\x12user_provided_data\x18\x05 \x01(\tH\x00\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/PropertyB\x06\n\x04user\"W\n\x1aSubmitUserDeletionResponse\x12\x39\n\x15\x64\x65letion_request_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"l\n\x1fGetSubpropertySyncConfigRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/SubpropertySyncConfig\"\xa1\x01\n!ListSubpropertySyncConfigsRequest\x12K\n\x06parent\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\x12\x33\x61nalyticsadmin.googleapis.com/SubpropertySyncConfig\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\"ListSubpropertySyncConfigsResponse\x12W\n\x18subproperty_sync_configs\x18\x01 \x03(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb7\x01\n\"UpdateSubpropertySyncConfigRequest\x12[\n\x17subproperty_sync_config\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"t\n#GetReportingIdentitySettingsRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/ReportingIdentitySettings\"r\n\"GetUserProvidedDataSettingsRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/UserProvidedDataSettings2\x88\x99\x02\n\x15\x41nalyticsAdminService\x12\x93\x01\n\nGetAccount\x12\x31.google.analytics.admin.v1alpha.GetAccountRequest\x1a\'.google.analytics.admin.v1alpha.Account\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c\x12\x1a/v1alpha/{name=accounts/*}\x12\x94\x01\n\x0cListAccounts\x12\x33.google.analytics.admin.v1alpha.ListAccountsRequest\x1a\x34.google.analytics.admin.v1alpha.ListAccountsResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/v1alpha/accounts\x12\x88\x01\n\rDeleteAccount\x12\x34.google.analytics.admin.v1alpha.DeleteAccountRequest\x1a\x16.google.protobuf.Empty\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c*\x1a/v1alpha/{name=accounts/*}\x12\xb9\x01\n\rUpdateAccount\x12\x34.google.analytics.admin.v1alpha.UpdateAccountRequest\x1a\'.google.analytics.admin.v1alpha.Account\"I\xda\x41\x13\x61\x63\x63ount,update_mask\x82\xd3\xe4\x93\x02-2\"/v1alpha/{account.name=accounts/*}:\x07\x61\x63\x63ount\x12\xcc\x01\n\x16ProvisionAccountTicket\x12=.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest\x1a>.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/accounts:provisionAccountTicket:\x01*\x12\xb4\x01\n\x14ListAccountSummaries\x12;.google.analytics.admin.v1alpha.ListAccountSummariesRequest\x1a<.google.analytics.admin.v1alpha.ListAccountSummariesResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1alpha/accountSummaries\x12\x98\x01\n\x0bGetProperty\x12\x32.google.analytics.admin.v1alpha.GetPropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"+\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1alpha/{name=properties/*}\x12\x9c\x01\n\x0eListProperties\x12\x35.google.analytics.admin.v1alpha.ListPropertiesRequest\x1a\x36.google.analytics.admin.v1alpha.ListPropertiesResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/v1alpha/properties\x12\xa3\x01\n\x0e\x43reateProperty\x12\x35.google.analytics.admin.v1alpha.CreatePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"0\xda\x41\x08property\x82\xd3\xe4\x93\x02\x1f\"\x13/v1alpha/properties:\x08property\x12\x9e\x01\n\x0e\x44\x65leteProperty\x12\x35.google.analytics.admin.v1alpha.DeletePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"+\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1e*\x1c/v1alpha/{name=properties/*}\x12\xc1\x01\n\x0eUpdateProperty\x12\x35.google.analytics.admin.v1alpha.UpdatePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"N\xda\x41\x14property,update_mask\x82\xd3\xe4\x93\x02\x31\x32%/v1alpha/{property.name=properties/*}:\x08property\x12\xd9\x01\n\x12\x43reateFirebaseLink\x12\x39.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest\x1a,.google.analytics.admin.v1alpha.FirebaseLink\"Z\xda\x41\x14parent,firebase_link\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/firebaseLinks:\rfirebase_link\x12\xa4\x01\n\x12\x44\x65leteFirebaseLink\x12\x39.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/firebaseLinks/*}\x12\xc7\x01\n\x11ListFirebaseLinks\x12\x38.google.analytics.admin.v1alpha.ListFirebaseLinksRequest\x1a\x39.google.analytics.admin.v1alpha.ListFirebaseLinksResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/firebaseLinks\x12\xc3\x01\n\x10GetGlobalSiteTag\x12\x37.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest\x1a-.google.analytics.admin.v1alpha.GlobalSiteTag\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}\x12\xe1\x01\n\x13\x43reateGoogleAdsLink\x12:.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest\x1a-.google.analytics.admin.v1alpha.GoogleAdsLink\"_\xda\x41\x16parent,google_ads_link\x82\xd3\xe4\x93\x02@\"-/v1alpha/{parent=properties/*}/googleAdsLinks:\x0fgoogle_ads_link\x12\xf6\x01\n\x13UpdateGoogleAdsLink\x12:.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest\x1a-.google.analytics.admin.v1alpha.GoogleAdsLink\"t\xda\x41\x1bgoogle_ads_link,update_mask\x82\xd3\xe4\x93\x02P2=/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}:\x0fgoogle_ads_link\x12\xa7\x01\n\x13\x44\x65leteGoogleAdsLink\x12:.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest\x1a\x16.google.protobuf.Empty\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1alpha/{name=properties/*/googleAdsLinks/*}\x12\xcb\x01\n\x12ListGoogleAdsLinks\x12\x39.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest\x1a:.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1alpha/{parent=properties/*}/googleAdsLinks\x12\xcb\x01\n\x16GetDataSharingSettings\x12=.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.DataSharingSettings\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1alpha/{name=accounts/*/dataSharingSettings}\x12\xf6\x01\n\x1cGetMeasurementProtocolSecret\x12\x43.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\x12G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}\x12\x89\x02\n\x1eListMeasurementProtocolSecrets\x12\x45.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest\x1a\x46.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse\"X\xda\x41\x06parent\x82\xd3\xe4\x93\x02I\x12G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets\x12\xb8\x02\n\x1f\x43reateMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"\x91\x01\xda\x41\"parent,measurement_protocol_secret\x82\xd3\xe4\x93\x02\x66\"G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets:\x1bmeasurement_protocol_secret\x12\xd9\x01\n\x1f\x44\x65leteMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest\x1a\x16.google.protobuf.Empty\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I*G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}\x12\xda\x02\n\x1fUpdateMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"\xb3\x01\xda\x41\'measurement_protocol_secret,update_mask\x82\xd3\xe4\x93\x02\x82\x01\x32\x63/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}:\x1bmeasurement_protocol_secret\x12\xf7\x01\n\x1d\x41\x63knowledgeUserDataCollection\x12\x44.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest\x1a\x45.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse\"I\x82\xd3\xe4\x93\x02\x43\">/v1alpha/{property=properties/*}:acknowledgeUserDataCollection:\x01*\x12\x91\x02\n#GetSKAdNetworkConversionValueSchema\x12J.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\\\xda\x41\x04name\x82\xd3\xe4\x93\x02O\x12M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}\x12\xe3\x02\n&CreateSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\xa7\x01\xda\x41*parent,skadnetwork_conversion_value_schema\x82\xd3\xe4\x93\x02t\"M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema:#skadnetwork_conversion_value_schema\x12\xed\x01\n&DeleteSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest\x1a\x16.google.protobuf.Empty\"\\\xda\x41\x04name\x82\xd3\xe4\x93\x02O*M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}\x12\x8d\x03\n&UpdateSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\xd1\x01\xda\x41/skadnetwork_conversion_value_schema,update_mask\x82\xd3\xe4\x93\x02\x98\x01\x32q/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}:#skadnetwork_conversion_value_schema\x12\xa4\x02\n%ListSKAdNetworkConversionValueSchemas\x12L.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest\x1aM.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse\"^\xda\x41\x06parent\x82\xd3\xe4\x93\x02O\x12M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema\x12\xe4\x01\n\x19SearchChangeHistoryEvents\x12@.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest\x1a\x41.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1alpha/{account=accounts/*}:searchChangeHistoryEvents:\x01*\x12\xd5\x01\n\x18GetGoogleSignalsSettings\x12?.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.GoogleSignalsSettings\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/{name=properties/*/googleSignalsSettings}\x12\xac\x02\n\x1bUpdateGoogleSignalsSettings\x12\x42.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.GoogleSignalsSettings\"\x91\x01\xda\x41#google_signals_settings,update_mask\x82\xd3\xe4\x93\x02\x65\x32J/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}:\x17google_signals_settings\x12\xee\x01\n\x15\x43reateConversionEvent\x12<.google.analytics.admin.v1alpha.CreateConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"f\x88\x02\x01\xda\x41\x17parent,conversion_event\x82\xd3\xe4\x93\x02\x43\"//v1alpha/{parent=properties/*}/conversionEvents:\x10\x63onversion_event\x12\x84\x02\n\x15UpdateConversionEvent\x12<.google.analytics.admin.v1alpha.UpdateConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"|\x88\x02\x01\xda\x41\x1c\x63onversion_event,update_mask\x82\xd3\xe4\x93\x02T2@/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}:\x10\x63onversion_event\x12\xc3\x01\n\x12GetConversionEvent\x12\x39.google.analytics.admin.v1alpha.GetConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"A\x88\x02\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/conversionEvents/*}\x12\xb0\x01\n\x15\x44\x65leteConversionEvent\x12<.google.analytics.admin.v1alpha.DeleteConversionEventRequest\x1a\x16.google.protobuf.Empty\"A\x88\x02\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1alpha/{name=properties/*/conversionEvents/*}\x12\xd6\x01\n\x14ListConversionEvents\x12;.google.analytics.admin.v1alpha.ListConversionEventsRequest\x1a<.google.analytics.admin.v1alpha.ListConversionEventsResponse\"C\x88\x02\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/conversionEvents\x12\xc1\x01\n\x0e\x43reateKeyEvent\x12\x35.google.analytics.admin.v1alpha.CreateKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"N\xda\x41\x10parent,key_event\x82\xd3\xe4\x93\x02\x35\"(/v1alpha/{parent=properties/*}/keyEvents:\tkey_event\x12\xd0\x01\n\x0eUpdateKeyEvent\x12\x35.google.analytics.admin.v1alpha.UpdateKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"]\xda\x41\x15key_event,update_mask\x82\xd3\xe4\x93\x02?22/v1alpha/{key_event.name=properties/*/keyEvents/*}:\tkey_event\x12\xa4\x01\n\x0bGetKeyEvent\x12\x32.google.analytics.admin.v1alpha.GetKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{name=properties/*/keyEvents/*}\x12\x98\x01\n\x0e\x44\x65leteKeyEvent\x12\x35.google.analytics.admin.v1alpha.DeleteKeyEventRequest\x1a\x16.google.protobuf.Empty\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v1alpha/{name=properties/*/keyEvents/*}\x12\xb7\x01\n\rListKeyEvents\x12\x34.google.analytics.admin.v1alpha.ListKeyEventsRequest\x1a\x35.google.analytics.admin.v1alpha.ListKeyEventsResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{parent=properties/*}/keyEvents\x12\xf8\x01\n GetDisplayVideo360AdvertiserLink\x12G.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}\x12\x8b\x02\n\"ListDisplayVideo360AdvertiserLinks\x12I.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest\x1aJ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks\x12\xc6\x02\n#CreateDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\x93\x01\xda\x41(parent,display_video_360_advertiser_link\x82\xd3\xe4\x93\x02\x62\"=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks:!display_video_360_advertiser_link\x12\xd7\x01\n#DeleteDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}\x12\xee\x02\n#UpdateDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\xbb\x01\xda\x41-display_video_360_advertiser_link,update_mask\x82\xd3\xe4\x93\x02\x84\x01\x32_/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}:!display_video_360_advertiser_link\x12\x98\x02\n(GetDisplayVideo360AdvertiserLinkProposal\x12O.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}\x12\xab\x02\n*ListDisplayVideo360AdvertiserLinkProposals\x12Q.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest\x1aR.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals\x12\xf8\x02\n+CreateDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"\xad\x01\xda\x41\x31parent,display_video_360_advertiser_link_proposal\x82\xd3\xe4\x93\x02s\"E/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals:*display_video_360_advertiser_link_proposal\x12\xef\x01\n+DeleteDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest\x1a\x16.google.protobuf.Empty\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G*E/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}\x12\xb3\x02\n,ApproveDisplayVideo360AdvertiserLinkProposal\x12S.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest\x1aT.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve:\x01*\x12\xa1\x02\n+CancelDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"W\x82\xd3\xe4\x93\x02Q\"L/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel:\x01*\x12\xeb\x01\n\x15\x43reateCustomDimension\x12<.google.analytics.admin.v1alpha.CreateCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\"c\xda\x41\x17parent,custom_dimension\x82\xd3\xe4\x93\x02\x43\"//v1alpha/{parent=properties/*}/customDimensions:\x10\x63ustom_dimension\x12\x81\x02\n\x15UpdateCustomDimension\x12<.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\"y\xda\x41\x1c\x63ustom_dimension,update_mask\x82\xd3\xe4\x93\x02T2@/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}:\x10\x63ustom_dimension\x12\xd3\x01\n\x14ListCustomDimensions\x12;.google.analytics.admin.v1alpha.ListCustomDimensionsRequest\x1a<.google.analytics.admin.v1alpha.ListCustomDimensionsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/customDimensions\x12\xba\x01\n\x16\x41rchiveCustomDimension\x12=.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest\x1a\x16.google.protobuf.Empty\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\"7/v1alpha/{name=properties/*/customDimensions/*}:archive:\x01*\x12\xc0\x01\n\x12GetCustomDimension\x12\x39.google.analytics.admin.v1alpha.GetCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/customDimensions/*}\x12\xd9\x01\n\x12\x43reateCustomMetric\x12\x39.google.analytics.admin.v1alpha.CreateCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\"Z\xda\x41\x14parent,custom_metric\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/customMetrics:\rcustom_metric\x12\xec\x01\n\x12UpdateCustomMetric\x12\x39.google.analytics.admin.v1alpha.UpdateCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\"m\xda\x41\x19\x63ustom_metric,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{custom_metric.name=properties/*/customMetrics/*}:\rcustom_metric\x12\xc7\x01\n\x11ListCustomMetrics\x12\x38.google.analytics.admin.v1alpha.ListCustomMetricsRequest\x1a\x39.google.analytics.admin.v1alpha.ListCustomMetricsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/customMetrics\x12\xb1\x01\n\x13\x41rchiveCustomMetric\x12:.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\"4/v1alpha/{name=properties/*/customMetrics/*}:archive:\x01*\x12\xb4\x01\n\x0fGetCustomMetric\x12\x36.google.analytics.admin.v1alpha.GetCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/customMetrics/*}\x12\xd5\x01\n\x18GetDataRetentionSettings\x12?.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRetentionSettings\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/{name=properties/*/dataRetentionSettings}\x12\xac\x02\n\x1bUpdateDataRetentionSettings\x12\x42.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRetentionSettings\"\x91\x01\xda\x41#data_retention_settings,update_mask\x82\xd3\xe4\x93\x02\x65\x32J/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}:\x17\x64\x61ta_retention_settings\x12\xcd\x01\n\x10\x43reateDataStream\x12\x37.google.analytics.admin.v1alpha.CreateDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"T\xda\x41\x12parent,data_stream\x82\xd3\xe4\x93\x02\x39\"*/v1alpha/{parent=properties/*}/dataStreams:\x0b\x64\x61ta_stream\x12\x9e\x01\n\x10\x44\x65leteDataStream\x12\x37.google.analytics.admin.v1alpha.DeleteDataStreamRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1alpha/{name=properties/*/dataStreams/*}\x12\xde\x01\n\x10UpdateDataStream\x12\x37.google.analytics.admin.v1alpha.UpdateDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"e\xda\x41\x17\x64\x61ta_stream,update_mask\x82\xd3\xe4\x93\x02\x45\x32\x36/v1alpha/{data_stream.name=properties/*/dataStreams/*}:\x0b\x64\x61ta_stream\x12\xbf\x01\n\x0fListDataStreams\x12\x36.google.analytics.admin.v1alpha.ListDataStreamsRequest\x1a\x37.google.analytics.admin.v1alpha.ListDataStreamsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1alpha/{parent=properties/*}/dataStreams\x12\xac\x01\n\rGetDataStream\x12\x34.google.analytics.admin.v1alpha.GetDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1alpha/{name=properties/*/dataStreams/*}\x12\xa4\x01\n\x0bGetAudience\x12\x32.google.analytics.admin.v1alpha.GetAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{name=properties/*/audiences/*}\x12\xb7\x01\n\rListAudiences\x12\x34.google.analytics.admin.v1alpha.ListAudiencesRequest\x1a\x35.google.analytics.admin.v1alpha.ListAudiencesResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{parent=properties/*}/audiences\x12\xbf\x01\n\x0e\x43reateAudience\x12\x35.google.analytics.admin.v1alpha.CreateAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"L\xda\x41\x0fparent,audience\x82\xd3\xe4\x93\x02\x34\"(/v1alpha/{parent=properties/*}/audiences:\x08\x61udience\x12\xcd\x01\n\x0eUpdateAudience\x12\x35.google.analytics.admin.v1alpha.UpdateAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"Z\xda\x41\x14\x61udience,update_mask\x82\xd3\xe4\x93\x02=21/v1alpha/{audience.name=properties/*/audiences/*}:\x08\x61udience\x12\x9e\x01\n\x0f\x41rchiveAudience\x12\x36.google.analytics.admin.v1alpha.ArchiveAudienceRequest\x1a\x16.google.protobuf.Empty\";\x82\xd3\xe4\x93\x02\x35\"0/v1alpha/{name=properties/*/audiences/*}:archive:\x01*\x12\xc4\x01\n\x13GetSearchAds360Link\x12:.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/searchAds360Links/*}\x12\xd7\x01\n\x15ListSearchAds360Links\x12<.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest\x1a=.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{parent=properties/*}/searchAds360Links\x12\xf5\x01\n\x16\x43reateSearchAds360Link\x12=.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"j\xda\x41\x1aparent,search_ads_360_link\x82\xd3\xe4\x93\x02G\"0/v1alpha/{parent=properties/*}/searchAds360Links:\x13search_ads_360_link\x12\xb0\x01\n\x16\x44\x65leteSearchAds360Link\x12=.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1alpha/{name=properties/*/searchAds360Links/*}\x12\x8f\x02\n\x16UpdateSearchAds360Link\x12=.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"\x83\x01\xda\x41\x1fsearch_ads_360_link,update_mask\x82\xd3\xe4\x93\x02[2D/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}:\x13search_ads_360_link\x12\xcd\x01\n\x16GetAttributionSettings\x12=.google.analytics.admin.v1alpha.GetAttributionSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.AttributionSettings\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/attributionSettings}\x12\x9b\x02\n\x19UpdateAttributionSettings\x12@.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.AttributionSettings\"\x86\x01\xda\x41 attribution_settings,update_mask\x82\xd3\xe4\x93\x02]2E/v1alpha/{attribution_settings.name=properties/*/attributionSettings}:\x14\x61ttribution_settings\x12\xf0\x01\n\x0fRunAccessReport\x12\x36.google.analytics.admin.v1alpha.RunAccessReportRequest\x1a\x37.google.analytics.admin.v1alpha.RunAccessReportResponse\"l\x82\xd3\xe4\x93\x02\x66\"./v1alpha/{entity=properties/*}:runAccessReport:\x01*Z1\",/v1alpha/{entity=accounts/*}:runAccessReport:\x01*\x12\x9f\x02\n\x13\x43reateAccessBinding\x12:.google.analytics.admin.v1alpha.CreateAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"\x9c\x01\xda\x41\x15parent,access_binding\x82\xd3\xe4\x93\x02~\"+/v1alpha/{parent=accounts/*}/accessBindings:\x0e\x61\x63\x63\x65ss_bindingZ?\"-/v1alpha/{parent=properties/*}/accessBindings:\x0e\x61\x63\x63\x65ss_binding\x12\xe7\x01\n\x10GetAccessBinding\x12\x37.google.analytics.admin.v1alpha.GetAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"k\xda\x41\x04name\x82\xd3\xe4\x93\x02^\x12+/v1alpha/{name=accounts/*/accessBindings/*}Z/\x12-/v1alpha/{name=properties/*/accessBindings/*}\x12\xb7\x02\n\x13UpdateAccessBinding\x12:.google.analytics.admin.v1alpha.UpdateAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"\xb4\x01\xda\x41\x0e\x61\x63\x63\x65ss_binding\x82\xd3\xe4\x93\x02\x9c\x01\x32:/v1alpha/{access_binding.name=accounts/*/accessBindings/*}:\x0e\x61\x63\x63\x65ss_bindingZN2\"9/v1alpha/{parent=properties/*}/accessBindings:batchCreate:\x01*\x12\x8f\x02\n\x16\x42\x61tchGetAccessBindings\x12=.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest\x1a>.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse\"v\x82\xd3\xe4\x93\x02p\x12\x34/v1alpha/{parent=accounts/*}/accessBindings:batchGetZ8\x12\x36/v1alpha/{parent=properties/*}/accessBindings:batchGet\x12\xa5\x02\n\x19\x42\x61tchUpdateAccessBindings\x12@.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest\x1a\x41.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse\"\x82\x01\x82\xd3\xe4\x93\x02|\"7/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate:\x01*Z>\"9/v1alpha/{parent=properties/*}/accessBindings:batchUpdate:\x01*\x12\xfa\x01\n\x19\x42\x61tchDeleteAccessBindings\x12@.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest\x1a\x16.google.protobuf.Empty\"\x82\x01\x82\xd3\xe4\x93\x02|\"7/v1alpha/{parent=accounts/*}/accessBindings:batchDelete:\x01*Z>\"9/v1alpha/{parent=properties/*}/accessBindings:batchDelete:\x01*\x12\xc0\x01\n\x12GetExpandedDataSet\x12\x39.google.analytics.admin.v1alpha.GetExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/expandedDataSets/*}\x12\xd3\x01\n\x14ListExpandedDataSets\x12;.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest\x1a<.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/expandedDataSets\x12\xed\x01\n\x15\x43reateExpandedDataSet\x12<.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\"e\xda\x41\x18parent,expanded_data_set\x82\xd3\xe4\x93\x02\x44\"//v1alpha/{parent=properties/*}/expandedDataSets:\x11\x65xpanded_data_set\x12\x84\x02\n\x15UpdateExpandedDataSet\x12<.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\"|\xda\x41\x1d\x65xpanded_data_set,update_mask\x82\xd3\xe4\x93\x02V2A/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}:\x11\x65xpanded_data_set\x12\xad\x01\n\x15\x44\x65leteExpandedDataSet\x12<.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1alpha/{name=properties/*/expandedDataSets/*}\x12\xb4\x01\n\x0fGetChannelGroup\x12\x36.google.analytics.admin.v1alpha.GetChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/channelGroups/*}\x12\xc7\x01\n\x11ListChannelGroups\x12\x38.google.analytics.admin.v1alpha.ListChannelGroupsRequest\x1a\x39.google.analytics.admin.v1alpha.ListChannelGroupsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/channelGroups\x12\xd9\x01\n\x12\x43reateChannelGroup\x12\x39.google.analytics.admin.v1alpha.CreateChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\"Z\xda\x41\x14parent,channel_group\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/channelGroups:\rchannel_group\x12\xec\x01\n\x12UpdateChannelGroup\x12\x39.google.analytics.admin.v1alpha.UpdateChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\"m\xda\x41\x19\x63hannel_group,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{channel_group.name=properties/*/channelGroups/*}:\rchannel_group\x12\xa4\x01\n\x12\x44\x65leteChannelGroup\x12\x39.google.analytics.admin.v1alpha.DeleteChannelGroupRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/channelGroups/*}\x12\xd9\x01\n\x12\x43reateBigQueryLink\x12\x39.google.analytics.admin.v1alpha.CreateBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\"Z\xda\x41\x14parent,bigquery_link\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/bigQueryLinks:\rbigquery_link\x12\xb4\x01\n\x0fGetBigQueryLink\x12\x36.google.analytics.admin.v1alpha.GetBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/bigQueryLinks/*}\x12\xc7\x01\n\x11ListBigQueryLinks\x12\x38.google.analytics.admin.v1alpha.ListBigQueryLinksRequest\x1a\x39.google.analytics.admin.v1alpha.ListBigQueryLinksResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/bigQueryLinks\x12\xa4\x01\n\x12\x44\x65leteBigQueryLink\x12\x39.google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/bigQueryLinks/*}\x12\xec\x01\n\x12UpdateBigQueryLink\x12\x39.google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\"m\xda\x41\x19\x62igquery_link,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{bigquery_link.name=properties/*/bigQueryLinks/*}:\rbigquery_link\x12\xfb\x01\n\x1eGetEnhancedMeasurementSettings\x12\x45.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest\x1a;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}\x12\xe5\x02\n!UpdateEnhancedMeasurementSettings\x12H.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest\x1a;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings\"\xb8\x01\xda\x41)enhanced_measurement_settings,update_mask\x82\xd3\xe4\x93\x02\x85\x01\x32\x64/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}:\x1d\x65nhanced_measurement_settings\x12\xb0\x01\n\x0eGetAdSenseLink\x12\x35.google.analytics.admin.v1alpha.GetAdSenseLinkRequest\x1a+.google.analytics.admin.v1alpha.AdSenseLink\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1alpha/{name=properties/*/adSenseLinks/*}\x12\xd3\x01\n\x11\x43reateAdSenseLink\x12\x38.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest\x1a+.google.analytics.admin.v1alpha.AdSenseLink\"W\xda\x41\x13parent,adsense_link\x82\xd3\xe4\x93\x02;\"+/v1alpha/{parent=properties/*}/adSenseLinks:\x0c\x61\x64sense_link\x12\xa1\x01\n\x11\x44\x65leteAdSenseLink\x12\x38.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1alpha/{name=properties/*/adSenseLinks/*}\x12\xc3\x01\n\x10ListAdSenseLinks\x12\x37.google.analytics.admin.v1alpha.ListAdSenseLinksRequest\x1a\x38.google.analytics.admin.v1alpha.ListAdSenseLinksResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1alpha/{parent=properties/*}/adSenseLinks\x12\xce\x01\n\x12GetEventCreateRule\x12\x39.google.analytics.admin.v1alpha.GetEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}\x12\xe1\x01\n\x14ListEventCreateRules\x12;.google.analytics.admin.v1alpha.ListEventCreateRulesRequest\x1a<.google.analytics.admin.v1alpha.ListEventCreateRulesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules\x12\xfb\x01\n\x15\x43reateEventCreateRule\x12<.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"s\xda\x41\x18parent,event_create_rule\x82\xd3\xe4\x93\x02R\"=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules:\x11\x65vent_create_rule\x12\x93\x02\n\x15UpdateEventCreateRule\x12<.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"\x8a\x01\xda\x41\x1d\x65vent_create_rule,update_mask\x82\xd3\xe4\x93\x02\x64\x32O/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}:\x11\x65vent_create_rule\x12\xbb\x01\n\x15\x44\x65leteEventCreateRule\x12<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}\x12\xc6\x01\n\x10GetEventEditRule\x12\x37.google.analytics.admin.v1alpha.GetEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}\x12\xd9\x01\n\x12ListEventEditRules\x12\x39.google.analytics.admin.v1alpha.ListEventEditRulesRequest\x1a:.google.analytics.admin.v1alpha.ListEventEditRulesResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules\x12\xef\x01\n\x13\x43reateEventEditRule\x12:.google.analytics.admin.v1alpha.CreateEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"m\xda\x41\x16parent,event_edit_rule\x82\xd3\xe4\x93\x02N\";/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:\x0f\x65vent_edit_rule\x12\x85\x02\n\x13UpdateEventEditRule\x12:.google.analytics.admin.v1alpha.UpdateEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"\x82\x01\xda\x41\x1b\x65vent_edit_rule,update_mask\x82\xd3\xe4\x93\x02^2K/v1alpha/{event_edit_rule.name=properties/*/dataStreams/*/eventEditRules/*}:\x0f\x65vent_edit_rule\x12\xb5\x01\n\x13\x44\x65leteEventEditRule\x12:.google.analytics.admin.v1alpha.DeleteEventEditRuleRequest\x1a\x16.google.protobuf.Empty\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}\x12\xbd\x01\n\x15ReorderEventEditRules\x12<.google.analytics.admin.v1alpha.ReorderEventEditRulesRequest\x1a\x16.google.protobuf.Empty\"N\x82\xd3\xe4\x93\x02H\"C/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:reorder:\x01*\x12\xba\x02\n\x1bUpdateDataRedactionSettings\x12\x42.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRedactionSettings\"\x9f\x01\xda\x41#data_redaction_settings,update_mask\x82\xd3\xe4\x93\x02s2X/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}:\x17\x64\x61ta_redaction_settings\x12\xe3\x01\n\x18GetDataRedactionSettings\x12?.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRedactionSettings\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}\x12\xc4\x01\n\x13GetCalculatedMetric\x12:.google.analytics.admin.v1alpha.GetCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/calculatedMetrics/*}\x12\x86\x02\n\x16\x43reateCalculatedMetric\x12=.google.analytics.admin.v1alpha.CreateCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"{\xda\x41-parent,calculated_metric,calculated_metric_id\x82\xd3\xe4\x93\x02\x45\"0/v1alpha/{parent=properties/*}/calculatedMetrics:\x11\x63\x61lculated_metric\x12\xd7\x01\n\x15ListCalculatedMetrics\x12<.google.analytics.admin.v1alpha.ListCalculatedMetricsRequest\x1a=.google.analytics.admin.v1alpha.ListCalculatedMetricsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{parent=properties/*}/calculatedMetrics\x12\x88\x02\n\x16UpdateCalculatedMetric\x12=.google.analytics.admin.v1alpha.UpdateCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"}\xda\x41\x1d\x63\x61lculated_metric,update_mask\x82\xd3\xe4\x93\x02W2B/v1alpha/{calculated_metric.name=properties/*/calculatedMetrics/*}:\x11\x63\x61lculated_metric\x12\xb0\x01\n\x16\x44\x65leteCalculatedMetric\x12=.google.analytics.admin.v1alpha.DeleteCalculatedMetricRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1alpha/{name=properties/*/calculatedMetrics/*}\x12\xc6\x01\n\x14\x43reateRollupProperty\x12;.google.analytics.admin.v1alpha.CreateRollupPropertyRequest\x1a<.google.analytics.admin.v1alpha.CreateRollupPropertyResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/properties:createRollupProperty:\x01*\x12\xe4\x01\n\x1bGetRollupPropertySourceLink\x12\x42.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest\x1a\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}\x12\xf7\x01\n\x1dListRollupPropertySourceLinks\x12\x44.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest\x1a\x45.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{parent=properties/*}/rollupPropertySourceLinks\x12\xa6\x02\n\x1e\x43reateRollupPropertySourceLink\x12\x45.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest\x1a\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"\x82\x01\xda\x41\"parent,rollup_property_source_link\x82\xd3\xe4\x93\x02W\"8/v1alpha/{parent=properties/*}/rollupPropertySourceLinks:\x1brollup_property_source_link\x12\xc8\x01\n\x1e\x44\x65leteRollupPropertySourceLink\x12\x45.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest\x1a\x16.google.protobuf.Empty\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}\x12\xc6\x01\n\x14ProvisionSubproperty\x12;.google.analytics.admin.v1alpha.ProvisionSubpropertyRequest\x1a<.google.analytics.admin.v1alpha.ProvisionSubpropertyResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/properties:provisionSubproperty:\x01*\x12\x97\x02\n\x1c\x43reateSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"z\xda\x41\x1fparent,subproperty_event_filter\x82\xd3\xe4\x93\x02R\"6/v1alpha/{parent=properties/*}/subpropertyEventFilters:\x18subproperty_event_filter\x12\xdc\x01\n\x19GetSubpropertyEventFilter\x12@.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{name=properties/*/subpropertyEventFilters/*}\x12\xef\x01\n\x1bListSubpropertyEventFilters\x12\x42.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest\x1a\x43.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{parent=properties/*}/subpropertyEventFilters\x12\xb6\x02\n\x1cUpdateSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"\x98\x01\xda\x41$subproperty_event_filter,update_mask\x82\xd3\xe4\x93\x02k2O/v1alpha/{subproperty_event_filter.name=properties/*/subpropertyEventFilters/*}:\x18subproperty_event_filter\x12\xc2\x01\n\x1c\x44\x65leteSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest\x1a\x16.google.protobuf.Empty\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38*6/v1alpha/{name=properties/*/subpropertyEventFilters/*}\x12\x9d\x02\n\x1d\x43reateReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.CreateReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"}\xda\x41 parent,reporting_data_annotation\x82\xd3\xe4\x93\x02T\"7/v1alpha/{parent=properties/*}/reportingDataAnnotations:\x19reporting_data_annotation\x12\xe0\x01\n\x1aGetReportingDataAnnotation\x12\x41.google.analytics.admin.v1alpha.GetReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1alpha/{name=properties/*/reportingDataAnnotations/*}\x12\xf3\x01\n\x1cListReportingDataAnnotations\x12\x43.google.analytics.admin.v1alpha.ListReportingDataAnnotationsRequest\x1a\x44.google.analytics.admin.v1alpha.ListReportingDataAnnotationsResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1alpha/{parent=properties/*}/reportingDataAnnotations\x12\xbd\x02\n\x1dUpdateReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"\x9c\x01\xda\x41%reporting_data_annotation,update_mask\x82\xd3\xe4\x93\x02n2Q/v1alpha/{reporting_data_annotation.name=properties/*/reportingDataAnnotations/*}:\x19reporting_data_annotation\x12\xc5\x01\n\x1d\x44\x65leteReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.DeleteReportingDataAnnotationRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1alpha/{name=properties/*/reportingDataAnnotations/*}\x12\xce\x01\n\x12SubmitUserDeletion\x12\x39.google.analytics.admin.v1alpha.SubmitUserDeletionRequest\x1a:.google.analytics.admin.v1alpha.SubmitUserDeletionResponse\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\"//v1alpha/{name=properties/*}:submitUserDeletion:\x01*\x12\xeb\x01\n\x1aListSubpropertySyncConfigs\x12\x41.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsRequest\x1a\x42.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{parent=properties/*}/subpropertySyncConfigs\x12\xaf\x02\n\x1bUpdateSubpropertySyncConfig\x12\x42.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest\x1a\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\"\x94\x01\xda\x41#subproperty_sync_config,update_mask\x82\xd3\xe4\x93\x02h2M/v1alpha/{subproperty_sync_config.name=properties/*/subpropertySyncConfigs/*}:\x17subproperty_sync_config\x12\xd8\x01\n\x18GetSubpropertySyncConfig\x12?.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest\x1a\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{name=properties/*/subpropertySyncConfigs/*}\x12\xe5\x01\n\x1cGetReportingIdentitySettings\x12\x43.google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest\x1a\x39.google.analytics.admin.v1alpha.ReportingIdentitySettings\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{name=properties/*/reportingIdentitySettings}\x12\xe1\x01\n\x1bGetUserProvidedDataSettings\x12\x42.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest\x1a\x38.google.analytics.admin.v1alpha.UserProvidedDataSettings\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{name=properties/*/userProvidedDataSettings}\x1a\xfc\x01\xca\x41\x1d\x61nalyticsadmin.googleapis.com\xd2\x41\xd8\x01https://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB{\n\"com.google.analytics.admin.v1alphaB\x13\x41nalyticsAdminProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" +descriptor_data = "\n4google/analytics/admin/v1alpha/analytics_admin.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x32google/analytics/admin/v1alpha/access_report.proto\x1a-google/analytics/admin/v1alpha/audience.proto\x1a\x32google/analytics/admin/v1alpha/channel_group.proto\x1a:google/analytics/admin/v1alpha/event_create_and_edit.proto\x1a\x36google/analytics/admin/v1alpha/expanded_data_set.proto\x1a.google/analytics/admin/v1alpha/resources.proto\x1a=google/analytics/admin/v1alpha/subproperty_event_filter.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe0\x04\n\x16RunAccessReportRequest\x12\x0e\n\x06\x65ntity\x18\x01 \x01(\t\x12\x43\n\ndimensions\x18\x02 \x03(\x0b\x32/.google.analytics.admin.v1alpha.AccessDimension\x12=\n\x07metrics\x18\x03 \x03(\x0b\x32,.google.analytics.admin.v1alpha.AccessMetric\x12\x44\n\x0b\x64\x61te_ranges\x18\x04 \x03(\x0b\x32/.google.analytics.admin.v1alpha.AccessDateRange\x12P\n\x10\x64imension_filter\x18\x05 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpression\x12M\n\rmetric_filter\x18\x06 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpression\x12\x0e\n\x06offset\x18\x07 \x01(\x03\x12\r\n\x05limit\x18\x08 \x01(\x03\x12\x11\n\ttime_zone\x18\t \x01(\t\x12@\n\torder_bys\x18\n \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessOrderBy\x12\x1b\n\x13return_entity_quota\x18\x0b \x01(\x08\x12\x1e\n\x11include_all_users\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rexpand_groups\x18\r \x01(\x08\x42\x03\xe0\x41\x01\"\xbf\x02\n\x17RunAccessReportResponse\x12P\n\x11\x64imension_headers\x18\x01 \x03(\x0b\x32\x35.google.analytics.admin.v1alpha.AccessDimensionHeader\x12J\n\x0emetric_headers\x18\x02 \x03(\x0b\x32\x32.google.analytics.admin.v1alpha.AccessMetricHeader\x12\x37\n\x04rows\x18\x03 \x03(\x0b\x32).google.analytics.admin.v1alpha.AccessRow\x12\x11\n\trow_count\x18\x04 \x01(\x05\x12:\n\x05quota\x18\x05 \x01(\x0b\x32+.google.analytics.admin.v1alpha.AccessQuota\"P\n\x11GetAccountRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\"\\\n\x13ListAccountsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x0cshow_deleted\x18\x03 \x01(\x08\"j\n\x14ListAccountsResponse\x12\x39\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\'.google.analytics.admin.v1alpha.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x14\x44\x65leteAccountRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\"\x8b\x01\n\x14UpdateAccountRequest\x12=\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.AccountB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"o\n\x1dProvisionAccountTicketRequest\x12\x38\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.Account\x12\x14\n\x0credirect_uri\x18\x02 \x01(\t\";\n\x1eProvisionAccountTicketResponse\x12\x19\n\x11\x61\x63\x63ount_ticket_id\x18\x01 \x01(\t\"R\n\x12GetPropertyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"s\n\x15ListPropertiesRequest\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"o\n\x16ListPropertiesResponse\x12<\n\nproperties\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8e\x01\n\x15UpdatePropertyRequest\x12?\n\x08property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"X\n\x15\x43reatePropertyRequest\x12?\n\x08property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\"U\n\x15\x44\x65letePropertyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"\xa9\x01\n\x19\x43reateFirebaseLinkRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/FirebaseLink\x12H\n\rfirebase_link\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLinkB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteFirebaseLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/FirebaseLink\"\x8f\x01\n\x18ListFirebaseLinksRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/FirebaseLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"z\n\x19ListFirebaseLinksResponse\x12\x44\n\x0e\x66irebase_links\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\\\n\x17GetGlobalSiteTagRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/GlobalSiteTag\"\xae\x01\n\x1a\x43reateGoogleAdsLinkRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/GoogleAdsLink\x12K\n\x0fgoogle_ads_link\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLinkB\x03\xe0\x41\x02\"\x9a\x01\n\x1aUpdateGoogleAdsLinkRequest\x12\x46\n\x0fgoogle_ads_link\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLink\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x1a\x44\x65leteGoogleAdsLinkRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/GoogleAdsLink\"\x91\x01\n\x19ListGoogleAdsLinksRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListGoogleAdsLinksResponse\x12G\n\x10google_ads_links\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"h\n\x1dGetDataSharingSettingsRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1analyticsadmin.googleapis.com/DataSharingSettings\"N\n\x1bListAccountSummariesRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x1cListAccountSummariesResponse\x12I\n\x11\x61\x63\x63ount_summaries\x18\x01 \x03(\x0b\x32..google.analytics.admin.v1alpha.AccountSummary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x86\x01\n$AcknowledgeUserDataCollectionRequest\x12@\n\x08property\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12\x1c\n\x0f\x61\x63knowledgement\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\'\n%AcknowledgeUserDataCollectionResponse\"\x83\x04\n SearchChangeHistoryEventsRequest\x12>\n\x07\x61\x63\x63ount\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12@\n\x08property\x18\x02 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12U\n\rresource_type\x18\x03 \x03(\x0e\x32\x39.google.analytics.admin.v1alpha.ChangeHistoryResourceTypeB\x03\xe0\x41\x01\x12?\n\x06\x61\x63tion\x18\x04 \x03(\x0e\x32*.google.analytics.admin.v1alpha.ActionTypeB\x03\xe0\x41\x01\x12\x18\n\x0b\x61\x63tor_email\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12=\n\x14\x65\x61rliest_change_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12;\n\x12latest_change_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\t \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n!SearchChangeHistoryEventsResponse\x12Q\n\x15\x63hange_history_events\x18\x01 \x03(\x0b\x32\x32.google.analytics.admin.v1alpha.ChangeHistoryEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"t\n#GetMeasurementProtocolSecretRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\xde\x01\n&CreateMeasurementProtocolSecretRequest\x12O\n\x06parent\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37\x61nalyticsadmin.googleapis.com/MeasurementProtocolSecret\x12\x63\n\x1bmeasurement_protocol_secret\x18\x02 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\x03\xe0\x41\x02\"w\n&DeleteMeasurementProtocolSecretRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\xc3\x01\n&UpdateMeasurementProtocolSecretRequest\x12\x63\n\x1bmeasurement_protocol_secret\x18\x01 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa9\x01\n%ListMeasurementProtocolSecretsRequest\x12O\n\x06parent\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37\x61nalyticsadmin.googleapis.com/MeasurementProtocolSecret\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa2\x01\n&ListMeasurementProtocolSecretsResponse\x12_\n\x1cmeasurement_protocol_secrets\x18\x01 \x03(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x01\n*GetSKAdNetworkConversionValueSchemaRequest\x12T\n\x04name\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\xfb\x01\n-CreateSKAdNetworkConversionValueSchemaRequest\x12V\n\x06parent\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\x12>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12r\n#skadnetwork_conversion_value_schema\x18\x02 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\x03\xe0\x41\x02\"\x85\x01\n-DeleteSKAdNetworkConversionValueSchemaRequest\x12T\n\x04name\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\xd9\x01\n-UpdateSKAdNetworkConversionValueSchemaRequest\x12r\n#skadnetwork_conversion_value_schema\x18\x01 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb7\x01\n,ListSKAdNetworkConversionValueSchemasRequest\x12V\n\x06parent\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\x12>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xb8\x01\n-ListSKAdNetworkConversionValueSchemasResponse\x12n\n$skadnetwork_conversion_value_schemas\x18\x01 \x03(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"l\n\x1fGetGoogleSignalsSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/GoogleSignalsSettings\"\xb7\x01\n\"UpdateGoogleSignalsSettingsRequest\x12[\n\x17google_signals_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.GoogleSignalsSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb5\x01\n\x1c\x43reateConversionEventRequest\x12N\n\x10\x63onversion_event\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventB\x03\xe0\x41\x02\x12\x45\n\x06parent\x18\x02 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ConversionEvent\"\xa4\x01\n\x1cUpdateConversionEventRequest\x12N\n\x10\x63onversion_event\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"`\n\x19GetConversionEventRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ConversionEvent\"c\n\x1c\x44\x65leteConversionEventRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ConversionEvent\"\x95\x01\n\x1bListConversionEventsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ConversionEvent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x1cListConversionEventsResponse\x12J\n\x11\x63onversion_events\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x99\x01\n\x15\x43reateKeyEventRequest\x12@\n\tkey_event\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventB\x03\xe0\x41\x02\x12>\n\x06parent\x18\x02 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/KeyEvent\"\x8f\x01\n\x15UpdateKeyEventRequest\x12@\n\tkey_event\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"R\n\x12GetKeyEventRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/KeyEvent\"U\n\x15\x44\x65leteKeyEventRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/KeyEvent\"\x87\x01\n\x14ListKeyEventsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/KeyEvent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"n\n\x15ListKeyEventsResponse\x12<\n\nkey_events\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.KeyEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"|\n\'GetDisplayVideo360AdvertiserLinkRequest\x12Q\n\x04name\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\xa7\x01\n)ListDisplayVideo360AdvertiserLinksRequest\x12S\n\x06parent\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\x12;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xb0\x01\n*ListDisplayVideo360AdvertiserLinksResponse\x12i\n\"display_video_360_advertiser_links\x18\x01 \x03(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf0\x01\n*CreateDisplayVideo360AdvertiserLinkRequest\x12S\n\x06parent\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\x12;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12m\n!display_video_360_advertiser_link\x18\x02 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkB\x03\xe0\x41\x02\"\x7f\n*DeleteDisplayVideo360AdvertiserLinkRequest\x12Q\n\x04name\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\xcc\x01\n*UpdateDisplayVideo360AdvertiserLinkRequest\x12h\n!display_video_360_advertiser_link\x18\x01 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x8c\x01\n/GetDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\xb7\x01\n1ListDisplayVideo360AdvertiserLinkProposalsRequest\x12[\n\x06parent\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\x12\x43\x61nalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xc9\x01\n2ListDisplayVideo360AdvertiserLinkProposalsResponse\x12z\n+display_video_360_advertiser_link_proposals\x18\x01 \x03(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x91\x02\n2CreateDisplayVideo360AdvertiserLinkProposalRequest\x12[\n\x06parent\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\x12\x43\x61nalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12~\n*display_video_360_advertiser_link_proposal\x18\x02 \x01(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalB\x03\xe0\x41\x02\"\x8f\x01\n2DeleteDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\x90\x01\n3ApproveDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\xa0\x01\n4ApproveDisplayVideo360AdvertiserLinkProposalResponse\x12h\n!display_video_360_advertiser_link\x18\x01 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\x8f\x01\n2CancelDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"b\n\x1aGetSearchAds360LinkRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/SearchAds360Link\"\x8d\x01\n\x1cListSearchAds360LinksRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/SearchAds360Link\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x88\x01\n\x1dListSearchAds360LinksResponse\x12N\n\x14search_ads_360_links\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360Link\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbb\x01\n\x1d\x43reateSearchAds360LinkRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/SearchAds360Link\x12R\n\x13search_ads_360_link\x18\x02 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360LinkB\x03\xe0\x41\x02\"e\n\x1d\x44\x65leteSearchAds360LinkRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/SearchAds360Link\"\xa4\x01\n\x1dUpdateSearchAds360LinkRequest\x12M\n\x13search_ads_360_link\x18\x01 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360Link\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb5\x01\n\x1c\x43reateCustomDimensionRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/CustomDimension\x12N\n\x10\x63ustom_dimension\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimensionB\x03\xe0\x41\x02\"\x9f\x01\n\x1cUpdateCustomDimensionRequest\x12I\n\x10\x63ustom_dimension\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimension\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x95\x01\n\x1bListCustomDimensionsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/CustomDimension\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x1cListCustomDimensionsResponse\x12J\n\x11\x63ustom_dimensions\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimension\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x1d\x41rchiveCustomDimensionRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/CustomDimension\"`\n\x19GetCustomDimensionRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/CustomDimension\"\xa9\x01\n\x19\x43reateCustomMetricRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/CustomMetric\x12H\n\rcustom_metric\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetricB\x03\xe0\x41\x02\"\x96\x01\n\x19UpdateCustomMetricRequest\x12\x43\n\rcustom_metric\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetric\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x85\x01\n\x18ListCustomMetricsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/CustomMetric\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListCustomMetricsResponse\x12\x44\n\x0e\x63ustom_metrics\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetric\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"^\n\x1a\x41rchiveCustomMetricRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/CustomMetric\"Z\n\x16GetCustomMetricRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/CustomMetric\"\xdc\x01\n\x1d\x43reateCalculatedMetricRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/CalculatedMetric\x12!\n\x14\x63\x61lculated_metric_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x11\x63\x61lculated_metric\x18\x03 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricB\x03\xe0\x41\x02\"\xa7\x01\n\x1dUpdateCalculatedMetricRequest\x12P\n\x11\x63\x61lculated_metric\x18\x01 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"e\n\x1d\x44\x65leteCalculatedMetricRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/CalculatedMetric\"\x97\x01\n\x1cListCalculatedMetricsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/CalculatedMetric\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x86\x01\n\x1dListCalculatedMetricsResponse\x12L\n\x12\x63\x61lculated_metrics\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetric\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"b\n\x1aGetCalculatedMetricRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/CalculatedMetric\"l\n\x1fGetDataRetentionSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/DataRetentionSettings\"\xb7\x01\n\"UpdateDataRetentionSettingsRequest\x12[\n\x17\x64\x61ta_retention_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRetentionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa1\x01\n\x17\x43reateDataStreamRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(analyticsadmin.googleapis.com/DataStream\x12\x44\n\x0b\x64\x61ta_stream\x18\x02 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStreamB\x03\xe0\x41\x02\"Y\n\x17\x44\x65leteDataStreamRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(analyticsadmin.googleapis.com/DataStream\"\x90\x01\n\x17UpdateDataStreamRequest\x12?\n\x0b\x64\x61ta_stream\x18\x01 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStream\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x81\x01\n\x16ListDataStreamsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(analyticsadmin.googleapis.com/DataStream\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x17ListDataStreamsResponse\x12@\n\x0c\x64\x61ta_streams\x18\x01 \x03(\x0b\x32*.google.analytics.admin.v1alpha.DataStream\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x14GetDataStreamRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(analyticsadmin.googleapis.com/DataStream\"R\n\x12GetAudienceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Audience\"}\n\x14ListAudiencesRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"m\n\x15ListAudiencesResponse\x12;\n\taudiences\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.Audience\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x98\x01\n\x15\x43reateAudienceRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\x12?\n\x08\x61udience\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceB\x03\xe0\x41\x02\"\x8e\x01\n\x15UpdateAudienceRequest\x12?\n\x08\x61udience\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"V\n\x16\x41rchiveAudienceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\"h\n\x1dGetAttributionSettingsRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1analyticsadmin.googleapis.com/AttributionSettings\"\xb0\x01\n UpdateAttributionSettingsRequest\x12V\n\x14\x61ttribution_settings\x18\x01 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AttributionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\\\n\x17GetAccessBindingRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"\xa8\x01\n\x1d\x42\x61tchGetAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12\x42\n\x05names\x18\x02 \x03(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"h\n\x1e\x42\x61tchGetAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"\x87\x01\n\x19ListAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"}\n\x1aListAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x01\n\x1a\x43reateAccessBindingRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12J\n\x0e\x61\x63\x63\x65ss_binding\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.AccessBindingB\x03\xe0\x41\x02\"\xba\x01\n BatchCreateAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x03 \x03(\x0b\x32:.google.analytics.admin.v1alpha.CreateAccessBindingRequestB\x03\xe0\x41\x02\"k\n!BatchCreateAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"h\n\x1aUpdateAccessBindingRequest\x12J\n\x0e\x61\x63\x63\x65ss_binding\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.AccessBindingB\x03\xe0\x41\x02\"\xba\x01\n BatchUpdateAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x02 \x03(\x0b\x32:.google.analytics.admin.v1alpha.UpdateAccessBindingRequestB\x03\xe0\x41\x02\"k\n!BatchUpdateAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"_\n\x1a\x44\x65leteAccessBindingRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"\xba\x01\n BatchDeleteAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x02 \x03(\x0b\x32:.google.analytics.admin.v1alpha.DeleteAccessBindingRequestB\x03\xe0\x41\x02\"\xb6\x01\n\x1c\x43reateExpandedDataSetRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ExpandedDataSet\x12O\n\x11\x65xpanded_data_set\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetB\x03\xe0\x41\x02\"\xa5\x01\n\x1cUpdateExpandedDataSetRequest\x12O\n\x11\x65xpanded_data_set\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"c\n\x1c\x44\x65leteExpandedDataSetRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ExpandedDataSet\"`\n\x19GetExpandedDataSetRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ExpandedDataSet\"\x8b\x01\n\x1bListExpandedDataSetsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ExpandedDataSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1cListExpandedDataSetsResponse\x12K\n\x12\x65xpanded_data_sets\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa9\x01\n\x19\x43reateChannelGroupRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/ChannelGroup\x12H\n\rchannel_group\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupB\x03\xe0\x41\x02\"\x9b\x01\n\x19UpdateChannelGroupRequest\x12H\n\rchannel_group\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteChannelGroupRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/ChannelGroup\"Z\n\x16GetChannelGroupRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/ChannelGroup\"\x85\x01\n\x18ListChannelGroupsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/ChannelGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListChannelGroupsResponse\x12\x44\n\x0e\x63hannel_groups\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa9\x01\n\x19\x43reateBigQueryLinkRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/BigQueryLink\x12H\n\rbigquery_link\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkB\x03\xe0\x41\x02\"Z\n\x16GetBigQueryLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/BigQueryLink\"\x85\x01\n\x18ListBigQueryLinksRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/BigQueryLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListBigQueryLinksResponse\x12\x44\n\x0e\x62igquery_links\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9b\x01\n\x19UpdateBigQueryLinkRequest\x12H\n\rbigquery_link\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteBigQueryLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/BigQueryLink\"x\n%GetEnhancedMeasurementSettingsRequest\x12O\n\x04name\x18\x01 \x01(\tBA\xe0\x41\x02\xfa\x41;\n9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\"\xc9\x01\n(UpdateEnhancedMeasurementSettingsRequest\x12g\n\x1d\x65nhanced_measurement_settings\x18\x01 \x01(\x0b\x32;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"l\n\x1fGetDataRedactionSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/DataRedactionSettings\"\xb7\x01\n\"UpdateDataRedactionSettingsRequest\x12[\n\x17\x64\x61ta_redaction_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRedactionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa5\x01\n\x18\x43reateAdSenseLinkRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)analyticsadmin.googleapis.com/AdSenseLink\x12\x46\n\x0c\x61\x64sense_link\x18\x02 \x01(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLinkB\x03\xe0\x41\x02\"X\n\x15GetAdSenseLinkRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)analyticsadmin.googleapis.com/AdSenseLink\"[\n\x18\x44\x65leteAdSenseLinkRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)analyticsadmin.googleapis.com/AdSenseLink\"\x83\x01\n\x17ListAdSenseLinksRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)analyticsadmin.googleapis.com/AdSenseLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"w\n\x18ListAdSenseLinksResponse\x12\x42\n\radsense_links\x18\x01 \x03(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb6\x01\n\x1c\x43reateEventCreateRuleRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/EventCreateRule\x12O\n\x11\x65vent_create_rule\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleB\x03\xe0\x41\x02\"\xa5\x01\n\x1cUpdateEventCreateRuleRequest\x12O\n\x11\x65vent_create_rule\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"c\n\x1c\x44\x65leteEventCreateRuleRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/EventCreateRule\"`\n\x19GetEventCreateRuleRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/EventCreateRule\"\x8b\x01\n\x1bListEventCreateRulesRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/EventCreateRule\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1cListEventCreateRulesResponse\x12K\n\x12\x65vent_create_rules\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xae\x01\n\x1a\x43reateEventEditRuleRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12K\n\x0f\x65vent_edit_rule\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRuleB\x03\xe0\x41\x02\"\x9f\x01\n\x1aUpdateEventEditRuleRequest\x12K\n\x0f\x65vent_edit_rule\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRuleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x1a\x44\x65leteEventEditRuleRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/EventEditRule\"\\\n\x17GetEventEditRuleRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/EventEditRule\"\x91\x01\n\x19ListEventEditRulesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListEventEditRulesResponse\x12G\n\x10\x65vent_edit_rules\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x01\n\x1cReorderEventEditRulesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12\x1d\n\x10\x65vent_edit_rules\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\x85\x01\n\x1b\x43reateRollupPropertyRequest\x12\x46\n\x0frollup_property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12\x1e\n\x11source_properties\x18\x02 \x03(\tB\x03\xe0\x41\x01\"\xc1\x01\n\x1c\x43reateRollupPropertyResponse\x12\x41\n\x0frollup_property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12^\n\x1crollup_property_source_links\x18\x02 \x03(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"r\n\"GetRollupPropertySourceLinkRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\xa7\x01\n$ListRollupPropertySourceLinksRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36\x61nalyticsadmin.googleapis.com/RollupPropertySourceLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa0\x01\n%ListRollupPropertySourceLinksResponse\x12^\n\x1crollup_property_source_links\x18\x01 \x03(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdb\x01\n%CreateRollupPropertySourceLinkRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36\x61nalyticsadmin.googleapis.com/RollupPropertySourceLink\x12\x62\n\x1brollup_property_source_link\x18\x02 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLinkB\x03\xe0\x41\x02\"u\n%DeleteRollupPropertySourceLinkRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\xcb\x02\n\x1bProvisionSubpropertyRequest\x12\x42\n\x0bsubproperty\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12]\n\x18subproperty_event_filter\x18\x03 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x01\x12\x88\x01\n0custom_dimension_and_metric_synchronization_mode\x18\x04 \x01(\x0e\x32I.google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationModeB\x03\xe0\x41\x01\"\xb7\x01\n\x1cProvisionSubpropertyResponse\x12=\n\x0bsubproperty\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12X\n\x18subproperty_event_filter\x18\x02 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"\xd2\x01\n#CreateSubpropertyEventFilterRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x61nalyticsadmin.googleapis.com/SubpropertyEventFilter\x12]\n\x18subproperty_event_filter\x18\x02 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x02\"n\n GetSubpropertyEventFilterRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\xa3\x01\n\"ListSubpropertyEventFiltersRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x61nalyticsadmin.googleapis.com/SubpropertyEventFilter\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n#ListSubpropertyEventFiltersResponse\x12Y\n\x19subproperty_event_filters\x18\x01 \x03(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xba\x01\n#UpdateSubpropertyEventFilterRequest\x12]\n\x18subproperty_event_filter\x18\x01 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"q\n#DeleteSubpropertyEventFilterRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\xd6\x01\n$CreateReportingDataAnnotationRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x61nalyticsadmin.googleapis.com/ReportingDataAnnotation\x12_\n\x19reporting_data_annotation\x18\x02 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationB\x03\xe0\x41\x02\"p\n!GetReportingDataAnnotationRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\xba\x01\n#ListReportingDataAnnotationsRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x61nalyticsadmin.googleapis.com/ReportingDataAnnotation\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x9c\x01\n$ListReportingDataAnnotationsResponse\x12[\n\x1areporting_data_annotations\x18\x01 \x03(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbd\x01\n$UpdateReportingDataAnnotationRequest\x12_\n\x19reporting_data_annotation\x18\x01 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"s\n$DeleteReportingDataAnnotationRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\xc2\x01\n\x19SubmitUserDeletionRequest\x12\x11\n\x07user_id\x18\x02 \x01(\tH\x00\x12\x13\n\tclient_id\x18\x03 \x01(\tH\x00\x12\x19\n\x0f\x61pp_instance_id\x18\x04 \x01(\tH\x00\x12\x1c\n\x12user_provided_data\x18\x05 \x01(\tH\x00\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/PropertyB\x06\n\x04user\"W\n\x1aSubmitUserDeletionResponse\x12\x39\n\x15\x64\x65letion_request_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"l\n\x1fGetSubpropertySyncConfigRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/SubpropertySyncConfig\"\xa1\x01\n!ListSubpropertySyncConfigsRequest\x12K\n\x06parent\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\x12\x33\x61nalyticsadmin.googleapis.com/SubpropertySyncConfig\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\"ListSubpropertySyncConfigsResponse\x12W\n\x18subproperty_sync_configs\x18\x01 \x03(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb7\x01\n\"UpdateSubpropertySyncConfigRequest\x12[\n\x17subproperty_sync_config\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"t\n#GetReportingIdentitySettingsRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/ReportingIdentitySettings\"\xc3\x01\n&UpdateReportingIdentitySettingsRequest\x12\x63\n\x1breporting_identity_settings\x18\x01 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.ReportingIdentitySettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"r\n\"GetUserProvidedDataSettingsRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/UserProvidedDataSettings2\xd3\x9b\x02\n\x15\x41nalyticsAdminService\x12\x93\x01\n\nGetAccount\x12\x31.google.analytics.admin.v1alpha.GetAccountRequest\x1a\'.google.analytics.admin.v1alpha.Account\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c\x12\x1a/v1alpha/{name=accounts/*}\x12\x94\x01\n\x0cListAccounts\x12\x33.google.analytics.admin.v1alpha.ListAccountsRequest\x1a\x34.google.analytics.admin.v1alpha.ListAccountsResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/v1alpha/accounts\x12\x88\x01\n\rDeleteAccount\x12\x34.google.analytics.admin.v1alpha.DeleteAccountRequest\x1a\x16.google.protobuf.Empty\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c*\x1a/v1alpha/{name=accounts/*}\x12\xb9\x01\n\rUpdateAccount\x12\x34.google.analytics.admin.v1alpha.UpdateAccountRequest\x1a\'.google.analytics.admin.v1alpha.Account\"I\xda\x41\x13\x61\x63\x63ount,update_mask\x82\xd3\xe4\x93\x02-2\"/v1alpha/{account.name=accounts/*}:\x07\x61\x63\x63ount\x12\xcc\x01\n\x16ProvisionAccountTicket\x12=.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest\x1a>.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/accounts:provisionAccountTicket:\x01*\x12\xb4\x01\n\x14ListAccountSummaries\x12;.google.analytics.admin.v1alpha.ListAccountSummariesRequest\x1a<.google.analytics.admin.v1alpha.ListAccountSummariesResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1alpha/accountSummaries\x12\x98\x01\n\x0bGetProperty\x12\x32.google.analytics.admin.v1alpha.GetPropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"+\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1alpha/{name=properties/*}\x12\x9c\x01\n\x0eListProperties\x12\x35.google.analytics.admin.v1alpha.ListPropertiesRequest\x1a\x36.google.analytics.admin.v1alpha.ListPropertiesResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/v1alpha/properties\x12\xa3\x01\n\x0e\x43reateProperty\x12\x35.google.analytics.admin.v1alpha.CreatePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"0\xda\x41\x08property\x82\xd3\xe4\x93\x02\x1f\"\x13/v1alpha/properties:\x08property\x12\x9e\x01\n\x0e\x44\x65leteProperty\x12\x35.google.analytics.admin.v1alpha.DeletePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"+\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1e*\x1c/v1alpha/{name=properties/*}\x12\xc1\x01\n\x0eUpdateProperty\x12\x35.google.analytics.admin.v1alpha.UpdatePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"N\xda\x41\x14property,update_mask\x82\xd3\xe4\x93\x02\x31\x32%/v1alpha/{property.name=properties/*}:\x08property\x12\xd9\x01\n\x12\x43reateFirebaseLink\x12\x39.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest\x1a,.google.analytics.admin.v1alpha.FirebaseLink\"Z\xda\x41\x14parent,firebase_link\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/firebaseLinks:\rfirebase_link\x12\xa4\x01\n\x12\x44\x65leteFirebaseLink\x12\x39.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/firebaseLinks/*}\x12\xc7\x01\n\x11ListFirebaseLinks\x12\x38.google.analytics.admin.v1alpha.ListFirebaseLinksRequest\x1a\x39.google.analytics.admin.v1alpha.ListFirebaseLinksResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/firebaseLinks\x12\xc3\x01\n\x10GetGlobalSiteTag\x12\x37.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest\x1a-.google.analytics.admin.v1alpha.GlobalSiteTag\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}\x12\xe1\x01\n\x13\x43reateGoogleAdsLink\x12:.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest\x1a-.google.analytics.admin.v1alpha.GoogleAdsLink\"_\xda\x41\x16parent,google_ads_link\x82\xd3\xe4\x93\x02@\"-/v1alpha/{parent=properties/*}/googleAdsLinks:\x0fgoogle_ads_link\x12\xf6\x01\n\x13UpdateGoogleAdsLink\x12:.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest\x1a-.google.analytics.admin.v1alpha.GoogleAdsLink\"t\xda\x41\x1bgoogle_ads_link,update_mask\x82\xd3\xe4\x93\x02P2=/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}:\x0fgoogle_ads_link\x12\xa7\x01\n\x13\x44\x65leteGoogleAdsLink\x12:.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest\x1a\x16.google.protobuf.Empty\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1alpha/{name=properties/*/googleAdsLinks/*}\x12\xcb\x01\n\x12ListGoogleAdsLinks\x12\x39.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest\x1a:.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1alpha/{parent=properties/*}/googleAdsLinks\x12\xcb\x01\n\x16GetDataSharingSettings\x12=.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.DataSharingSettings\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1alpha/{name=accounts/*/dataSharingSettings}\x12\xf6\x01\n\x1cGetMeasurementProtocolSecret\x12\x43.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\x12G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}\x12\x89\x02\n\x1eListMeasurementProtocolSecrets\x12\x45.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest\x1a\x46.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse\"X\xda\x41\x06parent\x82\xd3\xe4\x93\x02I\x12G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets\x12\xb8\x02\n\x1f\x43reateMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"\x91\x01\xda\x41\"parent,measurement_protocol_secret\x82\xd3\xe4\x93\x02\x66\"G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets:\x1bmeasurement_protocol_secret\x12\xd9\x01\n\x1f\x44\x65leteMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest\x1a\x16.google.protobuf.Empty\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I*G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}\x12\xda\x02\n\x1fUpdateMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"\xb3\x01\xda\x41\'measurement_protocol_secret,update_mask\x82\xd3\xe4\x93\x02\x82\x01\x32\x63/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}:\x1bmeasurement_protocol_secret\x12\xf7\x01\n\x1d\x41\x63knowledgeUserDataCollection\x12\x44.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest\x1a\x45.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse\"I\x82\xd3\xe4\x93\x02\x43\">/v1alpha/{property=properties/*}:acknowledgeUserDataCollection:\x01*\x12\x91\x02\n#GetSKAdNetworkConversionValueSchema\x12J.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\\\xda\x41\x04name\x82\xd3\xe4\x93\x02O\x12M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}\x12\xe3\x02\n&CreateSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\xa7\x01\xda\x41*parent,skadnetwork_conversion_value_schema\x82\xd3\xe4\x93\x02t\"M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema:#skadnetwork_conversion_value_schema\x12\xed\x01\n&DeleteSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest\x1a\x16.google.protobuf.Empty\"\\\xda\x41\x04name\x82\xd3\xe4\x93\x02O*M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}\x12\x8d\x03\n&UpdateSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\xd1\x01\xda\x41/skadnetwork_conversion_value_schema,update_mask\x82\xd3\xe4\x93\x02\x98\x01\x32q/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}:#skadnetwork_conversion_value_schema\x12\xa4\x02\n%ListSKAdNetworkConversionValueSchemas\x12L.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest\x1aM.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse\"^\xda\x41\x06parent\x82\xd3\xe4\x93\x02O\x12M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema\x12\xe4\x01\n\x19SearchChangeHistoryEvents\x12@.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest\x1a\x41.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1alpha/{account=accounts/*}:searchChangeHistoryEvents:\x01*\x12\xd5\x01\n\x18GetGoogleSignalsSettings\x12?.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.GoogleSignalsSettings\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/{name=properties/*/googleSignalsSettings}\x12\xac\x02\n\x1bUpdateGoogleSignalsSettings\x12\x42.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.GoogleSignalsSettings\"\x91\x01\xda\x41#google_signals_settings,update_mask\x82\xd3\xe4\x93\x02\x65\x32J/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}:\x17google_signals_settings\x12\xee\x01\n\x15\x43reateConversionEvent\x12<.google.analytics.admin.v1alpha.CreateConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"f\x88\x02\x01\xda\x41\x17parent,conversion_event\x82\xd3\xe4\x93\x02\x43\"//v1alpha/{parent=properties/*}/conversionEvents:\x10\x63onversion_event\x12\x84\x02\n\x15UpdateConversionEvent\x12<.google.analytics.admin.v1alpha.UpdateConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"|\x88\x02\x01\xda\x41\x1c\x63onversion_event,update_mask\x82\xd3\xe4\x93\x02T2@/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}:\x10\x63onversion_event\x12\xc3\x01\n\x12GetConversionEvent\x12\x39.google.analytics.admin.v1alpha.GetConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"A\x88\x02\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/conversionEvents/*}\x12\xb0\x01\n\x15\x44\x65leteConversionEvent\x12<.google.analytics.admin.v1alpha.DeleteConversionEventRequest\x1a\x16.google.protobuf.Empty\"A\x88\x02\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1alpha/{name=properties/*/conversionEvents/*}\x12\xd6\x01\n\x14ListConversionEvents\x12;.google.analytics.admin.v1alpha.ListConversionEventsRequest\x1a<.google.analytics.admin.v1alpha.ListConversionEventsResponse\"C\x88\x02\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/conversionEvents\x12\xc1\x01\n\x0e\x43reateKeyEvent\x12\x35.google.analytics.admin.v1alpha.CreateKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"N\xda\x41\x10parent,key_event\x82\xd3\xe4\x93\x02\x35\"(/v1alpha/{parent=properties/*}/keyEvents:\tkey_event\x12\xd0\x01\n\x0eUpdateKeyEvent\x12\x35.google.analytics.admin.v1alpha.UpdateKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"]\xda\x41\x15key_event,update_mask\x82\xd3\xe4\x93\x02?22/v1alpha/{key_event.name=properties/*/keyEvents/*}:\tkey_event\x12\xa4\x01\n\x0bGetKeyEvent\x12\x32.google.analytics.admin.v1alpha.GetKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{name=properties/*/keyEvents/*}\x12\x98\x01\n\x0e\x44\x65leteKeyEvent\x12\x35.google.analytics.admin.v1alpha.DeleteKeyEventRequest\x1a\x16.google.protobuf.Empty\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v1alpha/{name=properties/*/keyEvents/*}\x12\xb7\x01\n\rListKeyEvents\x12\x34.google.analytics.admin.v1alpha.ListKeyEventsRequest\x1a\x35.google.analytics.admin.v1alpha.ListKeyEventsResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{parent=properties/*}/keyEvents\x12\xf8\x01\n GetDisplayVideo360AdvertiserLink\x12G.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}\x12\x8b\x02\n\"ListDisplayVideo360AdvertiserLinks\x12I.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest\x1aJ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks\x12\xc6\x02\n#CreateDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\x93\x01\xda\x41(parent,display_video_360_advertiser_link\x82\xd3\xe4\x93\x02\x62\"=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks:!display_video_360_advertiser_link\x12\xd7\x01\n#DeleteDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}\x12\xee\x02\n#UpdateDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\xbb\x01\xda\x41-display_video_360_advertiser_link,update_mask\x82\xd3\xe4\x93\x02\x84\x01\x32_/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}:!display_video_360_advertiser_link\x12\x98\x02\n(GetDisplayVideo360AdvertiserLinkProposal\x12O.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}\x12\xab\x02\n*ListDisplayVideo360AdvertiserLinkProposals\x12Q.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest\x1aR.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals\x12\xf8\x02\n+CreateDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"\xad\x01\xda\x41\x31parent,display_video_360_advertiser_link_proposal\x82\xd3\xe4\x93\x02s\"E/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals:*display_video_360_advertiser_link_proposal\x12\xef\x01\n+DeleteDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest\x1a\x16.google.protobuf.Empty\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G*E/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}\x12\xb3\x02\n,ApproveDisplayVideo360AdvertiserLinkProposal\x12S.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest\x1aT.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve:\x01*\x12\xa1\x02\n+CancelDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"W\x82\xd3\xe4\x93\x02Q\"L/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel:\x01*\x12\xeb\x01\n\x15\x43reateCustomDimension\x12<.google.analytics.admin.v1alpha.CreateCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\"c\xda\x41\x17parent,custom_dimension\x82\xd3\xe4\x93\x02\x43\"//v1alpha/{parent=properties/*}/customDimensions:\x10\x63ustom_dimension\x12\x81\x02\n\x15UpdateCustomDimension\x12<.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\"y\xda\x41\x1c\x63ustom_dimension,update_mask\x82\xd3\xe4\x93\x02T2@/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}:\x10\x63ustom_dimension\x12\xd3\x01\n\x14ListCustomDimensions\x12;.google.analytics.admin.v1alpha.ListCustomDimensionsRequest\x1a<.google.analytics.admin.v1alpha.ListCustomDimensionsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/customDimensions\x12\xba\x01\n\x16\x41rchiveCustomDimension\x12=.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest\x1a\x16.google.protobuf.Empty\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\"7/v1alpha/{name=properties/*/customDimensions/*}:archive:\x01*\x12\xc0\x01\n\x12GetCustomDimension\x12\x39.google.analytics.admin.v1alpha.GetCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/customDimensions/*}\x12\xd9\x01\n\x12\x43reateCustomMetric\x12\x39.google.analytics.admin.v1alpha.CreateCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\"Z\xda\x41\x14parent,custom_metric\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/customMetrics:\rcustom_metric\x12\xec\x01\n\x12UpdateCustomMetric\x12\x39.google.analytics.admin.v1alpha.UpdateCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\"m\xda\x41\x19\x63ustom_metric,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{custom_metric.name=properties/*/customMetrics/*}:\rcustom_metric\x12\xc7\x01\n\x11ListCustomMetrics\x12\x38.google.analytics.admin.v1alpha.ListCustomMetricsRequest\x1a\x39.google.analytics.admin.v1alpha.ListCustomMetricsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/customMetrics\x12\xb1\x01\n\x13\x41rchiveCustomMetric\x12:.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\"4/v1alpha/{name=properties/*/customMetrics/*}:archive:\x01*\x12\xb4\x01\n\x0fGetCustomMetric\x12\x36.google.analytics.admin.v1alpha.GetCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/customMetrics/*}\x12\xd5\x01\n\x18GetDataRetentionSettings\x12?.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRetentionSettings\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/{name=properties/*/dataRetentionSettings}\x12\xac\x02\n\x1bUpdateDataRetentionSettings\x12\x42.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRetentionSettings\"\x91\x01\xda\x41#data_retention_settings,update_mask\x82\xd3\xe4\x93\x02\x65\x32J/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}:\x17\x64\x61ta_retention_settings\x12\xcd\x01\n\x10\x43reateDataStream\x12\x37.google.analytics.admin.v1alpha.CreateDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"T\xda\x41\x12parent,data_stream\x82\xd3\xe4\x93\x02\x39\"*/v1alpha/{parent=properties/*}/dataStreams:\x0b\x64\x61ta_stream\x12\x9e\x01\n\x10\x44\x65leteDataStream\x12\x37.google.analytics.admin.v1alpha.DeleteDataStreamRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1alpha/{name=properties/*/dataStreams/*}\x12\xde\x01\n\x10UpdateDataStream\x12\x37.google.analytics.admin.v1alpha.UpdateDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"e\xda\x41\x17\x64\x61ta_stream,update_mask\x82\xd3\xe4\x93\x02\x45\x32\x36/v1alpha/{data_stream.name=properties/*/dataStreams/*}:\x0b\x64\x61ta_stream\x12\xbf\x01\n\x0fListDataStreams\x12\x36.google.analytics.admin.v1alpha.ListDataStreamsRequest\x1a\x37.google.analytics.admin.v1alpha.ListDataStreamsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1alpha/{parent=properties/*}/dataStreams\x12\xac\x01\n\rGetDataStream\x12\x34.google.analytics.admin.v1alpha.GetDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1alpha/{name=properties/*/dataStreams/*}\x12\xa4\x01\n\x0bGetAudience\x12\x32.google.analytics.admin.v1alpha.GetAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{name=properties/*/audiences/*}\x12\xb7\x01\n\rListAudiences\x12\x34.google.analytics.admin.v1alpha.ListAudiencesRequest\x1a\x35.google.analytics.admin.v1alpha.ListAudiencesResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{parent=properties/*}/audiences\x12\xbf\x01\n\x0e\x43reateAudience\x12\x35.google.analytics.admin.v1alpha.CreateAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"L\xda\x41\x0fparent,audience\x82\xd3\xe4\x93\x02\x34\"(/v1alpha/{parent=properties/*}/audiences:\x08\x61udience\x12\xcd\x01\n\x0eUpdateAudience\x12\x35.google.analytics.admin.v1alpha.UpdateAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"Z\xda\x41\x14\x61udience,update_mask\x82\xd3\xe4\x93\x02=21/v1alpha/{audience.name=properties/*/audiences/*}:\x08\x61udience\x12\x9e\x01\n\x0f\x41rchiveAudience\x12\x36.google.analytics.admin.v1alpha.ArchiveAudienceRequest\x1a\x16.google.protobuf.Empty\";\x82\xd3\xe4\x93\x02\x35\"0/v1alpha/{name=properties/*/audiences/*}:archive:\x01*\x12\xc4\x01\n\x13GetSearchAds360Link\x12:.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/searchAds360Links/*}\x12\xd7\x01\n\x15ListSearchAds360Links\x12<.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest\x1a=.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{parent=properties/*}/searchAds360Links\x12\xf5\x01\n\x16\x43reateSearchAds360Link\x12=.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"j\xda\x41\x1aparent,search_ads_360_link\x82\xd3\xe4\x93\x02G\"0/v1alpha/{parent=properties/*}/searchAds360Links:\x13search_ads_360_link\x12\xb0\x01\n\x16\x44\x65leteSearchAds360Link\x12=.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1alpha/{name=properties/*/searchAds360Links/*}\x12\x8f\x02\n\x16UpdateSearchAds360Link\x12=.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"\x83\x01\xda\x41\x1fsearch_ads_360_link,update_mask\x82\xd3\xe4\x93\x02[2D/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}:\x13search_ads_360_link\x12\xcd\x01\n\x16GetAttributionSettings\x12=.google.analytics.admin.v1alpha.GetAttributionSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.AttributionSettings\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/attributionSettings}\x12\x9b\x02\n\x19UpdateAttributionSettings\x12@.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.AttributionSettings\"\x86\x01\xda\x41 attribution_settings,update_mask\x82\xd3\xe4\x93\x02]2E/v1alpha/{attribution_settings.name=properties/*/attributionSettings}:\x14\x61ttribution_settings\x12\xf0\x01\n\x0fRunAccessReport\x12\x36.google.analytics.admin.v1alpha.RunAccessReportRequest\x1a\x37.google.analytics.admin.v1alpha.RunAccessReportResponse\"l\x82\xd3\xe4\x93\x02\x66\"./v1alpha/{entity=properties/*}:runAccessReport:\x01*Z1\",/v1alpha/{entity=accounts/*}:runAccessReport:\x01*\x12\x9f\x02\n\x13\x43reateAccessBinding\x12:.google.analytics.admin.v1alpha.CreateAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"\x9c\x01\xda\x41\x15parent,access_binding\x82\xd3\xe4\x93\x02~\"+/v1alpha/{parent=accounts/*}/accessBindings:\x0e\x61\x63\x63\x65ss_bindingZ?\"-/v1alpha/{parent=properties/*}/accessBindings:\x0e\x61\x63\x63\x65ss_binding\x12\xe7\x01\n\x10GetAccessBinding\x12\x37.google.analytics.admin.v1alpha.GetAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"k\xda\x41\x04name\x82\xd3\xe4\x93\x02^\x12+/v1alpha/{name=accounts/*/accessBindings/*}Z/\x12-/v1alpha/{name=properties/*/accessBindings/*}\x12\xb7\x02\n\x13UpdateAccessBinding\x12:.google.analytics.admin.v1alpha.UpdateAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"\xb4\x01\xda\x41\x0e\x61\x63\x63\x65ss_binding\x82\xd3\xe4\x93\x02\x9c\x01\x32:/v1alpha/{access_binding.name=accounts/*/accessBindings/*}:\x0e\x61\x63\x63\x65ss_bindingZN2\"9/v1alpha/{parent=properties/*}/accessBindings:batchCreate:\x01*\x12\x8f\x02\n\x16\x42\x61tchGetAccessBindings\x12=.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest\x1a>.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse\"v\x82\xd3\xe4\x93\x02p\x12\x34/v1alpha/{parent=accounts/*}/accessBindings:batchGetZ8\x12\x36/v1alpha/{parent=properties/*}/accessBindings:batchGet\x12\xa5\x02\n\x19\x42\x61tchUpdateAccessBindings\x12@.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest\x1a\x41.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse\"\x82\x01\x82\xd3\xe4\x93\x02|\"7/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate:\x01*Z>\"9/v1alpha/{parent=properties/*}/accessBindings:batchUpdate:\x01*\x12\xfa\x01\n\x19\x42\x61tchDeleteAccessBindings\x12@.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest\x1a\x16.google.protobuf.Empty\"\x82\x01\x82\xd3\xe4\x93\x02|\"7/v1alpha/{parent=accounts/*}/accessBindings:batchDelete:\x01*Z>\"9/v1alpha/{parent=properties/*}/accessBindings:batchDelete:\x01*\x12\xc0\x01\n\x12GetExpandedDataSet\x12\x39.google.analytics.admin.v1alpha.GetExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/expandedDataSets/*}\x12\xd3\x01\n\x14ListExpandedDataSets\x12;.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest\x1a<.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/expandedDataSets\x12\xed\x01\n\x15\x43reateExpandedDataSet\x12<.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\"e\xda\x41\x18parent,expanded_data_set\x82\xd3\xe4\x93\x02\x44\"//v1alpha/{parent=properties/*}/expandedDataSets:\x11\x65xpanded_data_set\x12\x84\x02\n\x15UpdateExpandedDataSet\x12<.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\"|\xda\x41\x1d\x65xpanded_data_set,update_mask\x82\xd3\xe4\x93\x02V2A/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}:\x11\x65xpanded_data_set\x12\xad\x01\n\x15\x44\x65leteExpandedDataSet\x12<.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1alpha/{name=properties/*/expandedDataSets/*}\x12\xb4\x01\n\x0fGetChannelGroup\x12\x36.google.analytics.admin.v1alpha.GetChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/channelGroups/*}\x12\xc7\x01\n\x11ListChannelGroups\x12\x38.google.analytics.admin.v1alpha.ListChannelGroupsRequest\x1a\x39.google.analytics.admin.v1alpha.ListChannelGroupsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/channelGroups\x12\xd9\x01\n\x12\x43reateChannelGroup\x12\x39.google.analytics.admin.v1alpha.CreateChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\"Z\xda\x41\x14parent,channel_group\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/channelGroups:\rchannel_group\x12\xec\x01\n\x12UpdateChannelGroup\x12\x39.google.analytics.admin.v1alpha.UpdateChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\"m\xda\x41\x19\x63hannel_group,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{channel_group.name=properties/*/channelGroups/*}:\rchannel_group\x12\xa4\x01\n\x12\x44\x65leteChannelGroup\x12\x39.google.analytics.admin.v1alpha.DeleteChannelGroupRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/channelGroups/*}\x12\xd9\x01\n\x12\x43reateBigQueryLink\x12\x39.google.analytics.admin.v1alpha.CreateBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\"Z\xda\x41\x14parent,bigquery_link\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/bigQueryLinks:\rbigquery_link\x12\xb4\x01\n\x0fGetBigQueryLink\x12\x36.google.analytics.admin.v1alpha.GetBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/bigQueryLinks/*}\x12\xc7\x01\n\x11ListBigQueryLinks\x12\x38.google.analytics.admin.v1alpha.ListBigQueryLinksRequest\x1a\x39.google.analytics.admin.v1alpha.ListBigQueryLinksResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/bigQueryLinks\x12\xa4\x01\n\x12\x44\x65leteBigQueryLink\x12\x39.google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/bigQueryLinks/*}\x12\xec\x01\n\x12UpdateBigQueryLink\x12\x39.google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\"m\xda\x41\x19\x62igquery_link,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{bigquery_link.name=properties/*/bigQueryLinks/*}:\rbigquery_link\x12\xfb\x01\n\x1eGetEnhancedMeasurementSettings\x12\x45.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest\x1a;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}\x12\xe5\x02\n!UpdateEnhancedMeasurementSettings\x12H.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest\x1a;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings\"\xb8\x01\xda\x41)enhanced_measurement_settings,update_mask\x82\xd3\xe4\x93\x02\x85\x01\x32\x64/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}:\x1d\x65nhanced_measurement_settings\x12\xb0\x01\n\x0eGetAdSenseLink\x12\x35.google.analytics.admin.v1alpha.GetAdSenseLinkRequest\x1a+.google.analytics.admin.v1alpha.AdSenseLink\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1alpha/{name=properties/*/adSenseLinks/*}\x12\xd3\x01\n\x11\x43reateAdSenseLink\x12\x38.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest\x1a+.google.analytics.admin.v1alpha.AdSenseLink\"W\xda\x41\x13parent,adsense_link\x82\xd3\xe4\x93\x02;\"+/v1alpha/{parent=properties/*}/adSenseLinks:\x0c\x61\x64sense_link\x12\xa1\x01\n\x11\x44\x65leteAdSenseLink\x12\x38.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1alpha/{name=properties/*/adSenseLinks/*}\x12\xc3\x01\n\x10ListAdSenseLinks\x12\x37.google.analytics.admin.v1alpha.ListAdSenseLinksRequest\x1a\x38.google.analytics.admin.v1alpha.ListAdSenseLinksResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1alpha/{parent=properties/*}/adSenseLinks\x12\xce\x01\n\x12GetEventCreateRule\x12\x39.google.analytics.admin.v1alpha.GetEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}\x12\xe1\x01\n\x14ListEventCreateRules\x12;.google.analytics.admin.v1alpha.ListEventCreateRulesRequest\x1a<.google.analytics.admin.v1alpha.ListEventCreateRulesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules\x12\xfb\x01\n\x15\x43reateEventCreateRule\x12<.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"s\xda\x41\x18parent,event_create_rule\x82\xd3\xe4\x93\x02R\"=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules:\x11\x65vent_create_rule\x12\x93\x02\n\x15UpdateEventCreateRule\x12<.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"\x8a\x01\xda\x41\x1d\x65vent_create_rule,update_mask\x82\xd3\xe4\x93\x02\x64\x32O/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}:\x11\x65vent_create_rule\x12\xbb\x01\n\x15\x44\x65leteEventCreateRule\x12<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}\x12\xc6\x01\n\x10GetEventEditRule\x12\x37.google.analytics.admin.v1alpha.GetEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}\x12\xd9\x01\n\x12ListEventEditRules\x12\x39.google.analytics.admin.v1alpha.ListEventEditRulesRequest\x1a:.google.analytics.admin.v1alpha.ListEventEditRulesResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules\x12\xef\x01\n\x13\x43reateEventEditRule\x12:.google.analytics.admin.v1alpha.CreateEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"m\xda\x41\x16parent,event_edit_rule\x82\xd3\xe4\x93\x02N\";/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:\x0f\x65vent_edit_rule\x12\x85\x02\n\x13UpdateEventEditRule\x12:.google.analytics.admin.v1alpha.UpdateEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"\x82\x01\xda\x41\x1b\x65vent_edit_rule,update_mask\x82\xd3\xe4\x93\x02^2K/v1alpha/{event_edit_rule.name=properties/*/dataStreams/*/eventEditRules/*}:\x0f\x65vent_edit_rule\x12\xb5\x01\n\x13\x44\x65leteEventEditRule\x12:.google.analytics.admin.v1alpha.DeleteEventEditRuleRequest\x1a\x16.google.protobuf.Empty\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}\x12\xbd\x01\n\x15ReorderEventEditRules\x12<.google.analytics.admin.v1alpha.ReorderEventEditRulesRequest\x1a\x16.google.protobuf.Empty\"N\x82\xd3\xe4\x93\x02H\"C/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:reorder:\x01*\x12\xba\x02\n\x1bUpdateDataRedactionSettings\x12\x42.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRedactionSettings\"\x9f\x01\xda\x41#data_redaction_settings,update_mask\x82\xd3\xe4\x93\x02s2X/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}:\x17\x64\x61ta_redaction_settings\x12\xe3\x01\n\x18GetDataRedactionSettings\x12?.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRedactionSettings\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}\x12\xc4\x01\n\x13GetCalculatedMetric\x12:.google.analytics.admin.v1alpha.GetCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/calculatedMetrics/*}\x12\x86\x02\n\x16\x43reateCalculatedMetric\x12=.google.analytics.admin.v1alpha.CreateCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"{\xda\x41-parent,calculated_metric,calculated_metric_id\x82\xd3\xe4\x93\x02\x45\"0/v1alpha/{parent=properties/*}/calculatedMetrics:\x11\x63\x61lculated_metric\x12\xd7\x01\n\x15ListCalculatedMetrics\x12<.google.analytics.admin.v1alpha.ListCalculatedMetricsRequest\x1a=.google.analytics.admin.v1alpha.ListCalculatedMetricsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{parent=properties/*}/calculatedMetrics\x12\x88\x02\n\x16UpdateCalculatedMetric\x12=.google.analytics.admin.v1alpha.UpdateCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"}\xda\x41\x1d\x63\x61lculated_metric,update_mask\x82\xd3\xe4\x93\x02W2B/v1alpha/{calculated_metric.name=properties/*/calculatedMetrics/*}:\x11\x63\x61lculated_metric\x12\xb0\x01\n\x16\x44\x65leteCalculatedMetric\x12=.google.analytics.admin.v1alpha.DeleteCalculatedMetricRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1alpha/{name=properties/*/calculatedMetrics/*}\x12\xc6\x01\n\x14\x43reateRollupProperty\x12;.google.analytics.admin.v1alpha.CreateRollupPropertyRequest\x1a<.google.analytics.admin.v1alpha.CreateRollupPropertyResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/properties:createRollupProperty:\x01*\x12\xe4\x01\n\x1bGetRollupPropertySourceLink\x12\x42.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest\x1a\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}\x12\xf7\x01\n\x1dListRollupPropertySourceLinks\x12\x44.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest\x1a\x45.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{parent=properties/*}/rollupPropertySourceLinks\x12\xa6\x02\n\x1e\x43reateRollupPropertySourceLink\x12\x45.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest\x1a\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"\x82\x01\xda\x41\"parent,rollup_property_source_link\x82\xd3\xe4\x93\x02W\"8/v1alpha/{parent=properties/*}/rollupPropertySourceLinks:\x1brollup_property_source_link\x12\xc8\x01\n\x1e\x44\x65leteRollupPropertySourceLink\x12\x45.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest\x1a\x16.google.protobuf.Empty\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}\x12\xc6\x01\n\x14ProvisionSubproperty\x12;.google.analytics.admin.v1alpha.ProvisionSubpropertyRequest\x1a<.google.analytics.admin.v1alpha.ProvisionSubpropertyResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/properties:provisionSubproperty:\x01*\x12\x97\x02\n\x1c\x43reateSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"z\xda\x41\x1fparent,subproperty_event_filter\x82\xd3\xe4\x93\x02R\"6/v1alpha/{parent=properties/*}/subpropertyEventFilters:\x18subproperty_event_filter\x12\xdc\x01\n\x19GetSubpropertyEventFilter\x12@.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{name=properties/*/subpropertyEventFilters/*}\x12\xef\x01\n\x1bListSubpropertyEventFilters\x12\x42.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest\x1a\x43.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{parent=properties/*}/subpropertyEventFilters\x12\xb6\x02\n\x1cUpdateSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"\x98\x01\xda\x41$subproperty_event_filter,update_mask\x82\xd3\xe4\x93\x02k2O/v1alpha/{subproperty_event_filter.name=properties/*/subpropertyEventFilters/*}:\x18subproperty_event_filter\x12\xc2\x01\n\x1c\x44\x65leteSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest\x1a\x16.google.protobuf.Empty\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38*6/v1alpha/{name=properties/*/subpropertyEventFilters/*}\x12\x9d\x02\n\x1d\x43reateReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.CreateReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"}\xda\x41 parent,reporting_data_annotation\x82\xd3\xe4\x93\x02T\"7/v1alpha/{parent=properties/*}/reportingDataAnnotations:\x19reporting_data_annotation\x12\xe0\x01\n\x1aGetReportingDataAnnotation\x12\x41.google.analytics.admin.v1alpha.GetReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1alpha/{name=properties/*/reportingDataAnnotations/*}\x12\xf3\x01\n\x1cListReportingDataAnnotations\x12\x43.google.analytics.admin.v1alpha.ListReportingDataAnnotationsRequest\x1a\x44.google.analytics.admin.v1alpha.ListReportingDataAnnotationsResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1alpha/{parent=properties/*}/reportingDataAnnotations\x12\xbd\x02\n\x1dUpdateReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"\x9c\x01\xda\x41%reporting_data_annotation,update_mask\x82\xd3\xe4\x93\x02n2Q/v1alpha/{reporting_data_annotation.name=properties/*/reportingDataAnnotations/*}:\x19reporting_data_annotation\x12\xc5\x01\n\x1d\x44\x65leteReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.DeleteReportingDataAnnotationRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1alpha/{name=properties/*/reportingDataAnnotations/*}\x12\xce\x01\n\x12SubmitUserDeletion\x12\x39.google.analytics.admin.v1alpha.SubmitUserDeletionRequest\x1a:.google.analytics.admin.v1alpha.SubmitUserDeletionResponse\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\"//v1alpha/{name=properties/*}:submitUserDeletion:\x01*\x12\xeb\x01\n\x1aListSubpropertySyncConfigs\x12\x41.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsRequest\x1a\x42.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{parent=properties/*}/subpropertySyncConfigs\x12\xaf\x02\n\x1bUpdateSubpropertySyncConfig\x12\x42.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest\x1a\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\"\x94\x01\xda\x41#subproperty_sync_config,update_mask\x82\xd3\xe4\x93\x02h2M/v1alpha/{subproperty_sync_config.name=properties/*/subpropertySyncConfigs/*}:\x17subproperty_sync_config\x12\xd8\x01\n\x18GetSubpropertySyncConfig\x12?.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest\x1a\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{name=properties/*/subpropertySyncConfigs/*}\x12\xe5\x01\n\x1cGetReportingIdentitySettings\x12\x43.google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest\x1a\x39.google.analytics.admin.v1alpha.ReportingIdentitySettings\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{name=properties/*/reportingIdentitySettings}\x12\xc8\x02\n\x1fUpdateReportingIdentitySettings\x12\x46.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest\x1a\x39.google.analytics.admin.v1alpha.ReportingIdentitySettings\"\xa1\x01\xda\x41\'reporting_identity_settings,update_mask\x82\xd3\xe4\x93\x02q2R/v1alpha/{reporting_identity_settings.name=properties/*/reportingIdentitySettings}:\x1breporting_identity_settings\x12\xe1\x01\n\x1bGetUserProvidedDataSettings\x12\x42.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest\x1a\x38.google.analytics.admin.v1alpha.UserProvidedDataSettings\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{name=properties/*/userProvidedDataSettings}\x1a\xfc\x01\xca\x41\x1d\x61nalyticsadmin.googleapis.com\xd2\x41\xd8\x01https://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB{\n\"com.google.analytics.admin.v1alphaB\x13\x41nalyticsAdminProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -222,6 +222,7 @@ module V1alpha ListSubpropertySyncConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSubpropertySyncConfigsResponse").msgclass UpdateSubpropertySyncConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest").msgclass GetReportingIdentitySettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest").msgclass + UpdateReportingIdentitySettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest").msgclass GetUserProvidedDataSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest").msgclass end end diff --git a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb index 4c7c61d7f572..bcd8ece08421 100644 --- a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +++ b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb @@ -14448,6 +14448,98 @@ def get_reporting_identity_settings request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Updates the reporting identity settings for this property. + # + # @overload update_reporting_identity_settings(request, options = nil) + # Pass arguments to `update_reporting_identity_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_reporting_identity_settings(reporting_identity_settings: nil, update_mask: nil) + # Pass arguments to `update_reporting_identity_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param reporting_identity_settings [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings, ::Hash] + # Required. The reporting identity settings to update. + # The settings' `name` field is used to identify the settings. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to be updated. Field names must be in snake + # case (for example, "field_to_update"). Omitted fields will not be updated. + # To replace the entire entity, use one path with the string "*" to match all + # fields. If omitted, the service will treat it as an implied field mask + # equivalent to all fields that are populated. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new + # + # # Call the update_reporting_identity_settings method. + # result = client.update_reporting_identity_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. + # p result + # + def update_reporting_identity_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_reporting_identity_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.reporting_identity_settings&.name + header_params["reporting_identity_settings.name"] = request.reporting_identity_settings.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_reporting_identity_settings.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_reporting_identity_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.call_rpc :update_reporting_identity_settings, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Looks up settings related to user-provided data for a property. # @@ -15490,6 +15582,11 @@ class Rpcs # attr_reader :get_reporting_identity_settings ## + # RPC-specific configuration for `update_reporting_identity_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_reporting_identity_settings + ## # RPC-specific configuration for `get_user_provided_data_settings` # @return [::Gapic::Config::Method] # @@ -15805,6 +15902,8 @@ def initialize parent_rpcs = nil @get_subproperty_sync_config = ::Gapic::Config::Method.new get_subproperty_sync_config_config get_reporting_identity_settings_config = parent_rpcs.get_reporting_identity_settings if parent_rpcs.respond_to? :get_reporting_identity_settings @get_reporting_identity_settings = ::Gapic::Config::Method.new get_reporting_identity_settings_config + update_reporting_identity_settings_config = parent_rpcs.update_reporting_identity_settings if parent_rpcs.respond_to? :update_reporting_identity_settings + @update_reporting_identity_settings = ::Gapic::Config::Method.new update_reporting_identity_settings_config get_user_provided_data_settings_config = parent_rpcs.get_user_provided_data_settings if parent_rpcs.respond_to? :get_user_provided_data_settings @get_user_provided_data_settings = ::Gapic::Config::Method.new get_user_provided_data_settings_config diff --git a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb index 11f7ad6e9b4f..d8abff03de47 100644 --- a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb +++ b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb @@ -13409,6 +13409,91 @@ def get_reporting_identity_settings request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Updates the reporting identity settings for this property. + # + # @overload update_reporting_identity_settings(request, options = nil) + # Pass arguments to `update_reporting_identity_settings` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_reporting_identity_settings(reporting_identity_settings: nil, update_mask: nil) + # Pass arguments to `update_reporting_identity_settings` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param reporting_identity_settings [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings, ::Hash] + # Required. The reporting identity settings to update. + # The settings' `name` field is used to identify the settings. + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # Optional. The list of fields to be updated. Field names must be in snake + # case (for example, "field_to_update"). Omitted fields will not be updated. + # To replace the entire entity, use one path with the string "*" to match all + # fields. If omitted, the service will treat it as an implied field mask + # equivalent to all fields that are populated. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/analytics/admin/v1alpha" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new + # + # # Call the update_reporting_identity_settings method. + # result = client.update_reporting_identity_settings request + # + # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. + # p result + # + def update_reporting_identity_settings request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_reporting_identity_settings.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_reporting_identity_settings.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_reporting_identity_settings.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @analytics_admin_service_stub.update_reporting_identity_settings request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Looks up settings related to user-provided data for a property. # @@ -14407,6 +14492,11 @@ class Rpcs # attr_reader :get_reporting_identity_settings ## + # RPC-specific configuration for `update_reporting_identity_settings` + # @return [::Gapic::Config::Method] + # + attr_reader :update_reporting_identity_settings + ## # RPC-specific configuration for `get_user_provided_data_settings` # @return [::Gapic::Config::Method] # @@ -14722,6 +14812,8 @@ def initialize parent_rpcs = nil @get_subproperty_sync_config = ::Gapic::Config::Method.new get_subproperty_sync_config_config get_reporting_identity_settings_config = parent_rpcs.get_reporting_identity_settings if parent_rpcs.respond_to? :get_reporting_identity_settings @get_reporting_identity_settings = ::Gapic::Config::Method.new get_reporting_identity_settings_config + update_reporting_identity_settings_config = parent_rpcs.update_reporting_identity_settings if parent_rpcs.respond_to? :update_reporting_identity_settings + @update_reporting_identity_settings = ::Gapic::Config::Method.new update_reporting_identity_settings_config get_user_provided_data_settings_config = parent_rpcs.get_user_provided_data_settings if parent_rpcs.respond_to? :get_user_provided_data_settings @get_user_provided_data_settings = ::Gapic::Config::Method.new get_user_provided_data_settings_config diff --git a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb index 32d0522d2834..9df9f0dc49e4 100644 --- a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb +++ b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb @@ -6233,6 +6233,46 @@ def get_reporting_identity_settings request_pb, options = nil end end + ## + # Baseline implementation for the update_reporting_identity_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # A result object deserialized from the server's reply + def update_reporting_identity_settings request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_reporting_identity_settings_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_reporting_identity_settings", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # Baseline implementation for the get_user_provided_data_settings REST call # @@ -9638,6 +9678,28 @@ def self.transcode_get_reporting_identity_settings_request request_pb transcoder.transcode request_pb end + ## + # @private + # + # GRPC transcoding helper method for the update_reporting_identity_settings REST call + # + # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_reporting_identity_settings_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1alpha/{reporting_identity_settings.name}", + body: "reporting_identity_settings", + matches: [ + ["reporting_identity_settings.name", %r{^properties/[^/]+/reportingIdentitySettings/?$}, false] + ] + ) + transcoder.transcode request_pb + end + ## # @private # diff --git a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb index 5d51c0ff9866..9f6e19d58257 100644 --- a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb +++ b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb @@ -445,6 +445,8 @@ class Service rpc :GetSubpropertySyncConfig, ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig # Returns the reporting identity settings for this property. rpc :GetReportingIdentitySettings, ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest, ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings + # Updates the reporting identity settings for this property. + rpc :UpdateReportingIdentitySettings, ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings # Looks up settings related to user-provided data for a property. rpc :GetUserProvidedDataSettings, ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest, ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings end diff --git a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb index 0ec916ee51cf..87d76f572e89 100644 --- a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb +++ b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb @@ -15,7 +15,7 @@ require 'google/type/date_pb' -descriptor_data = "\n.google/analytics/admin/v1alpha/resources.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a-google/analytics/admin/v1alpha/audience.proto\x1a\x32google/analytics/admin/v1alpha/channel_group.proto\x1a:google/analytics/admin/v1alpha/event_create_and_edit.proto\x1a\x36google/analytics/admin/v1alpha/expanded_data_set.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto\"\xf7\x02\n\x07\x41\x63\x63ount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bregion_code\x18\x05 \x01(\t\x12\x14\n\x07\x64\x65leted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12T\n\x10gmp_organization\x18\x07 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2marketingplatformadmin.googleapis.com/Organization:Q\xea\x41N\n%analyticsadmin.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}*\x08\x61\x63\x63ounts2\x07\x61\x63\x63ount\"\xcf\x05\n\x08Property\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12H\n\rproperty_type\x18\x0e \x01(\x0e\x32,.google.analytics.admin.v1alpha.PropertyTypeB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06parent\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12K\n\x11industry_category\x18\x06 \x01(\x0e\x32\x30.google.analytics.admin.v1alpha.IndustryCategory\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rcurrency_code\x18\x08 \x01(\t\x12H\n\rservice_level\x18\n \x01(\x0e\x32,.google.analytics.admin.v1alpha.ServiceLevelB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12>\n\x07\x61\x63\x63ount\x18\r \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%analyticsadmin.googleapis.com/Account:X\xea\x41U\n&analyticsadmin.googleapis.com/Property\x12\x15properties/{property}*\nproperties2\x08property\"\x8d\x08\n\nDataStream\x12S\n\x0fweb_stream_data\x18\x06 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.DataStream.WebStreamDataH\x00\x12\x62\n\x17\x61ndroid_app_stream_data\x18\x07 \x01(\x0b\x32?.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataH\x00\x12Z\n\x13ios_app_stream_data\x18\x08 \x01(\x0b\x32;.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12O\n\x04type\x18\x02 \x01(\x0e\x32\x39.google.analytics.admin.v1alpha.DataStream.DataStreamTypeB\x06\xe0\x41\x05\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a_\n\rWebStreamData\x12\x1b\n\x0emeasurement_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x66irebase_app_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65\x66\x61ult_uri\x18\x03 \x01(\t\x1aO\n\x14\x41ndroidAppStreamData\x12\x1c\n\x0f\x66irebase_app_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cpackage_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x1aK\n\x10IosAppStreamData\x12\x1c\n\x0f\x66irebase_app_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\tbundle_id\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\"}\n\x0e\x44\x61taStreamType\x12 \n\x1c\x44\x41TA_STREAM_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fWEB_DATA_STREAM\x10\x01\x12\x1b\n\x17\x41NDROID_APP_DATA_STREAM\x10\x02\x12\x17\n\x13IOS_APP_DATA_STREAM\x10\x03:w\xea\x41t\n(analyticsadmin.googleapis.com/DataStream\x12/properties/{property}/dataStreams/{data_stream}*\x0b\x64\x61taStreams2\ndataStreamB\r\n\x0bstream_data\"\xf1\x01\n\x0c\x46irebaseLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07project\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x81\x01\xea\x41~\n*analyticsadmin.googleapis.com/FirebaseLink\x12\x33properties/{property}/firebaseLinks/{firebase_link}*\rfirebaseLinks2\x0c\x66irebaseLink\"\xca\x01\n\rGlobalSiteTag\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07snippet\x18\x02 \x01(\tB\x03\xe0\x41\x05:\x8f\x01\xea\x41\x8b\x01\n+analyticsadmin.googleapis.com/GlobalSiteTag\x12=properties/{property}/dataStreams/{data_stream}/globalSiteTag*\x0eglobalSiteTags2\rglobalSiteTag\"\xb9\x03\n\rGoogleAdsLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x0b\x63ustomer_id\x18\x03 \x01(\tB\x03\xe0\x41\x05\x12\x1f\n\x12\x63\x61n_manage_clients\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\"\n\x15\x63reator_email_address\x18\t \x01(\tB\x03\xe0\x41\x03:\x88\x01\xea\x41\x84\x01\n+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x36properties/{property}/googleAdsLinks/{google_ads_link}*\x0egoogleAdsLinks2\rgoogleAdsLink\"\x9b\x03\n\x13\x44\x61taSharingSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12+\n#sharing_with_google_support_enabled\x18\x02 \x01(\x08\x12\x32\n*sharing_with_google_assigned_sales_enabled\x18\x03 \x01(\x08\x12\x31\n%sharing_with_google_any_sales_enabled\x18\x04 \x01(\x08\x42\x02\x18\x01\x12,\n$sharing_with_google_products_enabled\x18\x05 \x01(\x08\x12#\n\x1bsharing_with_others_enabled\x18\x06 \x01(\x08:\x89\x01\xea\x41\x85\x01\n1analyticsadmin.googleapis.com/DataSharingSettings\x12&accounts/{account}/dataSharingSettings*\x13\x64\x61taSharingSettings2\x13\x64\x61taSharingSettings\"\xbc\x02\n\x0e\x41\x63\x63ountSummary\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12;\n\x07\x61\x63\x63ount\x18\x02 \x01(\tB*\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12K\n\x12property_summaries\x18\x04 \x03(\x0b\x32/.google.analytics.admin.v1alpha.PropertySummary:w\xea\x41t\n,analyticsadmin.googleapis.com/AccountSummary\x12\"accountSummaries/{account_summary}*\x10\x61\x63\x63ountSummaries2\x0e\x61\x63\x63ountSummary\"\xbb\x01\n\x0fPropertySummary\x12=\n\x08property\x18\x01 \x01(\tB+\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x43\n\rproperty_type\x18\x03 \x01(\x0e\x32,.google.analytics.admin.v1alpha.PropertyType\x12\x0e\n\x06parent\x18\x04 \x01(\t\"\xc5\x02\n\x19MeasurementProtocolSecret\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0csecret_value\x18\x03 \x01(\tB\x03\xe0\x41\x03:\xde\x01\xea\x41\xda\x01\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\x12hproperties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}*\x1ameasurementProtocolSecrets2\x19measurementProtocolSecret\"\xc8\x04\n SKAdNetworkConversionValueSchema\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12P\n\x13postback_window_one\x18\x02 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindowB\x03\xe0\x41\x02\x12K\n\x13postback_window_two\x18\x03 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindow\x12M\n\x15postback_window_three\x18\x04 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindow\x12\x1f\n\x17\x61pply_conversion_values\x18\x05 \x01(\x08:\x81\x02\xea\x41\xfd\x01\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12vproperties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}*!skAdNetworkConversionValueSchemas2 skAdNetworkConversionValueSchema\"\x87\x01\n\x0ePostbackWindow\x12K\n\x11\x63onversion_values\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.ConversionValues\x12(\n postback_window_settings_enabled\x18\x02 \x01(\x08\"\xf4\x01\n\x10\x43onversionValues\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x17\n\nfine_value\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x46\n\x0c\x63oarse_value\x18\x03 \x01(\x0e\x32+.google.analytics.admin.v1alpha.CoarseValueB\x03\xe0\x41\x02\x12\x44\n\x0e\x65vent_mappings\x18\x04 \x03(\x0b\x32,.google.analytics.admin.v1alpha.EventMapping\x12\x14\n\x0clock_enabled\x18\x05 \x01(\x08\x42\r\n\x0b_fine_value\"\xef\x01\n\x0c\x45ventMapping\x12\x17\n\nevent_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fmin_event_count\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x1c\n\x0fmax_event_count\x18\x03 \x01(\x03H\x01\x88\x01\x01\x12\x1c\n\x0fmin_event_value\x18\x04 \x01(\x01H\x02\x88\x01\x01\x12\x1c\n\x0fmax_event_value\x18\x05 \x01(\x01H\x03\x88\x01\x01\x42\x12\n\x10_min_event_countB\x12\n\x10_max_event_countB\x12\n\x10_min_event_valueB\x12\n\x10_max_event_value\"\x8a\x02\n\x12\x43hangeHistoryEvent\x12\n\n\x02id\x18\x01 \x01(\t\x12/\n\x0b\x63hange_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\nactor_type\x18\x03 \x01(\x0e\x32).google.analytics.admin.v1alpha.ActorType\x12\x18\n\x10user_actor_email\x18\x04 \x01(\t\x12\x18\n\x10\x63hanges_filtered\x18\x05 \x01(\x08\x12\x44\n\x07\x63hanges\x18\x06 \x03(\x0b\x32\x33.google.analytics.admin.v1alpha.ChangeHistoryChange\"\x99\x16\n\x13\x43hangeHistoryChange\x12\x10\n\x08resource\x18\x01 \x01(\t\x12:\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32*.google.analytics.admin.v1alpha.ActionType\x12i\n\x16resource_before_change\x18\x03 \x01(\x0b\x32I.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\x12h\n\x15resource_after_change\x18\x04 \x01(\x0b\x32I.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\x1a\xde\x13\n\x15\x43hangeHistoryResource\x12:\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.AccountH\x00\x12<\n\x08property\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyH\x00\x12\x45\n\rfirebase_link\x18\x06 \x01(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLinkH\x00\x12H\n\x0fgoogle_ads_link\x18\x07 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLinkH\x00\x12X\n\x17google_signals_settings\x18\x08 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.GoogleSignalsSettingsH\x00\x12j\n!display_video_360_advertiser_link\x18\t \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkH\x00\x12{\n*display_video_360_advertiser_link_proposal\x18\n \x01(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalH\x00\x12K\n\x10\x63onversion_event\x18\x0b \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventH\x00\x12`\n\x1bmeasurement_protocol_secret\x18\x0c \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretH\x00\x12K\n\x10\x63ustom_dimension\x18\r \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimensionH\x00\x12\x45\n\rcustom_metric\x18\x0e \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetricH\x00\x12X\n\x17\x64\x61ta_retention_settings\x18\x0f \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRetentionSettingsH\x00\x12O\n\x13search_ads_360_link\x18\x10 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360LinkH\x00\x12\x41\n\x0b\x64\x61ta_stream\x18\x12 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStreamH\x00\x12S\n\x14\x61ttribution_settings\x18\x14 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AttributionSettingsH\x00\x12L\n\x11\x65xpanded_data_set\x18\x15 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetH\x00\x12\x45\n\rchannel_group\x18\x16 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupH\x00\x12\x45\n\rbigquery_link\x18\x17 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkH\x00\x12\x64\n\x1d\x65nhanced_measurement_settings\x18\x18 \x01(\x0b\x32;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsH\x00\x12X\n\x17\x64\x61ta_redaction_settings\x18\x19 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRedactionSettingsH\x00\x12o\n#skadnetwork_conversion_value_schema\x18\x1a \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaH\x00\x12\x43\n\x0c\x61\x64sense_link\x18\x1b \x01(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLinkH\x00\x12<\n\x08\x61udience\x18\x1c \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceH\x00\x12L\n\x11\x65vent_create_rule\x18\x1d \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleH\x00\x12=\n\tkey_event\x18\x1e \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventH\x00\x12M\n\x11\x63\x61lculated_metric\x18\x1f \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricH\x00\x12\\\n\x19reporting_data_annotation\x18 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationH\x00\x12X\n\x17subproperty_sync_config\x18! \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfigH\x00\x12`\n\x1breporting_identity_settings\x18\" \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.ReportingIdentitySettingsH\x00\x12_\n\x1buser_provided_data_settings\x18# \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.UserProvidedDataSettingsH\x00\x42\n\n\x08resource\"\x9e\x04\n\x1d\x44isplayVideo360AdvertiserLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12$\n\x17\x61\x64vertiser_display_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05:\xda\x01\xea\x41\xd6\x01\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12Xproperties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}*\x1e\x64isplayVideo360AdvertiserLinks2\x1d\x64isplayVideo360AdvertiserLink\"\xd9\x05\n%DisplayVideo360AdvertiserLinkProposal\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x64\n\x1clink_proposal_status_details\x18\x03 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.LinkProposalStatusDetailsB\x03\xe0\x41\x03\x12$\n\x17\x61\x64vertiser_display_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10validation_email\x18\x05 \x01(\tB\x03\xe0\x41\x04\x12\x44\n\x1b\x61\x64s_personalization_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05:\x83\x02\xea\x41\xff\x01\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12iproperties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}*&displayVideo360AdvertiserLinkProposals2%displayVideo360AdvertiserLinkProposal\"\x8f\x04\n\x10SearchAds360Link\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12$\n\x17\x61\x64vertiser_display_name\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12>\n\x1asite_stats_sharing_enabled\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue:\x98\x01\xea\x41\x94\x01\n.analyticsadmin.googleapis.com/SearchAds360Link\x12=properties/{property}/searchAds360Links/{search_ads_360_link}*\x11searchAds360Links2\x10searchAds360Link\"\xfc\x01\n\x19LinkProposalStatusDetails\x12l\n link_proposal_initiating_product\x18\x01 \x01(\x0e\x32=.google.analytics.admin.v1alpha.LinkProposalInitiatingProductB\x03\xe0\x41\x03\x12\x1c\n\x0frequestor_email\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12S\n\x13link_proposal_state\x18\x03 \x01(\x0e\x32\x31.google.analytics.admin.v1alpha.LinkProposalStateB\x03\xe0\x41\x03\"\x85\x06\n\x0f\x43onversionEvent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\nevent_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tdeletable\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06\x63ustom\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12\x66\n\x0f\x63ounting_method\x18\x06 \x01(\x0e\x32H.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethodB\x03\xe0\x41\x01\x12r\n\x18\x64\x65\x66\x61ult_conversion_value\x18\x07 \x01(\x0b\x32\x46.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a\x64\n\x16\x44\x65\x66\x61ultConversionValue\x12\x12\n\x05value\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_valueB\x10\n\x0e_currency_code\"p\n\x18\x43onversionCountingMethod\x12*\n&CONVERSION_COUNTING_METHOD_UNSPECIFIED\x10\x00\x12\x12\n\x0eONCE_PER_EVENT\x10\x01\x12\x14\n\x10ONCE_PER_SESSION\x10\x02:\x91\x01\xea\x41\x8d\x01\n-analyticsadmin.googleapis.com/ConversionEvent\x12\x39properties/{property}/conversionEvents/{conversion_event}*\x10\x63onversionEvents2\x0f\x63onversionEventB\x1b\n\x19_default_conversion_value\"\xd7\x04\n\x08KeyEvent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nevent_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tdeletable\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06\x63ustom\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12U\n\x0f\x63ounting_method\x18\x06 \x01(\x0e\x32\x37.google.analytics.admin.v1alpha.KeyEvent.CountingMethodB\x03\xe0\x41\x02\x12Q\n\rdefault_value\x18\x07 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.KeyEvent.DefaultValueB\x03\xe0\x41\x01\x1a\x46\n\x0c\x44\x65\x66\x61ultValue\x12\x1a\n\rnumeric_value\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"[\n\x0e\x43ountingMethod\x12\x1f\n\x1b\x43OUNTING_METHOD_UNSPECIFIED\x10\x00\x12\x12\n\x0eONCE_PER_EVENT\x10\x01\x12\x14\n\x10ONCE_PER_SESSION\x10\x02:m\xea\x41j\n&analyticsadmin.googleapis.com/KeyEvent\x12+properties/{property}/keyEvents/{key_event}*\tkeyEvents2\x08keyEvent\"\xa0\x02\n\x15GoogleSignalsSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x03 \x01(\x0e\x32\x32.google.analytics.admin.v1alpha.GoogleSignalsState\x12J\n\x07\x63onsent\x18\x04 \x01(\x0e\x32\x34.google.analytics.admin.v1alpha.GoogleSignalsConsentB\x03\xe0\x41\x03:e\xea\x41\x62\n3analyticsadmin.googleapis.com/GoogleSignalsSettings\x12+properties/{property}/googleSignalsSettings\"\xe1\x03\n\x0f\x43ustomDimension\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0eparameter_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12U\n\x05scope\x18\x05 \x01(\x0e\x32>.google.analytics.admin.v1alpha.CustomDimension.DimensionScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12)\n\x1c\x64isallow_ads_personalization\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"P\n\x0e\x44imensionScope\x12\x1f\n\x1b\x44IMENSION_SCOPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45VENT\x10\x01\x12\x08\n\x04USER\x10\x02\x12\x08\n\x04ITEM\x10\x03:\x91\x01\xea\x41\x8d\x01\n-analyticsadmin.googleapis.com/CustomDimension\x12\x39properties/{property}/customDimensions/{custom_dimension}*\x10\x63ustomDimensions2\x0f\x63ustomDimension\"\xe3\x06\n\x0c\x43ustomMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0eparameter_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12[\n\x10measurement_unit\x18\x05 \x01(\x0e\x32<.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnitB\x03\xe0\x41\x02\x12O\n\x05scope\x18\x06 \x01(\x0e\x32\x38.google.analytics.admin.v1alpha.CustomMetric.MetricScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x66\n\x16restricted_metric_type\x18\x08 \x03(\x0e\x32\x41.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricTypeB\x03\xe0\x41\x01\"\xb7\x01\n\x0fMeasurementUnit\x12 \n\x1cMEASUREMENT_UNIT_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0c\n\x08\x43URRENCY\x10\x02\x12\x08\n\x04\x46\x45\x45T\x10\x03\x12\n\n\x06METERS\x10\x04\x12\x0e\n\nKILOMETERS\x10\x05\x12\t\n\x05MILES\x10\x06\x12\x10\n\x0cMILLISECONDS\x10\x07\x12\x0b\n\x07SECONDS\x10\x08\x12\x0b\n\x07MINUTES\x10\t\x12\t\n\x05HOURS\x10\n\"6\n\x0bMetricScope\x12\x1c\n\x18METRIC_SCOPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45VENT\x10\x01\"_\n\x14RestrictedMetricType\x12&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCOST_DATA\x10\x01\x12\x10\n\x0cREVENUE_DATA\x10\x02:\x81\x01\xea\x41~\n*analyticsadmin.googleapis.com/CustomMetric\x12\x33properties/{property}/customMetrics/{custom_metric}*\rcustomMetrics2\x0c\x63ustomMetric\"\xa7\x06\n\x10\x43\x61lculatedMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12!\n\x14\x63\x61lculated_metric_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12U\n\x0bmetric_unit\x18\x05 \x01(\x0e\x32;.google.analytics.admin.v1alpha.CalculatedMetric.MetricUnitB\x03\xe0\x41\x02\x12j\n\x16restricted_metric_type\x18\x06 \x03(\x0e\x32\x45.google.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricTypeB\x03\xe0\x41\x03\x12\x14\n\x07\x66ormula\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18invalid_metric_reference\x18\t \x01(\x08\x42\x03\xe0\x41\x03\"\xad\x01\n\nMetricUnit\x12\x1b\n\x17METRIC_UNIT_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0c\n\x08\x43URRENCY\x10\x02\x12\x08\n\x04\x46\x45\x45T\x10\x03\x12\t\n\x05MILES\x10\x04\x12\n\n\x06METERS\x10\x05\x12\x0e\n\nKILOMETERS\x10\x06\x12\x10\n\x0cMILLISECONDS\x10\x07\x12\x0b\n\x07SECONDS\x10\x08\x12\x0b\n\x07MINUTES\x10\t\x12\t\n\x05HOURS\x10\n\"_\n\x14RestrictedMetricType\x12&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCOST_DATA\x10\x01\x12\x10\n\x0cREVENUE_DATA\x10\x02:\x96\x01\xea\x41\x92\x01\n.analyticsadmin.googleapis.com/CalculatedMetric\x12;properties/{property}/calculatedMetrics/{calculated_metric}*\x11\x63\x61lculatedMetrics2\x10\x63\x61lculatedMetric\"\xe2\x04\n\x15\x44\x61taRetentionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12j\n\x14\x65vent_data_retention\x18\x02 \x01(\x0e\x32G.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\x03\xe0\x41\x02\x12i\n\x13user_data_retention\x18\x04 \x01(\x0e\x32G.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\x03\xe0\x41\x02\x12\'\n\x1freset_user_data_on_new_activity\x18\x03 \x01(\x08\"\x9e\x01\n\x11RetentionDuration\x12\"\n\x1eRETENTION_DURATION_UNSPECIFIED\x10\x00\x12\x0e\n\nTWO_MONTHS\x10\x01\x12\x13\n\x0f\x46OURTEEN_MONTHS\x10\x03\x12\x15\n\x11TWENTY_SIX_MONTHS\x10\x04\x12\x17\n\x13THIRTY_EIGHT_MONTHS\x10\x05\x12\x10\n\x0c\x46IFTY_MONTHS\x10\x06:\x94\x01\xea\x41\x90\x01\n3analyticsadmin.googleapis.com/DataRetentionSettings\x12+properties/{property}/dataRetentionSettings*\x15\x64\x61taRetentionSettings2\x15\x64\x61taRetentionSettings\"\xfc\x0b\n\x13\x41ttributionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x97\x01\n,acquisition_conversion_event_lookback_window\x18\x02 \x01(\x0e\x32\\.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindowB\x03\xe0\x41\x02\x12\x8b\x01\n&other_conversion_event_lookback_window\x18\x03 \x01(\x0e\x32V.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindowB\x03\xe0\x41\x02\x12w\n\x1breporting_attribution_model\x18\x04 \x01(\x0e\x32M.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModelB\x03\xe0\x41\x02\x12\x86\x01\n$ads_web_conversion_data_export_scope\x18\x05 \x01(\x0e\x32S.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScopeB\x03\xe0\x41\x02\"\xdb\x01\n(AcquisitionConversionEventLookbackWindow\x12<\n8ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\x10\x00\x12\x37\n3ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS\x10\x01\x12\x38\n4ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS\x10\x02\"\xf8\x01\n\"OtherConversionEventLookbackWindow\x12\x36\n2OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\x10\x00\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS\x10\x01\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS\x10\x02\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS\x10\x03\"\xc2\x01\n\x19ReportingAttributionModel\x12+\n\'REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED\x10\x00\x12)\n%PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN\x10\x01\x12(\n$PAID_AND_ORGANIC_CHANNELS_LAST_CLICK\x10\x02\x12#\n\x1fGOOGLE_PAID_CHANNELS_LAST_CLICK\x10\x07\"\xa6\x01\n\x1f\x41\x64sWebConversionDataExportScope\x12\x34\n0ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED\x10\x00\x12\x14\n\x10NOT_SELECTED_YET\x10\x01\x12\x1d\n\x19PAID_AND_ORGANIC_CHANNELS\x10\x02\x12\x18\n\x14GOOGLE_PAID_CHANNELS\x10\x03:a\xea\x41^\n1analyticsadmin.googleapis.com/AttributionSettings\x12)properties/{property}/attributionSettings\"\xf1\x01\n\rAccessBinding\x12\x0e\n\x04user\x18\x02 \x01(\tH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\r\n\x05roles\x18\x03 \x03(\t:\x9c\x01\xea\x41\x98\x01\n+analyticsadmin.googleapis.com/AccessBinding\x12\x32\x61\x63\x63ounts/{account}/accessBindings/{access_binding}\x12\x35properties/{property}/accessBindings/{access_binding}B\x0f\n\raccess_target\"\xaa\x03\n\x0c\x42igQueryLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07project\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x14\x64\x61ily_export_enabled\x18\x04 \x01(\x08\x12 \n\x18streaming_export_enabled\x18\x05 \x01(\x08\x12\"\n\x1a\x66resh_daily_export_enabled\x18\t \x01(\x08\x12\x1e\n\x16include_advertising_id\x18\x06 \x01(\x08\x12\x16\n\x0e\x65xport_streams\x18\x07 \x03(\t\x12\x17\n\x0f\x65xcluded_events\x18\x08 \x03(\t\x12 \n\x10\x64\x61taset_location\x18\n \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02:d\xea\x41\x61\n*analyticsadmin.googleapis.com/BigQueryLink\x12\x33properties/{property}/bigQueryLinks/{bigquery_link}\"\xf3\x03\n\x1b\x45nhancedMeasurementSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\x0estream_enabled\x18\x02 \x01(\x08\x12\x17\n\x0fscrolls_enabled\x18\x03 \x01(\x08\x12\x1f\n\x17outbound_clicks_enabled\x18\x04 \x01(\x08\x12\x1b\n\x13site_search_enabled\x18\x05 \x01(\x08\x12 \n\x18video_engagement_enabled\x18\x06 \x01(\x08\x12\x1e\n\x16\x66ile_downloads_enabled\x18\x07 \x01(\x08\x12\x1c\n\x14page_changes_enabled\x18\x08 \x01(\x08\x12!\n\x19\x66orm_interactions_enabled\x18\t \x01(\x08\x12#\n\x16search_query_parameter\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x13uri_query_parameter\x18\x0b \x01(\t:\x8c\x01\xea\x41\x88\x01\n9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\x12Kproperties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings\"\x95\x02\n\x15\x44\x61taRedactionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x17\x65mail_redaction_enabled\x18\x02 \x01(\x08\x12)\n!query_parameter_redaction_enabled\x18\x03 \x01(\x08\x12\x1c\n\x14query_parameter_keys\x18\x04 \x03(\t:\x7f\xea\x41|\n3analyticsadmin.googleapis.com/DataRedactionSettings\x12\x45properties/{property}/dataStreams/{data_stream}/dataRedactionSettings\"\xa0\x01\n\x0b\x41\x64SenseLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x61\x64_client_code\x18\x02 \x01(\tB\x03\xe0\x41\x05:a\xea\x41^\n)analyticsadmin.googleapis.com/AdSenseLink\x12\x31properties/{property}/adSenseLinks/{adsense_link}\"\x8e\x02\n\x18RollupPropertySourceLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsource_property\x18\x02 \x01(\tB\x03\xe0\x41\x05:\xc0\x01\xea\x41\xbc\x01\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\x12Mproperties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}*\x19rollupPropertySourceLinks2\x18rollupPropertySourceLink\"\xf6\x05\n\x17ReportingDataAnnotation\x12,\n\x0f\x61nnotation_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x62\n\x15\x61nnotation_date_range\x18\x05 \x01(\x0b\x32\x41.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRangeH\x00\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Q\n\x05\x63olor\x18\x06 \x01(\x0e\x32=.google.analytics.admin.v1alpha.ReportingDataAnnotation.ColorB\x03\xe0\x41\x02\x12\x1d\n\x10system_generated\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x1a\x61\n\tDateRange\x12*\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12(\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\"i\n\x05\x43olor\x12\x15\n\x11\x43OLOR_UNSPECIFIED\x10\x00\x12\n\n\x06PURPLE\x10\x01\x12\t\n\x05\x42ROWN\x10\x02\x12\x08\n\x04\x42LUE\x10\x03\x12\t\n\x05GREEN\x10\x04\x12\x07\n\x03RED\x10\x05\x12\x08\n\x04\x43YAN\x10\x06\x12\n\n\x06ORANGE\x10\x07:\xba\x01\xea\x41\xb6\x01\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\x12Jproperties/{property}/reportingDataAnnotations/{reporting_data_annotation}*\x18reportingDataAnnotations2\x17reportingDataAnnotationB\x08\n\x06target\"\xd2\x03\n\x15SubpropertySyncConfig\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x03\x12!\n\x11\x61pply_to_property\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12}\n%custom_dimension_and_metric_sync_mode\x18\x03 \x01(\x0e\x32I.google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationModeB\x03\xe0\x41\x02\"N\n\x13SynchronizationMode\x12$\n SYNCHRONIZATION_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03\x41LL\x10\x02:\xb0\x01\xea\x41\xac\x01\n3analyticsadmin.googleapis.com/SubpropertySyncConfig\x12\x46properties/{property}/subpropertySyncConfigs/{subproperty_sync_config}*\x16subpropertySyncConfigs2\x15subpropertySyncConfig\"\xaf\x03\n\x19ReportingIdentitySettings\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x03\x12g\n\x12reporting_identity\x18\x02 \x01(\x0e\x32K.google.analytics.admin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n\x11ReportingIdentity\x12*\n&IDENTITY_BLENDING_STRATEGY_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42LENDED\x10\x01\x12\x0c\n\x08OBSERVED\x10\x02\x12\x10\n\x0c\x44\x45VICE_BASED\x10\x03:\xa4\x01\xea\x41\xa0\x01\n7analyticsadmin.googleapis.com/ReportingIdentitySettings\x12/properties/{property}/reportingIdentitySettings*\x19reportingIdentitySettings2\x19reportingIdentitySettings\"\xc1\x02\n\x18UserProvidedDataSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x32\n%user_provided_data_collection_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12;\n.automatically_detected_data_collection_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01:\xa0\x01\xea\x41\x9c\x01\n6analyticsadmin.googleapis.com/UserProvidedDataSettings\x12.properties/{property}/userProvidedDataSettings*\x18userProvidedDataSettings2\x18userProvidedDataSettings*\xaa\x04\n\x10IndustryCategory\x12!\n\x1dINDUSTRY_CATEGORY_UNSPECIFIED\x10\x00\x12\x0e\n\nAUTOMOTIVE\x10\x01\x12#\n\x1f\x42USINESS_AND_INDUSTRIAL_MARKETS\x10\x02\x12\x0b\n\x07\x46INANCE\x10\x03\x12\x0e\n\nHEALTHCARE\x10\x04\x12\x0e\n\nTECHNOLOGY\x10\x05\x12\n\n\x06TRAVEL\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x1a\n\x16\x41RTS_AND_ENTERTAINMENT\x10\x08\x12\x16\n\x12\x42\x45\x41UTY_AND_FITNESS\x10\t\x12\x18\n\x14\x42OOKS_AND_LITERATURE\x10\n\x12\x12\n\x0e\x46OOD_AND_DRINK\x10\x0b\x12\t\n\x05GAMES\x10\x0c\x12\x17\n\x13HOBBIES_AND_LEISURE\x10\r\x12\x13\n\x0fHOME_AND_GARDEN\x10\x0e\x12\x18\n\x14INTERNET_AND_TELECOM\x10\x0f\x12\x16\n\x12LAW_AND_GOVERNMENT\x10\x10\x12\x08\n\x04NEWS\x10\x11\x12\x16\n\x12ONLINE_COMMUNITIES\x10\x12\x12\x16\n\x12PEOPLE_AND_SOCIETY\x10\x13\x12\x14\n\x10PETS_AND_ANIMALS\x10\x14\x12\x0f\n\x0bREAL_ESTATE\x10\x15\x12\r\n\tREFERENCE\x10\x16\x12\x0b\n\x07SCIENCE\x10\x17\x12\n\n\x06SPORTS\x10\x18\x12\x16\n\x12JOBS_AND_EDUCATION\x10\x19\x12\x0c\n\x08SHOPPING\x10\x1a*f\n\x0cServiceLevel\x12\x1d\n\x19SERVICE_LEVEL_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_ANALYTICS_STANDARD\x10\x01\x12\x18\n\x14GOOGLE_ANALYTICS_360\x10\x02*J\n\tActorType\x12\x1a\n\x16\x41\x43TOR_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04USER\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\x0b\n\x07SUPPORT\x10\x03*P\n\nActionType\x12\x1b\n\x17\x41\x43TION_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07UPDATED\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03*\xc2\x06\n\x19\x43hangeHistoryResourceType\x12,\n(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41\x43\x43OUNT\x10\x01\x12\x0c\n\x08PROPERTY\x10\x02\x12\x11\n\rFIREBASE_LINK\x10\x06\x12\x13\n\x0fGOOGLE_ADS_LINK\x10\x07\x12\x1b\n\x17GOOGLE_SIGNALS_SETTINGS\x10\x08\x12\x14\n\x10\x43ONVERSION_EVENT\x10\t\x12\x1f\n\x1bMEASUREMENT_PROTOCOL_SECRET\x10\n\x12\x14\n\x10\x43USTOM_DIMENSION\x10\x0b\x12\x11\n\rCUSTOM_METRIC\x10\x0c\x12\x1b\n\x17\x44\x41TA_RETENTION_SETTINGS\x10\r\x12%\n!DISPLAY_VIDEO_360_ADVERTISER_LINK\x10\x0e\x12.\n*DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL\x10\x0f\x12\x17\n\x13SEARCH_ADS_360_LINK\x10\x10\x12\x0f\n\x0b\x44\x41TA_STREAM\x10\x12\x12\x18\n\x14\x41TTRIBUTION_SETTINGS\x10\x14\x12\x15\n\x11\x45XPANDED_DATA_SET\x10\x15\x12\x11\n\rCHANNEL_GROUP\x10\x16\x12\x11\n\rBIGQUERY_LINK\x10\x17\x12!\n\x1d\x45NHANCED_MEASUREMENT_SETTINGS\x10\x18\x12\x1b\n\x17\x44\x41TA_REDACTION_SETTINGS\x10\x19\x12\'\n#SKADNETWORK_CONVERSION_VALUE_SCHEMA\x10\x1a\x12\x10\n\x0c\x41\x44SENSE_LINK\x10\x1b\x12\x0c\n\x08\x41UDIENCE\x10\x1c\x12\x15\n\x11\x45VENT_CREATE_RULE\x10\x1d\x12\r\n\tKEY_EVENT\x10\x1e\x12\x15\n\x11\x43\x41LCULATED_METRIC\x10\x1f\x12\x1d\n\x19REPORTING_DATA_ANNOTATION\x10 \x12\x1b\n\x17SUBPROPERTY_SYNC_CONFIG\x10!\x12\x1f\n\x1bREPORTING_IDENTITY_SETTINGS\x10\"\x12\x1f\n\x1bUSER_PROVIDED_DATA_SETTINGS\x10#*s\n\x12GoogleSignalsState\x12$\n GOOGLE_SIGNALS_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16GOOGLE_SIGNALS_ENABLED\x10\x01\x12\x1b\n\x17GOOGLE_SIGNALS_DISABLED\x10\x02*\x8e\x01\n\x14GoogleSignalsConsent\x12&\n\"GOOGLE_SIGNALS_CONSENT_UNSPECIFIED\x10\x00\x12$\n GOOGLE_SIGNALS_CONSENT_CONSENTED\x10\x02\x12(\n$GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED\x10\x01*{\n\x1dLinkProposalInitiatingProduct\x12\x30\n,LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED\x10\x00\x12\x14\n\x10GOOGLE_ANALYTICS\x10\x01\x12\x12\n\x0eLINKED_PRODUCT\x10\x02*\xc4\x01\n\x11LinkProposalState\x12#\n\x1fLINK_PROPOSAL_STATE_UNSPECIFIED\x10\x00\x12)\n%AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS\x10\x01\x12\'\n#AWAITING_REVIEW_FROM_LINKED_PRODUCT\x10\x02\x12\r\n\tWITHDRAWN\x10\x03\x12\x0c\n\x08\x44\x45\x43LINED\x10\x04\x12\x0b\n\x07\x45XPIRED\x10\x05\x12\x0c\n\x08OBSOLETE\x10\x06*\x82\x01\n\x0cPropertyType\x12\x1d\n\x19PROPERTY_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16PROPERTY_TYPE_ORDINARY\x10\x01\x12\x1d\n\x19PROPERTY_TYPE_SUBPROPERTY\x10\x02\x12\x18\n\x14PROPERTY_TYPE_ROLLUP\x10\x03*q\n\x0b\x43oarseValue\x12\x1c\n\x18\x43OARSE_VALUE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x43OARSE_VALUE_LOW\x10\x01\x12\x17\n\x13\x43OARSE_VALUE_MEDIUM\x10\x02\x12\x15\n\x11\x43OARSE_VALUE_HIGH\x10\x03\x42\xcb\x01\n\"com.google.analytics.admin.v1alphaB\x0eResourcesProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb\xea\x41R\n2marketingplatformadmin.googleapis.com/Organization\x12\x1corganizations/{organization}b\x06proto3" +descriptor_data = "\n.google/analytics/admin/v1alpha/resources.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a-google/analytics/admin/v1alpha/audience.proto\x1a\x32google/analytics/admin/v1alpha/channel_group.proto\x1a:google/analytics/admin/v1alpha/event_create_and_edit.proto\x1a\x36google/analytics/admin/v1alpha/expanded_data_set.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto\"\xf7\x02\n\x07\x41\x63\x63ount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bregion_code\x18\x05 \x01(\t\x12\x14\n\x07\x64\x65leted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12T\n\x10gmp_organization\x18\x07 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2marketingplatformadmin.googleapis.com/Organization:Q\xea\x41N\n%analyticsadmin.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}*\x08\x61\x63\x63ounts2\x07\x61\x63\x63ount\"\xcf\x05\n\x08Property\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12H\n\rproperty_type\x18\x0e \x01(\x0e\x32,.google.analytics.admin.v1alpha.PropertyTypeB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06parent\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12K\n\x11industry_category\x18\x06 \x01(\x0e\x32\x30.google.analytics.admin.v1alpha.IndustryCategory\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rcurrency_code\x18\x08 \x01(\t\x12H\n\rservice_level\x18\n \x01(\x0e\x32,.google.analytics.admin.v1alpha.ServiceLevelB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12>\n\x07\x61\x63\x63ount\x18\r \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%analyticsadmin.googleapis.com/Account:X\xea\x41U\n&analyticsadmin.googleapis.com/Property\x12\x15properties/{property}*\nproperties2\x08property\"\x8d\x08\n\nDataStream\x12S\n\x0fweb_stream_data\x18\x06 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.DataStream.WebStreamDataH\x00\x12\x62\n\x17\x61ndroid_app_stream_data\x18\x07 \x01(\x0b\x32?.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataH\x00\x12Z\n\x13ios_app_stream_data\x18\x08 \x01(\x0b\x32;.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12O\n\x04type\x18\x02 \x01(\x0e\x32\x39.google.analytics.admin.v1alpha.DataStream.DataStreamTypeB\x06\xe0\x41\x05\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a_\n\rWebStreamData\x12\x1b\n\x0emeasurement_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x66irebase_app_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65\x66\x61ult_uri\x18\x03 \x01(\t\x1aO\n\x14\x41ndroidAppStreamData\x12\x1c\n\x0f\x66irebase_app_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cpackage_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x1aK\n\x10IosAppStreamData\x12\x1c\n\x0f\x66irebase_app_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\tbundle_id\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\"}\n\x0e\x44\x61taStreamType\x12 \n\x1c\x44\x41TA_STREAM_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fWEB_DATA_STREAM\x10\x01\x12\x1b\n\x17\x41NDROID_APP_DATA_STREAM\x10\x02\x12\x17\n\x13IOS_APP_DATA_STREAM\x10\x03:w\xea\x41t\n(analyticsadmin.googleapis.com/DataStream\x12/properties/{property}/dataStreams/{data_stream}*\x0b\x64\x61taStreams2\ndataStreamB\r\n\x0bstream_data\"\xf1\x01\n\x0c\x46irebaseLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07project\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x81\x01\xea\x41~\n*analyticsadmin.googleapis.com/FirebaseLink\x12\x33properties/{property}/firebaseLinks/{firebase_link}*\rfirebaseLinks2\x0c\x66irebaseLink\"\xca\x01\n\rGlobalSiteTag\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07snippet\x18\x02 \x01(\tB\x03\xe0\x41\x05:\x8f\x01\xea\x41\x8b\x01\n+analyticsadmin.googleapis.com/GlobalSiteTag\x12=properties/{property}/dataStreams/{data_stream}/globalSiteTag*\x0eglobalSiteTags2\rglobalSiteTag\"\xb9\x03\n\rGoogleAdsLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x0b\x63ustomer_id\x18\x03 \x01(\tB\x03\xe0\x41\x05\x12\x1f\n\x12\x63\x61n_manage_clients\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\"\n\x15\x63reator_email_address\x18\t \x01(\tB\x03\xe0\x41\x03:\x88\x01\xea\x41\x84\x01\n+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x36properties/{property}/googleAdsLinks/{google_ads_link}*\x0egoogleAdsLinks2\rgoogleAdsLink\"\x9b\x03\n\x13\x44\x61taSharingSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12+\n#sharing_with_google_support_enabled\x18\x02 \x01(\x08\x12\x32\n*sharing_with_google_assigned_sales_enabled\x18\x03 \x01(\x08\x12\x31\n%sharing_with_google_any_sales_enabled\x18\x04 \x01(\x08\x42\x02\x18\x01\x12,\n$sharing_with_google_products_enabled\x18\x05 \x01(\x08\x12#\n\x1bsharing_with_others_enabled\x18\x06 \x01(\x08:\x89\x01\xea\x41\x85\x01\n1analyticsadmin.googleapis.com/DataSharingSettings\x12&accounts/{account}/dataSharingSettings*\x13\x64\x61taSharingSettings2\x13\x64\x61taSharingSettings\"\xbc\x02\n\x0e\x41\x63\x63ountSummary\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12;\n\x07\x61\x63\x63ount\x18\x02 \x01(\tB*\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12K\n\x12property_summaries\x18\x04 \x03(\x0b\x32/.google.analytics.admin.v1alpha.PropertySummary:w\xea\x41t\n,analyticsadmin.googleapis.com/AccountSummary\x12\"accountSummaries/{account_summary}*\x10\x61\x63\x63ountSummaries2\x0e\x61\x63\x63ountSummary\"\xcd\x01\n\x0fPropertySummary\x12=\n\x08property\x18\x01 \x01(\tB+\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x43\n\rproperty_type\x18\x03 \x01(\x0e\x32,.google.analytics.admin.v1alpha.PropertyType\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12\x10\n\x08\x63\x61n_edit\x18\x05 \x01(\x08\"\xc5\x02\n\x19MeasurementProtocolSecret\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0csecret_value\x18\x03 \x01(\tB\x03\xe0\x41\x03:\xde\x01\xea\x41\xda\x01\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\x12hproperties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}*\x1ameasurementProtocolSecrets2\x19measurementProtocolSecret\"\xc8\x04\n SKAdNetworkConversionValueSchema\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12P\n\x13postback_window_one\x18\x02 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindowB\x03\xe0\x41\x02\x12K\n\x13postback_window_two\x18\x03 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindow\x12M\n\x15postback_window_three\x18\x04 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindow\x12\x1f\n\x17\x61pply_conversion_values\x18\x05 \x01(\x08:\x81\x02\xea\x41\xfd\x01\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12vproperties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}*!skAdNetworkConversionValueSchemas2 skAdNetworkConversionValueSchema\"\x87\x01\n\x0ePostbackWindow\x12K\n\x11\x63onversion_values\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.ConversionValues\x12(\n postback_window_settings_enabled\x18\x02 \x01(\x08\"\xf4\x01\n\x10\x43onversionValues\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x17\n\nfine_value\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x46\n\x0c\x63oarse_value\x18\x03 \x01(\x0e\x32+.google.analytics.admin.v1alpha.CoarseValueB\x03\xe0\x41\x02\x12\x44\n\x0e\x65vent_mappings\x18\x04 \x03(\x0b\x32,.google.analytics.admin.v1alpha.EventMapping\x12\x14\n\x0clock_enabled\x18\x05 \x01(\x08\x42\r\n\x0b_fine_value\"\xef\x01\n\x0c\x45ventMapping\x12\x17\n\nevent_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fmin_event_count\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x1c\n\x0fmax_event_count\x18\x03 \x01(\x03H\x01\x88\x01\x01\x12\x1c\n\x0fmin_event_value\x18\x04 \x01(\x01H\x02\x88\x01\x01\x12\x1c\n\x0fmax_event_value\x18\x05 \x01(\x01H\x03\x88\x01\x01\x42\x12\n\x10_min_event_countB\x12\n\x10_max_event_countB\x12\n\x10_min_event_valueB\x12\n\x10_max_event_value\"\x8a\x02\n\x12\x43hangeHistoryEvent\x12\n\n\x02id\x18\x01 \x01(\t\x12/\n\x0b\x63hange_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\nactor_type\x18\x03 \x01(\x0e\x32).google.analytics.admin.v1alpha.ActorType\x12\x18\n\x10user_actor_email\x18\x04 \x01(\t\x12\x18\n\x10\x63hanges_filtered\x18\x05 \x01(\x08\x12\x44\n\x07\x63hanges\x18\x06 \x03(\x0b\x32\x33.google.analytics.admin.v1alpha.ChangeHistoryChange\"\x99\x16\n\x13\x43hangeHistoryChange\x12\x10\n\x08resource\x18\x01 \x01(\t\x12:\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32*.google.analytics.admin.v1alpha.ActionType\x12i\n\x16resource_before_change\x18\x03 \x01(\x0b\x32I.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\x12h\n\x15resource_after_change\x18\x04 \x01(\x0b\x32I.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\x1a\xde\x13\n\x15\x43hangeHistoryResource\x12:\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.AccountH\x00\x12<\n\x08property\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyH\x00\x12\x45\n\rfirebase_link\x18\x06 \x01(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLinkH\x00\x12H\n\x0fgoogle_ads_link\x18\x07 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLinkH\x00\x12X\n\x17google_signals_settings\x18\x08 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.GoogleSignalsSettingsH\x00\x12j\n!display_video_360_advertiser_link\x18\t \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkH\x00\x12{\n*display_video_360_advertiser_link_proposal\x18\n \x01(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalH\x00\x12K\n\x10\x63onversion_event\x18\x0b \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventH\x00\x12`\n\x1bmeasurement_protocol_secret\x18\x0c \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretH\x00\x12K\n\x10\x63ustom_dimension\x18\r \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimensionH\x00\x12\x45\n\rcustom_metric\x18\x0e \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetricH\x00\x12X\n\x17\x64\x61ta_retention_settings\x18\x0f \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRetentionSettingsH\x00\x12O\n\x13search_ads_360_link\x18\x10 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360LinkH\x00\x12\x41\n\x0b\x64\x61ta_stream\x18\x12 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStreamH\x00\x12S\n\x14\x61ttribution_settings\x18\x14 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AttributionSettingsH\x00\x12L\n\x11\x65xpanded_data_set\x18\x15 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetH\x00\x12\x45\n\rchannel_group\x18\x16 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupH\x00\x12\x45\n\rbigquery_link\x18\x17 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkH\x00\x12\x64\n\x1d\x65nhanced_measurement_settings\x18\x18 \x01(\x0b\x32;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsH\x00\x12X\n\x17\x64\x61ta_redaction_settings\x18\x19 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRedactionSettingsH\x00\x12o\n#skadnetwork_conversion_value_schema\x18\x1a \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaH\x00\x12\x43\n\x0c\x61\x64sense_link\x18\x1b \x01(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLinkH\x00\x12<\n\x08\x61udience\x18\x1c \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceH\x00\x12L\n\x11\x65vent_create_rule\x18\x1d \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleH\x00\x12=\n\tkey_event\x18\x1e \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventH\x00\x12M\n\x11\x63\x61lculated_metric\x18\x1f \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricH\x00\x12\\\n\x19reporting_data_annotation\x18 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationH\x00\x12X\n\x17subproperty_sync_config\x18! \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfigH\x00\x12`\n\x1breporting_identity_settings\x18\" \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.ReportingIdentitySettingsH\x00\x12_\n\x1buser_provided_data_settings\x18# \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.UserProvidedDataSettingsH\x00\x42\n\n\x08resource\"\x9e\x04\n\x1d\x44isplayVideo360AdvertiserLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12$\n\x17\x61\x64vertiser_display_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05:\xda\x01\xea\x41\xd6\x01\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12Xproperties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}*\x1e\x64isplayVideo360AdvertiserLinks2\x1d\x64isplayVideo360AdvertiserLink\"\xd9\x05\n%DisplayVideo360AdvertiserLinkProposal\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x64\n\x1clink_proposal_status_details\x18\x03 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.LinkProposalStatusDetailsB\x03\xe0\x41\x03\x12$\n\x17\x61\x64vertiser_display_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10validation_email\x18\x05 \x01(\tB\x03\xe0\x41\x04\x12\x44\n\x1b\x61\x64s_personalization_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05:\x83\x02\xea\x41\xff\x01\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12iproperties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}*&displayVideo360AdvertiserLinkProposals2%displayVideo360AdvertiserLinkProposal\"\x8f\x04\n\x10SearchAds360Link\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12$\n\x17\x61\x64vertiser_display_name\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12>\n\x1asite_stats_sharing_enabled\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue:\x98\x01\xea\x41\x94\x01\n.analyticsadmin.googleapis.com/SearchAds360Link\x12=properties/{property}/searchAds360Links/{search_ads_360_link}*\x11searchAds360Links2\x10searchAds360Link\"\xfc\x01\n\x19LinkProposalStatusDetails\x12l\n link_proposal_initiating_product\x18\x01 \x01(\x0e\x32=.google.analytics.admin.v1alpha.LinkProposalInitiatingProductB\x03\xe0\x41\x03\x12\x1c\n\x0frequestor_email\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12S\n\x13link_proposal_state\x18\x03 \x01(\x0e\x32\x31.google.analytics.admin.v1alpha.LinkProposalStateB\x03\xe0\x41\x03\"\x85\x06\n\x0f\x43onversionEvent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\nevent_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tdeletable\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06\x63ustom\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12\x66\n\x0f\x63ounting_method\x18\x06 \x01(\x0e\x32H.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethodB\x03\xe0\x41\x01\x12r\n\x18\x64\x65\x66\x61ult_conversion_value\x18\x07 \x01(\x0b\x32\x46.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a\x64\n\x16\x44\x65\x66\x61ultConversionValue\x12\x12\n\x05value\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_valueB\x10\n\x0e_currency_code\"p\n\x18\x43onversionCountingMethod\x12*\n&CONVERSION_COUNTING_METHOD_UNSPECIFIED\x10\x00\x12\x12\n\x0eONCE_PER_EVENT\x10\x01\x12\x14\n\x10ONCE_PER_SESSION\x10\x02:\x91\x01\xea\x41\x8d\x01\n-analyticsadmin.googleapis.com/ConversionEvent\x12\x39properties/{property}/conversionEvents/{conversion_event}*\x10\x63onversionEvents2\x0f\x63onversionEventB\x1b\n\x19_default_conversion_value\"\xd7\x04\n\x08KeyEvent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nevent_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tdeletable\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06\x63ustom\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12U\n\x0f\x63ounting_method\x18\x06 \x01(\x0e\x32\x37.google.analytics.admin.v1alpha.KeyEvent.CountingMethodB\x03\xe0\x41\x02\x12Q\n\rdefault_value\x18\x07 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.KeyEvent.DefaultValueB\x03\xe0\x41\x01\x1a\x46\n\x0c\x44\x65\x66\x61ultValue\x12\x1a\n\rnumeric_value\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"[\n\x0e\x43ountingMethod\x12\x1f\n\x1b\x43OUNTING_METHOD_UNSPECIFIED\x10\x00\x12\x12\n\x0eONCE_PER_EVENT\x10\x01\x12\x14\n\x10ONCE_PER_SESSION\x10\x02:m\xea\x41j\n&analyticsadmin.googleapis.com/KeyEvent\x12+properties/{property}/keyEvents/{key_event}*\tkeyEvents2\x08keyEvent\"\xa0\x02\n\x15GoogleSignalsSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x03 \x01(\x0e\x32\x32.google.analytics.admin.v1alpha.GoogleSignalsState\x12J\n\x07\x63onsent\x18\x04 \x01(\x0e\x32\x34.google.analytics.admin.v1alpha.GoogleSignalsConsentB\x03\xe0\x41\x03:e\xea\x41\x62\n3analyticsadmin.googleapis.com/GoogleSignalsSettings\x12+properties/{property}/googleSignalsSettings\"\xe1\x03\n\x0f\x43ustomDimension\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0eparameter_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12U\n\x05scope\x18\x05 \x01(\x0e\x32>.google.analytics.admin.v1alpha.CustomDimension.DimensionScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12)\n\x1c\x64isallow_ads_personalization\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"P\n\x0e\x44imensionScope\x12\x1f\n\x1b\x44IMENSION_SCOPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45VENT\x10\x01\x12\x08\n\x04USER\x10\x02\x12\x08\n\x04ITEM\x10\x03:\x91\x01\xea\x41\x8d\x01\n-analyticsadmin.googleapis.com/CustomDimension\x12\x39properties/{property}/customDimensions/{custom_dimension}*\x10\x63ustomDimensions2\x0f\x63ustomDimension\"\xe3\x06\n\x0c\x43ustomMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0eparameter_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12[\n\x10measurement_unit\x18\x05 \x01(\x0e\x32<.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnitB\x03\xe0\x41\x02\x12O\n\x05scope\x18\x06 \x01(\x0e\x32\x38.google.analytics.admin.v1alpha.CustomMetric.MetricScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x66\n\x16restricted_metric_type\x18\x08 \x03(\x0e\x32\x41.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricTypeB\x03\xe0\x41\x01\"\xb7\x01\n\x0fMeasurementUnit\x12 \n\x1cMEASUREMENT_UNIT_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0c\n\x08\x43URRENCY\x10\x02\x12\x08\n\x04\x46\x45\x45T\x10\x03\x12\n\n\x06METERS\x10\x04\x12\x0e\n\nKILOMETERS\x10\x05\x12\t\n\x05MILES\x10\x06\x12\x10\n\x0cMILLISECONDS\x10\x07\x12\x0b\n\x07SECONDS\x10\x08\x12\x0b\n\x07MINUTES\x10\t\x12\t\n\x05HOURS\x10\n\"6\n\x0bMetricScope\x12\x1c\n\x18METRIC_SCOPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45VENT\x10\x01\"_\n\x14RestrictedMetricType\x12&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCOST_DATA\x10\x01\x12\x10\n\x0cREVENUE_DATA\x10\x02:\x81\x01\xea\x41~\n*analyticsadmin.googleapis.com/CustomMetric\x12\x33properties/{property}/customMetrics/{custom_metric}*\rcustomMetrics2\x0c\x63ustomMetric\"\xa7\x06\n\x10\x43\x61lculatedMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12!\n\x14\x63\x61lculated_metric_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12U\n\x0bmetric_unit\x18\x05 \x01(\x0e\x32;.google.analytics.admin.v1alpha.CalculatedMetric.MetricUnitB\x03\xe0\x41\x02\x12j\n\x16restricted_metric_type\x18\x06 \x03(\x0e\x32\x45.google.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricTypeB\x03\xe0\x41\x03\x12\x14\n\x07\x66ormula\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18invalid_metric_reference\x18\t \x01(\x08\x42\x03\xe0\x41\x03\"\xad\x01\n\nMetricUnit\x12\x1b\n\x17METRIC_UNIT_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0c\n\x08\x43URRENCY\x10\x02\x12\x08\n\x04\x46\x45\x45T\x10\x03\x12\t\n\x05MILES\x10\x04\x12\n\n\x06METERS\x10\x05\x12\x0e\n\nKILOMETERS\x10\x06\x12\x10\n\x0cMILLISECONDS\x10\x07\x12\x0b\n\x07SECONDS\x10\x08\x12\x0b\n\x07MINUTES\x10\t\x12\t\n\x05HOURS\x10\n\"_\n\x14RestrictedMetricType\x12&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCOST_DATA\x10\x01\x12\x10\n\x0cREVENUE_DATA\x10\x02:\x96\x01\xea\x41\x92\x01\n.analyticsadmin.googleapis.com/CalculatedMetric\x12;properties/{property}/calculatedMetrics/{calculated_metric}*\x11\x63\x61lculatedMetrics2\x10\x63\x61lculatedMetric\"\xe2\x04\n\x15\x44\x61taRetentionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12j\n\x14\x65vent_data_retention\x18\x02 \x01(\x0e\x32G.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\x03\xe0\x41\x02\x12i\n\x13user_data_retention\x18\x04 \x01(\x0e\x32G.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\x03\xe0\x41\x02\x12\'\n\x1freset_user_data_on_new_activity\x18\x03 \x01(\x08\"\x9e\x01\n\x11RetentionDuration\x12\"\n\x1eRETENTION_DURATION_UNSPECIFIED\x10\x00\x12\x0e\n\nTWO_MONTHS\x10\x01\x12\x13\n\x0f\x46OURTEEN_MONTHS\x10\x03\x12\x15\n\x11TWENTY_SIX_MONTHS\x10\x04\x12\x17\n\x13THIRTY_EIGHT_MONTHS\x10\x05\x12\x10\n\x0c\x46IFTY_MONTHS\x10\x06:\x94\x01\xea\x41\x90\x01\n3analyticsadmin.googleapis.com/DataRetentionSettings\x12+properties/{property}/dataRetentionSettings*\x15\x64\x61taRetentionSettings2\x15\x64\x61taRetentionSettings\"\xfc\x0b\n\x13\x41ttributionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x97\x01\n,acquisition_conversion_event_lookback_window\x18\x02 \x01(\x0e\x32\\.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindowB\x03\xe0\x41\x02\x12\x8b\x01\n&other_conversion_event_lookback_window\x18\x03 \x01(\x0e\x32V.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindowB\x03\xe0\x41\x02\x12w\n\x1breporting_attribution_model\x18\x04 \x01(\x0e\x32M.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModelB\x03\xe0\x41\x02\x12\x86\x01\n$ads_web_conversion_data_export_scope\x18\x05 \x01(\x0e\x32S.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScopeB\x03\xe0\x41\x02\"\xdb\x01\n(AcquisitionConversionEventLookbackWindow\x12<\n8ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\x10\x00\x12\x37\n3ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS\x10\x01\x12\x38\n4ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS\x10\x02\"\xf8\x01\n\"OtherConversionEventLookbackWindow\x12\x36\n2OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\x10\x00\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS\x10\x01\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS\x10\x02\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS\x10\x03\"\xc2\x01\n\x19ReportingAttributionModel\x12+\n\'REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED\x10\x00\x12)\n%PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN\x10\x01\x12(\n$PAID_AND_ORGANIC_CHANNELS_LAST_CLICK\x10\x02\x12#\n\x1fGOOGLE_PAID_CHANNELS_LAST_CLICK\x10\x07\"\xa6\x01\n\x1f\x41\x64sWebConversionDataExportScope\x12\x34\n0ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED\x10\x00\x12\x14\n\x10NOT_SELECTED_YET\x10\x01\x12\x1d\n\x19PAID_AND_ORGANIC_CHANNELS\x10\x02\x12\x18\n\x14GOOGLE_PAID_CHANNELS\x10\x03:a\xea\x41^\n1analyticsadmin.googleapis.com/AttributionSettings\x12)properties/{property}/attributionSettings\"\xf1\x01\n\rAccessBinding\x12\x0e\n\x04user\x18\x02 \x01(\tH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\r\n\x05roles\x18\x03 \x03(\t:\x9c\x01\xea\x41\x98\x01\n+analyticsadmin.googleapis.com/AccessBinding\x12\x32\x61\x63\x63ounts/{account}/accessBindings/{access_binding}\x12\x35properties/{property}/accessBindings/{access_binding}B\x0f\n\raccess_target\"\xaa\x03\n\x0c\x42igQueryLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07project\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x14\x64\x61ily_export_enabled\x18\x04 \x01(\x08\x12 \n\x18streaming_export_enabled\x18\x05 \x01(\x08\x12\"\n\x1a\x66resh_daily_export_enabled\x18\t \x01(\x08\x12\x1e\n\x16include_advertising_id\x18\x06 \x01(\x08\x12\x16\n\x0e\x65xport_streams\x18\x07 \x03(\t\x12\x17\n\x0f\x65xcluded_events\x18\x08 \x03(\t\x12 \n\x10\x64\x61taset_location\x18\n \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02:d\xea\x41\x61\n*analyticsadmin.googleapis.com/BigQueryLink\x12\x33properties/{property}/bigQueryLinks/{bigquery_link}\"\xf3\x03\n\x1b\x45nhancedMeasurementSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\x0estream_enabled\x18\x02 \x01(\x08\x12\x17\n\x0fscrolls_enabled\x18\x03 \x01(\x08\x12\x1f\n\x17outbound_clicks_enabled\x18\x04 \x01(\x08\x12\x1b\n\x13site_search_enabled\x18\x05 \x01(\x08\x12 \n\x18video_engagement_enabled\x18\x06 \x01(\x08\x12\x1e\n\x16\x66ile_downloads_enabled\x18\x07 \x01(\x08\x12\x1c\n\x14page_changes_enabled\x18\x08 \x01(\x08\x12!\n\x19\x66orm_interactions_enabled\x18\t \x01(\x08\x12#\n\x16search_query_parameter\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x13uri_query_parameter\x18\x0b \x01(\t:\x8c\x01\xea\x41\x88\x01\n9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\x12Kproperties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings\"\x95\x02\n\x15\x44\x61taRedactionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x17\x65mail_redaction_enabled\x18\x02 \x01(\x08\x12)\n!query_parameter_redaction_enabled\x18\x03 \x01(\x08\x12\x1c\n\x14query_parameter_keys\x18\x04 \x03(\t:\x7f\xea\x41|\n3analyticsadmin.googleapis.com/DataRedactionSettings\x12\x45properties/{property}/dataStreams/{data_stream}/dataRedactionSettings\"\xa0\x01\n\x0b\x41\x64SenseLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x61\x64_client_code\x18\x02 \x01(\tB\x03\xe0\x41\x05:a\xea\x41^\n)analyticsadmin.googleapis.com/AdSenseLink\x12\x31properties/{property}/adSenseLinks/{adsense_link}\"\x8e\x02\n\x18RollupPropertySourceLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsource_property\x18\x02 \x01(\tB\x03\xe0\x41\x05:\xc0\x01\xea\x41\xbc\x01\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\x12Mproperties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}*\x19rollupPropertySourceLinks2\x18rollupPropertySourceLink\"\xf6\x05\n\x17ReportingDataAnnotation\x12,\n\x0f\x61nnotation_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x62\n\x15\x61nnotation_date_range\x18\x05 \x01(\x0b\x32\x41.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRangeH\x00\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Q\n\x05\x63olor\x18\x06 \x01(\x0e\x32=.google.analytics.admin.v1alpha.ReportingDataAnnotation.ColorB\x03\xe0\x41\x02\x12\x1d\n\x10system_generated\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x1a\x61\n\tDateRange\x12*\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12(\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\"i\n\x05\x43olor\x12\x15\n\x11\x43OLOR_UNSPECIFIED\x10\x00\x12\n\n\x06PURPLE\x10\x01\x12\t\n\x05\x42ROWN\x10\x02\x12\x08\n\x04\x42LUE\x10\x03\x12\t\n\x05GREEN\x10\x04\x12\x07\n\x03RED\x10\x05\x12\x08\n\x04\x43YAN\x10\x06\x12\n\n\x06ORANGE\x10\x07:\xba\x01\xea\x41\xb6\x01\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\x12Jproperties/{property}/reportingDataAnnotations/{reporting_data_annotation}*\x18reportingDataAnnotations2\x17reportingDataAnnotationB\x08\n\x06target\"\xd2\x03\n\x15SubpropertySyncConfig\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x03\x12!\n\x11\x61pply_to_property\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12}\n%custom_dimension_and_metric_sync_mode\x18\x03 \x01(\x0e\x32I.google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationModeB\x03\xe0\x41\x02\"N\n\x13SynchronizationMode\x12$\n SYNCHRONIZATION_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03\x41LL\x10\x02:\xb0\x01\xea\x41\xac\x01\n3analyticsadmin.googleapis.com/SubpropertySyncConfig\x12\x46properties/{property}/subpropertySyncConfigs/{subproperty_sync_config}*\x16subpropertySyncConfigs2\x15subpropertySyncConfig\"\xaf\x03\n\x19ReportingIdentitySettings\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x03\x12g\n\x12reporting_identity\x18\x02 \x01(\x0e\x32K.google.analytics.admin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n\x11ReportingIdentity\x12*\n&IDENTITY_BLENDING_STRATEGY_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42LENDED\x10\x01\x12\x0c\n\x08OBSERVED\x10\x02\x12\x10\n\x0c\x44\x45VICE_BASED\x10\x03:\xa4\x01\xea\x41\xa0\x01\n7analyticsadmin.googleapis.com/ReportingIdentitySettings\x12/properties/{property}/reportingIdentitySettings*\x19reportingIdentitySettings2\x19reportingIdentitySettings\"\xc1\x02\n\x18UserProvidedDataSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x32\n%user_provided_data_collection_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12;\n.automatically_detected_data_collection_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01:\xa0\x01\xea\x41\x9c\x01\n6analyticsadmin.googleapis.com/UserProvidedDataSettings\x12.properties/{property}/userProvidedDataSettings*\x18userProvidedDataSettings2\x18userProvidedDataSettings*\xaa\x04\n\x10IndustryCategory\x12!\n\x1dINDUSTRY_CATEGORY_UNSPECIFIED\x10\x00\x12\x0e\n\nAUTOMOTIVE\x10\x01\x12#\n\x1f\x42USINESS_AND_INDUSTRIAL_MARKETS\x10\x02\x12\x0b\n\x07\x46INANCE\x10\x03\x12\x0e\n\nHEALTHCARE\x10\x04\x12\x0e\n\nTECHNOLOGY\x10\x05\x12\n\n\x06TRAVEL\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x1a\n\x16\x41RTS_AND_ENTERTAINMENT\x10\x08\x12\x16\n\x12\x42\x45\x41UTY_AND_FITNESS\x10\t\x12\x18\n\x14\x42OOKS_AND_LITERATURE\x10\n\x12\x12\n\x0e\x46OOD_AND_DRINK\x10\x0b\x12\t\n\x05GAMES\x10\x0c\x12\x17\n\x13HOBBIES_AND_LEISURE\x10\r\x12\x13\n\x0fHOME_AND_GARDEN\x10\x0e\x12\x18\n\x14INTERNET_AND_TELECOM\x10\x0f\x12\x16\n\x12LAW_AND_GOVERNMENT\x10\x10\x12\x08\n\x04NEWS\x10\x11\x12\x16\n\x12ONLINE_COMMUNITIES\x10\x12\x12\x16\n\x12PEOPLE_AND_SOCIETY\x10\x13\x12\x14\n\x10PETS_AND_ANIMALS\x10\x14\x12\x0f\n\x0bREAL_ESTATE\x10\x15\x12\r\n\tREFERENCE\x10\x16\x12\x0b\n\x07SCIENCE\x10\x17\x12\n\n\x06SPORTS\x10\x18\x12\x16\n\x12JOBS_AND_EDUCATION\x10\x19\x12\x0c\n\x08SHOPPING\x10\x1a*f\n\x0cServiceLevel\x12\x1d\n\x19SERVICE_LEVEL_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_ANALYTICS_STANDARD\x10\x01\x12\x18\n\x14GOOGLE_ANALYTICS_360\x10\x02*J\n\tActorType\x12\x1a\n\x16\x41\x43TOR_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04USER\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\x0b\n\x07SUPPORT\x10\x03*P\n\nActionType\x12\x1b\n\x17\x41\x43TION_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07UPDATED\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03*\xc2\x06\n\x19\x43hangeHistoryResourceType\x12,\n(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41\x43\x43OUNT\x10\x01\x12\x0c\n\x08PROPERTY\x10\x02\x12\x11\n\rFIREBASE_LINK\x10\x06\x12\x13\n\x0fGOOGLE_ADS_LINK\x10\x07\x12\x1b\n\x17GOOGLE_SIGNALS_SETTINGS\x10\x08\x12\x14\n\x10\x43ONVERSION_EVENT\x10\t\x12\x1f\n\x1bMEASUREMENT_PROTOCOL_SECRET\x10\n\x12\x14\n\x10\x43USTOM_DIMENSION\x10\x0b\x12\x11\n\rCUSTOM_METRIC\x10\x0c\x12\x1b\n\x17\x44\x41TA_RETENTION_SETTINGS\x10\r\x12%\n!DISPLAY_VIDEO_360_ADVERTISER_LINK\x10\x0e\x12.\n*DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL\x10\x0f\x12\x17\n\x13SEARCH_ADS_360_LINK\x10\x10\x12\x0f\n\x0b\x44\x41TA_STREAM\x10\x12\x12\x18\n\x14\x41TTRIBUTION_SETTINGS\x10\x14\x12\x15\n\x11\x45XPANDED_DATA_SET\x10\x15\x12\x11\n\rCHANNEL_GROUP\x10\x16\x12\x11\n\rBIGQUERY_LINK\x10\x17\x12!\n\x1d\x45NHANCED_MEASUREMENT_SETTINGS\x10\x18\x12\x1b\n\x17\x44\x41TA_REDACTION_SETTINGS\x10\x19\x12\'\n#SKADNETWORK_CONVERSION_VALUE_SCHEMA\x10\x1a\x12\x10\n\x0c\x41\x44SENSE_LINK\x10\x1b\x12\x0c\n\x08\x41UDIENCE\x10\x1c\x12\x15\n\x11\x45VENT_CREATE_RULE\x10\x1d\x12\r\n\tKEY_EVENT\x10\x1e\x12\x15\n\x11\x43\x41LCULATED_METRIC\x10\x1f\x12\x1d\n\x19REPORTING_DATA_ANNOTATION\x10 \x12\x1b\n\x17SUBPROPERTY_SYNC_CONFIG\x10!\x12\x1f\n\x1bREPORTING_IDENTITY_SETTINGS\x10\"\x12\x1f\n\x1bUSER_PROVIDED_DATA_SETTINGS\x10#*s\n\x12GoogleSignalsState\x12$\n GOOGLE_SIGNALS_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16GOOGLE_SIGNALS_ENABLED\x10\x01\x12\x1b\n\x17GOOGLE_SIGNALS_DISABLED\x10\x02*\x8e\x01\n\x14GoogleSignalsConsent\x12&\n\"GOOGLE_SIGNALS_CONSENT_UNSPECIFIED\x10\x00\x12$\n GOOGLE_SIGNALS_CONSENT_CONSENTED\x10\x02\x12(\n$GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED\x10\x01*{\n\x1dLinkProposalInitiatingProduct\x12\x30\n,LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED\x10\x00\x12\x14\n\x10GOOGLE_ANALYTICS\x10\x01\x12\x12\n\x0eLINKED_PRODUCT\x10\x02*\xc4\x01\n\x11LinkProposalState\x12#\n\x1fLINK_PROPOSAL_STATE_UNSPECIFIED\x10\x00\x12)\n%AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS\x10\x01\x12\'\n#AWAITING_REVIEW_FROM_LINKED_PRODUCT\x10\x02\x12\r\n\tWITHDRAWN\x10\x03\x12\x0c\n\x08\x44\x45\x43LINED\x10\x04\x12\x0b\n\x07\x45XPIRED\x10\x05\x12\x0c\n\x08OBSOLETE\x10\x06*\x82\x01\n\x0cPropertyType\x12\x1d\n\x19PROPERTY_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16PROPERTY_TYPE_ORDINARY\x10\x01\x12\x1d\n\x19PROPERTY_TYPE_SUBPROPERTY\x10\x02\x12\x18\n\x14PROPERTY_TYPE_ROLLUP\x10\x03*q\n\x0b\x43oarseValue\x12\x1c\n\x18\x43OARSE_VALUE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x43OARSE_VALUE_LOW\x10\x01\x12\x17\n\x13\x43OARSE_VALUE_MEDIUM\x10\x02\x12\x15\n\x11\x43OARSE_VALUE_HIGH\x10\x03\x42\xcb\x01\n\"com.google.analytics.admin.v1alphaB\x0eResourcesProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb\xea\x41R\n2marketingplatformadmin.googleapis.com/Organization\x12\x1corganizations/{organization}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb b/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb index edcf2127d9cf..cdd16c2edf3b 100644 --- a/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb +++ b/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb @@ -2956,6 +2956,23 @@ class GetReportingIdentitySettingsRequest extend ::Google::Protobuf::MessageExts::ClassMethods end + # Request message for UpdateReportingIdentitySettings RPC. + # @!attribute [rw] reporting_identity_settings + # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] + # Required. The reporting identity settings to update. + # The settings' `name` field is used to identify the settings. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::FieldMask] + # Optional. The list of fields to be updated. Field names must be in snake + # case (for example, "field_to_update"). Omitted fields will not be updated. + # To replace the entire entity, use one path with the string "*" to match all + # fields. If omitted, the service will treat it as an implied field mask + # equivalent to all fields that are populated. + class UpdateReportingIdentitySettingsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Request message for GetUserProvidedDataSettings RPC # @!attribute [rw] name # @return [::String] diff --git a/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb b/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb index 559ce7e89b24..d8184a3b8148 100644 --- a/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb +++ b/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb @@ -398,6 +398,10 @@ class AccountSummary # Note: The Property-Moving UI can be used to change the parent. # Format: accounts/\\{account}, properties/\\{property} # Example: "accounts/100", "properties/200" + # @!attribute [rw] can_edit + # @return [::Boolean] + # If true, then the user has a Google Analytics role that permits them to + # edit the property. class PropertySummary include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_identity_settings.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_identity_settings.rb similarity index 100% rename from owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_identity_settings.rb rename to google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_identity_settings.rb diff --git a/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json b/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json index 622f8ab8c363..3c94b33b3528 100644 --- a/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json +++ b/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json @@ -6171,6 +6171,46 @@ } ] }, + { + "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_sync", + "title": "Snippet for the update_reporting_identity_settings call in the AnalyticsAdminService service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_identity_settings.", + "file": "analytics_admin_service/update_reporting_identity_settings.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_reporting_identity_settings", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_identity_settings", + "async": false, + "parameters": [ + { + "type": "::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest", + "name": "request" + } + ], + "result_type": "::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings", + "client": { + "short_name": "AnalyticsAdminService::Client", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" + }, + "method": { + "short_name": "UpdateReportingIdentitySettings", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateReportingIdentitySettings", + "service": { + "short_name": "AnalyticsAdminService", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, { "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync", "title": "Snippet for the get_user_provided_data_settings call in the AnalyticsAdminService service", diff --git a/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb b/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb index 82c5b5d43053..9297d37fb627 100644 --- a/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb +++ b/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb @@ -8534,6 +8534,61 @@ def test_get_reporting_identity_settings end end + def test_update_reporting_identity_settings + # Create test objects. + client_result = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + reporting_identity_settings = {} + update_mask = {} + + update_reporting_identity_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_reporting_identity_settings_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_reporting_identity_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + c.update_reporting_identity_settings reporting_identity_settings: reporting_identity_settings, update_mask: update_mask do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + c.update_reporting_identity_settings ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + c.update_reporting_identity_settings(::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_reporting_identity_settings_client_stub.call_count + end + end + end + def test_get_user_provided_data_settings # Create test objects. client_result = ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings.new diff --git a/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb b/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb index e31b8eaca695..a921b263774a 100644 --- a/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb +++ b/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb @@ -9421,6 +9421,66 @@ def test_get_reporting_identity_settings end end + def test_update_reporting_identity_settings + # Create GRPC objects. + grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + reporting_identity_settings = {} + update_mask = {} + + update_reporting_identity_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_reporting_identity_settings, name + assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings), request["reporting_identity_settings"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_reporting_identity_settings_client_stub do + # Create client + c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + c.update_reporting_identity_settings reporting_identity_settings: reporting_identity_settings, update_mask: update_mask do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + c.update_reporting_identity_settings ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + c.update_reporting_identity_settings(::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_reporting_identity_settings_client_stub.call_rpc_count + end + end + def test_get_user_provided_data_settings # Create GRPC objects. grpc_response = ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings.new diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/.gitignore b/owl-bot-staging/google-analytics-admin-v1alpha/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/.repo-metadata.json b/owl-bot-staging/google-analytics-admin-v1alpha/.repo-metadata.json deleted file mode 100644 index 5720aad46754..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/.repo-metadata.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "api_id": "analyticsadmin.googleapis.com", - "api_shortname": "analyticsadmin", - "client_documentation": "https://rubydoc.info/gems/google-analytics-admin-v1alpha", - "distribution_name": "google-analytics-admin-v1alpha", - "is_cloud": false, - "language": "ruby", - "name": "analyticsadmin", - "name_pretty": "Google Analytics Admin V1alpha API", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "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. Note that google-analytics-admin-v1alpha is a version-specific client library. For most uses, we recommend installing the main client library google-analytics-admin instead. See the readme for more details.", - "ruby-cloud-env-prefix": "ANALYTICS_ADMIN", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/.rubocop.yml b/owl-bot-staging/google-analytics-admin-v1alpha/.rubocop.yml deleted file mode 100644 index d63a7b628132..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-analytics-admin-v1alpha.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-analytics-admin-v1alpha.rb" diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/.toys.rb b/owl-bot-staging/google-analytics-admin-v1alpha/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/.yardopts b/owl-bot-staging/google-analytics-admin-v1alpha/.yardopts deleted file mode 100644 index 80e4377a6654..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Google Analytics Admin V1alpha API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/AUTHENTICATION.md b/owl-bot-staging/google-analytics-admin-v1alpha/AUTHENTICATION.md deleted file mode 100644 index d65a16ea6bb2..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-analytics-admin-v1alpha library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-analytics-admin-v1alpha library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/analytics/admin/v1alpha" - -client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/analytics/admin/v1alpha" - -::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-analytics-admin-v1alpha -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/analytics/admin/v1alpha" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/CHANGELOG.md b/owl-bot-staging/google-analytics-admin-v1alpha/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/Gemfile b/owl-bot-staging/google-analytics-admin-v1alpha/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/LICENSE.md b/owl-bot-staging/google-analytics-admin-v1alpha/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/README.md b/owl-bot-staging/google-analytics-admin-v1alpha/README.md deleted file mode 100644 index 9f1410aaff8a..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/README.md +++ /dev/null @@ -1,151 +0,0 @@ -# Ruby Client for the Google Analytics Admin V1alpha API - -Manage properties in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning. - -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. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Google Analytics Admin V1alpha API. Most users should consider using -the main client gem, -[google-analytics-admin](https://rubygems.org/gems/google-analytics-admin). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-analytics-admin-v1alpha -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/analyticsadmin.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/analytics/admin/v1alpha" - -client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new -request = ::Google::Analytics::Admin::V1alpha::GetAccountRequest.new # (request fields as keyword arguments...) -response = client.get_account request -``` - -View the [Client Library Documentation](https://rubydoc.info/gems/google-analytics-admin-v1alpha) -for class and method documentation. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/analytics/admin/v1alpha" -require "logger" - -client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.2+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-analytics-admin`, -and lower-level _versioned_ client libraries with names such as -`google-analytics-admin-v1alpha`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-analytics-admin`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-analytics-admin-v1alpha`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/Rakefile b/owl-bot-staging/google-analytics-admin-v1alpha/Rakefile deleted file mode 100644 index 7b154c26b532..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-analytics-admin-v1alpha acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["ANALYTICS_ADMIN_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["ANALYTICS_ADMIN_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["ANALYTICS_ADMIN_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or ANALYTICS_ADMIN_TEST_PROJECT=test123 ANALYTICS_ADMIN_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/analytics/admin/v1alpha/analytics_admin_service/credentials" - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["ANALYTICS_ADMIN_PROJECT"] = project - ENV["ANALYTICS_ADMIN_TEST_PROJECT"] = project - ENV["ANALYTICS_ADMIN_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-analytics-admin-v1alpha gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-analytics-admin-v1alpha gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-analytics-admin-v1alpha gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-analytics-admin-v1alpha gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-analytics-admin-v1alpha" - header "google-analytics-admin-v1alpha rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-analytics-admin-v1alpha yard", "*" - Rake::Task[:yard].invoke - header "google-analytics-admin-v1alpha test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-analytics-admin-v1alpha smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-analytics-admin-v1alpha acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/gapic_metadata.json b/owl-bot-staging/google-analytics-admin-v1alpha/gapic_metadata.json deleted file mode 100644 index 398dc40c6db3..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/gapic_metadata.json +++ /dev/null @@ -1,798 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.analytics.admin.v1alpha", - "libraryPackage": "::Google::Analytics::Admin::V1alpha", - "services": { - "AnalyticsAdminService": { - "clients": { - "grpc": { - "libraryClient": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client", - "rpcs": { - "GetAccount": { - "methods": [ - "get_account" - ] - }, - "ListAccounts": { - "methods": [ - "list_accounts" - ] - }, - "DeleteAccount": { - "methods": [ - "delete_account" - ] - }, - "UpdateAccount": { - "methods": [ - "update_account" - ] - }, - "ProvisionAccountTicket": { - "methods": [ - "provision_account_ticket" - ] - }, - "ListAccountSummaries": { - "methods": [ - "list_account_summaries" - ] - }, - "GetProperty": { - "methods": [ - "get_property" - ] - }, - "ListProperties": { - "methods": [ - "list_properties" - ] - }, - "CreateProperty": { - "methods": [ - "create_property" - ] - }, - "DeleteProperty": { - "methods": [ - "delete_property" - ] - }, - "UpdateProperty": { - "methods": [ - "update_property" - ] - }, - "CreateFirebaseLink": { - "methods": [ - "create_firebase_link" - ] - }, - "DeleteFirebaseLink": { - "methods": [ - "delete_firebase_link" - ] - }, - "ListFirebaseLinks": { - "methods": [ - "list_firebase_links" - ] - }, - "GetGlobalSiteTag": { - "methods": [ - "get_global_site_tag" - ] - }, - "CreateGoogleAdsLink": { - "methods": [ - "create_google_ads_link" - ] - }, - "UpdateGoogleAdsLink": { - "methods": [ - "update_google_ads_link" - ] - }, - "DeleteGoogleAdsLink": { - "methods": [ - "delete_google_ads_link" - ] - }, - "ListGoogleAdsLinks": { - "methods": [ - "list_google_ads_links" - ] - }, - "GetDataSharingSettings": { - "methods": [ - "get_data_sharing_settings" - ] - }, - "GetMeasurementProtocolSecret": { - "methods": [ - "get_measurement_protocol_secret" - ] - }, - "ListMeasurementProtocolSecrets": { - "methods": [ - "list_measurement_protocol_secrets" - ] - }, - "CreateMeasurementProtocolSecret": { - "methods": [ - "create_measurement_protocol_secret" - ] - }, - "DeleteMeasurementProtocolSecret": { - "methods": [ - "delete_measurement_protocol_secret" - ] - }, - "UpdateMeasurementProtocolSecret": { - "methods": [ - "update_measurement_protocol_secret" - ] - }, - "AcknowledgeUserDataCollection": { - "methods": [ - "acknowledge_user_data_collection" - ] - }, - "GetSKAdNetworkConversionValueSchema": { - "methods": [ - "get_sk_ad_network_conversion_value_schema" - ] - }, - "CreateSKAdNetworkConversionValueSchema": { - "methods": [ - "create_sk_ad_network_conversion_value_schema" - ] - }, - "DeleteSKAdNetworkConversionValueSchema": { - "methods": [ - "delete_sk_ad_network_conversion_value_schema" - ] - }, - "UpdateSKAdNetworkConversionValueSchema": { - "methods": [ - "update_sk_ad_network_conversion_value_schema" - ] - }, - "ListSKAdNetworkConversionValueSchemas": { - "methods": [ - "list_sk_ad_network_conversion_value_schemas" - ] - }, - "SearchChangeHistoryEvents": { - "methods": [ - "search_change_history_events" - ] - }, - "GetGoogleSignalsSettings": { - "methods": [ - "get_google_signals_settings" - ] - }, - "UpdateGoogleSignalsSettings": { - "methods": [ - "update_google_signals_settings" - ] - }, - "CreateConversionEvent": { - "methods": [ - "create_conversion_event" - ] - }, - "UpdateConversionEvent": { - "methods": [ - "update_conversion_event" - ] - }, - "GetConversionEvent": { - "methods": [ - "get_conversion_event" - ] - }, - "DeleteConversionEvent": { - "methods": [ - "delete_conversion_event" - ] - }, - "ListConversionEvents": { - "methods": [ - "list_conversion_events" - ] - }, - "CreateKeyEvent": { - "methods": [ - "create_key_event" - ] - }, - "UpdateKeyEvent": { - "methods": [ - "update_key_event" - ] - }, - "GetKeyEvent": { - "methods": [ - "get_key_event" - ] - }, - "DeleteKeyEvent": { - "methods": [ - "delete_key_event" - ] - }, - "ListKeyEvents": { - "methods": [ - "list_key_events" - ] - }, - "GetDisplayVideo360AdvertiserLink": { - "methods": [ - "get_display_video360_advertiser_link" - ] - }, - "ListDisplayVideo360AdvertiserLinks": { - "methods": [ - "list_display_video360_advertiser_links" - ] - }, - "CreateDisplayVideo360AdvertiserLink": { - "methods": [ - "create_display_video360_advertiser_link" - ] - }, - "DeleteDisplayVideo360AdvertiserLink": { - "methods": [ - "delete_display_video360_advertiser_link" - ] - }, - "UpdateDisplayVideo360AdvertiserLink": { - "methods": [ - "update_display_video360_advertiser_link" - ] - }, - "GetDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "get_display_video360_advertiser_link_proposal" - ] - }, - "ListDisplayVideo360AdvertiserLinkProposals": { - "methods": [ - "list_display_video360_advertiser_link_proposals" - ] - }, - "CreateDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "create_display_video360_advertiser_link_proposal" - ] - }, - "DeleteDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "delete_display_video360_advertiser_link_proposal" - ] - }, - "ApproveDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "approve_display_video360_advertiser_link_proposal" - ] - }, - "CancelDisplayVideo360AdvertiserLinkProposal": { - "methods": [ - "cancel_display_video360_advertiser_link_proposal" - ] - }, - "CreateCustomDimension": { - "methods": [ - "create_custom_dimension" - ] - }, - "UpdateCustomDimension": { - "methods": [ - "update_custom_dimension" - ] - }, - "ListCustomDimensions": { - "methods": [ - "list_custom_dimensions" - ] - }, - "ArchiveCustomDimension": { - "methods": [ - "archive_custom_dimension" - ] - }, - "GetCustomDimension": { - "methods": [ - "get_custom_dimension" - ] - }, - "CreateCustomMetric": { - "methods": [ - "create_custom_metric" - ] - }, - "UpdateCustomMetric": { - "methods": [ - "update_custom_metric" - ] - }, - "ListCustomMetrics": { - "methods": [ - "list_custom_metrics" - ] - }, - "ArchiveCustomMetric": { - "methods": [ - "archive_custom_metric" - ] - }, - "GetCustomMetric": { - "methods": [ - "get_custom_metric" - ] - }, - "GetDataRetentionSettings": { - "methods": [ - "get_data_retention_settings" - ] - }, - "UpdateDataRetentionSettings": { - "methods": [ - "update_data_retention_settings" - ] - }, - "CreateDataStream": { - "methods": [ - "create_data_stream" - ] - }, - "DeleteDataStream": { - "methods": [ - "delete_data_stream" - ] - }, - "UpdateDataStream": { - "methods": [ - "update_data_stream" - ] - }, - "ListDataStreams": { - "methods": [ - "list_data_streams" - ] - }, - "GetDataStream": { - "methods": [ - "get_data_stream" - ] - }, - "GetAudience": { - "methods": [ - "get_audience" - ] - }, - "ListAudiences": { - "methods": [ - "list_audiences" - ] - }, - "CreateAudience": { - "methods": [ - "create_audience" - ] - }, - "UpdateAudience": { - "methods": [ - "update_audience" - ] - }, - "ArchiveAudience": { - "methods": [ - "archive_audience" - ] - }, - "GetSearchAds360Link": { - "methods": [ - "get_search_ads360_link" - ] - }, - "ListSearchAds360Links": { - "methods": [ - "list_search_ads360_links" - ] - }, - "CreateSearchAds360Link": { - "methods": [ - "create_search_ads360_link" - ] - }, - "DeleteSearchAds360Link": { - "methods": [ - "delete_search_ads360_link" - ] - }, - "UpdateSearchAds360Link": { - "methods": [ - "update_search_ads360_link" - ] - }, - "GetAttributionSettings": { - "methods": [ - "get_attribution_settings" - ] - }, - "UpdateAttributionSettings": { - "methods": [ - "update_attribution_settings" - ] - }, - "RunAccessReport": { - "methods": [ - "run_access_report" - ] - }, - "CreateAccessBinding": { - "methods": [ - "create_access_binding" - ] - }, - "GetAccessBinding": { - "methods": [ - "get_access_binding" - ] - }, - "UpdateAccessBinding": { - "methods": [ - "update_access_binding" - ] - }, - "DeleteAccessBinding": { - "methods": [ - "delete_access_binding" - ] - }, - "ListAccessBindings": { - "methods": [ - "list_access_bindings" - ] - }, - "BatchCreateAccessBindings": { - "methods": [ - "batch_create_access_bindings" - ] - }, - "BatchGetAccessBindings": { - "methods": [ - "batch_get_access_bindings" - ] - }, - "BatchUpdateAccessBindings": { - "methods": [ - "batch_update_access_bindings" - ] - }, - "BatchDeleteAccessBindings": { - "methods": [ - "batch_delete_access_bindings" - ] - }, - "GetExpandedDataSet": { - "methods": [ - "get_expanded_data_set" - ] - }, - "ListExpandedDataSets": { - "methods": [ - "list_expanded_data_sets" - ] - }, - "CreateExpandedDataSet": { - "methods": [ - "create_expanded_data_set" - ] - }, - "UpdateExpandedDataSet": { - "methods": [ - "update_expanded_data_set" - ] - }, - "DeleteExpandedDataSet": { - "methods": [ - "delete_expanded_data_set" - ] - }, - "GetChannelGroup": { - "methods": [ - "get_channel_group" - ] - }, - "ListChannelGroups": { - "methods": [ - "list_channel_groups" - ] - }, - "CreateChannelGroup": { - "methods": [ - "create_channel_group" - ] - }, - "UpdateChannelGroup": { - "methods": [ - "update_channel_group" - ] - }, - "DeleteChannelGroup": { - "methods": [ - "delete_channel_group" - ] - }, - "CreateBigQueryLink": { - "methods": [ - "create_big_query_link" - ] - }, - "GetBigQueryLink": { - "methods": [ - "get_big_query_link" - ] - }, - "ListBigQueryLinks": { - "methods": [ - "list_big_query_links" - ] - }, - "DeleteBigQueryLink": { - "methods": [ - "delete_big_query_link" - ] - }, - "UpdateBigQueryLink": { - "methods": [ - "update_big_query_link" - ] - }, - "GetEnhancedMeasurementSettings": { - "methods": [ - "get_enhanced_measurement_settings" - ] - }, - "UpdateEnhancedMeasurementSettings": { - "methods": [ - "update_enhanced_measurement_settings" - ] - }, - "GetAdSenseLink": { - "methods": [ - "get_ad_sense_link" - ] - }, - "CreateAdSenseLink": { - "methods": [ - "create_ad_sense_link" - ] - }, - "DeleteAdSenseLink": { - "methods": [ - "delete_ad_sense_link" - ] - }, - "ListAdSenseLinks": { - "methods": [ - "list_ad_sense_links" - ] - }, - "GetEventCreateRule": { - "methods": [ - "get_event_create_rule" - ] - }, - "ListEventCreateRules": { - "methods": [ - "list_event_create_rules" - ] - }, - "CreateEventCreateRule": { - "methods": [ - "create_event_create_rule" - ] - }, - "UpdateEventCreateRule": { - "methods": [ - "update_event_create_rule" - ] - }, - "DeleteEventCreateRule": { - "methods": [ - "delete_event_create_rule" - ] - }, - "GetEventEditRule": { - "methods": [ - "get_event_edit_rule" - ] - }, - "ListEventEditRules": { - "methods": [ - "list_event_edit_rules" - ] - }, - "CreateEventEditRule": { - "methods": [ - "create_event_edit_rule" - ] - }, - "UpdateEventEditRule": { - "methods": [ - "update_event_edit_rule" - ] - }, - "DeleteEventEditRule": { - "methods": [ - "delete_event_edit_rule" - ] - }, - "ReorderEventEditRules": { - "methods": [ - "reorder_event_edit_rules" - ] - }, - "UpdateDataRedactionSettings": { - "methods": [ - "update_data_redaction_settings" - ] - }, - "GetDataRedactionSettings": { - "methods": [ - "get_data_redaction_settings" - ] - }, - "GetCalculatedMetric": { - "methods": [ - "get_calculated_metric" - ] - }, - "CreateCalculatedMetric": { - "methods": [ - "create_calculated_metric" - ] - }, - "ListCalculatedMetrics": { - "methods": [ - "list_calculated_metrics" - ] - }, - "UpdateCalculatedMetric": { - "methods": [ - "update_calculated_metric" - ] - }, - "DeleteCalculatedMetric": { - "methods": [ - "delete_calculated_metric" - ] - }, - "CreateRollupProperty": { - "methods": [ - "create_rollup_property" - ] - }, - "GetRollupPropertySourceLink": { - "methods": [ - "get_rollup_property_source_link" - ] - }, - "ListRollupPropertySourceLinks": { - "methods": [ - "list_rollup_property_source_links" - ] - }, - "CreateRollupPropertySourceLink": { - "methods": [ - "create_rollup_property_source_link" - ] - }, - "DeleteRollupPropertySourceLink": { - "methods": [ - "delete_rollup_property_source_link" - ] - }, - "ProvisionSubproperty": { - "methods": [ - "provision_subproperty" - ] - }, - "CreateSubpropertyEventFilter": { - "methods": [ - "create_subproperty_event_filter" - ] - }, - "GetSubpropertyEventFilter": { - "methods": [ - "get_subproperty_event_filter" - ] - }, - "ListSubpropertyEventFilters": { - "methods": [ - "list_subproperty_event_filters" - ] - }, - "UpdateSubpropertyEventFilter": { - "methods": [ - "update_subproperty_event_filter" - ] - }, - "DeleteSubpropertyEventFilter": { - "methods": [ - "delete_subproperty_event_filter" - ] - }, - "CreateReportingDataAnnotation": { - "methods": [ - "create_reporting_data_annotation" - ] - }, - "GetReportingDataAnnotation": { - "methods": [ - "get_reporting_data_annotation" - ] - }, - "ListReportingDataAnnotations": { - "methods": [ - "list_reporting_data_annotations" - ] - }, - "UpdateReportingDataAnnotation": { - "methods": [ - "update_reporting_data_annotation" - ] - }, - "DeleteReportingDataAnnotation": { - "methods": [ - "delete_reporting_data_annotation" - ] - }, - "SubmitUserDeletion": { - "methods": [ - "submit_user_deletion" - ] - }, - "ListSubpropertySyncConfigs": { - "methods": [ - "list_subproperty_sync_configs" - ] - }, - "UpdateSubpropertySyncConfig": { - "methods": [ - "update_subproperty_sync_config" - ] - }, - "GetSubpropertySyncConfig": { - "methods": [ - "get_subproperty_sync_config" - ] - }, - "GetReportingIdentitySettings": { - "methods": [ - "get_reporting_identity_settings" - ] - }, - "UpdateReportingIdentitySettings": { - "methods": [ - "update_reporting_identity_settings" - ] - }, - "GetUserProvidedDataSettings": { - "methods": [ - "get_user_provided_data_settings" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/google-analytics-admin-v1alpha.gemspec b/owl-bot-staging/google-analytics-admin-v1alpha/google-analytics-admin-v1alpha.gemspec deleted file mode 100644 index ebca3c4ebffa..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/google-analytics-admin-v1alpha.gemspec +++ /dev/null @@ -1,28 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/analytics/admin/v1alpha/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-analytics-admin-v1alpha" - gem.version = Google::Analytics::Admin::V1alpha::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.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. Note that google-analytics-admin-v1alpha is a version-specific client library. For most uses, we recommend installing the main client library google-analytics-admin instead. See the readme for more details." - gem.summary = "Manage properties in Google Analytics. Warning: Creating multiple Customer Applications, Accounts, or Projects to simulate or act as a single Customer Application, Account, or Project (respectively) or to circumvent Service-specific usage limits or quotas is a direct violation of Google Cloud Platform Terms of Service as well as Google APIs Terms of Service. These actions can result in immediate termination of your GCP project(s) without any warning." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.3" - gem.add_dependency "google-cloud-errors", "~> 1.0" -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google-analytics-admin-v1alpha.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google-analytics-admin-v1alpha.rb deleted file mode 100644 index 498d3cee2b06..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google-analytics-admin-v1alpha.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/analytics/admin/v1alpha" diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha.rb deleted file mode 100644 index 2ad53a132020..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/analytics/admin/v1alpha/analytics_admin_service" -require "google/analytics/admin/v1alpha/version" - -module Google - module Analytics - module Admin - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/analytics/admin/v1alpha" - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # @example Load this package, including all its services, and instantiate a REST client - # - # require "google/analytics/admin/v1alpha" - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - module V1alpha - end - end - end -end - -helper_path = ::File.join __dir__, "v1alpha", "_helpers.rb" -require "google/analytics/admin/v1alpha/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/access_report_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/access_report_pb.rb deleted file mode 100644 index 52099aedd203..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/access_report_pb.rb +++ /dev/null @@ -1,44 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/analytics/admin/v1alpha/access_report.proto - -require 'google/protobuf' - - -descriptor_data = "\n2google/analytics/admin/v1alpha/access_report.proto\x12\x1egoogle.analytics.admin.v1alpha\")\n\x0f\x41\x63\x63\x65ssDimension\x12\x16\n\x0e\x64imension_name\x18\x01 \x01(\t\"#\n\x0c\x41\x63\x63\x65ssMetric\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\"7\n\x0f\x41\x63\x63\x65ssDateRange\x12\x12\n\nstart_date\x18\x01 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x02 \x01(\t\"\xe4\x02\n\x16\x41\x63\x63\x65ssFilterExpression\x12O\n\tand_group\x18\x01 \x01(\x0b\x32:.google.analytics.admin.v1alpha.AccessFilterExpressionListH\x00\x12N\n\x08or_group\x18\x02 \x01(\x0b\x32:.google.analytics.admin.v1alpha.AccessFilterExpressionListH\x00\x12P\n\x0enot_expression\x18\x03 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpressionH\x00\x12\x45\n\raccess_filter\x18\x04 \x01(\x0b\x32,.google.analytics.admin.v1alpha.AccessFilterH\x00\x42\x10\n\x0eone_expression\"i\n\x1a\x41\x63\x63\x65ssFilterExpressionList\x12K\n\x0b\x65xpressions\x18\x01 \x03(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpression\"\xe9\x02\n\x0c\x41\x63\x63\x65ssFilter\x12K\n\rstring_filter\x18\x02 \x01(\x0b\x32\x32.google.analytics.admin.v1alpha.AccessStringFilterH\x00\x12L\n\x0ein_list_filter\x18\x03 \x01(\x0b\x32\x32.google.analytics.admin.v1alpha.AccessInListFilterH\x00\x12M\n\x0enumeric_filter\x18\x04 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AccessNumericFilterH\x00\x12M\n\x0e\x62\x65tween_filter\x18\x05 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AccessBetweenFilterH\x00\x12\x12\n\nfield_name\x18\x01 \x01(\tB\x0c\n\none_filter\"\x95\x02\n\x12\x41\x63\x63\x65ssStringFilter\x12P\n\nmatch_type\x18\x01 \x01(\x0e\x32<.google.analytics.admin.v1alpha.AccessStringFilter.MatchType\x12\r\n\x05value\x18\x02 \x01(\t\x12\x16\n\x0e\x63\x61se_sensitive\x18\x03 \x01(\x08\"\x85\x01\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0f\n\x0b\x42\x45GINS_WITH\x10\x02\x12\r\n\tENDS_WITH\x10\x03\x12\x0c\n\x08\x43ONTAINS\x10\x04\x12\x0f\n\x0b\x46ULL_REGEXP\x10\x05\x12\x12\n\x0ePARTIAL_REGEXP\x10\x06\"<\n\x12\x41\x63\x63\x65ssInListFilter\x12\x0e\n\x06values\x18\x01 \x03(\t\x12\x16\n\x0e\x63\x61se_sensitive\x18\x02 \x01(\x08\"\xac\x02\n\x13\x41\x63\x63\x65ssNumericFilter\x12P\n\toperation\x18\x01 \x01(\x0e\x32=.google.analytics.admin.v1alpha.AccessNumericFilter.Operation\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.NumericValue\"\x85\x01\n\tOperation\x12\x19\n\x15OPERATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x45QUAL\x10\x01\x12\r\n\tLESS_THAN\x10\x02\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x03\x12\x10\n\x0cGREATER_THAN\x10\x04\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\x05\"\x97\x01\n\x13\x41\x63\x63\x65ssBetweenFilter\x12@\n\nfrom_value\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.NumericValue\x12>\n\x08to_value\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.NumericValue\"J\n\x0cNumericValue\x12\x15\n\x0bint64_value\x18\x01 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x42\x0b\n\tone_value\"\xed\x03\n\rAccessOrderBy\x12M\n\x06metric\x18\x01 \x01(\x0b\x32;.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByH\x00\x12S\n\tdimension\x18\x02 \x01(\x0b\x32>.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByH\x00\x12\x0c\n\x04\x64\x65sc\x18\x03 \x01(\x08\x1a$\n\rMetricOrderBy\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\x1a\xf3\x01\n\x10\x44imensionOrderBy\x12\x16\n\x0e\x64imension_name\x18\x01 \x01(\t\x12\\\n\norder_type\x18\x02 \x01(\x0e\x32H.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType\"i\n\tOrderType\x12\x1a\n\x16ORDER_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x41LPHANUMERIC\x10\x01\x12!\n\x1d\x43\x41SE_INSENSITIVE_ALPHANUMERIC\x10\x02\x12\x0b\n\x07NUMERIC\x10\x03\x42\x0e\n\x0cone_order_by\"/\n\x15\x41\x63\x63\x65ssDimensionHeader\x12\x16\n\x0e\x64imension_name\x18\x01 \x01(\t\")\n\x12\x41\x63\x63\x65ssMetricHeader\x12\x13\n\x0bmetric_name\x18\x01 \x01(\t\"\xa5\x01\n\tAccessRow\x12N\n\x10\x64imension_values\x18\x01 \x03(\x0b\x32\x34.google.analytics.admin.v1alpha.AccessDimensionValue\x12H\n\rmetric_values\x18\x02 \x03(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessMetricValue\"%\n\x14\x41\x63\x63\x65ssDimensionValue\x12\r\n\x05value\x18\x01 \x01(\t\"\"\n\x11\x41\x63\x63\x65ssMetricValue\x12\r\n\x05value\x18\x01 \x01(\t\"\xab\x03\n\x0b\x41\x63\x63\x65ssQuota\x12I\n\x0etokens_per_day\x18\x01 \x01(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessQuotaStatus\x12J\n\x0ftokens_per_hour\x18\x02 \x01(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessQuotaStatus\x12N\n\x13\x63oncurrent_requests\x18\x03 \x01(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessQuotaStatus\x12]\n\"server_errors_per_project_per_hour\x18\x04 \x01(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessQuotaStatus\x12V\n\x1btokens_per_project_per_hour\x18\x05 \x01(\x0b\x32\x31.google.analytics.admin.v1alpha.AccessQuotaStatus\"8\n\x11\x41\x63\x63\x65ssQuotaStatus\x12\x10\n\x08\x63onsumed\x18\x01 \x01(\x05\x12\x11\n\tremaining\x18\x02 \x01(\x05\x42y\n\"com.google.analytics.admin.v1alphaB\x11\x41\x63\x63\x65ssReportProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Analytics - module Admin - module V1alpha - AccessDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessDimension").msgclass - AccessMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessMetric").msgclass - AccessDateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessDateRange").msgclass - AccessFilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessFilterExpression").msgclass - AccessFilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessFilterExpressionList").msgclass - AccessFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessFilter").msgclass - AccessStringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessStringFilter").msgclass - AccessStringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessStringFilter.MatchType").enummodule - AccessInListFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessInListFilter").msgclass - AccessNumericFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessNumericFilter").msgclass - AccessNumericFilter::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessNumericFilter.Operation").enummodule - AccessBetweenFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessBetweenFilter").msgclass - NumericValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.NumericValue").msgclass - AccessOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessOrderBy").msgclass - AccessOrderBy::MetricOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy").msgclass - AccessOrderBy::DimensionOrderBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy").msgclass - AccessOrderBy::DimensionOrderBy::OrderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType").enummodule - AccessDimensionHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessDimensionHeader").msgclass - AccessMetricHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessMetricHeader").msgclass - AccessRow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessRow").msgclass - AccessDimensionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessDimensionValue").msgclass - AccessMetricValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessMetricValue").msgclass - AccessQuota = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessQuota").msgclass - AccessQuotaStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessQuotaStatus").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb deleted file mode 100644 index 19988dbd9e2b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_pb.rb +++ /dev/null @@ -1,230 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/analytics/admin/v1alpha/analytics_admin.proto - -require 'google/protobuf' - -require 'google/analytics/admin/v1alpha/access_report_pb' -require 'google/analytics/admin/v1alpha/audience_pb' -require 'google/analytics/admin/v1alpha/channel_group_pb' -require 'google/analytics/admin/v1alpha/event_create_and_edit_pb' -require 'google/analytics/admin/v1alpha/expanded_data_set_pb' -require 'google/analytics/admin/v1alpha/resources_pb' -require 'google/analytics/admin/v1alpha/subproperty_event_filter_pb' -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n4google/analytics/admin/v1alpha/analytics_admin.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x32google/analytics/admin/v1alpha/access_report.proto\x1a-google/analytics/admin/v1alpha/audience.proto\x1a\x32google/analytics/admin/v1alpha/channel_group.proto\x1a:google/analytics/admin/v1alpha/event_create_and_edit.proto\x1a\x36google/analytics/admin/v1alpha/expanded_data_set.proto\x1a.google/analytics/admin/v1alpha/resources.proto\x1a=google/analytics/admin/v1alpha/subproperty_event_filter.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe0\x04\n\x16RunAccessReportRequest\x12\x0e\n\x06\x65ntity\x18\x01 \x01(\t\x12\x43\n\ndimensions\x18\x02 \x03(\x0b\x32/.google.analytics.admin.v1alpha.AccessDimension\x12=\n\x07metrics\x18\x03 \x03(\x0b\x32,.google.analytics.admin.v1alpha.AccessMetric\x12\x44\n\x0b\x64\x61te_ranges\x18\x04 \x03(\x0b\x32/.google.analytics.admin.v1alpha.AccessDateRange\x12P\n\x10\x64imension_filter\x18\x05 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpression\x12M\n\rmetric_filter\x18\x06 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AccessFilterExpression\x12\x0e\n\x06offset\x18\x07 \x01(\x03\x12\r\n\x05limit\x18\x08 \x01(\x03\x12\x11\n\ttime_zone\x18\t \x01(\t\x12@\n\torder_bys\x18\n \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessOrderBy\x12\x1b\n\x13return_entity_quota\x18\x0b \x01(\x08\x12\x1e\n\x11include_all_users\x18\x0c \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rexpand_groups\x18\r \x01(\x08\x42\x03\xe0\x41\x01\"\xbf\x02\n\x17RunAccessReportResponse\x12P\n\x11\x64imension_headers\x18\x01 \x03(\x0b\x32\x35.google.analytics.admin.v1alpha.AccessDimensionHeader\x12J\n\x0emetric_headers\x18\x02 \x03(\x0b\x32\x32.google.analytics.admin.v1alpha.AccessMetricHeader\x12\x37\n\x04rows\x18\x03 \x03(\x0b\x32).google.analytics.admin.v1alpha.AccessRow\x12\x11\n\trow_count\x18\x04 \x01(\x05\x12:\n\x05quota\x18\x05 \x01(\x0b\x32+.google.analytics.admin.v1alpha.AccessQuota\"P\n\x11GetAccountRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\"\\\n\x13ListAccountsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x0cshow_deleted\x18\x03 \x01(\x08\"j\n\x14ListAccountsResponse\x12\x39\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\'.google.analytics.admin.v1alpha.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x14\x44\x65leteAccountRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\"\x8b\x01\n\x14UpdateAccountRequest\x12=\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.AccountB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"o\n\x1dProvisionAccountTicketRequest\x12\x38\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.Account\x12\x14\n\x0credirect_uri\x18\x02 \x01(\t\";\n\x1eProvisionAccountTicketResponse\x12\x19\n\x11\x61\x63\x63ount_ticket_id\x18\x01 \x01(\t\"R\n\x12GetPropertyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"s\n\x15ListPropertiesRequest\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"o\n\x16ListPropertiesResponse\x12<\n\nproperties\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8e\x01\n\x15UpdatePropertyRequest\x12?\n\x08property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"X\n\x15\x43reatePropertyRequest\x12?\n\x08property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\"U\n\x15\x44\x65letePropertyRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"\xa9\x01\n\x19\x43reateFirebaseLinkRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/FirebaseLink\x12H\n\rfirebase_link\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLinkB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteFirebaseLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/FirebaseLink\"\x8f\x01\n\x18ListFirebaseLinksRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/FirebaseLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"z\n\x19ListFirebaseLinksResponse\x12\x44\n\x0e\x66irebase_links\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\\\n\x17GetGlobalSiteTagRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/GlobalSiteTag\"\xae\x01\n\x1a\x43reateGoogleAdsLinkRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/GoogleAdsLink\x12K\n\x0fgoogle_ads_link\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLinkB\x03\xe0\x41\x02\"\x9a\x01\n\x1aUpdateGoogleAdsLinkRequest\x12\x46\n\x0fgoogle_ads_link\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLink\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x1a\x44\x65leteGoogleAdsLinkRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/GoogleAdsLink\"\x91\x01\n\x19ListGoogleAdsLinksRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListGoogleAdsLinksResponse\x12G\n\x10google_ads_links\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"h\n\x1dGetDataSharingSettingsRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1analyticsadmin.googleapis.com/DataSharingSettings\"N\n\x1bListAccountSummariesRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x1cListAccountSummariesResponse\x12I\n\x11\x61\x63\x63ount_summaries\x18\x01 \x03(\x0b\x32..google.analytics.admin.v1alpha.AccountSummary\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x86\x01\n$AcknowledgeUserDataCollectionRequest\x12@\n\x08property\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12\x1c\n\x0f\x61\x63knowledgement\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\'\n%AcknowledgeUserDataCollectionResponse\"\x83\x04\n SearchChangeHistoryEventsRequest\x12>\n\x07\x61\x63\x63ount\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12@\n\x08property\x18\x02 \x01(\tB.\xe0\x41\x01\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12U\n\rresource_type\x18\x03 \x03(\x0e\x32\x39.google.analytics.admin.v1alpha.ChangeHistoryResourceTypeB\x03\xe0\x41\x01\x12?\n\x06\x61\x63tion\x18\x04 \x03(\x0e\x32*.google.analytics.admin.v1alpha.ActionTypeB\x03\xe0\x41\x01\x12\x18\n\x0b\x61\x63tor_email\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12=\n\x14\x65\x61rliest_change_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12;\n\x12latest_change_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\t \x01(\tB\x03\xe0\x41\x01\"\x8f\x01\n!SearchChangeHistoryEventsResponse\x12Q\n\x15\x63hange_history_events\x18\x01 \x03(\x0b\x32\x32.google.analytics.admin.v1alpha.ChangeHistoryEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"t\n#GetMeasurementProtocolSecretRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\xde\x01\n&CreateMeasurementProtocolSecretRequest\x12O\n\x06parent\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37\x61nalyticsadmin.googleapis.com/MeasurementProtocolSecret\x12\x63\n\x1bmeasurement_protocol_secret\x18\x02 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\x03\xe0\x41\x02\"w\n&DeleteMeasurementProtocolSecretRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\xc3\x01\n&UpdateMeasurementProtocolSecretRequest\x12\x63\n\x1bmeasurement_protocol_secret\x18\x01 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa9\x01\n%ListMeasurementProtocolSecretsRequest\x12O\n\x06parent\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37\x61nalyticsadmin.googleapis.com/MeasurementProtocolSecret\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa2\x01\n&ListMeasurementProtocolSecretsResponse\x12_\n\x1cmeasurement_protocol_secrets\x18\x01 \x03(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x01\n*GetSKAdNetworkConversionValueSchemaRequest\x12T\n\x04name\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\xfb\x01\n-CreateSKAdNetworkConversionValueSchemaRequest\x12V\n\x06parent\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\x12>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12r\n#skadnetwork_conversion_value_schema\x18\x02 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\x03\xe0\x41\x02\"\x85\x01\n-DeleteSKAdNetworkConversionValueSchemaRequest\x12T\n\x04name\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\xd9\x01\n-UpdateSKAdNetworkConversionValueSchemaRequest\x12r\n#skadnetwork_conversion_value_schema\x18\x01 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb7\x01\n,ListSKAdNetworkConversionValueSchemasRequest\x12V\n\x06parent\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\x12>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xb8\x01\n-ListSKAdNetworkConversionValueSchemasResponse\x12n\n$skadnetwork_conversion_value_schemas\x18\x01 \x03(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"l\n\x1fGetGoogleSignalsSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/GoogleSignalsSettings\"\xb7\x01\n\"UpdateGoogleSignalsSettingsRequest\x12[\n\x17google_signals_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.GoogleSignalsSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb5\x01\n\x1c\x43reateConversionEventRequest\x12N\n\x10\x63onversion_event\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventB\x03\xe0\x41\x02\x12\x45\n\x06parent\x18\x02 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ConversionEvent\"\xa4\x01\n\x1cUpdateConversionEventRequest\x12N\n\x10\x63onversion_event\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"`\n\x19GetConversionEventRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ConversionEvent\"c\n\x1c\x44\x65leteConversionEventRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ConversionEvent\"\x95\x01\n\x1bListConversionEventsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ConversionEvent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x1cListConversionEventsResponse\x12J\n\x11\x63onversion_events\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x99\x01\n\x15\x43reateKeyEventRequest\x12@\n\tkey_event\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventB\x03\xe0\x41\x02\x12>\n\x06parent\x18\x02 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/KeyEvent\"\x8f\x01\n\x15UpdateKeyEventRequest\x12@\n\tkey_event\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"R\n\x12GetKeyEventRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/KeyEvent\"U\n\x15\x44\x65leteKeyEventRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/KeyEvent\"\x87\x01\n\x14ListKeyEventsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/KeyEvent\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"n\n\x15ListKeyEventsResponse\x12<\n\nkey_events\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.KeyEvent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"|\n\'GetDisplayVideo360AdvertiserLinkRequest\x12Q\n\x04name\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\xa7\x01\n)ListDisplayVideo360AdvertiserLinksRequest\x12S\n\x06parent\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\x12;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xb0\x01\n*ListDisplayVideo360AdvertiserLinksResponse\x12i\n\"display_video_360_advertiser_links\x18\x01 \x03(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf0\x01\n*CreateDisplayVideo360AdvertiserLinkRequest\x12S\n\x06parent\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\x12;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12m\n!display_video_360_advertiser_link\x18\x02 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkB\x03\xe0\x41\x02\"\x7f\n*DeleteDisplayVideo360AdvertiserLinkRequest\x12Q\n\x04name\x18\x01 \x01(\tBC\xe0\x41\x02\xfa\x41=\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\xcc\x01\n*UpdateDisplayVideo360AdvertiserLinkRequest\x12h\n!display_video_360_advertiser_link\x18\x01 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x8c\x01\n/GetDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\xb7\x01\n1ListDisplayVideo360AdvertiserLinkProposalsRequest\x12[\n\x06parent\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\x12\x43\x61nalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\xc9\x01\n2ListDisplayVideo360AdvertiserLinkProposalsResponse\x12z\n+display_video_360_advertiser_link_proposals\x18\x01 \x03(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x91\x02\n2CreateDisplayVideo360AdvertiserLinkProposalRequest\x12[\n\x06parent\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\x12\x43\x61nalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12~\n*display_video_360_advertiser_link_proposal\x18\x02 \x01(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalB\x03\xe0\x41\x02\"\x8f\x01\n2DeleteDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\x90\x01\n3ApproveDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\xa0\x01\n4ApproveDisplayVideo360AdvertiserLinkProposalResponse\x12h\n!display_video_360_advertiser_link\x18\x01 \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\x8f\x01\n2CancelDisplayVideo360AdvertiserLinkProposalRequest\x12Y\n\x04name\x18\x01 \x01(\tBK\xe0\x41\x02\xfa\x41\x45\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"b\n\x1aGetSearchAds360LinkRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/SearchAds360Link\"\x8d\x01\n\x1cListSearchAds360LinksRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/SearchAds360Link\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x88\x01\n\x1dListSearchAds360LinksResponse\x12N\n\x14search_ads_360_links\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360Link\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbb\x01\n\x1d\x43reateSearchAds360LinkRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/SearchAds360Link\x12R\n\x13search_ads_360_link\x18\x02 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360LinkB\x03\xe0\x41\x02\"e\n\x1d\x44\x65leteSearchAds360LinkRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/SearchAds360Link\"\xa4\x01\n\x1dUpdateSearchAds360LinkRequest\x12M\n\x13search_ads_360_link\x18\x01 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360Link\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xb5\x01\n\x1c\x43reateCustomDimensionRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/CustomDimension\x12N\n\x10\x63ustom_dimension\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimensionB\x03\xe0\x41\x02\"\x9f\x01\n\x1cUpdateCustomDimensionRequest\x12I\n\x10\x63ustom_dimension\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimension\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x95\x01\n\x1bListCustomDimensionsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/CustomDimension\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x1cListCustomDimensionsResponse\x12J\n\x11\x63ustom_dimensions\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimension\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x1d\x41rchiveCustomDimensionRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/CustomDimension\"`\n\x19GetCustomDimensionRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/CustomDimension\"\xa9\x01\n\x19\x43reateCustomMetricRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/CustomMetric\x12H\n\rcustom_metric\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetricB\x03\xe0\x41\x02\"\x96\x01\n\x19UpdateCustomMetricRequest\x12\x43\n\rcustom_metric\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetric\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x85\x01\n\x18ListCustomMetricsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/CustomMetric\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListCustomMetricsResponse\x12\x44\n\x0e\x63ustom_metrics\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetric\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"^\n\x1a\x41rchiveCustomMetricRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/CustomMetric\"Z\n\x16GetCustomMetricRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/CustomMetric\"\xdc\x01\n\x1d\x43reateCalculatedMetricRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/CalculatedMetric\x12!\n\x14\x63\x61lculated_metric_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x11\x63\x61lculated_metric\x18\x03 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricB\x03\xe0\x41\x02\"\xa7\x01\n\x1dUpdateCalculatedMetricRequest\x12P\n\x11\x63\x61lculated_metric\x18\x01 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"e\n\x1d\x44\x65leteCalculatedMetricRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/CalculatedMetric\"\x97\x01\n\x1cListCalculatedMetricsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.analyticsadmin.googleapis.com/CalculatedMetric\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x86\x01\n\x1dListCalculatedMetricsResponse\x12L\n\x12\x63\x61lculated_metrics\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetric\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"b\n\x1aGetCalculatedMetricRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.analyticsadmin.googleapis.com/CalculatedMetric\"l\n\x1fGetDataRetentionSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/DataRetentionSettings\"\xb7\x01\n\"UpdateDataRetentionSettingsRequest\x12[\n\x17\x64\x61ta_retention_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRetentionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa1\x01\n\x17\x43reateDataStreamRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(analyticsadmin.googleapis.com/DataStream\x12\x44\n\x0b\x64\x61ta_stream\x18\x02 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStreamB\x03\xe0\x41\x02\"Y\n\x17\x44\x65leteDataStreamRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(analyticsadmin.googleapis.com/DataStream\"\x90\x01\n\x17UpdateDataStreamRequest\x12?\n\x0b\x64\x61ta_stream\x18\x01 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStream\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x81\x01\n\x16ListDataStreamsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(analyticsadmin.googleapis.com/DataStream\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x17ListDataStreamsResponse\x12@\n\x0c\x64\x61ta_streams\x18\x01 \x03(\x0b\x32*.google.analytics.admin.v1alpha.DataStream\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"V\n\x14GetDataStreamRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(analyticsadmin.googleapis.com/DataStream\"R\n\x12GetAudienceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Audience\"}\n\x14ListAudiencesRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"m\n\x15ListAudiencesResponse\x12;\n\taudiences\x18\x01 \x03(\x0b\x32(.google.analytics.admin.v1alpha.Audience\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x98\x01\n\x15\x43reateAudienceRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\x12?\n\x08\x61udience\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceB\x03\xe0\x41\x02\"\x8e\x01\n\x15UpdateAudienceRequest\x12?\n\x08\x61udience\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"V\n\x16\x41rchiveAudienceRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/Audience\"h\n\x1dGetAttributionSettingsRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1analyticsadmin.googleapis.com/AttributionSettings\"\xb0\x01\n UpdateAttributionSettingsRequest\x12V\n\x14\x61ttribution_settings\x18\x01 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AttributionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\\\n\x17GetAccessBindingRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"\xa8\x01\n\x1d\x42\x61tchGetAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12\x42\n\x05names\x18\x02 \x03(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"h\n\x1e\x42\x61tchGetAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"\x87\x01\n\x19ListAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"}\n\x1aListAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xad\x01\n\x1a\x43reateAccessBindingRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12J\n\x0e\x61\x63\x63\x65ss_binding\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.AccessBindingB\x03\xe0\x41\x02\"\xba\x01\n BatchCreateAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x03 \x03(\x0b\x32:.google.analytics.admin.v1alpha.CreateAccessBindingRequestB\x03\xe0\x41\x02\"k\n!BatchCreateAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"h\n\x1aUpdateAccessBindingRequest\x12J\n\x0e\x61\x63\x63\x65ss_binding\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.AccessBindingB\x03\xe0\x41\x02\"\xba\x01\n BatchUpdateAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x02 \x03(\x0b\x32:.google.analytics.admin.v1alpha.UpdateAccessBindingRequestB\x03\xe0\x41\x02\"k\n!BatchUpdateAccessBindingsResponse\x12\x46\n\x0f\x61\x63\x63\x65ss_bindings\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.AccessBinding\"_\n\x1a\x44\x65leteAccessBindingRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/AccessBinding\"\xba\x01\n BatchDeleteAccessBindingsRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/AccessBinding\x12Q\n\x08requests\x18\x02 \x03(\x0b\x32:.google.analytics.admin.v1alpha.DeleteAccessBindingRequestB\x03\xe0\x41\x02\"\xb6\x01\n\x1c\x43reateExpandedDataSetRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ExpandedDataSet\x12O\n\x11\x65xpanded_data_set\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetB\x03\xe0\x41\x02\"\xa5\x01\n\x1cUpdateExpandedDataSetRequest\x12O\n\x11\x65xpanded_data_set\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"c\n\x1c\x44\x65leteExpandedDataSetRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ExpandedDataSet\"`\n\x19GetExpandedDataSetRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/ExpandedDataSet\"\x8b\x01\n\x1bListExpandedDataSetsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ExpandedDataSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1cListExpandedDataSetsResponse\x12K\n\x12\x65xpanded_data_sets\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa9\x01\n\x19\x43reateChannelGroupRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/ChannelGroup\x12H\n\rchannel_group\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupB\x03\xe0\x41\x02\"\x9b\x01\n\x19UpdateChannelGroupRequest\x12H\n\rchannel_group\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteChannelGroupRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/ChannelGroup\"Z\n\x16GetChannelGroupRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/ChannelGroup\"\x85\x01\n\x18ListChannelGroupsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/ChannelGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListChannelGroupsResponse\x12\x44\n\x0e\x63hannel_groups\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa9\x01\n\x19\x43reateBigQueryLinkRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/BigQueryLink\x12H\n\rbigquery_link\x18\x02 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkB\x03\xe0\x41\x02\"Z\n\x16GetBigQueryLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/BigQueryLink\"\x85\x01\n\x18ListBigQueryLinksRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/BigQueryLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"z\n\x19ListBigQueryLinksResponse\x12\x44\n\x0e\x62igquery_links\x18\x01 \x03(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9b\x01\n\x19UpdateBigQueryLinkRequest\x12H\n\rbigquery_link\x18\x01 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"]\n\x19\x44\x65leteBigQueryLinkRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*analyticsadmin.googleapis.com/BigQueryLink\"x\n%GetEnhancedMeasurementSettingsRequest\x12O\n\x04name\x18\x01 \x01(\tBA\xe0\x41\x02\xfa\x41;\n9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\"\xc9\x01\n(UpdateEnhancedMeasurementSettingsRequest\x12g\n\x1d\x65nhanced_measurement_settings\x18\x01 \x01(\x0b\x32;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"l\n\x1fGetDataRedactionSettingsRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/DataRedactionSettings\"\xb7\x01\n\"UpdateDataRedactionSettingsRequest\x12[\n\x17\x64\x61ta_redaction_settings\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRedactionSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xa5\x01\n\x18\x43reateAdSenseLinkRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)analyticsadmin.googleapis.com/AdSenseLink\x12\x46\n\x0c\x61\x64sense_link\x18\x02 \x01(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLinkB\x03\xe0\x41\x02\"X\n\x15GetAdSenseLinkRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)analyticsadmin.googleapis.com/AdSenseLink\"[\n\x18\x44\x65leteAdSenseLinkRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)analyticsadmin.googleapis.com/AdSenseLink\"\x83\x01\n\x17ListAdSenseLinksRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)analyticsadmin.googleapis.com/AdSenseLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"w\n\x18ListAdSenseLinksResponse\x12\x42\n\radsense_links\x18\x01 \x03(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb6\x01\n\x1c\x43reateEventCreateRuleRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/EventCreateRule\x12O\n\x11\x65vent_create_rule\x18\x02 \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleB\x03\xe0\x41\x02\"\xa5\x01\n\x1cUpdateEventCreateRuleRequest\x12O\n\x11\x65vent_create_rule\x18\x01 \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"c\n\x1c\x44\x65leteEventCreateRuleRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/EventCreateRule\"`\n\x19GetEventCreateRuleRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-analyticsadmin.googleapis.com/EventCreateRule\"\x8b\x01\n\x1bListEventCreateRulesRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/EventCreateRule\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1cListEventCreateRulesResponse\x12K\n\x12\x65vent_create_rules\x18\x01 \x03(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xae\x01\n\x1a\x43reateEventEditRuleRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12K\n\x0f\x65vent_edit_rule\x18\x02 \x01(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRuleB\x03\xe0\x41\x02\"\x9f\x01\n\x1aUpdateEventEditRuleRequest\x12K\n\x0f\x65vent_edit_rule\x18\x01 \x01(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRuleB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"_\n\x1a\x44\x65leteEventEditRuleRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/EventEditRule\"\\\n\x17GetEventEditRuleRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+analyticsadmin.googleapis.com/EventEditRule\"\x91\x01\n\x19ListEventEditRulesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListEventEditRulesResponse\x12G\n\x10\x65vent_edit_rules\x18\x01 \x03(\x0b\x32-.google.analytics.admin.v1alpha.EventEditRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x01\n\x1cReorderEventEditRulesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/EventEditRule\x12\x1d\n\x10\x65vent_edit_rules\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\x85\x01\n\x1b\x43reateRollupPropertyRequest\x12\x46\n\x0frollup_property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12\x1e\n\x11source_properties\x18\x02 \x03(\tB\x03\xe0\x41\x01\"\xc1\x01\n\x1c\x43reateRollupPropertyResponse\x12\x41\n\x0frollup_property\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12^\n\x1crollup_property_source_links\x18\x02 \x03(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"r\n\"GetRollupPropertySourceLinkRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\xa7\x01\n$ListRollupPropertySourceLinksRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36\x61nalyticsadmin.googleapis.com/RollupPropertySourceLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa0\x01\n%ListRollupPropertySourceLinksResponse\x12^\n\x1crollup_property_source_links\x18\x01 \x03(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdb\x01\n%CreateRollupPropertySourceLinkRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36\x61nalyticsadmin.googleapis.com/RollupPropertySourceLink\x12\x62\n\x1brollup_property_source_link\x18\x02 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.RollupPropertySourceLinkB\x03\xe0\x41\x02\"u\n%DeleteRollupPropertySourceLinkRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\xcb\x02\n\x1bProvisionSubpropertyRequest\x12\x42\n\x0bsubproperty\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyB\x03\xe0\x41\x02\x12]\n\x18subproperty_event_filter\x18\x03 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x01\x12\x88\x01\n0custom_dimension_and_metric_synchronization_mode\x18\x04 \x01(\x0e\x32I.google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationModeB\x03\xe0\x41\x01\"\xb7\x01\n\x1cProvisionSubpropertyResponse\x12=\n\x0bsubproperty\x18\x01 \x01(\x0b\x32(.google.analytics.admin.v1alpha.Property\x12X\n\x18subproperty_event_filter\x18\x02 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"\xd2\x01\n#CreateSubpropertyEventFilterRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x61nalyticsadmin.googleapis.com/SubpropertyEventFilter\x12]\n\x18subproperty_event_filter\x18\x02 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x02\"n\n GetSubpropertyEventFilterRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\xa3\x01\n\"ListSubpropertyEventFiltersRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34\x61nalyticsadmin.googleapis.com/SubpropertyEventFilter\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n#ListSubpropertyEventFiltersResponse\x12Y\n\x19subproperty_event_filters\x18\x01 \x03(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xba\x01\n#UpdateSubpropertyEventFilterRequest\x12]\n\x18subproperty_event_filter\x18\x01 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.SubpropertyEventFilterB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"q\n#DeleteSubpropertyEventFilterRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\xd6\x01\n$CreateReportingDataAnnotationRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x61nalyticsadmin.googleapis.com/ReportingDataAnnotation\x12_\n\x19reporting_data_annotation\x18\x02 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationB\x03\xe0\x41\x02\"p\n!GetReportingDataAnnotationRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\xba\x01\n#ListReportingDataAnnotationsRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x61nalyticsadmin.googleapis.com/ReportingDataAnnotation\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x9c\x01\n$ListReportingDataAnnotationsResponse\x12[\n\x1areporting_data_annotations\x18\x01 \x03(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbd\x01\n$UpdateReportingDataAnnotationRequest\x12_\n\x19reporting_data_annotation\x18\x01 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"s\n$DeleteReportingDataAnnotationRequest\x12K\n\x04name\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\xc2\x01\n\x19SubmitUserDeletionRequest\x12\x11\n\x07user_id\x18\x02 \x01(\tH\x00\x12\x13\n\tclient_id\x18\x03 \x01(\tH\x00\x12\x19\n\x0f\x61pp_instance_id\x18\x04 \x01(\tH\x00\x12\x1c\n\x12user_provided_data\x18\x05 \x01(\tH\x00\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/PropertyB\x06\n\x04user\"W\n\x1aSubmitUserDeletionResponse\x12\x39\n\x15\x64\x65letion_request_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"l\n\x1fGetSubpropertySyncConfigRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3analyticsadmin.googleapis.com/SubpropertySyncConfig\"\xa1\x01\n!ListSubpropertySyncConfigsRequest\x12K\n\x06parent\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\x12\x33\x61nalyticsadmin.googleapis.com/SubpropertySyncConfig\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\"ListSubpropertySyncConfigsResponse\x12W\n\x18subproperty_sync_configs\x18\x01 \x03(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb7\x01\n\"UpdateSubpropertySyncConfigRequest\x12[\n\x17subproperty_sync_config\x18\x01 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfigB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"t\n#GetReportingIdentitySettingsRequest\x12M\n\x04name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7analyticsadmin.googleapis.com/ReportingIdentitySettings\"\xc3\x01\n&UpdateReportingIdentitySettingsRequest\x12\x63\n\x1breporting_identity_settings\x18\x01 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.ReportingIdentitySettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"r\n\"GetUserProvidedDataSettingsRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6analyticsadmin.googleapis.com/UserProvidedDataSettings2\xd3\x9b\x02\n\x15\x41nalyticsAdminService\x12\x93\x01\n\nGetAccount\x12\x31.google.analytics.admin.v1alpha.GetAccountRequest\x1a\'.google.analytics.admin.v1alpha.Account\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c\x12\x1a/v1alpha/{name=accounts/*}\x12\x94\x01\n\x0cListAccounts\x12\x33.google.analytics.admin.v1alpha.ListAccountsRequest\x1a\x34.google.analytics.admin.v1alpha.ListAccountsResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/v1alpha/accounts\x12\x88\x01\n\rDeleteAccount\x12\x34.google.analytics.admin.v1alpha.DeleteAccountRequest\x1a\x16.google.protobuf.Empty\")\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1c*\x1a/v1alpha/{name=accounts/*}\x12\xb9\x01\n\rUpdateAccount\x12\x34.google.analytics.admin.v1alpha.UpdateAccountRequest\x1a\'.google.analytics.admin.v1alpha.Account\"I\xda\x41\x13\x61\x63\x63ount,update_mask\x82\xd3\xe4\x93\x02-2\"/v1alpha/{account.name=accounts/*}:\x07\x61\x63\x63ount\x12\xcc\x01\n\x16ProvisionAccountTicket\x12=.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest\x1a>.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/accounts:provisionAccountTicket:\x01*\x12\xb4\x01\n\x14ListAccountSummaries\x12;.google.analytics.admin.v1alpha.ListAccountSummariesRequest\x1a<.google.analytics.admin.v1alpha.ListAccountSummariesResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/v1alpha/accountSummaries\x12\x98\x01\n\x0bGetProperty\x12\x32.google.analytics.admin.v1alpha.GetPropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"+\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1alpha/{name=properties/*}\x12\x9c\x01\n\x0eListProperties\x12\x35.google.analytics.admin.v1alpha.ListPropertiesRequest\x1a\x36.google.analytics.admin.v1alpha.ListPropertiesResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/v1alpha/properties\x12\xa3\x01\n\x0e\x43reateProperty\x12\x35.google.analytics.admin.v1alpha.CreatePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"0\xda\x41\x08property\x82\xd3\xe4\x93\x02\x1f\"\x13/v1alpha/properties:\x08property\x12\x9e\x01\n\x0e\x44\x65leteProperty\x12\x35.google.analytics.admin.v1alpha.DeletePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"+\xda\x41\x04name\x82\xd3\xe4\x93\x02\x1e*\x1c/v1alpha/{name=properties/*}\x12\xc1\x01\n\x0eUpdateProperty\x12\x35.google.analytics.admin.v1alpha.UpdatePropertyRequest\x1a(.google.analytics.admin.v1alpha.Property\"N\xda\x41\x14property,update_mask\x82\xd3\xe4\x93\x02\x31\x32%/v1alpha/{property.name=properties/*}:\x08property\x12\xd9\x01\n\x12\x43reateFirebaseLink\x12\x39.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest\x1a,.google.analytics.admin.v1alpha.FirebaseLink\"Z\xda\x41\x14parent,firebase_link\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/firebaseLinks:\rfirebase_link\x12\xa4\x01\n\x12\x44\x65leteFirebaseLink\x12\x39.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/firebaseLinks/*}\x12\xc7\x01\n\x11ListFirebaseLinks\x12\x38.google.analytics.admin.v1alpha.ListFirebaseLinksRequest\x1a\x39.google.analytics.admin.v1alpha.ListFirebaseLinksResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/firebaseLinks\x12\xc3\x01\n\x10GetGlobalSiteTag\x12\x37.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest\x1a-.google.analytics.admin.v1alpha.GlobalSiteTag\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}\x12\xe1\x01\n\x13\x43reateGoogleAdsLink\x12:.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest\x1a-.google.analytics.admin.v1alpha.GoogleAdsLink\"_\xda\x41\x16parent,google_ads_link\x82\xd3\xe4\x93\x02@\"-/v1alpha/{parent=properties/*}/googleAdsLinks:\x0fgoogle_ads_link\x12\xf6\x01\n\x13UpdateGoogleAdsLink\x12:.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest\x1a-.google.analytics.admin.v1alpha.GoogleAdsLink\"t\xda\x41\x1bgoogle_ads_link,update_mask\x82\xd3\xe4\x93\x02P2=/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}:\x0fgoogle_ads_link\x12\xa7\x01\n\x13\x44\x65leteGoogleAdsLink\x12:.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest\x1a\x16.google.protobuf.Empty\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1alpha/{name=properties/*/googleAdsLinks/*}\x12\xcb\x01\n\x12ListGoogleAdsLinks\x12\x39.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest\x1a:.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1alpha/{parent=properties/*}/googleAdsLinks\x12\xcb\x01\n\x16GetDataSharingSettings\x12=.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.DataSharingSettings\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1alpha/{name=accounts/*/dataSharingSettings}\x12\xf6\x01\n\x1cGetMeasurementProtocolSecret\x12\x43.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I\x12G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}\x12\x89\x02\n\x1eListMeasurementProtocolSecrets\x12\x45.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest\x1a\x46.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse\"X\xda\x41\x06parent\x82\xd3\xe4\x93\x02I\x12G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets\x12\xb8\x02\n\x1f\x43reateMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"\x91\x01\xda\x41\"parent,measurement_protocol_secret\x82\xd3\xe4\x93\x02\x66\"G/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets:\x1bmeasurement_protocol_secret\x12\xd9\x01\n\x1f\x44\x65leteMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest\x1a\x16.google.protobuf.Empty\"V\xda\x41\x04name\x82\xd3\xe4\x93\x02I*G/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}\x12\xda\x02\n\x1fUpdateMeasurementProtocolSecret\x12\x46.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest\x1a\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecret\"\xb3\x01\xda\x41\'measurement_protocol_secret,update_mask\x82\xd3\xe4\x93\x02\x82\x01\x32\x63/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}:\x1bmeasurement_protocol_secret\x12\xf7\x01\n\x1d\x41\x63knowledgeUserDataCollection\x12\x44.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest\x1a\x45.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse\"I\x82\xd3\xe4\x93\x02\x43\">/v1alpha/{property=properties/*}:acknowledgeUserDataCollection:\x01*\x12\x91\x02\n#GetSKAdNetworkConversionValueSchema\x12J.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\\\xda\x41\x04name\x82\xd3\xe4\x93\x02O\x12M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}\x12\xe3\x02\n&CreateSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\xa7\x01\xda\x41*parent,skadnetwork_conversion_value_schema\x82\xd3\xe4\x93\x02t\"M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema:#skadnetwork_conversion_value_schema\x12\xed\x01\n&DeleteSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest\x1a\x16.google.protobuf.Empty\"\\\xda\x41\x04name\x82\xd3\xe4\x93\x02O*M/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}\x12\x8d\x03\n&UpdateSKAdNetworkConversionValueSchema\x12M.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest\x1a@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema\"\xd1\x01\xda\x41/skadnetwork_conversion_value_schema,update_mask\x82\xd3\xe4\x93\x02\x98\x01\x32q/v1alpha/{skadnetwork_conversion_value_schema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}:#skadnetwork_conversion_value_schema\x12\xa4\x02\n%ListSKAdNetworkConversionValueSchemas\x12L.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest\x1aM.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse\"^\xda\x41\x06parent\x82\xd3\xe4\x93\x02O\x12M/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema\x12\xe4\x01\n\x19SearchChangeHistoryEvents\x12@.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest\x1a\x41.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1alpha/{account=accounts/*}:searchChangeHistoryEvents:\x01*\x12\xd5\x01\n\x18GetGoogleSignalsSettings\x12?.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.GoogleSignalsSettings\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/{name=properties/*/googleSignalsSettings}\x12\xac\x02\n\x1bUpdateGoogleSignalsSettings\x12\x42.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.GoogleSignalsSettings\"\x91\x01\xda\x41#google_signals_settings,update_mask\x82\xd3\xe4\x93\x02\x65\x32J/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}:\x17google_signals_settings\x12\xee\x01\n\x15\x43reateConversionEvent\x12<.google.analytics.admin.v1alpha.CreateConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"f\x88\x02\x01\xda\x41\x17parent,conversion_event\x82\xd3\xe4\x93\x02\x43\"//v1alpha/{parent=properties/*}/conversionEvents:\x10\x63onversion_event\x12\x84\x02\n\x15UpdateConversionEvent\x12<.google.analytics.admin.v1alpha.UpdateConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"|\x88\x02\x01\xda\x41\x1c\x63onversion_event,update_mask\x82\xd3\xe4\x93\x02T2@/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}:\x10\x63onversion_event\x12\xc3\x01\n\x12GetConversionEvent\x12\x39.google.analytics.admin.v1alpha.GetConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"A\x88\x02\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/conversionEvents/*}\x12\xb0\x01\n\x15\x44\x65leteConversionEvent\x12<.google.analytics.admin.v1alpha.DeleteConversionEventRequest\x1a\x16.google.protobuf.Empty\"A\x88\x02\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1alpha/{name=properties/*/conversionEvents/*}\x12\xd6\x01\n\x14ListConversionEvents\x12;.google.analytics.admin.v1alpha.ListConversionEventsRequest\x1a<.google.analytics.admin.v1alpha.ListConversionEventsResponse\"C\x88\x02\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/conversionEvents\x12\xc1\x01\n\x0e\x43reateKeyEvent\x12\x35.google.analytics.admin.v1alpha.CreateKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"N\xda\x41\x10parent,key_event\x82\xd3\xe4\x93\x02\x35\"(/v1alpha/{parent=properties/*}/keyEvents:\tkey_event\x12\xd0\x01\n\x0eUpdateKeyEvent\x12\x35.google.analytics.admin.v1alpha.UpdateKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"]\xda\x41\x15key_event,update_mask\x82\xd3\xe4\x93\x02?22/v1alpha/{key_event.name=properties/*/keyEvents/*}:\tkey_event\x12\xa4\x01\n\x0bGetKeyEvent\x12\x32.google.analytics.admin.v1alpha.GetKeyEventRequest\x1a(.google.analytics.admin.v1alpha.KeyEvent\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{name=properties/*/keyEvents/*}\x12\x98\x01\n\x0e\x44\x65leteKeyEvent\x12\x35.google.analytics.admin.v1alpha.DeleteKeyEventRequest\x1a\x16.google.protobuf.Empty\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v1alpha/{name=properties/*/keyEvents/*}\x12\xb7\x01\n\rListKeyEvents\x12\x34.google.analytics.admin.v1alpha.ListKeyEventsRequest\x1a\x35.google.analytics.admin.v1alpha.ListKeyEventsResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{parent=properties/*}/keyEvents\x12\xf8\x01\n GetDisplayVideo360AdvertiserLink\x12G.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}\x12\x8b\x02\n\"ListDisplayVideo360AdvertiserLinks\x12I.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest\x1aJ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks\x12\xc6\x02\n#CreateDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\x93\x01\xda\x41(parent,display_video_360_advertiser_link\x82\xd3\xe4\x93\x02\x62\"=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks:!display_video_360_advertiser_link\x12\xd7\x01\n#DeleteDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}\x12\xee\x02\n#UpdateDisplayVideo360AdvertiserLink\x12J.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest\x1a=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\xbb\x01\xda\x41-display_video_360_advertiser_link,update_mask\x82\xd3\xe4\x93\x02\x84\x01\x32_/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}:!display_video_360_advertiser_link\x12\x98\x02\n(GetDisplayVideo360AdvertiserLinkProposal\x12O.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G\x12\x45/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}\x12\xab\x02\n*ListDisplayVideo360AdvertiserLinkProposals\x12Q.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest\x1aR.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse\"V\xda\x41\x06parent\x82\xd3\xe4\x93\x02G\x12\x45/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals\x12\xf8\x02\n+CreateDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"\xad\x01\xda\x41\x31parent,display_video_360_advertiser_link_proposal\x82\xd3\xe4\x93\x02s\"E/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals:*display_video_360_advertiser_link_proposal\x12\xef\x01\n+DeleteDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest\x1a\x16.google.protobuf.Empty\"T\xda\x41\x04name\x82\xd3\xe4\x93\x02G*E/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}\x12\xb3\x02\n,ApproveDisplayVideo360AdvertiserLinkProposal\x12S.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest\x1aT.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse\"X\x82\xd3\xe4\x93\x02R\"M/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve:\x01*\x12\xa1\x02\n+CancelDisplayVideo360AdvertiserLinkProposal\x12R.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest\x1a\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\"W\x82\xd3\xe4\x93\x02Q\"L/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel:\x01*\x12\xeb\x01\n\x15\x43reateCustomDimension\x12<.google.analytics.admin.v1alpha.CreateCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\"c\xda\x41\x17parent,custom_dimension\x82\xd3\xe4\x93\x02\x43\"//v1alpha/{parent=properties/*}/customDimensions:\x10\x63ustom_dimension\x12\x81\x02\n\x15UpdateCustomDimension\x12<.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\"y\xda\x41\x1c\x63ustom_dimension,update_mask\x82\xd3\xe4\x93\x02T2@/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}:\x10\x63ustom_dimension\x12\xd3\x01\n\x14ListCustomDimensions\x12;.google.analytics.admin.v1alpha.ListCustomDimensionsRequest\x1a<.google.analytics.admin.v1alpha.ListCustomDimensionsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/customDimensions\x12\xba\x01\n\x16\x41rchiveCustomDimension\x12=.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest\x1a\x16.google.protobuf.Empty\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\"7/v1alpha/{name=properties/*/customDimensions/*}:archive:\x01*\x12\xc0\x01\n\x12GetCustomDimension\x12\x39.google.analytics.admin.v1alpha.GetCustomDimensionRequest\x1a/.google.analytics.admin.v1alpha.CustomDimension\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/customDimensions/*}\x12\xd9\x01\n\x12\x43reateCustomMetric\x12\x39.google.analytics.admin.v1alpha.CreateCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\"Z\xda\x41\x14parent,custom_metric\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/customMetrics:\rcustom_metric\x12\xec\x01\n\x12UpdateCustomMetric\x12\x39.google.analytics.admin.v1alpha.UpdateCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\"m\xda\x41\x19\x63ustom_metric,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{custom_metric.name=properties/*/customMetrics/*}:\rcustom_metric\x12\xc7\x01\n\x11ListCustomMetrics\x12\x38.google.analytics.admin.v1alpha.ListCustomMetricsRequest\x1a\x39.google.analytics.admin.v1alpha.ListCustomMetricsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/customMetrics\x12\xb1\x01\n\x13\x41rchiveCustomMetric\x12:.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\"4/v1alpha/{name=properties/*/customMetrics/*}:archive:\x01*\x12\xb4\x01\n\x0fGetCustomMetric\x12\x36.google.analytics.admin.v1alpha.GetCustomMetricRequest\x1a,.google.analytics.admin.v1alpha.CustomMetric\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/customMetrics/*}\x12\xd5\x01\n\x18GetDataRetentionSettings\x12?.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRetentionSettings\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1alpha/{name=properties/*/dataRetentionSettings}\x12\xac\x02\n\x1bUpdateDataRetentionSettings\x12\x42.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRetentionSettings\"\x91\x01\xda\x41#data_retention_settings,update_mask\x82\xd3\xe4\x93\x02\x65\x32J/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}:\x17\x64\x61ta_retention_settings\x12\xcd\x01\n\x10\x43reateDataStream\x12\x37.google.analytics.admin.v1alpha.CreateDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"T\xda\x41\x12parent,data_stream\x82\xd3\xe4\x93\x02\x39\"*/v1alpha/{parent=properties/*}/dataStreams:\x0b\x64\x61ta_stream\x12\x9e\x01\n\x10\x44\x65leteDataStream\x12\x37.google.analytics.admin.v1alpha.DeleteDataStreamRequest\x1a\x16.google.protobuf.Empty\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,**/v1alpha/{name=properties/*/dataStreams/*}\x12\xde\x01\n\x10UpdateDataStream\x12\x37.google.analytics.admin.v1alpha.UpdateDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"e\xda\x41\x17\x64\x61ta_stream,update_mask\x82\xd3\xe4\x93\x02\x45\x32\x36/v1alpha/{data_stream.name=properties/*/dataStreams/*}:\x0b\x64\x61ta_stream\x12\xbf\x01\n\x0fListDataStreams\x12\x36.google.analytics.admin.v1alpha.ListDataStreamsRequest\x1a\x37.google.analytics.admin.v1alpha.ListDataStreamsResponse\";\xda\x41\x06parent\x82\xd3\xe4\x93\x02,\x12*/v1alpha/{parent=properties/*}/dataStreams\x12\xac\x01\n\rGetDataStream\x12\x34.google.analytics.admin.v1alpha.GetDataStreamRequest\x1a*.google.analytics.admin.v1alpha.DataStream\"9\xda\x41\x04name\x82\xd3\xe4\x93\x02,\x12*/v1alpha/{name=properties/*/dataStreams/*}\x12\xa4\x01\n\x0bGetAudience\x12\x32.google.analytics.admin.v1alpha.GetAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{name=properties/*/audiences/*}\x12\xb7\x01\n\rListAudiences\x12\x34.google.analytics.admin.v1alpha.ListAudiencesRequest\x1a\x35.google.analytics.admin.v1alpha.ListAudiencesResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/v1alpha/{parent=properties/*}/audiences\x12\xbf\x01\n\x0e\x43reateAudience\x12\x35.google.analytics.admin.v1alpha.CreateAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"L\xda\x41\x0fparent,audience\x82\xd3\xe4\x93\x02\x34\"(/v1alpha/{parent=properties/*}/audiences:\x08\x61udience\x12\xcd\x01\n\x0eUpdateAudience\x12\x35.google.analytics.admin.v1alpha.UpdateAudienceRequest\x1a(.google.analytics.admin.v1alpha.Audience\"Z\xda\x41\x14\x61udience,update_mask\x82\xd3\xe4\x93\x02=21/v1alpha/{audience.name=properties/*/audiences/*}:\x08\x61udience\x12\x9e\x01\n\x0f\x41rchiveAudience\x12\x36.google.analytics.admin.v1alpha.ArchiveAudienceRequest\x1a\x16.google.protobuf.Empty\";\x82\xd3\xe4\x93\x02\x35\"0/v1alpha/{name=properties/*/audiences/*}:archive:\x01*\x12\xc4\x01\n\x13GetSearchAds360Link\x12:.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/searchAds360Links/*}\x12\xd7\x01\n\x15ListSearchAds360Links\x12<.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest\x1a=.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{parent=properties/*}/searchAds360Links\x12\xf5\x01\n\x16\x43reateSearchAds360Link\x12=.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"j\xda\x41\x1aparent,search_ads_360_link\x82\xd3\xe4\x93\x02G\"0/v1alpha/{parent=properties/*}/searchAds360Links:\x13search_ads_360_link\x12\xb0\x01\n\x16\x44\x65leteSearchAds360Link\x12=.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1alpha/{name=properties/*/searchAds360Links/*}\x12\x8f\x02\n\x16UpdateSearchAds360Link\x12=.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest\x1a\x30.google.analytics.admin.v1alpha.SearchAds360Link\"\x83\x01\xda\x41\x1fsearch_ads_360_link,update_mask\x82\xd3\xe4\x93\x02[2D/v1alpha/{search_ads_360_link.name=properties/*/searchAds360Links/*}:\x13search_ads_360_link\x12\xcd\x01\n\x16GetAttributionSettings\x12=.google.analytics.admin.v1alpha.GetAttributionSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.AttributionSettings\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/attributionSettings}\x12\x9b\x02\n\x19UpdateAttributionSettings\x12@.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest\x1a\x33.google.analytics.admin.v1alpha.AttributionSettings\"\x86\x01\xda\x41 attribution_settings,update_mask\x82\xd3\xe4\x93\x02]2E/v1alpha/{attribution_settings.name=properties/*/attributionSettings}:\x14\x61ttribution_settings\x12\xf0\x01\n\x0fRunAccessReport\x12\x36.google.analytics.admin.v1alpha.RunAccessReportRequest\x1a\x37.google.analytics.admin.v1alpha.RunAccessReportResponse\"l\x82\xd3\xe4\x93\x02\x66\"./v1alpha/{entity=properties/*}:runAccessReport:\x01*Z1\",/v1alpha/{entity=accounts/*}:runAccessReport:\x01*\x12\x9f\x02\n\x13\x43reateAccessBinding\x12:.google.analytics.admin.v1alpha.CreateAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"\x9c\x01\xda\x41\x15parent,access_binding\x82\xd3\xe4\x93\x02~\"+/v1alpha/{parent=accounts/*}/accessBindings:\x0e\x61\x63\x63\x65ss_bindingZ?\"-/v1alpha/{parent=properties/*}/accessBindings:\x0e\x61\x63\x63\x65ss_binding\x12\xe7\x01\n\x10GetAccessBinding\x12\x37.google.analytics.admin.v1alpha.GetAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"k\xda\x41\x04name\x82\xd3\xe4\x93\x02^\x12+/v1alpha/{name=accounts/*/accessBindings/*}Z/\x12-/v1alpha/{name=properties/*/accessBindings/*}\x12\xb7\x02\n\x13UpdateAccessBinding\x12:.google.analytics.admin.v1alpha.UpdateAccessBindingRequest\x1a-.google.analytics.admin.v1alpha.AccessBinding\"\xb4\x01\xda\x41\x0e\x61\x63\x63\x65ss_binding\x82\xd3\xe4\x93\x02\x9c\x01\x32:/v1alpha/{access_binding.name=accounts/*/accessBindings/*}:\x0e\x61\x63\x63\x65ss_bindingZN2\"9/v1alpha/{parent=properties/*}/accessBindings:batchCreate:\x01*\x12\x8f\x02\n\x16\x42\x61tchGetAccessBindings\x12=.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest\x1a>.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse\"v\x82\xd3\xe4\x93\x02p\x12\x34/v1alpha/{parent=accounts/*}/accessBindings:batchGetZ8\x12\x36/v1alpha/{parent=properties/*}/accessBindings:batchGet\x12\xa5\x02\n\x19\x42\x61tchUpdateAccessBindings\x12@.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest\x1a\x41.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse\"\x82\x01\x82\xd3\xe4\x93\x02|\"7/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate:\x01*Z>\"9/v1alpha/{parent=properties/*}/accessBindings:batchUpdate:\x01*\x12\xfa\x01\n\x19\x42\x61tchDeleteAccessBindings\x12@.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest\x1a\x16.google.protobuf.Empty\"\x82\x01\x82\xd3\xe4\x93\x02|\"7/v1alpha/{parent=accounts/*}/accessBindings:batchDelete:\x01*Z>\"9/v1alpha/{parent=properties/*}/accessBindings:batchDelete:\x01*\x12\xc0\x01\n\x12GetExpandedDataSet\x12\x39.google.analytics.admin.v1alpha.GetExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/expandedDataSets/*}\x12\xd3\x01\n\x14ListExpandedDataSets\x12;.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest\x1a<.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/expandedDataSets\x12\xed\x01\n\x15\x43reateExpandedDataSet\x12<.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\"e\xda\x41\x18parent,expanded_data_set\x82\xd3\xe4\x93\x02\x44\"//v1alpha/{parent=properties/*}/expandedDataSets:\x11\x65xpanded_data_set\x12\x84\x02\n\x15UpdateExpandedDataSet\x12<.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest\x1a/.google.analytics.admin.v1alpha.ExpandedDataSet\"|\xda\x41\x1d\x65xpanded_data_set,update_mask\x82\xd3\xe4\x93\x02V2A/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}:\x11\x65xpanded_data_set\x12\xad\x01\n\x15\x44\x65leteExpandedDataSet\x12<.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1alpha/{name=properties/*/expandedDataSets/*}\x12\xb4\x01\n\x0fGetChannelGroup\x12\x36.google.analytics.admin.v1alpha.GetChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/channelGroups/*}\x12\xc7\x01\n\x11ListChannelGroups\x12\x38.google.analytics.admin.v1alpha.ListChannelGroupsRequest\x1a\x39.google.analytics.admin.v1alpha.ListChannelGroupsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/channelGroups\x12\xd9\x01\n\x12\x43reateChannelGroup\x12\x39.google.analytics.admin.v1alpha.CreateChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\"Z\xda\x41\x14parent,channel_group\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/channelGroups:\rchannel_group\x12\xec\x01\n\x12UpdateChannelGroup\x12\x39.google.analytics.admin.v1alpha.UpdateChannelGroupRequest\x1a,.google.analytics.admin.v1alpha.ChannelGroup\"m\xda\x41\x19\x63hannel_group,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{channel_group.name=properties/*/channelGroups/*}:\rchannel_group\x12\xa4\x01\n\x12\x44\x65leteChannelGroup\x12\x39.google.analytics.admin.v1alpha.DeleteChannelGroupRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/channelGroups/*}\x12\xd9\x01\n\x12\x43reateBigQueryLink\x12\x39.google.analytics.admin.v1alpha.CreateBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\"Z\xda\x41\x14parent,bigquery_link\x82\xd3\xe4\x93\x02=\",/v1alpha/{parent=properties/*}/bigQueryLinks:\rbigquery_link\x12\xb4\x01\n\x0fGetBigQueryLink\x12\x36.google.analytics.admin.v1alpha.GetBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{name=properties/*/bigQueryLinks/*}\x12\xc7\x01\n\x11ListBigQueryLinks\x12\x38.google.analytics.admin.v1alpha.ListBigQueryLinksRequest\x1a\x39.google.analytics.admin.v1alpha.ListBigQueryLinksResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1alpha/{parent=properties/*}/bigQueryLinks\x12\xa4\x01\n\x12\x44\x65leteBigQueryLink\x12\x39.google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1alpha/{name=properties/*/bigQueryLinks/*}\x12\xec\x01\n\x12UpdateBigQueryLink\x12\x39.google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest\x1a,.google.analytics.admin.v1alpha.BigQueryLink\"m\xda\x41\x19\x62igquery_link,update_mask\x82\xd3\xe4\x93\x02K2:/v1alpha/{bigquery_link.name=properties/*/bigQueryLinks/*}:\rbigquery_link\x12\xfb\x01\n\x1eGetEnhancedMeasurementSettings\x12\x45.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest\x1a;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H\x12\x46/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}\x12\xe5\x02\n!UpdateEnhancedMeasurementSettings\x12H.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest\x1a;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings\"\xb8\x01\xda\x41)enhanced_measurement_settings,update_mask\x82\xd3\xe4\x93\x02\x85\x01\x32\x64/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}:\x1d\x65nhanced_measurement_settings\x12\xb0\x01\n\x0eGetAdSenseLink\x12\x35.google.analytics.admin.v1alpha.GetAdSenseLinkRequest\x1a+.google.analytics.admin.v1alpha.AdSenseLink\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1alpha/{name=properties/*/adSenseLinks/*}\x12\xd3\x01\n\x11\x43reateAdSenseLink\x12\x38.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest\x1a+.google.analytics.admin.v1alpha.AdSenseLink\"W\xda\x41\x13parent,adsense_link\x82\xd3\xe4\x93\x02;\"+/v1alpha/{parent=properties/*}/adSenseLinks:\x0c\x61\x64sense_link\x12\xa1\x01\n\x11\x44\x65leteAdSenseLink\x12\x38.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1alpha/{name=properties/*/adSenseLinks/*}\x12\xc3\x01\n\x10ListAdSenseLinks\x12\x37.google.analytics.admin.v1alpha.ListAdSenseLinksRequest\x1a\x38.google.analytics.admin.v1alpha.ListAdSenseLinksResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1alpha/{parent=properties/*}/adSenseLinks\x12\xce\x01\n\x12GetEventCreateRule\x12\x39.google.analytics.admin.v1alpha.GetEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}\x12\xe1\x01\n\x14ListEventCreateRules\x12;.google.analytics.admin.v1alpha.ListEventCreateRulesRequest\x1a<.google.analytics.admin.v1alpha.ListEventCreateRulesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules\x12\xfb\x01\n\x15\x43reateEventCreateRule\x12<.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"s\xda\x41\x18parent,event_create_rule\x82\xd3\xe4\x93\x02R\"=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules:\x11\x65vent_create_rule\x12\x93\x02\n\x15UpdateEventCreateRule\x12<.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest\x1a/.google.analytics.admin.v1alpha.EventCreateRule\"\x8a\x01\xda\x41\x1d\x65vent_create_rule,update_mask\x82\xd3\xe4\x93\x02\x64\x32O/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}:\x11\x65vent_create_rule\x12\xbb\x01\n\x15\x44\x65leteEventCreateRule\x12<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest\x1a\x16.google.protobuf.Empty\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}\x12\xc6\x01\n\x10GetEventEditRule\x12\x37.google.analytics.admin.v1alpha.GetEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=\x12;/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}\x12\xd9\x01\n\x12ListEventEditRules\x12\x39.google.analytics.admin.v1alpha.ListEventEditRulesRequest\x1a:.google.analytics.admin.v1alpha.ListEventEditRulesResponse\"L\xda\x41\x06parent\x82\xd3\xe4\x93\x02=\x12;/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules\x12\xef\x01\n\x13\x43reateEventEditRule\x12:.google.analytics.admin.v1alpha.CreateEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"m\xda\x41\x16parent,event_edit_rule\x82\xd3\xe4\x93\x02N\";/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:\x0f\x65vent_edit_rule\x12\x85\x02\n\x13UpdateEventEditRule\x12:.google.analytics.admin.v1alpha.UpdateEventEditRuleRequest\x1a-.google.analytics.admin.v1alpha.EventEditRule\"\x82\x01\xda\x41\x1b\x65vent_edit_rule,update_mask\x82\xd3\xe4\x93\x02^2K/v1alpha/{event_edit_rule.name=properties/*/dataStreams/*/eventEditRules/*}:\x0f\x65vent_edit_rule\x12\xb5\x01\n\x13\x44\x65leteEventEditRule\x12:.google.analytics.admin.v1alpha.DeleteEventEditRuleRequest\x1a\x16.google.protobuf.Empty\"J\xda\x41\x04name\x82\xd3\xe4\x93\x02=*;/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}\x12\xbd\x01\n\x15ReorderEventEditRules\x12<.google.analytics.admin.v1alpha.ReorderEventEditRulesRequest\x1a\x16.google.protobuf.Empty\"N\x82\xd3\xe4\x93\x02H\"C/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:reorder:\x01*\x12\xba\x02\n\x1bUpdateDataRedactionSettings\x12\x42.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRedactionSettings\"\x9f\x01\xda\x41#data_redaction_settings,update_mask\x82\xd3\xe4\x93\x02s2X/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}:\x17\x64\x61ta_redaction_settings\x12\xe3\x01\n\x18GetDataRedactionSettings\x12?.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest\x1a\x35.google.analytics.admin.v1alpha.DataRedactionSettings\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}\x12\xc4\x01\n\x13GetCalculatedMetric\x12:.google.analytics.admin.v1alpha.GetCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{name=properties/*/calculatedMetrics/*}\x12\x86\x02\n\x16\x43reateCalculatedMetric\x12=.google.analytics.admin.v1alpha.CreateCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"{\xda\x41-parent,calculated_metric,calculated_metric_id\x82\xd3\xe4\x93\x02\x45\"0/v1alpha/{parent=properties/*}/calculatedMetrics:\x11\x63\x61lculated_metric\x12\xd7\x01\n\x15ListCalculatedMetrics\x12<.google.analytics.admin.v1alpha.ListCalculatedMetricsRequest\x1a=.google.analytics.admin.v1alpha.ListCalculatedMetricsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1alpha/{parent=properties/*}/calculatedMetrics\x12\x88\x02\n\x16UpdateCalculatedMetric\x12=.google.analytics.admin.v1alpha.UpdateCalculatedMetricRequest\x1a\x30.google.analytics.admin.v1alpha.CalculatedMetric\"}\xda\x41\x1d\x63\x61lculated_metric,update_mask\x82\xd3\xe4\x93\x02W2B/v1alpha/{calculated_metric.name=properties/*/calculatedMetrics/*}:\x11\x63\x61lculated_metric\x12\xb0\x01\n\x16\x44\x65leteCalculatedMetric\x12=.google.analytics.admin.v1alpha.DeleteCalculatedMetricRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1alpha/{name=properties/*/calculatedMetrics/*}\x12\xc6\x01\n\x14\x43reateRollupProperty\x12;.google.analytics.admin.v1alpha.CreateRollupPropertyRequest\x1a<.google.analytics.admin.v1alpha.CreateRollupPropertyResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/properties:createRollupProperty:\x01*\x12\xe4\x01\n\x1bGetRollupPropertySourceLink\x12\x42.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest\x1a\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}\x12\xf7\x01\n\x1dListRollupPropertySourceLinks\x12\x44.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest\x1a\x45.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1alpha/{parent=properties/*}/rollupPropertySourceLinks\x12\xa6\x02\n\x1e\x43reateRollupPropertySourceLink\x12\x45.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest\x1a\x38.google.analytics.admin.v1alpha.RollupPropertySourceLink\"\x82\x01\xda\x41\"parent,rollup_property_source_link\x82\xd3\xe4\x93\x02W\"8/v1alpha/{parent=properties/*}/rollupPropertySourceLinks:\x1brollup_property_source_link\x12\xc8\x01\n\x1e\x44\x65leteRollupPropertySourceLink\x12\x45.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest\x1a\x16.google.protobuf.Empty\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}\x12\xc6\x01\n\x14ProvisionSubproperty\x12;.google.analytics.admin.v1alpha.ProvisionSubpropertyRequest\x1a<.google.analytics.admin.v1alpha.ProvisionSubpropertyResponse\"3\x82\xd3\xe4\x93\x02-\"(/v1alpha/properties:provisionSubproperty:\x01*\x12\x97\x02\n\x1c\x43reateSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"z\xda\x41\x1fparent,subproperty_event_filter\x82\xd3\xe4\x93\x02R\"6/v1alpha/{parent=properties/*}/subpropertyEventFilters:\x18subproperty_event_filter\x12\xdc\x01\n\x19GetSubpropertyEventFilter\x12@.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{name=properties/*/subpropertyEventFilters/*}\x12\xef\x01\n\x1bListSubpropertyEventFilters\x12\x42.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest\x1a\x43.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{parent=properties/*}/subpropertyEventFilters\x12\xb6\x02\n\x1cUpdateSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest\x1a\x36.google.analytics.admin.v1alpha.SubpropertyEventFilter\"\x98\x01\xda\x41$subproperty_event_filter,update_mask\x82\xd3\xe4\x93\x02k2O/v1alpha/{subproperty_event_filter.name=properties/*/subpropertyEventFilters/*}:\x18subproperty_event_filter\x12\xc2\x01\n\x1c\x44\x65leteSubpropertyEventFilter\x12\x43.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest\x1a\x16.google.protobuf.Empty\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38*6/v1alpha/{name=properties/*/subpropertyEventFilters/*}\x12\x9d\x02\n\x1d\x43reateReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.CreateReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"}\xda\x41 parent,reporting_data_annotation\x82\xd3\xe4\x93\x02T\"7/v1alpha/{parent=properties/*}/reportingDataAnnotations:\x19reporting_data_annotation\x12\xe0\x01\n\x1aGetReportingDataAnnotation\x12\x41.google.analytics.admin.v1alpha.GetReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1alpha/{name=properties/*/reportingDataAnnotations/*}\x12\xf3\x01\n\x1cListReportingDataAnnotations\x12\x43.google.analytics.admin.v1alpha.ListReportingDataAnnotationsRequest\x1a\x44.google.analytics.admin.v1alpha.ListReportingDataAnnotationsResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1alpha/{parent=properties/*}/reportingDataAnnotations\x12\xbd\x02\n\x1dUpdateReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest\x1a\x37.google.analytics.admin.v1alpha.ReportingDataAnnotation\"\x9c\x01\xda\x41%reporting_data_annotation,update_mask\x82\xd3\xe4\x93\x02n2Q/v1alpha/{reporting_data_annotation.name=properties/*/reportingDataAnnotations/*}:\x19reporting_data_annotation\x12\xc5\x01\n\x1d\x44\x65leteReportingDataAnnotation\x12\x44.google.analytics.admin.v1alpha.DeleteReportingDataAnnotationRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1alpha/{name=properties/*/reportingDataAnnotations/*}\x12\xce\x01\n\x12SubmitUserDeletion\x12\x39.google.analytics.admin.v1alpha.SubmitUserDeletionRequest\x1a:.google.analytics.admin.v1alpha.SubmitUserDeletionResponse\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\"//v1alpha/{name=properties/*}:submitUserDeletion:\x01*\x12\xeb\x01\n\x1aListSubpropertySyncConfigs\x12\x41.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsRequest\x1a\x42.google.analytics.admin.v1alpha.ListSubpropertySyncConfigsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{parent=properties/*}/subpropertySyncConfigs\x12\xaf\x02\n\x1bUpdateSubpropertySyncConfig\x12\x42.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest\x1a\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\"\x94\x01\xda\x41#subproperty_sync_config,update_mask\x82\xd3\xe4\x93\x02h2M/v1alpha/{subproperty_sync_config.name=properties/*/subpropertySyncConfigs/*}:\x17subproperty_sync_config\x12\xd8\x01\n\x18GetSubpropertySyncConfig\x12?.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest\x1a\x35.google.analytics.admin.v1alpha.SubpropertySyncConfig\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{name=properties/*/subpropertySyncConfigs/*}\x12\xe5\x01\n\x1cGetReportingIdentitySettings\x12\x43.google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest\x1a\x39.google.analytics.admin.v1alpha.ReportingIdentitySettings\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1alpha/{name=properties/*/reportingIdentitySettings}\x12\xc8\x02\n\x1fUpdateReportingIdentitySettings\x12\x46.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest\x1a\x39.google.analytics.admin.v1alpha.ReportingIdentitySettings\"\xa1\x01\xda\x41\'reporting_identity_settings,update_mask\x82\xd3\xe4\x93\x02q2R/v1alpha/{reporting_identity_settings.name=properties/*/reportingIdentitySettings}:\x1breporting_identity_settings\x12\xe1\x01\n\x1bGetUserProvidedDataSettings\x12\x42.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest\x1a\x38.google.analytics.admin.v1alpha.UserProvidedDataSettings\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1alpha/{name=properties/*/userProvidedDataSettings}\x1a\xfc\x01\xca\x41\x1d\x61nalyticsadmin.googleapis.com\xd2\x41\xd8\x01https://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB{\n\"com.google.analytics.admin.v1alphaB\x13\x41nalyticsAdminProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Analytics - module Admin - module V1alpha - RunAccessReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.RunAccessReportRequest").msgclass - RunAccessReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.RunAccessReportResponse").msgclass - GetAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAccountRequest").msgclass - ListAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountsRequest").msgclass - ListAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountsResponse").msgclass - DeleteAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteAccountRequest").msgclass - UpdateAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateAccountRequest").msgclass - ProvisionAccountTicketRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ProvisionAccountTicketRequest").msgclass - ProvisionAccountTicketResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ProvisionAccountTicketResponse").msgclass - GetPropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetPropertyRequest").msgclass - ListPropertiesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListPropertiesRequest").msgclass - ListPropertiesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListPropertiesResponse").msgclass - UpdatePropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdatePropertyRequest").msgclass - CreatePropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreatePropertyRequest").msgclass - DeletePropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeletePropertyRequest").msgclass - CreateFirebaseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateFirebaseLinkRequest").msgclass - DeleteFirebaseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest").msgclass - ListFirebaseLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListFirebaseLinksRequest").msgclass - ListFirebaseLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListFirebaseLinksResponse").msgclass - GetGlobalSiteTagRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetGlobalSiteTagRequest").msgclass - CreateGoogleAdsLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest").msgclass - UpdateGoogleAdsLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest").msgclass - DeleteGoogleAdsLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest").msgclass - ListGoogleAdsLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest").msgclass - ListGoogleAdsLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse").msgclass - GetDataSharingSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataSharingSettingsRequest").msgclass - ListAccountSummariesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountSummariesRequest").msgclass - ListAccountSummariesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountSummariesResponse").msgclass - AcknowledgeUserDataCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest").msgclass - AcknowledgeUserDataCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse").msgclass - SearchChangeHistoryEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest").msgclass - SearchChangeHistoryEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse").msgclass - GetMeasurementProtocolSecretRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest").msgclass - CreateMeasurementProtocolSecretRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest").msgclass - DeleteMeasurementProtocolSecretRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest").msgclass - UpdateMeasurementProtocolSecretRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest").msgclass - ListMeasurementProtocolSecretsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest").msgclass - ListMeasurementProtocolSecretsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse").msgclass - GetSKAdNetworkConversionValueSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest").msgclass - CreateSKAdNetworkConversionValueSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest").msgclass - DeleteSKAdNetworkConversionValueSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest").msgclass - UpdateSKAdNetworkConversionValueSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest").msgclass - ListSKAdNetworkConversionValueSchemasRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest").msgclass - ListSKAdNetworkConversionValueSchemasResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse").msgclass - GetGoogleSignalsSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest").msgclass - UpdateGoogleSignalsSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest").msgclass - CreateConversionEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateConversionEventRequest").msgclass - UpdateConversionEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateConversionEventRequest").msgclass - GetConversionEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetConversionEventRequest").msgclass - DeleteConversionEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteConversionEventRequest").msgclass - ListConversionEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListConversionEventsRequest").msgclass - ListConversionEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListConversionEventsResponse").msgclass - CreateKeyEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateKeyEventRequest").msgclass - UpdateKeyEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateKeyEventRequest").msgclass - GetKeyEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetKeyEventRequest").msgclass - DeleteKeyEventRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteKeyEventRequest").msgclass - ListKeyEventsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListKeyEventsRequest").msgclass - ListKeyEventsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListKeyEventsResponse").msgclass - GetDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest").msgclass - ListDisplayVideo360AdvertiserLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest").msgclass - ListDisplayVideo360AdvertiserLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse").msgclass - CreateDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest").msgclass - DeleteDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest").msgclass - UpdateDisplayVideo360AdvertiserLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest").msgclass - GetDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest").msgclass - ListDisplayVideo360AdvertiserLinkProposalsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest").msgclass - ListDisplayVideo360AdvertiserLinkProposalsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse").msgclass - CreateDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest").msgclass - DeleteDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest").msgclass - ApproveDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest").msgclass - ApproveDisplayVideo360AdvertiserLinkProposalResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse").msgclass - CancelDisplayVideo360AdvertiserLinkProposalRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest").msgclass - GetSearchAds360LinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetSearchAds360LinkRequest").msgclass - ListSearchAds360LinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSearchAds360LinksRequest").msgclass - ListSearchAds360LinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSearchAds360LinksResponse").msgclass - CreateSearchAds360LinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest").msgclass - DeleteSearchAds360LinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest").msgclass - UpdateSearchAds360LinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest").msgclass - CreateCustomDimensionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateCustomDimensionRequest").msgclass - UpdateCustomDimensionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateCustomDimensionRequest").msgclass - ListCustomDimensionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCustomDimensionsRequest").msgclass - ListCustomDimensionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCustomDimensionsResponse").msgclass - ArchiveCustomDimensionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest").msgclass - GetCustomDimensionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetCustomDimensionRequest").msgclass - CreateCustomMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateCustomMetricRequest").msgclass - UpdateCustomMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateCustomMetricRequest").msgclass - ListCustomMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCustomMetricsRequest").msgclass - ListCustomMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCustomMetricsResponse").msgclass - ArchiveCustomMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ArchiveCustomMetricRequest").msgclass - GetCustomMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetCustomMetricRequest").msgclass - CreateCalculatedMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateCalculatedMetricRequest").msgclass - UpdateCalculatedMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateCalculatedMetricRequest").msgclass - DeleteCalculatedMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteCalculatedMetricRequest").msgclass - ListCalculatedMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCalculatedMetricsRequest").msgclass - ListCalculatedMetricsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListCalculatedMetricsResponse").msgclass - GetCalculatedMetricRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetCalculatedMetricRequest").msgclass - GetDataRetentionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest").msgclass - UpdateDataRetentionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest").msgclass - CreateDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateDataStreamRequest").msgclass - DeleteDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteDataStreamRequest").msgclass - UpdateDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateDataStreamRequest").msgclass - ListDataStreamsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDataStreamsRequest").msgclass - ListDataStreamsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListDataStreamsResponse").msgclass - GetDataStreamRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataStreamRequest").msgclass - GetAudienceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAudienceRequest").msgclass - ListAudiencesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAudiencesRequest").msgclass - ListAudiencesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAudiencesResponse").msgclass - CreateAudienceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateAudienceRequest").msgclass - UpdateAudienceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateAudienceRequest").msgclass - ArchiveAudienceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ArchiveAudienceRequest").msgclass - GetAttributionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAttributionSettingsRequest").msgclass - UpdateAttributionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest").msgclass - GetAccessBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAccessBindingRequest").msgclass - BatchGetAccessBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest").msgclass - BatchGetAccessBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse").msgclass - ListAccessBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccessBindingsRequest").msgclass - ListAccessBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccessBindingsResponse").msgclass - CreateAccessBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateAccessBindingRequest").msgclass - BatchCreateAccessBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest").msgclass - BatchCreateAccessBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse").msgclass - UpdateAccessBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateAccessBindingRequest").msgclass - BatchUpdateAccessBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest").msgclass - BatchUpdateAccessBindingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse").msgclass - DeleteAccessBindingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteAccessBindingRequest").msgclass - BatchDeleteAccessBindingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest").msgclass - CreateExpandedDataSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateExpandedDataSetRequest").msgclass - UpdateExpandedDataSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest").msgclass - DeleteExpandedDataSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest").msgclass - GetExpandedDataSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetExpandedDataSetRequest").msgclass - ListExpandedDataSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListExpandedDataSetsRequest").msgclass - ListExpandedDataSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListExpandedDataSetsResponse").msgclass - CreateChannelGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateChannelGroupRequest").msgclass - UpdateChannelGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateChannelGroupRequest").msgclass - DeleteChannelGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteChannelGroupRequest").msgclass - GetChannelGroupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetChannelGroupRequest").msgclass - ListChannelGroupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListChannelGroupsRequest").msgclass - ListChannelGroupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListChannelGroupsResponse").msgclass - CreateBigQueryLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateBigQueryLinkRequest").msgclass - GetBigQueryLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetBigQueryLinkRequest").msgclass - ListBigQueryLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListBigQueryLinksRequest").msgclass - ListBigQueryLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListBigQueryLinksResponse").msgclass - UpdateBigQueryLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest").msgclass - DeleteBigQueryLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest").msgclass - GetEnhancedMeasurementSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest").msgclass - UpdateEnhancedMeasurementSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest").msgclass - GetDataRedactionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest").msgclass - UpdateDataRedactionSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest").msgclass - CreateAdSenseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateAdSenseLinkRequest").msgclass - GetAdSenseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetAdSenseLinkRequest").msgclass - DeleteAdSenseLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest").msgclass - ListAdSenseLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAdSenseLinksRequest").msgclass - ListAdSenseLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAdSenseLinksResponse").msgclass - CreateEventCreateRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateEventCreateRuleRequest").msgclass - UpdateEventCreateRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest").msgclass - DeleteEventCreateRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest").msgclass - GetEventCreateRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetEventCreateRuleRequest").msgclass - ListEventCreateRulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListEventCreateRulesRequest").msgclass - ListEventCreateRulesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListEventCreateRulesResponse").msgclass - CreateEventEditRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateEventEditRuleRequest").msgclass - UpdateEventEditRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateEventEditRuleRequest").msgclass - DeleteEventEditRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteEventEditRuleRequest").msgclass - GetEventEditRuleRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetEventEditRuleRequest").msgclass - ListEventEditRulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListEventEditRulesRequest").msgclass - ListEventEditRulesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListEventEditRulesResponse").msgclass - ReorderEventEditRulesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReorderEventEditRulesRequest").msgclass - CreateRollupPropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateRollupPropertyRequest").msgclass - CreateRollupPropertyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateRollupPropertyResponse").msgclass - GetRollupPropertySourceLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest").msgclass - ListRollupPropertySourceLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest").msgclass - ListRollupPropertySourceLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse").msgclass - CreateRollupPropertySourceLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest").msgclass - DeleteRollupPropertySourceLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest").msgclass - ProvisionSubpropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ProvisionSubpropertyRequest").msgclass - ProvisionSubpropertyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ProvisionSubpropertyResponse").msgclass - CreateSubpropertyEventFilterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest").msgclass - GetSubpropertyEventFilterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest").msgclass - ListSubpropertyEventFiltersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest").msgclass - ListSubpropertyEventFiltersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse").msgclass - UpdateSubpropertyEventFilterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest").msgclass - DeleteSubpropertyEventFilterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest").msgclass - CreateReportingDataAnnotationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateReportingDataAnnotationRequest").msgclass - GetReportingDataAnnotationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetReportingDataAnnotationRequest").msgclass - ListReportingDataAnnotationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListReportingDataAnnotationsRequest").msgclass - ListReportingDataAnnotationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListReportingDataAnnotationsResponse").msgclass - UpdateReportingDataAnnotationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest").msgclass - DeleteReportingDataAnnotationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DeleteReportingDataAnnotationRequest").msgclass - SubmitUserDeletionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubmitUserDeletionRequest").msgclass - SubmitUserDeletionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubmitUserDeletionResponse").msgclass - GetSubpropertySyncConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest").msgclass - ListSubpropertySyncConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSubpropertySyncConfigsRequest").msgclass - ListSubpropertySyncConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListSubpropertySyncConfigsResponse").msgclass - UpdateSubpropertySyncConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest").msgclass - GetReportingIdentitySettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest").msgclass - UpdateReportingIdentitySettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest").msgclass - GetUserProvidedDataSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service.rb deleted file mode 100644 index 110e6921b5d8..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/analytics/admin/v1alpha/version" - -require "google/analytics/admin/v1alpha/analytics_admin_service/credentials" -require "google/analytics/admin/v1alpha/analytics_admin_service/paths" -require "google/analytics/admin/v1alpha/analytics_admin_service/client" -require "google/analytics/admin/v1alpha/analytics_admin_service/rest" - -module Google - module Analytics - module Admin - module V1alpha - ## - # Service Interface for the Google Analytics Admin API. - # - # @example Load this service and instantiate a gRPC client - # - # require "google/analytics/admin/v1alpha/analytics_admin_service" - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/analytics/admin/v1alpha/analytics_admin_service/rest" - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - module AnalyticsAdminService - end - end - end - end -end - -helper_path = ::File.join __dir__, "analytics_admin_service", "helpers.rb" -require "google/analytics/admin/v1alpha/analytics_admin_service/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb deleted file mode 100644 index 5e925cdff394..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +++ /dev/null @@ -1,15919 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/analytics/admin/v1alpha/analytics_admin_pb" - -module Google - module Analytics - module Admin - module V1alpha - module AnalyticsAdminService - ## - # Client for the AnalyticsAdminService service. - # - # Service Interface for the Google Analytics Admin API. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "analyticsadmin.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :analytics_admin_service_stub - - ## - # Configure the AnalyticsAdminService Client class. - # - # See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AnalyticsAdminService clients - # ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Analytics", "Admin", "V1alpha"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - default_config.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2] - } - - default_config.rpcs.get_account.timeout = 60.0 - - default_config.rpcs.list_accounts.timeout = 60.0 - - default_config.rpcs.delete_account.timeout = 60.0 - - default_config.rpcs.update_account.timeout = 60.0 - - default_config.rpcs.provision_account_ticket.timeout = 60.0 - - default_config.rpcs.get_property.timeout = 60.0 - - default_config.rpcs.list_properties.timeout = 60.0 - - default_config.rpcs.create_property.timeout = 60.0 - - default_config.rpcs.delete_property.timeout = 60.0 - - default_config.rpcs.update_property.timeout = 60.0 - - default_config.rpcs.create_firebase_link.timeout = 60.0 - - default_config.rpcs.delete_firebase_link.timeout = 60.0 - - default_config.rpcs.list_firebase_links.timeout = 60.0 - - default_config.rpcs.get_global_site_tag.timeout = 60.0 - - default_config.rpcs.create_google_ads_link.timeout = 60.0 - - default_config.rpcs.update_google_ads_link.timeout = 60.0 - - default_config.rpcs.delete_google_ads_link.timeout = 60.0 - - default_config.rpcs.list_google_ads_links.timeout = 60.0 - - default_config.rpcs.get_enhanced_measurement_settings.timeout = 60.0 - - default_config.rpcs.update_enhanced_measurement_settings.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AnalyticsAdminService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @analytics_admin_service_stub.universe_domain - end - - ## - # Create a new AnalyticsAdminService client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AnalyticsAdminService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/analytics/admin/v1alpha/analytics_admin_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @analytics_admin_service_stub = ::Gapic::ServiceStub.new( - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @analytics_admin_service_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @analytics_admin_service_stub.logger - end - - # Service calls - - ## - # Lookup for a single Account. - # - # @overload get_account(request, options = nil) - # Pass arguments to `get_account` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetAccountRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetAccountRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_account(name: nil) - # Pass arguments to `get_account` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the account to lookup. - # Format: accounts/\\{account} - # Example: "accounts/100" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::Account] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::Account] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetAccountRequest.new - # - # # Call the get_account method. - # result = client.get_account request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Account. - # p result - # - def get_account request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAccountRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_account.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_account.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_account.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_account, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns all accounts accessible by the caller. - # - # Note that these accounts might not currently have GA properties. - # Soft-deleted (ie: "trashed") accounts are excluded by default. - # Returns an empty list if no relevant accounts are found. - # - # @overload list_accounts(request, options = nil) - # Pass arguments to `list_accounts` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListAccountsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListAccountsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_accounts(page_size: nil, page_token: nil, show_deleted: nil) - # Pass arguments to `list_accounts` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListAccounts` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListAccounts` must - # match the call that provided the page token. - # @param show_deleted [::Boolean] - # Whether to include soft-deleted (ie: "trashed") Accounts in the - # results. Accounts can be inspected to determine whether they are deleted or - # not. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListAccountsRequest.new - # - # # Call the list_accounts method. - # result = client.list_accounts request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::Account. - # p item - # end - # - def list_accounts request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccountsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_accounts.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_accounts.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_accounts.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_accounts, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_accounts, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Marks target Account as soft-deleted (ie: "trashed") and returns it. - # - # This API does not have a method to restore soft-deleted accounts. - # However, they can be restored using the Trash Can UI. - # - # If the accounts are not restored before the expiration time, the account - # and all child resources (eg: Properties, GoogleAdsLinks, Streams, - # AccessBindings) will be permanently purged. - # https://support.google.com/analytics/answer/6154772 - # - # Returns an error if the target is not found. - # - # @overload delete_account(request, options = nil) - # Pass arguments to `delete_account` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteAccountRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_account(name: nil) - # Pass arguments to `delete_account` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Account to soft-delete. - # Format: accounts/\\{account} - # Example: "accounts/100" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new - # - # # Call the delete_account method. - # result = client.delete_account request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_account request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_account.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_account.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_account.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_account, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an account. - # - # @overload update_account(request, options = nil) - # Pass arguments to `update_account` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateAccountRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_account(account: nil, update_mask: nil) - # Pass arguments to `update_account` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param account [::Google::Analytics::Admin::V1alpha::Account, ::Hash] - # Required. The account to update. - # The account's `name` field is used to identify the account. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (for example, "field_to_update"). Omitted fields will not be updated. - # To replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::Account] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::Account] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new - # - # # Call the update_account method. - # result = client.update_account request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Account. - # p result - # - def update_account request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_account.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.account&.name - header_params["account.name"] = request.account.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_account.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_account.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_account, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Requests a ticket for creating an account. - # - # @overload provision_account_ticket(request, options = nil) - # Pass arguments to `provision_account_ticket` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload provision_account_ticket(account: nil, redirect_uri: nil) - # Pass arguments to `provision_account_ticket` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param account [::Google::Analytics::Admin::V1alpha::Account, ::Hash] - # The account to create. - # @param redirect_uri [::String] - # Redirect URI where the user will be sent after accepting Terms of Service. - # Must be configured in Cloud Console as a Redirect URI. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new - # - # # Call the provision_account_ticket method. - # result = client.provision_account_ticket request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse. - # p result - # - def provision_account_ticket request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.provision_account_ticket.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.provision_account_ticket.timeout, - metadata: metadata, - retry_policy: @config.rpcs.provision_account_ticket.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :provision_account_ticket, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns summaries of all accounts accessible by the caller. - # - # @overload list_account_summaries(request, options = nil) - # Pass arguments to `list_account_summaries` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_account_summaries(page_size: nil, page_token: nil) - # Pass arguments to `list_account_summaries` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param page_size [::Integer] - # Optional. The maximum number of AccountSummary resources to return. The - # service may return fewer than this value, even if there are additional - # pages. If unspecified, at most 50 resources will be returned. The maximum - # value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListAccountSummaries` - # call. Provide this to retrieve the subsequent page. When paginating, all - # other parameters provided to `ListAccountSummaries` must match the call - # that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new - # - # # Call the list_account_summaries method. - # result = client.list_account_summaries request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::AccountSummary. - # p item - # end - # - def list_account_summaries request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_account_summaries.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_account_summaries.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_account_summaries.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_account_summaries, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_account_summaries, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single GA Property. - # - # @overload get_property(request, options = nil) - # Pass arguments to `get_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetPropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetPropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_property(name: nil) - # Pass arguments to `get_property` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the property to lookup. - # Format: properties/\\{property_id} - # Example: "properties/1000" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetPropertyRequest.new - # - # # Call the get_property method. - # result = client.get_property request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - # p result - # - def get_property request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetPropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_property.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_property.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_property.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_property, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns child Properties under the specified parent Account. - # - # Properties will be excluded if the caller does not have access. - # Soft-deleted (ie: "trashed") properties are excluded by default. - # Returns an empty list if no relevant properties are found. - # - # @overload list_properties(request, options = nil) - # Pass arguments to `list_properties` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListPropertiesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_properties(filter: nil, page_size: nil, page_token: nil, show_deleted: nil) - # Pass arguments to `list_properties` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param filter [::String] - # Required. An expression for filtering the results of the request. - # Fields eligible for filtering are: - # `parent:`(The resource name of the parent account/property) or - # `ancestor:`(The resource name of the parent account) or - # `firebase_project:`(The id or number of the linked firebase project). - # Some examples of filters: - # - # ``` - # | Filter | Description | - # |-----------------------------|-------------------------------------------| - # | parent:accounts/123 | The account with account id: 123. | - # | parent:properties/123 | The property with property id: 123. | - # | ancestor:accounts/123 | The account with account id: 123. | - # | firebase_project:project-id | The firebase project with id: project-id. | - # | firebase_project:123 | The firebase project with number: 123. | - # ``` - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListProperties` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListProperties` must - # match the call that provided the page token. - # @param show_deleted [::Boolean] - # Whether to include soft-deleted (ie: "trashed") Properties in the - # results. Properties can be inspected to determine whether they are deleted - # or not. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new - # - # # Call the list_properties method. - # result = client.list_properties request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::Property. - # p item - # end - # - def list_properties request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_properties.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_properties.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_properties.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_properties, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_properties, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a Google Analytics property with the specified location and - # attributes. - # - # @overload create_property(request, options = nil) - # Pass arguments to `create_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreatePropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_property(property: nil) - # Pass arguments to `create_property` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] - # Required. The property to create. - # Note: the supplied property must specify its parent. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new - # - # # Call the create_property method. - # result = client.create_property request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - # p result - # - def create_property request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_property.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_property.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_property.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_property, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Marks target Property as soft-deleted (ie: "trashed") and returns it. - # - # This API does not have a method to restore soft-deleted properties. - # However, they can be restored using the Trash Can UI. - # - # If the properties are not restored before the expiration time, the Property - # and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) - # will be permanently purged. - # https://support.google.com/analytics/answer/6154772 - # - # Returns an error if the target is not found. - # - # @overload delete_property(request, options = nil) - # Pass arguments to `delete_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeletePropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_property(name: nil) - # Pass arguments to `delete_property` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Property to soft-delete. - # Format: properties/\\{property_id} - # Example: "properties/1000" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new - # - # # Call the delete_property method. - # result = client.delete_property request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - # p result - # - def delete_property request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_property.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_property.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_property.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_property, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a property. - # - # @overload update_property(request, options = nil) - # Pass arguments to `update_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_property(property: nil, update_mask: nil) - # Pass arguments to `update_property` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] - # Required. The property to update. - # The property's `name` field is used to identify the property to be - # updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new - # - # # Call the update_property method. - # result = client.update_property request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - # p result - # - def update_property request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_property.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.property&.name - header_params["property.name"] = request.property.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_property.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_property.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_property, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a FirebaseLink. - # - # Properties can have at most one FirebaseLink. - # - # @overload create_firebase_link(request, options = nil) - # Pass arguments to `create_firebase_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_firebase_link(parent: nil, firebase_link: nil) - # Pass arguments to `create_firebase_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Format: properties/\\{property_id} - # - # Example: `properties/1234` - # @param firebase_link [::Google::Analytics::Admin::V1alpha::FirebaseLink, ::Hash] - # Required. The Firebase link to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::FirebaseLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new - # - # # Call the create_firebase_link method. - # result = client.create_firebase_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::FirebaseLink. - # p result - # - def create_firebase_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_firebase_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_firebase_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_firebase_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_firebase_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a FirebaseLink on a property - # - # @overload delete_firebase_link(request, options = nil) - # Pass arguments to `delete_firebase_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_firebase_link(name: nil) - # Pass arguments to `delete_firebase_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Format: properties/\\{property_id}/firebaseLinks/\\{firebase_link_id} - # - # Example: `properties/1234/firebaseLinks/5678` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new - # - # # Call the delete_firebase_link method. - # result = client.delete_firebase_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_firebase_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_firebase_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_firebase_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_firebase_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_firebase_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists FirebaseLinks on a property. - # Properties can have at most one FirebaseLink. - # - # @overload list_firebase_links(request, options = nil) - # Pass arguments to `list_firebase_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_firebase_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_firebase_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Format: properties/\\{property_id} - # - # Example: `properties/1234` - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListFirebaseLinks` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListFirebaseLinks` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new - # - # # Call the list_firebase_links method. - # result = client.list_firebase_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::FirebaseLink. - # p item - # end - # - def list_firebase_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_firebase_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_firebase_links.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_firebase_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_firebase_links, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_firebase_links, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the Site Tag for the specified web stream. - # Site Tags are immutable singletons. - # - # @overload get_global_site_tag(request, options = nil) - # Pass arguments to `get_global_site_tag` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_global_site_tag(name: nil) - # Pass arguments to `get_global_site_tag` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the site tag to lookup. - # Note that site tags are singletons and do not have unique IDs. - # Format: properties/\\{property_id}/dataStreams/\\{stream_id}/globalSiteTag - # - # Example: `properties/123/dataStreams/456/globalSiteTag` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new - # - # # Call the get_global_site_tag method. - # result = client.get_global_site_tag request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::GlobalSiteTag. - # p result - # - def get_global_site_tag request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_global_site_tag.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_global_site_tag.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_global_site_tag.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_global_site_tag, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a GoogleAdsLink. - # - # @overload create_google_ads_link(request, options = nil) - # Pass arguments to `create_google_ads_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_google_ads_link(parent: nil, google_ads_link: nil) - # Pass arguments to `create_google_ads_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param google_ads_link [::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash] - # Required. The GoogleAdsLink to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new - # - # # Call the create_google_ads_link method. - # result = client.create_google_ads_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. - # p result - # - def create_google_ads_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_google_ads_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_google_ads_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_google_ads_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_google_ads_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a GoogleAdsLink on a property - # - # @overload update_google_ads_link(request, options = nil) - # Pass arguments to `update_google_ads_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_google_ads_link(google_ads_link: nil, update_mask: nil) - # Pass arguments to `update_google_ads_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param google_ads_link [::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash] - # The GoogleAdsLink to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new - # - # # Call the update_google_ads_link method. - # result = client.update_google_ads_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. - # p result - # - def update_google_ads_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_google_ads_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.google_ads_link&.name - header_params["google_ads_link.name"] = request.google_ads_link.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_google_ads_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_google_ads_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_google_ads_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a GoogleAdsLink on a property - # - # @overload delete_google_ads_link(request, options = nil) - # Pass arguments to `delete_google_ads_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_google_ads_link(name: nil) - # Pass arguments to `delete_google_ads_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Example format: properties/1234/googleAdsLinks/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new - # - # # Call the delete_google_ads_link method. - # result = client.delete_google_ads_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_google_ads_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_google_ads_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_google_ads_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_google_ads_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_google_ads_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoogleAdsLinks on a property. - # - # @overload list_google_ads_links(request, options = nil) - # Pass arguments to `list_google_ads_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_google_ads_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_google_ads_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # Optional. A page token, received from a previous `ListGoogleAdsLinks` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListGoogleAdsLinks` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new - # - # # Call the list_google_ads_links method. - # result = client.list_google_ads_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::GoogleAdsLink. - # p item - # end - # - def list_google_ads_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_google_ads_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_google_ads_links.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_google_ads_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_google_ads_links, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_google_ads_links, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get data sharing settings on an account. - # Data sharing settings are singletons. - # - # @overload get_data_sharing_settings(request, options = nil) - # Pass arguments to `get_data_sharing_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_data_sharing_settings(name: nil) - # Pass arguments to `get_data_sharing_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the settings to lookup. - # Format: accounts/\\{account}/dataSharingSettings - # - # Example: `accounts/1000/dataSharingSettings` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataSharingSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataSharingSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new - # - # # Call the get_data_sharing_settings method. - # result = client.get_data_sharing_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataSharingSettings. - # p result - # - def get_data_sharing_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_data_sharing_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_data_sharing_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_data_sharing_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_data_sharing_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single MeasurementProtocolSecret. - # - # @overload get_measurement_protocol_secret(request, options = nil) - # Pass arguments to `get_measurement_protocol_secret` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_measurement_protocol_secret(name: nil) - # Pass arguments to `get_measurement_protocol_secret` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the measurement protocol secret to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new - # - # # Call the get_measurement_protocol_secret method. - # result = client.get_measurement_protocol_secret request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - # p result - # - def get_measurement_protocol_secret request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_measurement_protocol_secret.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_measurement_protocol_secret.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_measurement_protocol_secret.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_measurement_protocol_secret, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns child MeasurementProtocolSecrets under the specified parent - # Property. - # - # @overload list_measurement_protocol_secrets(request, options = nil) - # Pass arguments to `list_measurement_protocol_secrets` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_measurement_protocol_secrets(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_measurement_protocol_secrets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The resource name of the parent stream. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 10 resources will be returned. - # The maximum value is 10. Higher values will be coerced to the maximum. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListMeasurementProtocolSecrets` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListMeasurementProtocolSecrets` must match the call that provided the page - # token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new - # - # # Call the list_measurement_protocol_secrets method. - # result = client.list_measurement_protocol_secrets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - # p item - # end - # - def list_measurement_protocol_secrets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_measurement_protocol_secrets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_measurement_protocol_secrets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_measurement_protocol_secrets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_measurement_protocol_secrets, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_measurement_protocol_secrets, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a measurement protocol secret. - # - # @overload create_measurement_protocol_secret(request, options = nil) - # Pass arguments to `create_measurement_protocol_secret` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_measurement_protocol_secret(parent: nil, measurement_protocol_secret: nil) - # Pass arguments to `create_measurement_protocol_secret` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource where this secret will be created. - # Format: properties/\\{property}/dataStreams/\\{dataStream} - # @param measurement_protocol_secret [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret, ::Hash] - # Required. The measurement protocol secret to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new - # - # # Call the create_measurement_protocol_secret method. - # result = client.create_measurement_protocol_secret request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - # p result - # - def create_measurement_protocol_secret request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_measurement_protocol_secret.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_measurement_protocol_secret.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_measurement_protocol_secret.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_measurement_protocol_secret, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes target MeasurementProtocolSecret. - # - # @overload delete_measurement_protocol_secret(request, options = nil) - # Pass arguments to `delete_measurement_protocol_secret` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_measurement_protocol_secret(name: nil) - # Pass arguments to `delete_measurement_protocol_secret` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the MeasurementProtocolSecret to delete. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new - # - # # Call the delete_measurement_protocol_secret method. - # result = client.delete_measurement_protocol_secret request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_measurement_protocol_secret request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_measurement_protocol_secret.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_measurement_protocol_secret.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_measurement_protocol_secret.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_measurement_protocol_secret, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a measurement protocol secret. - # - # @overload update_measurement_protocol_secret(request, options = nil) - # Pass arguments to `update_measurement_protocol_secret` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_measurement_protocol_secret(measurement_protocol_secret: nil, update_mask: nil) - # Pass arguments to `update_measurement_protocol_secret` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param measurement_protocol_secret [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret, ::Hash] - # Required. The measurement protocol secret to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new - # - # # Call the update_measurement_protocol_secret method. - # result = client.update_measurement_protocol_secret request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - # p result - # - def update_measurement_protocol_secret request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_measurement_protocol_secret.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.measurement_protocol_secret&.name - header_params["measurement_protocol_secret.name"] = request.measurement_protocol_secret.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_measurement_protocol_secret.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_measurement_protocol_secret.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_measurement_protocol_secret, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Acknowledges the terms of user data collection for the specified property. - # - # This acknowledgement must be completed (either in the Google Analytics UI - # or through this API) before MeasurementProtocolSecret resources may be - # created. - # - # @overload acknowledge_user_data_collection(request, options = nil) - # Pass arguments to `acknowledge_user_data_collection` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload acknowledge_user_data_collection(property: nil, acknowledgement: nil) - # Pass arguments to `acknowledge_user_data_collection` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param property [::String] - # Required. The property for which to acknowledge user data collection. - # @param acknowledgement [::String] - # Required. An acknowledgement that the caller of this method understands the - # terms of user data collection. - # - # This field must contain the exact value: - # "I acknowledge that I have the necessary privacy disclosures and rights - # from my end users for the collection and processing of their data, - # including the association of such data with the visitation information - # Google Analytics collects from my site and/or app property." - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new - # - # # Call the acknowledge_user_data_collection method. - # result = client.acknowledge_user_data_collection request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse. - # p result - # - def acknowledge_user_data_collection request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.acknowledge_user_data_collection.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.property - header_params["property"] = request.property - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.acknowledge_user_data_collection.timeout, - metadata: metadata, - retry_policy: @config.rpcs.acknowledge_user_data_collection.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :acknowledge_user_data_collection, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Looks up a single SKAdNetworkConversionValueSchema. - # - # @overload get_sk_ad_network_conversion_value_schema(request, options = nil) - # Pass arguments to `get_sk_ad_network_conversion_value_schema` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_sk_ad_network_conversion_value_schema(name: nil) - # Pass arguments to `get_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of SKAdNetwork conversion value schema to look - # up. Format: - # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new - # - # # Call the get_sk_ad_network_conversion_value_schema method. - # result = client.get_sk_ad_network_conversion_value_schema request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - # p result - # - def get_sk_ad_network_conversion_value_schema request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_sk_ad_network_conversion_value_schema.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_sk_ad_network_conversion_value_schema.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_sk_ad_network_conversion_value_schema.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_sk_ad_network_conversion_value_schema, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a SKAdNetworkConversionValueSchema. - # - # @overload create_sk_ad_network_conversion_value_schema(request, options = nil) - # Pass arguments to `create_sk_ad_network_conversion_value_schema` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_sk_ad_network_conversion_value_schema(parent: nil, skadnetwork_conversion_value_schema: nil) - # Pass arguments to `create_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource where this schema will be created. - # Format: properties/\\{property}/dataStreams/\\{dataStream} - # @param skadnetwork_conversion_value_schema [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema, ::Hash] - # Required. SKAdNetwork conversion value schema to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new - # - # # Call the create_sk_ad_network_conversion_value_schema method. - # result = client.create_sk_ad_network_conversion_value_schema request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - # p result - # - def create_sk_ad_network_conversion_value_schema request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_sk_ad_network_conversion_value_schema.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_sk_ad_network_conversion_value_schema.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_sk_ad_network_conversion_value_schema.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_sk_ad_network_conversion_value_schema, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes target SKAdNetworkConversionValueSchema. - # - # @overload delete_sk_ad_network_conversion_value_schema(request, options = nil) - # Pass arguments to `delete_sk_ad_network_conversion_value_schema` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_sk_ad_network_conversion_value_schema(name: nil) - # Pass arguments to `delete_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the SKAdNetworkConversionValueSchema to delete. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new - # - # # Call the delete_sk_ad_network_conversion_value_schema method. - # result = client.delete_sk_ad_network_conversion_value_schema request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_sk_ad_network_conversion_value_schema request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_sk_ad_network_conversion_value_schema.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_sk_ad_network_conversion_value_schema.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_sk_ad_network_conversion_value_schema.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_sk_ad_network_conversion_value_schema, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a SKAdNetworkConversionValueSchema. - # - # @overload update_sk_ad_network_conversion_value_schema(request, options = nil) - # Pass arguments to `update_sk_ad_network_conversion_value_schema` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_sk_ad_network_conversion_value_schema(skadnetwork_conversion_value_schema: nil, update_mask: nil) - # Pass arguments to `update_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param skadnetwork_conversion_value_schema [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema, ::Hash] - # Required. SKAdNetwork conversion value schema to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new - # - # # Call the update_sk_ad_network_conversion_value_schema method. - # result = client.update_sk_ad_network_conversion_value_schema request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - # p result - # - def update_sk_ad_network_conversion_value_schema request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_sk_ad_network_conversion_value_schema.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.skadnetwork_conversion_value_schema&.name - header_params["skadnetwork_conversion_value_schema.name"] = request.skadnetwork_conversion_value_schema.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_sk_ad_network_conversion_value_schema.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_sk_ad_network_conversion_value_schema.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_sk_ad_network_conversion_value_schema, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists SKAdNetworkConversionValueSchema on a stream. - # Properties can have at most one SKAdNetworkConversionValueSchema. - # - # @overload list_sk_ad_network_conversion_value_schemas(request, options = nil) - # Pass arguments to `list_sk_ad_network_conversion_value_schemas` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_sk_ad_network_conversion_value_schemas(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_sk_ad_network_conversion_value_schemas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The DataStream resource to list schemas for. - # Format: - # properties/\\{property_id}/dataStreams/\\{dataStream} - # Example: properties/1234/dataStreams/5678 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListSKAdNetworkConversionValueSchema` must match the call that provided - # the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new - # - # # Call the list_sk_ad_network_conversion_value_schemas method. - # result = client.list_sk_ad_network_conversion_value_schemas request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - # p item - # end - # - def list_sk_ad_network_conversion_value_schemas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_sk_ad_network_conversion_value_schemas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_sk_ad_network_conversion_value_schemas.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_sk_ad_network_conversion_value_schemas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_sk_ad_network_conversion_value_schemas, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_sk_ad_network_conversion_value_schemas, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Searches through all changes to an account or its children given the - # specified set of filters. - # - # Only returns the subset of changes supported by the API. The UI may return - # additional changes. - # - # @overload search_change_history_events(request, options = nil) - # Pass arguments to `search_change_history_events` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload search_change_history_events(account: nil, property: nil, resource_type: nil, action: nil, actor_email: nil, earliest_change_time: nil, latest_change_time: nil, page_size: nil, page_token: nil) - # Pass arguments to `search_change_history_events` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param account [::String] - # Required. The account resource for which to return change history - # resources. Format: accounts/\\{account} - # - # Example: `accounts/100` - # @param property [::String] - # Optional. Resource name for a child property. If set, only return changes - # made to this property or its child resources. - # Format: properties/\\{propertyId} - # - # Example: `properties/100` - # @param resource_type [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryResourceType>] - # Optional. If set, only return changes if they are for a resource that - # matches at least one of these types. - # @param action [::Array<::Google::Analytics::Admin::V1alpha::ActionType>] - # Optional. If set, only return changes that match one or more of these types - # of actions. - # @param actor_email [::Array<::String>] - # Optional. If set, only return changes if they are made by a user in this - # list. - # @param earliest_change_time [::Google::Protobuf::Timestamp, ::Hash] - # Optional. If set, only return changes made after this time (inclusive). - # @param latest_change_time [::Google::Protobuf::Timestamp, ::Hash] - # Optional. If set, only return changes made before this time (inclusive). - # @param page_size [::Integer] - # Optional. The maximum number of ChangeHistoryEvent items to return. - # If unspecified, at most 50 items will be returned. The maximum value is 200 - # (higher values will be coerced to the maximum). - # - # Note that the service may return a page with fewer items than this value - # specifies (potentially even zero), and that there still may be additional - # pages. If you want a particular number of items, you'll need to continue - # requesting additional pages using `page_token` until you get the needed - # number. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - # page. When paginating, all other parameters provided to - # `SearchChangeHistoryEvents` must match the call that provided the page - # token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new - # - # # Call the search_change_history_events method. - # result = client.search_change_history_events request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent. - # p item - # end - # - def search_change_history_events request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.search_change_history_events.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.account - header_params["account"] = request.account - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.search_change_history_events.timeout, - metadata: metadata, - retry_policy: @config.rpcs.search_change_history_events.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :search_change_history_events, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :search_change_history_events, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for Google Signals settings for a property. - # - # @overload get_google_signals_settings(request, options = nil) - # Pass arguments to `get_google_signals_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_google_signals_settings(name: nil) - # Pass arguments to `get_google_signals_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the google signals settings to retrieve. - # Format: properties/\\{property}/googleSignalsSettings - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new - # - # # Call the get_google_signals_settings method. - # result = client.get_google_signals_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. - # p result - # - def get_google_signals_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_google_signals_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_google_signals_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_google_signals_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_google_signals_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates Google Signals settings for a property. - # - # @overload update_google_signals_settings(request, options = nil) - # Pass arguments to `update_google_signals_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_google_signals_settings(google_signals_settings: nil, update_mask: nil) - # Pass arguments to `update_google_signals_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param google_signals_settings [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings, ::Hash] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new - # - # # Call the update_google_signals_settings method. - # result = client.update_google_signals_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. - # p result - # - def update_google_signals_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_google_signals_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.google_signals_settings&.name - header_params["google_signals_settings.name"] = request.google_signals_settings.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_google_signals_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_google_signals_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_google_signals_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deprecated: Use `CreateKeyEvent` instead. - # Creates a conversion event with the specified attributes. - # - # @deprecated This method is deprecated and may be removed in the next major version update. - # - # @overload create_conversion_event(request, options = nil) - # Pass arguments to `create_conversion_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_conversion_event(conversion_event: nil, parent: nil) - # Pass arguments to `create_conversion_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param conversion_event [::Google::Analytics::Admin::V1alpha::ConversionEvent, ::Hash] - # Required. The conversion event to create. - # @param parent [::String] - # Required. The resource name of the parent property where this conversion - # event will be created. Format: properties/123 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new - # - # # Call the create_conversion_event method. - # result = client.create_conversion_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. - # p result - # - def create_conversion_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_conversion_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_conversion_event.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_conversion_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_conversion_event, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deprecated: Use `UpdateKeyEvent` instead. - # Updates a conversion event with the specified attributes. - # - # @deprecated This method is deprecated and may be removed in the next major version update. - # - # @overload update_conversion_event(request, options = nil) - # Pass arguments to `update_conversion_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_conversion_event(conversion_event: nil, update_mask: nil) - # Pass arguments to `update_conversion_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param conversion_event [::Google::Analytics::Admin::V1alpha::ConversionEvent, ::Hash] - # Required. The conversion event to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new - # - # # Call the update_conversion_event method. - # result = client.update_conversion_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. - # p result - # - def update_conversion_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_conversion_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.conversion_event&.name - header_params["conversion_event.name"] = request.conversion_event.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_conversion_event.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_conversion_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_conversion_event, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deprecated: Use `GetKeyEvent` instead. - # Retrieve a single conversion event. - # - # @deprecated This method is deprecated and may be removed in the next major version update. - # - # @overload get_conversion_event(request, options = nil) - # Pass arguments to `get_conversion_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetConversionEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetConversionEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_conversion_event(name: nil) - # Pass arguments to `get_conversion_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the conversion event to retrieve. - # Format: properties/\\{property}/conversionEvents/\\{conversion_event} - # Example: "properties/123/conversionEvents/456" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new - # - # # Call the get_conversion_event method. - # result = client.get_conversion_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. - # p result - # - def get_conversion_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_conversion_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_conversion_event.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_conversion_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_conversion_event, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deprecated: Use `DeleteKeyEvent` instead. - # Deletes a conversion event in a property. - # - # @deprecated This method is deprecated and may be removed in the next major version update. - # - # @overload delete_conversion_event(request, options = nil) - # Pass arguments to `delete_conversion_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_conversion_event(name: nil) - # Pass arguments to `delete_conversion_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the conversion event to delete. - # Format: properties/\\{property}/conversionEvents/\\{conversion_event} - # Example: "properties/123/conversionEvents/456" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new - # - # # Call the delete_conversion_event method. - # result = client.delete_conversion_event request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_conversion_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_conversion_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_conversion_event.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_conversion_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_conversion_event, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deprecated: Use `ListKeyEvents` instead. - # Returns a list of conversion events in the specified parent property. - # - # Returns an empty list if no conversion events are found. - # - # @deprecated This method is deprecated and may be removed in the next major version update. - # - # @overload list_conversion_events(request, options = nil) - # Pass arguments to `list_conversion_events` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_conversion_events(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_conversion_events` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The resource name of the parent property. - # Example: 'properties/123' - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListConversionEvents` - # call. Provide this to retrieve the subsequent page. When paginating, all - # other parameters provided to `ListConversionEvents` must match the call - # that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new - # - # # Call the list_conversion_events method. - # result = client.list_conversion_events request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::ConversionEvent. - # p item - # end - # - def list_conversion_events request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_conversion_events.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_conversion_events.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_conversion_events.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_conversion_events, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_conversion_events, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a Key Event. - # - # @overload create_key_event(request, options = nil) - # Pass arguments to `create_key_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_key_event(key_event: nil, parent: nil) - # Pass arguments to `create_key_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param key_event [::Google::Analytics::Admin::V1alpha::KeyEvent, ::Hash] - # Required. The Key Event to create. - # @param parent [::String] - # Required. The resource name of the parent property where this Key Event - # will be created. Format: properties/123 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::KeyEvent] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new - # - # # Call the create_key_event method. - # result = client.create_key_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. - # p result - # - def create_key_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_key_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_key_event.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_key_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_key_event, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a Key Event. - # - # @overload update_key_event(request, options = nil) - # Pass arguments to `update_key_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_key_event(key_event: nil, update_mask: nil) - # Pass arguments to `update_key_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param key_event [::Google::Analytics::Admin::V1alpha::KeyEvent, ::Hash] - # Required. The Key Event to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::KeyEvent] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new - # - # # Call the update_key_event method. - # result = client.update_key_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. - # p result - # - def update_key_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_key_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.key_event&.name - header_params["key_event.name"] = request.key_event.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_key_event.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_key_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_key_event, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single Key Event. - # - # @overload get_key_event(request, options = nil) - # Pass arguments to `get_key_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetKeyEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetKeyEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_key_event(name: nil) - # Pass arguments to `get_key_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the Key Event to retrieve. - # Format: properties/\\{property}/keyEvents/\\{key_event} - # Example: "properties/123/keyEvents/456" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::KeyEvent] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new - # - # # Call the get_key_event method. - # result = client.get_key_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. - # p result - # - def get_key_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_key_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_key_event.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_key_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_key_event, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a Key Event. - # - # @overload delete_key_event(request, options = nil) - # Pass arguments to `delete_key_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_key_event(name: nil) - # Pass arguments to `delete_key_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the Key Event to delete. - # Format: properties/\\{property}/keyEvents/\\{key_event} - # Example: "properties/123/keyEvents/456" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new - # - # # Call the delete_key_event method. - # result = client.delete_key_event request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_key_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_key_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_key_event.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_key_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_key_event, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns a list of Key Events in the specified parent property. - # Returns an empty list if no Key Events are found. - # - # @overload list_key_events(request, options = nil) - # Pass arguments to `list_key_events` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_key_events(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_key_events` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The resource name of the parent property. - # Example: 'properties/123' - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListKeyEvents` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListKeyEvents` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new - # - # # Call the list_key_events method. - # result = client.list_key_events request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::KeyEvent. - # p item - # end - # - def list_key_events request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_key_events.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_key_events.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_key_events.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_key_events, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_key_events, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Look up a single DisplayVideo360AdvertiserLink - # - # @overload get_display_video360_advertiser_link(request, options = nil) - # Pass arguments to `get_display_video360_advertiser_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_display_video360_advertiser_link(name: nil) - # Pass arguments to `get_display_video360_advertiser_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLink to get. - # Example format: properties/1234/displayVideo360AdvertiserLink/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new - # - # # Call the get_display_video360_advertiser_link method. - # result = client.get_display_video360_advertiser_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - # p result - # - def get_display_video360_advertiser_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_display_video360_advertiser_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_display_video360_advertiser_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all DisplayVideo360AdvertiserLinks on a property. - # - # @overload list_display_video360_advertiser_links(request, options = nil) - # Pass arguments to `list_display_video360_advertiser_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_display_video360_advertiser_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_display_video360_advertiser_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new - # - # # Call the list_display_video360_advertiser_links method. - # result = client.list_display_video360_advertiser_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - # p item - # end - # - def list_display_video360_advertiser_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_display_video360_advertiser_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_links.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_display_video360_advertiser_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_display_video360_advertiser_links, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_links, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a DisplayVideo360AdvertiserLink. - # This can only be utilized by users who have proper authorization both on - # the Google Analytics property and on the Display & Video 360 advertiser. - # Users who do not have access to the Display & Video 360 advertiser should - # instead seek to create a DisplayVideo360LinkProposal. - # - # @overload create_display_video360_advertiser_link(request, options = nil) - # Pass arguments to `create_display_video360_advertiser_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_display_video360_advertiser_link(parent: nil, display_video_360_advertiser_link: nil) - # Pass arguments to `create_display_video360_advertiser_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash] - # Required. The DisplayVideo360AdvertiserLink to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new - # - # # Call the create_display_video360_advertiser_link method. - # result = client.create_display_video360_advertiser_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - # p result - # - def create_display_video360_advertiser_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_display_video360_advertiser_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_display_video360_advertiser_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a DisplayVideo360AdvertiserLink on a property. - # - # @overload delete_display_video360_advertiser_link(request, options = nil) - # Pass arguments to `delete_display_video360_advertiser_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_display_video360_advertiser_link(name: nil) - # Pass arguments to `delete_display_video360_advertiser_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLink to delete. - # Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new - # - # # Call the delete_display_video360_advertiser_link method. - # result = client.delete_display_video360_advertiser_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_display_video360_advertiser_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_display_video360_advertiser_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_display_video360_advertiser_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a DisplayVideo360AdvertiserLink on a property. - # - # @overload update_display_video360_advertiser_link(request, options = nil) - # Pass arguments to `update_display_video360_advertiser_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_display_video360_advertiser_link(display_video_360_advertiser_link: nil, update_mask: nil) - # Pass arguments to `update_display_video360_advertiser_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash] - # The DisplayVideo360AdvertiserLink to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new - # - # # Call the update_display_video360_advertiser_link method. - # result = client.update_display_video360_advertiser_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - # p result - # - def update_display_video360_advertiser_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_display_video360_advertiser_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.display_video_360_advertiser_link&.name - header_params["display_video_360_advertiser_link.name"] = request.display_video_360_advertiser_link.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_display_video360_advertiser_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_display_video360_advertiser_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_display_video360_advertiser_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single DisplayVideo360AdvertiserLinkProposal. - # - # @overload get_display_video360_advertiser_link_proposal(request, options = nil) - # Pass arguments to `get_display_video360_advertiser_link_proposal` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `get_display_video360_advertiser_link_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new - # - # # Call the get_display_video360_advertiser_link_proposal method. - # result = client.get_display_video360_advertiser_link_proposal request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - # p result - # - def get_display_video360_advertiser_link_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_display_video360_advertiser_link_proposal.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link_proposal.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_display_video360_advertiser_link_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link_proposal, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists DisplayVideo360AdvertiserLinkProposals on a property. - # - # @overload list_display_video360_advertiser_link_proposals(request, options = nil) - # Pass arguments to `list_display_video360_advertiser_link_proposals` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_display_video360_advertiser_link_proposals(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_display_video360_advertiser_link_proposals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous - # `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - # the subsequent page. - # - # When paginating, all other parameters provided to - # `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - # provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new - # - # # Call the list_display_video360_advertiser_link_proposals method. - # result = client.list_display_video360_advertiser_link_proposals request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - # p item - # end - # - def list_display_video360_advertiser_link_proposals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_display_video360_advertiser_link_proposals.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_link_proposals.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_display_video360_advertiser_link_proposals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_display_video360_advertiser_link_proposals, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_link_proposals, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a DisplayVideo360AdvertiserLinkProposal. - # - # @overload create_display_video360_advertiser_link_proposal(request, options = nil) - # Pass arguments to `create_display_video360_advertiser_link_proposal` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_display_video360_advertiser_link_proposal(parent: nil, display_video_360_advertiser_link_proposal: nil) - # Pass arguments to `create_display_video360_advertiser_link_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param display_video_360_advertiser_link_proposal [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal, ::Hash] - # Required. The DisplayVideo360AdvertiserLinkProposal to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new - # - # # Call the create_display_video360_advertiser_link_proposal method. - # result = client.create_display_video360_advertiser_link_proposal request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - # p result - # - def create_display_video360_advertiser_link_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_display_video360_advertiser_link_proposal.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link_proposal.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_display_video360_advertiser_link_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link_proposal, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - # This can only be used on cancelled proposals. - # - # @overload delete_display_video360_advertiser_link_proposal(request, options = nil) - # Pass arguments to `delete_display_video360_advertiser_link_proposal` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `delete_display_video360_advertiser_link_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new - # - # # Call the delete_display_video360_advertiser_link_proposal method. - # result = client.delete_display_video360_advertiser_link_proposal request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_display_video360_advertiser_link_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_display_video360_advertiser_link_proposal.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link_proposal.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_display_video360_advertiser_link_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link_proposal, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Approves a DisplayVideo360AdvertiserLinkProposal. - # The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - # DisplayVideo360AdvertiserLink will be created. - # - # @overload approve_display_video360_advertiser_link_proposal(request, options = nil) - # Pass arguments to `approve_display_video360_advertiser_link_proposal` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload approve_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `approve_display_video360_advertiser_link_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new - # - # # Call the approve_display_video360_advertiser_link_proposal method. - # result = client.approve_display_video360_advertiser_link_proposal request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse. - # p result - # - def approve_display_video360_advertiser_link_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.approve_display_video360_advertiser_link_proposal.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.approve_display_video360_advertiser_link_proposal.timeout, - metadata: metadata, - retry_policy: @config.rpcs.approve_display_video360_advertiser_link_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :approve_display_video360_advertiser_link_proposal, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Cancels a DisplayVideo360AdvertiserLinkProposal. - # Cancelling can mean either: - # - Declining a proposal initiated from Display & Video 360 - # - Withdrawing a proposal initiated from Google Analytics - # After being cancelled, a proposal will eventually be deleted automatically. - # - # @overload cancel_display_video360_advertiser_link_proposal(request, options = nil) - # Pass arguments to `cancel_display_video360_advertiser_link_proposal` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `cancel_display_video360_advertiser_link_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new - # - # # Call the cancel_display_video360_advertiser_link_proposal method. - # result = client.cancel_display_video360_advertiser_link_proposal request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - # p result - # - def cancel_display_video360_advertiser_link_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_display_video360_advertiser_link_proposal.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_display_video360_advertiser_link_proposal.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_display_video360_advertiser_link_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :cancel_display_video360_advertiser_link_proposal, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a CustomDimension. - # - # @overload create_custom_dimension(request, options = nil) - # Pass arguments to `create_custom_dimension` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_custom_dimension(parent: nil, custom_dimension: nil) - # Pass arguments to `create_custom_dimension` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash] - # Required. The CustomDimension to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new - # - # # Call the create_custom_dimension method. - # result = client.create_custom_dimension request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - # p result - # - def create_custom_dimension request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_custom_dimension.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_custom_dimension.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_custom_dimension.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_custom_dimension, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a CustomDimension on a property. - # - # @overload update_custom_dimension(request, options = nil) - # Pass arguments to `update_custom_dimension` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_custom_dimension(custom_dimension: nil, update_mask: nil) - # Pass arguments to `update_custom_dimension` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash] - # The CustomDimension to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new - # - # # Call the update_custom_dimension method. - # result = client.update_custom_dimension request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - # p result - # - def update_custom_dimension request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_custom_dimension.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.custom_dimension&.name - header_params["custom_dimension.name"] = request.custom_dimension.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_custom_dimension.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_custom_dimension.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_custom_dimension, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CustomDimensions on a property. - # - # @overload list_custom_dimensions(request, options = nil) - # Pass arguments to `list_custom_dimensions` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_custom_dimensions(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_custom_dimensions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # Optional. A page token, received from a previous `ListCustomDimensions` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCustomDimensions` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new - # - # # Call the list_custom_dimensions method. - # result = client.list_custom_dimensions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension. - # p item - # end - # - def list_custom_dimensions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_custom_dimensions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_custom_dimensions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_custom_dimensions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_custom_dimensions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_dimensions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Archives a CustomDimension on a property. - # - # @overload archive_custom_dimension(request, options = nil) - # Pass arguments to `archive_custom_dimension` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload archive_custom_dimension(name: nil) - # Pass arguments to `archive_custom_dimension` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CustomDimension to archive. - # Example format: properties/1234/customDimensions/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new - # - # # Call the archive_custom_dimension method. - # result = client.archive_custom_dimension request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def archive_custom_dimension request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.archive_custom_dimension.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.archive_custom_dimension.timeout, - metadata: metadata, - retry_policy: @config.rpcs.archive_custom_dimension.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :archive_custom_dimension, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single CustomDimension. - # - # @overload get_custom_dimension(request, options = nil) - # Pass arguments to `get_custom_dimension` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_custom_dimension(name: nil) - # Pass arguments to `get_custom_dimension` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CustomDimension to get. - # Example format: properties/1234/customDimensions/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new - # - # # Call the get_custom_dimension method. - # result = client.get_custom_dimension request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - # p result - # - def get_custom_dimension request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_custom_dimension.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_custom_dimension.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_custom_dimension.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_custom_dimension, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a CustomMetric. - # - # @overload create_custom_metric(request, options = nil) - # Pass arguments to `create_custom_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_custom_metric(parent: nil, custom_metric: nil) - # Pass arguments to `create_custom_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param custom_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] - # Required. The CustomMetric to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new - # - # # Call the create_custom_metric method. - # result = client.create_custom_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. - # p result - # - def create_custom_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_custom_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_custom_metric.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_custom_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_custom_metric, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a CustomMetric on a property. - # - # @overload update_custom_metric(request, options = nil) - # Pass arguments to `update_custom_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_custom_metric(custom_metric: nil, update_mask: nil) - # Pass arguments to `update_custom_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param custom_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] - # The CustomMetric to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new - # - # # Call the update_custom_metric method. - # result = client.update_custom_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. - # p result - # - def update_custom_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_custom_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.custom_metric&.name - header_params["custom_metric.name"] = request.custom_metric.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_custom_metric.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_custom_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_custom_metric, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CustomMetrics on a property. - # - # @overload list_custom_metrics(request, options = nil) - # Pass arguments to `list_custom_metrics` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_custom_metrics(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_custom_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListCustomMetrics` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCustomMetrics` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new - # - # # Call the list_custom_metrics method. - # result = client.list_custom_metrics request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomMetric. - # p item - # end - # - def list_custom_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_custom_metrics.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_custom_metrics.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_custom_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_custom_metrics, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_metrics, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Archives a CustomMetric on a property. - # - # @overload archive_custom_metric(request, options = nil) - # Pass arguments to `archive_custom_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload archive_custom_metric(name: nil) - # Pass arguments to `archive_custom_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CustomMetric to archive. - # Example format: properties/1234/customMetrics/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new - # - # # Call the archive_custom_metric method. - # result = client.archive_custom_metric request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def archive_custom_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.archive_custom_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.archive_custom_metric.timeout, - metadata: metadata, - retry_policy: @config.rpcs.archive_custom_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :archive_custom_metric, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single CustomMetric. - # - # @overload get_custom_metric(request, options = nil) - # Pass arguments to `get_custom_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_custom_metric(name: nil) - # Pass arguments to `get_custom_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CustomMetric to get. - # Example format: properties/1234/customMetrics/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new - # - # # Call the get_custom_metric method. - # result = client.get_custom_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. - # p result - # - def get_custom_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_custom_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_custom_metric.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_custom_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_custom_metric, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the singleton data retention settings for this property. - # - # @overload get_data_retention_settings(request, options = nil) - # Pass arguments to `get_data_retention_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_data_retention_settings(name: nil) - # Pass arguments to `get_data_retention_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataRetentionSettings - # Example: "properties/1000/dataRetentionSettings" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new - # - # # Call the get_data_retention_settings method. - # result = client.get_data_retention_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. - # p result - # - def get_data_retention_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_data_retention_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_data_retention_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_data_retention_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_data_retention_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the singleton data retention settings for this property. - # - # @overload update_data_retention_settings(request, options = nil) - # Pass arguments to `update_data_retention_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_data_retention_settings(data_retention_settings: nil, update_mask: nil) - # Pass arguments to `update_data_retention_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param data_retention_settings [::Google::Analytics::Admin::V1alpha::DataRetentionSettings, ::Hash] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new - # - # # Call the update_data_retention_settings method. - # result = client.update_data_retention_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. - # p result - # - def update_data_retention_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_data_retention_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.data_retention_settings&.name - header_params["data_retention_settings.name"] = request.data_retention_settings.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_data_retention_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_data_retention_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_data_retention_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a DataStream. - # - # @overload create_data_stream(request, options = nil) - # Pass arguments to `create_data_stream` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_data_stream(parent: nil, data_stream: nil) - # Pass arguments to `create_data_stream` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param data_stream [::Google::Analytics::Admin::V1alpha::DataStream, ::Hash] - # Required. The DataStream to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataStream] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new - # - # # Call the create_data_stream method. - # result = client.create_data_stream request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - # p result - # - def create_data_stream request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_data_stream.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_data_stream.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_data_stream.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_data_stream, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a DataStream on a property. - # - # @overload delete_data_stream(request, options = nil) - # Pass arguments to `delete_data_stream` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_data_stream(name: nil) - # Pass arguments to `delete_data_stream` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DataStream to delete. - # Example format: properties/1234/dataStreams/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new - # - # # Call the delete_data_stream method. - # result = client.delete_data_stream request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_data_stream request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_data_stream.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_data_stream.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_data_stream.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_data_stream, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a DataStream on a property. - # - # @overload update_data_stream(request, options = nil) - # Pass arguments to `update_data_stream` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_data_stream(data_stream: nil, update_mask: nil) - # Pass arguments to `update_data_stream` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param data_stream [::Google::Analytics::Admin::V1alpha::DataStream, ::Hash] - # The DataStream to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataStream] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new - # - # # Call the update_data_stream method. - # result = client.update_data_stream request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - # p result - # - def update_data_stream request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_data_stream.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.data_stream&.name - header_params["data_stream.name"] = request.data_stream.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_data_stream.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_data_stream.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_data_stream, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists DataStreams on a property. - # - # @overload list_data_streams(request, options = nil) - # Pass arguments to `list_data_streams` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_data_streams(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_data_streams` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListDataStreams` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListDataStreams` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new - # - # # Call the list_data_streams method. - # result = client.list_data_streams request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::DataStream. - # p item - # end - # - def list_data_streams request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_data_streams.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_data_streams.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_data_streams.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_data_streams, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_data_streams, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single DataStream. - # - # @overload get_data_stream(request, options = nil) - # Pass arguments to `get_data_stream` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDataStreamRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDataStreamRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_data_stream(name: nil) - # Pass arguments to `get_data_stream` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DataStream to get. - # Example format: properties/1234/dataStreams/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataStream] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new - # - # # Call the get_data_stream method. - # result = client.get_data_stream request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - # p result - # - def get_data_stream request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_data_stream.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_data_stream.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_data_stream.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_data_stream, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single Audience. - # Audiences created before 2020 may not be supported. - # Default audiences will not show filter definitions. - # - # @overload get_audience(request, options = nil) - # Pass arguments to `get_audience` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetAudienceRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetAudienceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_audience(name: nil) - # Pass arguments to `get_audience` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Audience to get. - # Example format: properties/1234/audiences/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::Audience] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetAudienceRequest.new - # - # # Call the get_audience method. - # result = client.get_audience request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - # p result - # - def get_audience request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAudienceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_audience.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_audience.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_audience.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_audience, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Audiences on a property. - # Audiences created before 2020 may not be supported. - # Default audiences will not show filter definitions. - # - # @overload list_audiences(request, options = nil) - # Pass arguments to `list_audiences` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListAudiencesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListAudiencesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_audiences(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_audiences` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListAudiences` call. Provide this - # to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListAudiences` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new - # - # # Call the list_audiences method. - # result = client.list_audiences request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::Audience. - # p item - # end - # - def list_audiences request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_audiences.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_audiences.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_audiences.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_audiences, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_audiences, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an Audience. - # - # @overload create_audience(request, options = nil) - # Pass arguments to `create_audience` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateAudienceRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateAudienceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_audience(parent: nil, audience: nil) - # Pass arguments to `create_audience` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param audience [::Google::Analytics::Admin::V1alpha::Audience, ::Hash] - # Required. The audience to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::Audience] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new - # - # # Call the create_audience method. - # result = client.create_audience request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - # p result - # - def create_audience request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_audience.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_audience.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_audience.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_audience, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an Audience on a property. - # - # @overload update_audience(request, options = nil) - # Pass arguments to `update_audience` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_audience(audience: nil, update_mask: nil) - # Pass arguments to `update_audience` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param audience [::Google::Analytics::Admin::V1alpha::Audience, ::Hash] - # Required. The audience to update. - # The audience's `name` field is used to identify the audience to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::Audience] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new - # - # # Call the update_audience method. - # result = client.update_audience request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - # p result - # - def update_audience request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_audience.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.audience&.name - header_params["audience.name"] = request.audience.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_audience.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_audience.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_audience, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Archives an Audience on a property. - # - # @overload archive_audience(request, options = nil) - # Pass arguments to `archive_audience` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload archive_audience(name: nil) - # Pass arguments to `archive_audience` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Example format: properties/1234/audiences/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new - # - # # Call the archive_audience method. - # result = client.archive_audience request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def archive_audience request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.archive_audience.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.archive_audience.timeout, - metadata: metadata, - retry_policy: @config.rpcs.archive_audience.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :archive_audience, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Look up a single SearchAds360Link - # - # @overload get_search_ads360_link(request, options = nil) - # Pass arguments to `get_search_ads360_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_search_ads360_link(name: nil) - # Pass arguments to `get_search_ads360_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the SearchAds360Link to get. - # Example format: properties/1234/SearchAds360Link/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new - # - # # Call the get_search_ads360_link method. - # result = client.get_search_ads360_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. - # p result - # - def get_search_ads360_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_search_ads360_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_search_ads360_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_search_ads360_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_search_ads360_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all SearchAds360Links on a property. - # - # @overload list_search_ads360_links(request, options = nil) - # Pass arguments to `list_search_ads360_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_search_ads360_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_search_ads360_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListSearchAds360Links` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListSearchAds360Links` must match the call that provided the - # page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new - # - # # Call the list_search_ads360_links method. - # result = client.list_search_ads360_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::SearchAds360Link. - # p item - # end - # - def list_search_ads360_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_search_ads360_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_search_ads360_links.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_search_ads360_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_search_ads360_links, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_search_ads360_links, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a SearchAds360Link. - # - # @overload create_search_ads360_link(request, options = nil) - # Pass arguments to `create_search_ads360_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_search_ads360_link(parent: nil, search_ads_360_link: nil) - # Pass arguments to `create_search_ads360_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param search_ads_360_link [::Google::Analytics::Admin::V1alpha::SearchAds360Link, ::Hash] - # Required. The SearchAds360Link to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new - # - # # Call the create_search_ads360_link method. - # result = client.create_search_ads360_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. - # p result - # - def create_search_ads360_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_search_ads360_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_search_ads360_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_search_ads360_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_search_ads360_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a SearchAds360Link on a property. - # - # @overload delete_search_ads360_link(request, options = nil) - # Pass arguments to `delete_search_ads360_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_search_ads360_link(name: nil) - # Pass arguments to `delete_search_ads360_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the SearchAds360Link to delete. - # Example format: properties/1234/SearchAds360Links/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new - # - # # Call the delete_search_ads360_link method. - # result = client.delete_search_ads360_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_search_ads360_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_search_ads360_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_search_ads360_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_search_ads360_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_search_ads360_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a SearchAds360Link on a property. - # - # @overload update_search_ads360_link(request, options = nil) - # Pass arguments to `update_search_ads360_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_search_ads360_link(search_ads_360_link: nil, update_mask: nil) - # Pass arguments to `update_search_ads360_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param search_ads_360_link [::Google::Analytics::Admin::V1alpha::SearchAds360Link, ::Hash] - # The SearchAds360Link to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new - # - # # Call the update_search_ads360_link method. - # result = client.update_search_ads360_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. - # p result - # - def update_search_ads360_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_search_ads360_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.search_ads_360_link&.name - header_params["search_ads_360_link.name"] = request.search_ads_360_link.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_search_ads360_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_search_ads360_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_search_ads360_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a AttributionSettings singleton. - # - # @overload get_attribution_settings(request, options = nil) - # Pass arguments to `get_attribution_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_attribution_settings(name: nil) - # Pass arguments to `get_attribution_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the attribution settings to retrieve. - # Format: properties/\\{property}/attributionSettings - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new - # - # # Call the get_attribution_settings method. - # result = client.get_attribution_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. - # p result - # - def get_attribution_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_attribution_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_attribution_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_attribution_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_attribution_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates attribution settings on a property. - # - # @overload update_attribution_settings(request, options = nil) - # Pass arguments to `update_attribution_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_attribution_settings(attribution_settings: nil, update_mask: nil) - # Pass arguments to `update_attribution_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param attribution_settings [::Google::Analytics::Admin::V1alpha::AttributionSettings, ::Hash] - # Required. The attribution settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new - # - # # Call the update_attribution_settings method. - # result = client.update_attribution_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. - # p result - # - def update_attribution_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_attribution_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.attribution_settings&.name - header_params["attribution_settings.name"] = request.attribution_settings.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_attribution_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_attribution_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_attribution_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns a customized report of data access records. The report provides - # records of each time a user reads Google Analytics reporting data. Access - # records are retained for up to 2 years. - # - # Data Access Reports can be requested for a property. Reports may be - # requested for any property, but dimensions that aren't related to quota can - # only be requested on Google Analytics 360 properties. This method is only - # available to Administrators. - # - # These data access records include GA UI Reporting, GA UI Explorations, - # GA Data API, and other products like Firebase & Admob that can retrieve - # data from Google Analytics through a linkage. These records don't include - # property configuration changes like adding a stream or changing a - # property's time zone. For configuration change history, see - # [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - # - # To give your feedback on this API, complete the [Google Analytics Access - # Reports - # feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) - # form. - # - # @overload run_access_report(request, options = nil) - # Pass arguments to `run_access_report` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::RunAccessReportRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::RunAccessReportRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload run_access_report(entity: nil, dimensions: nil, metrics: nil, date_ranges: nil, dimension_filter: nil, metric_filter: nil, offset: nil, limit: nil, time_zone: nil, order_bys: nil, return_entity_quota: nil, include_all_users: nil, expand_groups: nil) - # Pass arguments to `run_access_report` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param entity [::String] - # The Data Access Report supports requesting at the property level or account - # level. If requested at the account level, Data Access Reports include all - # access for all properties under that account. - # - # To request at the property level, entity should be for example - # 'properties/123' if "123" is your Google Analytics property ID. To request - # at the account level, entity should be for example 'accounts/1234' if - # "1234" is your Google Analytics Account ID. - # @param dimensions [::Array<::Google::Analytics::Admin::V1alpha::AccessDimension, ::Hash>] - # The dimensions requested and displayed in the response. Requests are - # allowed up to 9 dimensions. - # @param metrics [::Array<::Google::Analytics::Admin::V1alpha::AccessMetric, ::Hash>] - # The metrics requested and displayed in the response. Requests are allowed - # up to 10 metrics. - # @param date_ranges [::Array<::Google::Analytics::Admin::V1alpha::AccessDateRange, ::Hash>] - # Date ranges of access records to read. If multiple date ranges are - # requested, each response row will contain a zero based date range index. If - # two date ranges overlap, the access records for the overlapping days is - # included in the response rows for both date ranges. Requests are allowed up - # to 2 date ranges. - # @param dimension_filter [::Google::Analytics::Admin::V1alpha::AccessFilterExpression, ::Hash] - # Dimension filters let you restrict report response to specific - # dimension values which match the filter. For example, filtering on access - # records of a single user. To learn more, see [Fundamentals of Dimension - # Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - # for examples. Metrics cannot be used in this filter. - # @param metric_filter [::Google::Analytics::Admin::V1alpha::AccessFilterExpression, ::Hash] - # Metric filters allow you to restrict report response to specific metric - # values which match the filter. Metric filters are applied after aggregating - # the report's rows, similar to SQL having-clause. Dimensions cannot be used - # in this filter. - # @param offset [::Integer] - # The row count of the start row. The first row is counted as row 0. If - # offset is unspecified, it is treated as 0. If offset is zero, then this - # method will return the first page of results with `limit` entries. - # - # To learn more about this pagination parameter, see - # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - # @param limit [::Integer] - # The number of rows to return. If unspecified, 10,000 rows are returned. The - # API returns a maximum of 100,000 rows per request, no matter how many you - # ask for. `limit` must be positive. - # - # The API may return fewer rows than the requested `limit`, if there aren't - # as many remaining rows as the `limit`. For instance, there are fewer than - # 300 possible values for the dimension `country`, so when reporting on only - # `country`, you can't get more than 300 rows, even if you set `limit` to a - # higher value. - # - # To learn more about this pagination parameter, see - # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - # @param time_zone [::String] - # This request's time zone if specified. If unspecified, the property's time - # zone is used. The request's time zone is used to interpret the start & end - # dates of the report. - # - # Formatted as strings from the IANA Time Zone database - # (https://www.iana.org/time-zones); for example "America/New_York" or - # "Asia/Tokyo". - # @param order_bys [::Array<::Google::Analytics::Admin::V1alpha::AccessOrderBy, ::Hash>] - # Specifies how rows are ordered in the response. - # @param return_entity_quota [::Boolean] - # Toggles whether to return the current state of this Analytics Property's - # quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - # requests, this field must be false. - # @param include_all_users [::Boolean] - # Optional. Determines whether to include users who have never made an API - # call in the response. If true, all users with access to the specified - # property or account are included in the response, regardless of whether - # they have made an API call or not. If false, only the users who have made - # an API call will be included. - # @param expand_groups [::Boolean] - # Optional. Decides whether to return the users within user groups. This - # field works only when include_all_users is set to true. If true, it will - # return all users with access to the specified property or account. - # If false, only the users with direct access will be returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new - # - # # Call the run_access_report method. - # result = client.run_access_report request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::RunAccessReportResponse. - # p result - # - def run_access_report request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.run_access_report.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.entity - header_params["entity"] = request.entity - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.run_access_report.timeout, - metadata: metadata, - retry_policy: @config.rpcs.run_access_report.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :run_access_report, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an access binding on an account or property. - # - # @overload create_access_binding(request, options = nil) - # Pass arguments to `create_access_binding` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_access_binding(parent: nil, access_binding: nil) - # Pass arguments to `create_access_binding` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] - # Required. The access binding to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::AccessBinding] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new - # - # # Call the create_access_binding method. - # result = client.create_access_binding request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - # p result - # - def create_access_binding request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_access_binding.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_access_binding.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_access_binding.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_access_binding, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about an access binding. - # - # @overload get_access_binding(request, options = nil) - # Pass arguments to `get_access_binding` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_access_binding(name: nil) - # Pass arguments to `get_access_binding` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the access binding to retrieve. - # Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::AccessBinding] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new - # - # # Call the get_access_binding method. - # result = client.get_access_binding request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - # p result - # - def get_access_binding request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_access_binding.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_access_binding.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_access_binding.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_access_binding, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an access binding on an account or property. - # - # @overload update_access_binding(request, options = nil) - # Pass arguments to `update_access_binding` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_access_binding(access_binding: nil) - # Pass arguments to `update_access_binding` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] - # Required. The access binding to update. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::AccessBinding] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new - # - # # Call the update_access_binding method. - # result = client.update_access_binding request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - # p result - # - def update_access_binding request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_access_binding.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.access_binding&.name - header_params["access_binding.name"] = request.access_binding.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_access_binding.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_access_binding.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_access_binding, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an access binding on an account or property. - # - # @overload delete_access_binding(request, options = nil) - # Pass arguments to `delete_access_binding` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_access_binding(name: nil) - # Pass arguments to `delete_access_binding` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new - # - # # Call the delete_access_binding method. - # result = client.delete_access_binding request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_access_binding request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_access_binding.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_access_binding.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_access_binding.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_access_binding, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all access bindings on an account or property. - # - # @overload list_access_bindings(request, options = nil) - # Pass arguments to `list_access_bindings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_access_bindings(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_access_bindings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param page_size [::Integer] - # The maximum number of access bindings to return. - # The service may return fewer than this value. - # If unspecified, at most 200 access bindings will be returned. - # The maximum value is 500; values above 500 will be coerced to 500. - # @param page_token [::String] - # A page token, received from a previous `ListAccessBindings` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListAccessBindings` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new - # - # # Call the list_access_bindings method. - # result = client.list_access_bindings request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::AccessBinding. - # p item - # end - # - def list_access_bindings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_access_bindings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_access_bindings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_access_bindings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_access_bindings, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_access_bindings, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates information about multiple access bindings to an account or - # property. - # - # This method is transactional. If any AccessBinding cannot be created, none - # of the AccessBindings will be created. - # - # @overload batch_create_access_bindings(request, options = nil) - # Pass arguments to `batch_create_access_bindings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload batch_create_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_create_access_bindings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The account or property that owns the access bindings. The parent - # field in the CreateAccessBindingRequest messages must either be empty or - # match this field. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param requests [::Array<::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, ::Hash>] - # Required. The requests specifying the access bindings to create. - # A maximum of 1000 access bindings can be created in a batch. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new - # - # # Call the batch_create_access_bindings method. - # result = client.batch_create_access_bindings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse. - # p result - # - def batch_create_access_bindings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.batch_create_access_bindings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.batch_create_access_bindings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.batch_create_access_bindings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :batch_create_access_bindings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about multiple access bindings to an account or property. - # - # @overload batch_get_access_bindings(request, options = nil) - # Pass arguments to `batch_get_access_bindings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload batch_get_access_bindings(parent: nil, names: nil) - # Pass arguments to `batch_get_access_bindings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The account or property that owns the access bindings. The parent - # of all provided values for the 'names' field must match this field. - # Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param names [::Array<::String>] - # Required. The names of the access bindings to retrieve. - # A maximum of 1000 access bindings can be retrieved in a batch. - # Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new - # - # # Call the batch_get_access_bindings method. - # result = client.batch_get_access_bindings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse. - # p result - # - def batch_get_access_bindings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.batch_get_access_bindings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.batch_get_access_bindings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.batch_get_access_bindings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :batch_get_access_bindings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates information about multiple access bindings to an account or - # property. - # - # @overload batch_update_access_bindings(request, options = nil) - # Pass arguments to `batch_update_access_bindings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload batch_update_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_update_access_bindings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The account or property that owns the access bindings. The parent - # of all provided AccessBinding in UpdateAccessBindingRequest messages must - # match this field. - # Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param requests [::Array<::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, ::Hash>] - # Required. The requests specifying the access bindings to update. - # A maximum of 1000 access bindings can be updated in a batch. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new - # - # # Call the batch_update_access_bindings method. - # result = client.batch_update_access_bindings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse. - # p result - # - def batch_update_access_bindings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.batch_update_access_bindings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.batch_update_access_bindings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.batch_update_access_bindings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :batch_update_access_bindings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes information about multiple users' links to an account or property. - # - # @overload batch_delete_access_bindings(request, options = nil) - # Pass arguments to `batch_delete_access_bindings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload batch_delete_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_delete_access_bindings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The account or property that owns the access bindings. The parent - # of all provided values for the 'names' field in DeleteAccessBindingRequest - # messages must match this field. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param requests [::Array<::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, ::Hash>] - # Required. The requests specifying the access bindings to delete. - # A maximum of 1000 access bindings can be deleted in a batch. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new - # - # # Call the batch_delete_access_bindings method. - # result = client.batch_delete_access_bindings request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def batch_delete_access_bindings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.batch_delete_access_bindings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.batch_delete_access_bindings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.batch_delete_access_bindings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :batch_delete_access_bindings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single ExpandedDataSet. - # - # @overload get_expanded_data_set(request, options = nil) - # Pass arguments to `get_expanded_data_set` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_expanded_data_set(name: nil) - # Pass arguments to `get_expanded_data_set` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExpandedDataSet to get. - # Example format: properties/1234/expandedDataSets/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new - # - # # Call the get_expanded_data_set method. - # result = client.get_expanded_data_set request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. - # p result - # - def get_expanded_data_set request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_expanded_data_set.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_expanded_data_set.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_expanded_data_set.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_expanded_data_set, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists ExpandedDataSets on a property. - # - # @overload list_expanded_data_sets(request, options = nil) - # Pass arguments to `list_expanded_data_sets` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_expanded_data_sets(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_expanded_data_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListExpandedDataSets` call. Provide - # this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListExpandedDataSet` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new - # - # # Call the list_expanded_data_sets method. - # result = client.list_expanded_data_sets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::ExpandedDataSet. - # p item - # end - # - def list_expanded_data_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_expanded_data_sets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_expanded_data_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_expanded_data_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_expanded_data_sets, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_expanded_data_sets, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a ExpandedDataSet. - # - # @overload create_expanded_data_set(request, options = nil) - # Pass arguments to `create_expanded_data_set` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_expanded_data_set(parent: nil, expanded_data_set: nil) - # Pass arguments to `create_expanded_data_set` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param expanded_data_set [::Google::Analytics::Admin::V1alpha::ExpandedDataSet, ::Hash] - # Required. The ExpandedDataSet to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new - # - # # Call the create_expanded_data_set method. - # result = client.create_expanded_data_set request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. - # p result - # - def create_expanded_data_set request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_expanded_data_set.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_expanded_data_set.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_expanded_data_set.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_expanded_data_set, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a ExpandedDataSet on a property. - # - # @overload update_expanded_data_set(request, options = nil) - # Pass arguments to `update_expanded_data_set` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_expanded_data_set(expanded_data_set: nil, update_mask: nil) - # Pass arguments to `update_expanded_data_set` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param expanded_data_set [::Google::Analytics::Admin::V1alpha::ExpandedDataSet, ::Hash] - # Required. The ExpandedDataSet to update. - # The resource's `name` field is used to identify the ExpandedDataSet to be - # updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new - # - # # Call the update_expanded_data_set method. - # result = client.update_expanded_data_set request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. - # p result - # - def update_expanded_data_set request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_expanded_data_set.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.expanded_data_set&.name - header_params["expanded_data_set.name"] = request.expanded_data_set.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_expanded_data_set.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_expanded_data_set.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_expanded_data_set, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a ExpandedDataSet on a property. - # - # @overload delete_expanded_data_set(request, options = nil) - # Pass arguments to `delete_expanded_data_set` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_expanded_data_set(name: nil) - # Pass arguments to `delete_expanded_data_set` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Example format: properties/1234/expandedDataSets/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new - # - # # Call the delete_expanded_data_set method. - # result = client.delete_expanded_data_set request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_expanded_data_set request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_expanded_data_set.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_expanded_data_set.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_expanded_data_set.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_expanded_data_set, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single ChannelGroup. - # - # @overload get_channel_group(request, options = nil) - # Pass arguments to `get_channel_group` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_channel_group(name: nil) - # Pass arguments to `get_channel_group` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The ChannelGroup to get. - # Example format: properties/1234/channelGroups/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new - # - # # Call the get_channel_group method. - # result = client.get_channel_group request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. - # p result - # - def get_channel_group request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_channel_group.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_channel_group.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_channel_group.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_channel_group, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists ChannelGroups on a property. - # - # @overload list_channel_groups(request, options = nil) - # Pass arguments to `list_channel_groups` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_channel_groups(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_channel_groups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The property for which to list ChannelGroups. - # Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListChannelGroups` call. Provide - # this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListChannelGroups` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new - # - # # Call the list_channel_groups method. - # result = client.list_channel_groups request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::ChannelGroup. - # p item - # end - # - def list_channel_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_channel_groups.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_channel_groups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_channel_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_channel_groups, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_channel_groups, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a ChannelGroup. - # - # @overload create_channel_group(request, options = nil) - # Pass arguments to `create_channel_group` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_channel_group(parent: nil, channel_group: nil) - # Pass arguments to `create_channel_group` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The property for which to create a ChannelGroup. - # Example format: properties/1234 - # @param channel_group [::Google::Analytics::Admin::V1alpha::ChannelGroup, ::Hash] - # Required. The ChannelGroup to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new - # - # # Call the create_channel_group method. - # result = client.create_channel_group request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. - # p result - # - def create_channel_group request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_channel_group.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_channel_group.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_channel_group.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_channel_group, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a ChannelGroup. - # - # @overload update_channel_group(request, options = nil) - # Pass arguments to `update_channel_group` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_channel_group(channel_group: nil, update_mask: nil) - # Pass arguments to `update_channel_group` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param channel_group [::Google::Analytics::Admin::V1alpha::ChannelGroup, ::Hash] - # Required. The ChannelGroup to update. - # The resource's `name` field is used to identify the ChannelGroup to be - # updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new - # - # # Call the update_channel_group method. - # result = client.update_channel_group request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. - # p result - # - def update_channel_group request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_channel_group.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.channel_group&.name - header_params["channel_group.name"] = request.channel_group.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_channel_group.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_channel_group.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_channel_group, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a ChannelGroup on a property. - # - # @overload delete_channel_group(request, options = nil) - # Pass arguments to `delete_channel_group` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_channel_group(name: nil) - # Pass arguments to `delete_channel_group` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The ChannelGroup to delete. - # Example format: properties/1234/channelGroups/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new - # - # # Call the delete_channel_group method. - # result = client.delete_channel_group request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_channel_group request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_channel_group.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_channel_group.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_channel_group.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_channel_group, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a BigQueryLink. - # - # @overload create_big_query_link(request, options = nil) - # Pass arguments to `create_big_query_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_big_query_link(parent: nil, bigquery_link: nil) - # Pass arguments to `create_big_query_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param bigquery_link [::Google::Analytics::Admin::V1alpha::BigQueryLink, ::Hash] - # Required. The BigQueryLink to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new - # - # # Call the create_big_query_link method. - # result = client.create_big_query_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. - # p result - # - def create_big_query_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_big_query_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_big_query_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_big_query_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_big_query_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single BigQuery Link. - # - # @overload get_big_query_link(request, options = nil) - # Pass arguments to `get_big_query_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_big_query_link(name: nil) - # Pass arguments to `get_big_query_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the BigQuery link to lookup. - # Format: properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id} - # Example: properties/123/bigQueryLinks/456 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new - # - # # Call the get_big_query_link method. - # result = client.get_big_query_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. - # p result - # - def get_big_query_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_big_query_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_big_query_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_big_query_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_big_query_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists BigQuery Links on a property. - # - # @overload list_big_query_links(request, options = nil) - # Pass arguments to `list_big_query_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_big_query_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_big_query_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the property to list BigQuery links under. - # Format: properties/\\{property_id} - # Example: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # A page token, received from a previous `ListBigQueryLinks` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListBigQueryLinks` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new - # - # # Call the list_big_query_links method. - # result = client.list_big_query_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::BigQueryLink. - # p item - # end - # - def list_big_query_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_big_query_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_big_query_links.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_big_query_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_big_query_links, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_big_query_links, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a BigQueryLink on a property. - # - # @overload delete_big_query_link(request, options = nil) - # Pass arguments to `delete_big_query_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_big_query_link(name: nil) - # Pass arguments to `delete_big_query_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The BigQueryLink to delete. - # Example format: properties/1234/bigQueryLinks/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new - # - # # Call the delete_big_query_link method. - # result = client.delete_big_query_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_big_query_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_big_query_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_big_query_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_big_query_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_big_query_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a BigQueryLink. - # - # @overload update_big_query_link(request, options = nil) - # Pass arguments to `update_big_query_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_big_query_link(bigquery_link: nil, update_mask: nil) - # Pass arguments to `update_big_query_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param bigquery_link [::Google::Analytics::Admin::V1alpha::BigQueryLink, ::Hash] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new - # - # # Call the update_big_query_link method. - # result = client.update_big_query_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. - # p result - # - def update_big_query_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_big_query_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.bigquery_link&.name - header_params["bigquery_link.name"] = request.bigquery_link.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_big_query_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_big_query_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_big_query_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the enhanced measurement settings for this data stream. - # Note that the stream must enable enhanced measurement for these settings to - # take effect. - # - # @overload get_enhanced_measurement_settings(request, options = nil) - # Pass arguments to `get_enhanced_measurement_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_enhanced_measurement_settings(name: nil) - # Pass arguments to `get_enhanced_measurement_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{data_stream}/enhancedMeasurementSettings - # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new - # - # # Call the get_enhanced_measurement_settings method. - # result = client.get_enhanced_measurement_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. - # p result - # - def get_enhanced_measurement_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_enhanced_measurement_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_enhanced_measurement_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_enhanced_measurement_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_enhanced_measurement_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the enhanced measurement settings for this data stream. - # Note that the stream must enable enhanced measurement for these settings to - # take effect. - # - # @overload update_enhanced_measurement_settings(request, options = nil) - # Pass arguments to `update_enhanced_measurement_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_enhanced_measurement_settings(enhanced_measurement_settings: nil, update_mask: nil) - # Pass arguments to `update_enhanced_measurement_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param enhanced_measurement_settings [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings, ::Hash] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new - # - # # Call the update_enhanced_measurement_settings method. - # result = client.update_enhanced_measurement_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. - # p result - # - def update_enhanced_measurement_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_enhanced_measurement_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.enhanced_measurement_settings&.name - header_params["enhanced_measurement_settings.name"] = request.enhanced_measurement_settings.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_enhanced_measurement_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_enhanced_measurement_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_enhanced_measurement_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Looks up a single AdSenseLink. - # - # @overload get_ad_sense_link(request, options = nil) - # Pass arguments to `get_ad_sense_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_ad_sense_link(name: nil) - # Pass arguments to `get_ad_sense_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Unique identifier for the AdSense Link requested. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new - # - # # Call the get_ad_sense_link method. - # result = client.get_ad_sense_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. - # p result - # - def get_ad_sense_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_ad_sense_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_ad_sense_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_ad_sense_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_ad_sense_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an AdSenseLink. - # - # @overload create_ad_sense_link(request, options = nil) - # Pass arguments to `create_ad_sense_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_ad_sense_link(parent: nil, adsense_link: nil) - # Pass arguments to `create_ad_sense_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The property for which to create an AdSense Link. - # Format: properties/\\{propertyId} - # Example: properties/1234 - # @param adsense_link [::Google::Analytics::Admin::V1alpha::AdSenseLink, ::Hash] - # Required. The AdSense Link to create - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new - # - # # Call the create_ad_sense_link method. - # result = client.create_ad_sense_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. - # p result - # - def create_ad_sense_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_ad_sense_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_ad_sense_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_ad_sense_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_ad_sense_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an AdSenseLink. - # - # @overload delete_ad_sense_link(request, options = nil) - # Pass arguments to `delete_ad_sense_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_ad_sense_link(name: nil) - # Pass arguments to `delete_ad_sense_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Unique identifier for the AdSense Link to be deleted. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new - # - # # Call the delete_ad_sense_link method. - # result = client.delete_ad_sense_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_ad_sense_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_ad_sense_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_ad_sense_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_ad_sense_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_ad_sense_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists AdSenseLinks on a property. - # - # @overload list_ad_sense_links(request, options = nil) - # Pass arguments to `list_ad_sense_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_ad_sense_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_ad_sense_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Resource name of the parent property. - # Format: properties/\\{propertyId} - # Example: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token received from a previous `ListAdSenseLinks` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListAdSenseLinks` must - # match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new - # - # # Call the list_ad_sense_links method. - # result = client.list_ad_sense_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::AdSenseLink. - # p item - # end - # - def list_ad_sense_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_ad_sense_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_ad_sense_links.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_ad_sense_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_ad_sense_links, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_ad_sense_links, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single EventCreateRule. - # - # @overload get_event_create_rule(request, options = nil) - # Pass arguments to `get_event_create_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_event_create_rule(name: nil) - # Pass arguments to `get_event_create_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the EventCreateRule to get. - # Example format: properties/123/dataStreams/456/eventCreateRules/789 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new - # - # # Call the get_event_create_rule method. - # result = client.get_event_create_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. - # p result - # - def get_event_create_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_event_create_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_event_create_rule.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_event_create_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_event_create_rule, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists EventCreateRules on a web data stream. - # - # @overload list_event_create_rules(request, options = nil) - # Pass arguments to `list_event_create_rules` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_event_create_rules(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_event_create_rules` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListEventCreateRules` call. Provide - # this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListEventCreateRules` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new - # - # # Call the list_event_create_rules method. - # result = client.list_event_create_rules request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::EventCreateRule. - # p item - # end - # - def list_event_create_rules request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_event_create_rules.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_event_create_rules.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_event_create_rules.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_event_create_rules, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_event_create_rules, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an EventCreateRule. - # - # @overload create_event_create_rule(request, options = nil) - # Pass arguments to `create_event_create_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_event_create_rule(parent: nil, event_create_rule: nil) - # Pass arguments to `create_event_create_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash] - # Required. The EventCreateRule to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new - # - # # Call the create_event_create_rule method. - # result = client.create_event_create_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. - # p result - # - def create_event_create_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_event_create_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_event_create_rule.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_event_create_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_event_create_rule, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an EventCreateRule. - # - # @overload update_event_create_rule(request, options = nil) - # Pass arguments to `update_event_create_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_event_create_rule(event_create_rule: nil, update_mask: nil) - # Pass arguments to `update_event_create_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash] - # Required. The EventCreateRule to update. - # The resource's `name` field is used to identify the EventCreateRule to be - # updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new - # - # # Call the update_event_create_rule method. - # result = client.update_event_create_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. - # p result - # - def update_event_create_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_event_create_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.event_create_rule&.name - header_params["event_create_rule.name"] = request.event_create_rule.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_event_create_rule.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_event_create_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_event_create_rule, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an EventCreateRule. - # - # @overload delete_event_create_rule(request, options = nil) - # Pass arguments to `delete_event_create_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_event_create_rule(name: nil) - # Pass arguments to `delete_event_create_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Example format: - # properties/123/dataStreams/456/eventCreateRules/789 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new - # - # # Call the delete_event_create_rule method. - # result = client.delete_event_create_rule request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_event_create_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_event_create_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_event_create_rule.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_event_create_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_event_create_rule, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single EventEditRule. - # - # @overload get_event_edit_rule(request, options = nil) - # Pass arguments to `get_event_edit_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_event_edit_rule(name: nil) - # Pass arguments to `get_event_edit_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the EventEditRule to get. - # Example format: properties/123/dataStreams/456/eventEditRules/789 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventEditRule] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new - # - # # Call the get_event_edit_rule method. - # result = client.get_event_edit_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. - # p result - # - def get_event_edit_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_event_edit_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_event_edit_rule.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_event_edit_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_event_edit_rule, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists EventEditRules on a web data stream. - # - # @overload list_event_edit_rules(request, options = nil) - # Pass arguments to `list_event_edit_rules` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_event_edit_rules(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_event_edit_rules` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # Optional. A page token, received from a previous `ListEventEditRules` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListEventEditRules` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new - # - # # Call the list_event_edit_rules method. - # result = client.list_event_edit_rules request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::EventEditRule. - # p item - # end - # - def list_event_edit_rules request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_event_edit_rules.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_event_edit_rules.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_event_edit_rules.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_event_edit_rules, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_event_edit_rules, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an EventEditRule. - # - # @overload create_event_edit_rule(request, options = nil) - # Pass arguments to `create_event_edit_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_event_edit_rule(parent: nil, event_edit_rule: nil) - # Pass arguments to `create_event_edit_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param event_edit_rule [::Google::Analytics::Admin::V1alpha::EventEditRule, ::Hash] - # Required. The EventEditRule to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventEditRule] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new - # - # # Call the create_event_edit_rule method. - # result = client.create_event_edit_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. - # p result - # - def create_event_edit_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_event_edit_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_event_edit_rule.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_event_edit_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_event_edit_rule, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an EventEditRule. - # - # @overload update_event_edit_rule(request, options = nil) - # Pass arguments to `update_event_edit_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_event_edit_rule(event_edit_rule: nil, update_mask: nil) - # Pass arguments to `update_event_edit_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param event_edit_rule [::Google::Analytics::Admin::V1alpha::EventEditRule, ::Hash] - # Required. The EventEditRule to update. - # The resource's `name` field is used to identify the EventEditRule to be - # updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventEditRule] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new - # - # # Call the update_event_edit_rule method. - # result = client.update_event_edit_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. - # p result - # - def update_event_edit_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_event_edit_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.event_edit_rule&.name - header_params["event_edit_rule.name"] = request.event_edit_rule.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_event_edit_rule.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_event_edit_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_event_edit_rule, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an EventEditRule. - # - # @overload delete_event_edit_rule(request, options = nil) - # Pass arguments to `delete_event_edit_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_event_edit_rule(name: nil) - # Pass arguments to `delete_event_edit_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Example format: properties/123/dataStreams/456/eventEditRules/789 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new - # - # # Call the delete_event_edit_rule method. - # result = client.delete_event_edit_rule request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_event_edit_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_event_edit_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_event_edit_rule.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_event_edit_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_event_edit_rule, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Changes the processing order of event edit rules on the specified stream. - # - # @overload reorder_event_edit_rules(request, options = nil) - # Pass arguments to `reorder_event_edit_rules` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload reorder_event_edit_rules(parent: nil, event_edit_rules: nil) - # Pass arguments to `reorder_event_edit_rules` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param event_edit_rules [::Array<::String>] - # Required. EventEditRule resource names for the specified data stream, in - # the needed processing order. All EventEditRules for the stream must be - # present in the list. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new - # - # # Call the reorder_event_edit_rules method. - # result = client.reorder_event_edit_rules request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def reorder_event_edit_rules request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.reorder_event_edit_rules.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.reorder_event_edit_rules.timeout, - metadata: metadata, - retry_policy: @config.rpcs.reorder_event_edit_rules.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :reorder_event_edit_rules, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a DataRedactionSettings on a property. - # - # @overload update_data_redaction_settings(request, options = nil) - # Pass arguments to `update_data_redaction_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_data_redaction_settings(data_redaction_settings: nil, update_mask: nil) - # Pass arguments to `update_data_redaction_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param data_redaction_settings [::Google::Analytics::Admin::V1alpha::DataRedactionSettings, ::Hash] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new - # - # # Call the update_data_redaction_settings method. - # result = client.update_data_redaction_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. - # p result - # - def update_data_redaction_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_data_redaction_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.data_redaction_settings&.name - header_params["data_redaction_settings.name"] = request.data_redaction_settings.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_data_redaction_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_data_redaction_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_data_redaction_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single DataRedactionSettings. - # - # @overload get_data_redaction_settings(request, options = nil) - # Pass arguments to `get_data_redaction_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_data_redaction_settings(name: nil) - # Pass arguments to `get_data_redaction_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{data_stream}/dataRedactionSettings - # Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new - # - # # Call the get_data_redaction_settings method. - # result = client.get_data_redaction_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. - # p result - # - def get_data_redaction_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_data_redaction_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_data_redaction_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_data_redaction_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_data_redaction_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single CalculatedMetric. - # - # @overload get_calculated_metric(request, options = nil) - # Pass arguments to `get_calculated_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_calculated_metric(name: nil) - # Pass arguments to `get_calculated_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CalculatedMetric to get. - # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} - # Example: properties/1234/calculatedMetrics/Metric01 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new - # - # # Call the get_calculated_metric method. - # result = client.get_calculated_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. - # p result - # - def get_calculated_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_calculated_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_calculated_metric.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_calculated_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_calculated_metric, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a CalculatedMetric. - # - # @overload create_calculated_metric(request, options = nil) - # Pass arguments to `create_calculated_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_calculated_metric(parent: nil, calculated_metric_id: nil, calculated_metric: nil) - # Pass arguments to `create_calculated_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Format: properties/\\{property_id} - # Example: properties/1234 - # @param calculated_metric_id [::String] - # Required. The ID to use for the calculated metric which will become the - # final component of the calculated metric's resource name. - # - # This value should be 1-80 characters and valid characters are - # /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique - # between all calculated metrics under a property. The calculated_metric_id - # is used when referencing this calculated metric from external APIs, for - # example, "calcMetric:\\{calculated_metric_id}". - # @param calculated_metric [::Google::Analytics::Admin::V1alpha::CalculatedMetric, ::Hash] - # Required. The CalculatedMetric to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new - # - # # Call the create_calculated_metric method. - # result = client.create_calculated_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. - # p result - # - def create_calculated_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_calculated_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_calculated_metric.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_calculated_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_calculated_metric, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CalculatedMetrics on a property. - # - # @overload list_calculated_metrics(request, options = nil) - # Pass arguments to `list_calculated_metrics` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_calculated_metrics(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_calculated_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # Optional. A page token, received from a previous `ListCalculatedMetrics` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCalculatedMetrics` - # must match the call that provided the page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CalculatedMetric>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CalculatedMetric>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new - # - # # Call the list_calculated_metrics method. - # result = client.list_calculated_metrics request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::CalculatedMetric. - # p item - # end - # - def list_calculated_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_calculated_metrics.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_calculated_metrics.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_calculated_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_calculated_metrics, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_calculated_metrics, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a CalculatedMetric on a property. - # - # @overload update_calculated_metric(request, options = nil) - # Pass arguments to `update_calculated_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_calculated_metric(calculated_metric: nil, update_mask: nil) - # Pass arguments to `update_calculated_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param calculated_metric [::Google::Analytics::Admin::V1alpha::CalculatedMetric, ::Hash] - # Required. The CalculatedMetric to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new - # - # # Call the update_calculated_metric method. - # result = client.update_calculated_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. - # p result - # - def update_calculated_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_calculated_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.calculated_metric&.name - header_params["calculated_metric.name"] = request.calculated_metric.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_calculated_metric.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_calculated_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_calculated_metric, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a CalculatedMetric on a property. - # - # @overload delete_calculated_metric(request, options = nil) - # Pass arguments to `delete_calculated_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_calculated_metric(name: nil) - # Pass arguments to `delete_calculated_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CalculatedMetric to delete. - # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} - # Example: properties/1234/calculatedMetrics/Metric01 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new - # - # # Call the delete_calculated_metric method. - # result = client.delete_calculated_metric request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_calculated_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_calculated_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_calculated_metric.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_calculated_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_calculated_metric, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a roll-up property and all roll-up property source links. - # - # @overload create_rollup_property(request, options = nil) - # Pass arguments to `create_rollup_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_rollup_property(rollup_property: nil, source_properties: nil) - # Pass arguments to `create_rollup_property` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param rollup_property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] - # Required. The roll-up property to create. - # @param source_properties [::Array<::String>] - # Optional. The resource names of properties that will be sources to the - # created roll-up property. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new - # - # # Call the create_rollup_property method. - # result = client.create_rollup_property request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse. - # p result - # - def create_rollup_property request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_rollup_property.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_rollup_property.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_rollup_property.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_rollup_property, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single roll-up property source Link. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - # - # @overload get_rollup_property_source_link(request, options = nil) - # Pass arguments to `get_rollup_property_source_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_rollup_property_source_link(name: nil) - # Pass arguments to `get_rollup_property_source_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the roll-up property source link to lookup. - # Format: - # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} - # Example: properties/123/rollupPropertySourceLinks/456 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new - # - # # Call the get_rollup_property_source_link method. - # result = client.get_rollup_property_source_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. - # p result - # - def get_rollup_property_source_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_rollup_property_source_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_rollup_property_source_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_rollup_property_source_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_rollup_property_source_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists roll-up property source Links on a property. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - # - # @overload list_rollup_property_source_links(request, options = nil) - # Pass arguments to `list_rollup_property_source_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_rollup_property_source_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_rollup_property_source_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the roll-up property to list roll-up property source - # links under. Format: properties/\\{property_id} Example: properties/1234 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListRollupPropertySourceLinks` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListRollupPropertySourceLinks` must match the call that provided the page - # token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new - # - # # Call the list_rollup_property_source_links method. - # result = client.list_rollup_property_source_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. - # p item - # end - # - def list_rollup_property_source_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_rollup_property_source_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_rollup_property_source_links.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_rollup_property_source_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_rollup_property_source_links, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_rollup_property_source_links, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a roll-up property source link. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - # - # @overload create_rollup_property_source_link(request, options = nil) - # Pass arguments to `create_rollup_property_source_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_rollup_property_source_link(parent: nil, rollup_property_source_link: nil) - # Pass arguments to `create_rollup_property_source_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Format: properties/\\{property_id} - # Example: properties/1234 - # @param rollup_property_source_link [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink, ::Hash] - # Required. The roll-up property source link to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new - # - # # Call the create_rollup_property_source_link method. - # result = client.create_rollup_property_source_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. - # p result - # - def create_rollup_property_source_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_rollup_property_source_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_rollup_property_source_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_rollup_property_source_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_rollup_property_source_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a roll-up property source link. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - # - # @overload delete_rollup_property_source_link(request, options = nil) - # Pass arguments to `delete_rollup_property_source_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_rollup_property_source_link(name: nil) - # Pass arguments to `delete_rollup_property_source_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Format: - # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} - # Example: properties/1234/rollupPropertySourceLinks/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new - # - # # Call the delete_rollup_property_source_link method. - # result = client.delete_rollup_property_source_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_rollup_property_source_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_rollup_property_source_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_rollup_property_source_link.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_rollup_property_source_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_rollup_property_source_link, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a subproperty and a subproperty event filter that applies to the - # created subproperty. - # - # @overload provision_subproperty(request, options = nil) - # Pass arguments to `provision_subproperty` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload provision_subproperty(subproperty: nil, subproperty_event_filter: nil, custom_dimension_and_metric_synchronization_mode: nil) - # Pass arguments to `provision_subproperty` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param subproperty [::Google::Analytics::Admin::V1alpha::Property, ::Hash] - # Required. The subproperty to create. - # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] - # Optional. The subproperty event filter to create on an ordinary property. - # @param custom_dimension_and_metric_synchronization_mode [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig::SynchronizationMode] - # Optional. The subproperty feature synchronization mode for Custom - # Dimensions and Metrics - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new - # - # # Call the provision_subproperty method. - # result = client.provision_subproperty request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse. - # p result - # - def provision_subproperty request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.provision_subproperty.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.provision_subproperty.timeout, - metadata: metadata, - retry_policy: @config.rpcs.provision_subproperty.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :provision_subproperty, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a subproperty Event Filter. - # - # @overload create_subproperty_event_filter(request, options = nil) - # Pass arguments to `create_subproperty_event_filter` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_subproperty_event_filter(parent: nil, subproperty_event_filter: nil) - # Pass arguments to `create_subproperty_event_filter` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The ordinary property for which to create a subproperty event - # filter. Format: properties/property_id Example: properties/123 - # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] - # Required. The subproperty event filter to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new - # - # # Call the create_subproperty_event_filter method. - # result = client.create_subproperty_event_filter request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - # p result - # - def create_subproperty_event_filter request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_subproperty_event_filter.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_subproperty_event_filter.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_subproperty_event_filter.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_subproperty_event_filter, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single subproperty Event Filter. - # - # @overload get_subproperty_event_filter(request, options = nil) - # Pass arguments to `get_subproperty_event_filter` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_subproperty_event_filter(name: nil) - # Pass arguments to `get_subproperty_event_filter` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Resource name of the subproperty event filter to lookup. - # Format: - # properties/property_id/subpropertyEventFilters/subproperty_event_filter - # Example: properties/123/subpropertyEventFilters/456 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new - # - # # Call the get_subproperty_event_filter method. - # result = client.get_subproperty_event_filter request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - # p result - # - def get_subproperty_event_filter request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_subproperty_event_filter.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_subproperty_event_filter.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_subproperty_event_filter.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_subproperty_event_filter, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List all subproperty Event Filters on a property. - # - # @overload list_subproperty_event_filters(request, options = nil) - # Pass arguments to `list_subproperty_event_filters` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_subproperty_event_filters(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_subproperty_event_filters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Resource name of the ordinary property. - # Format: properties/property_id - # Example: properties/123 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. If unspecified, - # at most 50 resources will be returned. The maximum value is 200; (higher - # values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent - # page. When paginating, all other parameters provided to - # `ListSubpropertyEventFilters` must match the call that provided the page - # token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new - # - # # Call the list_subproperty_event_filters method. - # result = client.list_subproperty_event_filters request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - # p item - # end - # - def list_subproperty_event_filters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_subproperty_event_filters.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_subproperty_event_filters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_subproperty_event_filters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_subproperty_event_filters, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_event_filters, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a subproperty Event Filter. - # - # @overload update_subproperty_event_filter(request, options = nil) - # Pass arguments to `update_subproperty_event_filter` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_subproperty_event_filter(subproperty_event_filter: nil, update_mask: nil) - # Pass arguments to `update_subproperty_event_filter` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] - # Required. The subproperty event filter to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to update. Field names must be in snake case - # (for example, "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new - # - # # Call the update_subproperty_event_filter method. - # result = client.update_subproperty_event_filter request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - # p result - # - def update_subproperty_event_filter request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_subproperty_event_filter.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.subproperty_event_filter&.name - header_params["subproperty_event_filter.name"] = request.subproperty_event_filter.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_subproperty_event_filter.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_subproperty_event_filter.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_subproperty_event_filter, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a subproperty event filter. - # - # @overload delete_subproperty_event_filter(request, options = nil) - # Pass arguments to `delete_subproperty_event_filter` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_subproperty_event_filter(name: nil) - # Pass arguments to `delete_subproperty_event_filter` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Resource name of the subproperty event filter to delete. - # Format: - # properties/property_id/subpropertyEventFilters/subproperty_event_filter - # Example: properties/123/subpropertyEventFilters/456 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new - # - # # Call the delete_subproperty_event_filter method. - # result = client.delete_subproperty_event_filter request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_subproperty_event_filter request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_subproperty_event_filter.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_subproperty_event_filter.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_subproperty_event_filter.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_subproperty_event_filter, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a Reporting Data Annotation. - # - # @overload create_reporting_data_annotation(request, options = nil) - # Pass arguments to `create_reporting_data_annotation` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_reporting_data_annotation(parent: nil, reporting_data_annotation: nil) - # Pass arguments to `create_reporting_data_annotation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The property for which to create a Reporting Data Annotation. - # Format: properties/property_id - # Example: properties/123 - # @param reporting_data_annotation [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation, ::Hash] - # Required. The Reporting Data Annotation to create. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new - # - # # Call the create_reporting_data_annotation method. - # result = client.create_reporting_data_annotation request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - # p result - # - def create_reporting_data_annotation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_reporting_data_annotation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_reporting_data_annotation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_reporting_data_annotation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :create_reporting_data_annotation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup a single Reporting Data Annotation. - # - # @overload get_reporting_data_annotation(request, options = nil) - # Pass arguments to `get_reporting_data_annotation` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_reporting_data_annotation(name: nil) - # Pass arguments to `get_reporting_data_annotation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Resource name of the Reporting Data Annotation to lookup. - # Format: - # properties/property_id/reportingDataAnnotations/reportingDataAnnotation - # Example: properties/123/reportingDataAnnotations/456 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new - # - # # Call the get_reporting_data_annotation method. - # result = client.get_reporting_data_annotation request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - # p result - # - def get_reporting_data_annotation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_reporting_data_annotation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_reporting_data_annotation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_reporting_data_annotation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_reporting_data_annotation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List all Reporting Data Annotations on a property. - # - # @overload list_reporting_data_annotations(request, options = nil) - # Pass arguments to `list_reporting_data_annotations` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_reporting_data_annotations(parent: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_reporting_data_annotations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Resource name of the property. - # Format: properties/property_id - # Example: properties/123 - # @param filter [::String] - # Optional. Filter that restricts which reporting data annotations under the - # parent property are listed. - # - # Supported fields are: - # - # * 'name' - # * `title` - # * `description` - # * `annotation_date` - # * `annotation_date_range` - # * `color` - # - # Additionally, this API provides the following helper functions: - # - # * annotation_duration() : the duration that this annotation marks, - # [durations](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/duration.proto). - # expect a numeric representation of seconds followed by an `s` suffix. - # * is_annotation_in_range(start_date, end_date) : if the annotation is in - # the range specified by the `start_date` and `end_date`. The dates are in - # ISO-8601 format, for example `2031-06-28`. - # - # Supported operations: - # - # * `=` : equals - # * `!=` : not equals - # * `<` : less than - # * `>` : greater than - # * `<=` : less than or equals - # * `>=` : greater than or equals - # * `:` : has operator - # * `=~` : [regular expression](https://github.com/google/re2/wiki/Syntax) - # match - # * `!~` : [regular expression](https://github.com/google/re2/wiki/Syntax) - # does not match - # * `NOT` : Logical not - # * `AND` : Logical and - # * `OR` : Logical or - # - # Examples: - # - # 1. `title="Holiday Sale"` - # 2. `description=~"[Bb]ig [Gg]ame.*[Ss]ale"` - # 3. `is_annotation_in_range("2025-12-25", "2026-01-16") = true` - # 4. `annotation_duration() >= 172800s AND title:BOGO` - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. If unspecified, - # at most 50 resources will be returned. The maximum value is 200; (higher - # values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListReportingDataAnnotations` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListReportingDataAnnotations` must match the call that provided the page - # token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new - # - # # Call the list_reporting_data_annotations method. - # result = client.list_reporting_data_annotations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - # p item - # end - # - def list_reporting_data_annotations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_reporting_data_annotations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_reporting_data_annotations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_reporting_data_annotations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_reporting_data_annotations, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_reporting_data_annotations, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a Reporting Data Annotation. - # - # @overload update_reporting_data_annotation(request, options = nil) - # Pass arguments to `update_reporting_data_annotation` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_reporting_data_annotation(reporting_data_annotation: nil, update_mask: nil) - # Pass arguments to `update_reporting_data_annotation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param reporting_data_annotation [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation, ::Hash] - # Required. The Reporting Data Annotation to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. Field names must be in snake case - # (for example, "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new - # - # # Call the update_reporting_data_annotation method. - # result = client.update_reporting_data_annotation request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - # p result - # - def update_reporting_data_annotation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_reporting_data_annotation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.reporting_data_annotation&.name - header_params["reporting_data_annotation.name"] = request.reporting_data_annotation.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_reporting_data_annotation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_reporting_data_annotation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_reporting_data_annotation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a Reporting Data Annotation. - # - # @overload delete_reporting_data_annotation(request, options = nil) - # Pass arguments to `delete_reporting_data_annotation` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_reporting_data_annotation(name: nil) - # Pass arguments to `delete_reporting_data_annotation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Resource name of the Reporting Data Annotation to delete. - # Format: - # properties/property_id/reportingDataAnnotations/reporting_data_annotation - # Example: properties/123/reportingDataAnnotations/456 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new - # - # # Call the delete_reporting_data_annotation method. - # result = client.delete_reporting_data_annotation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_reporting_data_annotation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_reporting_data_annotation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_reporting_data_annotation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_reporting_data_annotation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :delete_reporting_data_annotation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Submits a request for user deletion for a property. - # - # @overload submit_user_deletion(request, options = nil) - # Pass arguments to `submit_user_deletion` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload submit_user_deletion(user_id: nil, client_id: nil, app_instance_id: nil, user_provided_data: nil, name: nil) - # Pass arguments to `submit_user_deletion` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param user_id [::String] - # Google Analytics [user - # ID](https://firebase.google.com/docs/analytics/userid). - # - # Note: The following parameters are mutually exclusive: `user_id`, `client_id`, `app_instance_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param client_id [::String] - # Google Analytics [client - # ID](https://support.google.com/analytics/answer/11593727). - # - # Note: The following parameters are mutually exclusive: `client_id`, `user_id`, `app_instance_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param app_instance_id [::String] - # Firebase [application instance - # ID](https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.html#getAppInstanceId). - # - # Note: The following parameters are mutually exclusive: `app_instance_id`, `user_id`, `client_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param user_provided_data [::String] - # [User-provided - # data](https://support.google.com/analytics/answer/14077171). May contain - # either one email address or one phone number. - # - # Email addresses should be normalized as such: - # - # * lowercase - # * remove periods before @ for gmail.com/googlemail.com addresses - # * remove all spaces - # - # Phone numbers should be normalized as such: - # - # * remove all non digit characters - # * add + prefix - # - # Note: The following parameters are mutually exclusive: `user_provided_data`, `user_id`, `client_id`, `app_instance_id`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param name [::String] - # Required. The name of the property to submit user deletion for. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new - # - # # Call the submit_user_deletion method. - # result = client.submit_user_deletion request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse. - # p result - # - def submit_user_deletion request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.submit_user_deletion.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.submit_user_deletion.timeout, - metadata: metadata, - retry_policy: @config.rpcs.submit_user_deletion.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :submit_user_deletion, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List all `SubpropertySyncConfig` resources for a property. - # - # @overload list_subproperty_sync_configs(request, options = nil) - # Pass arguments to `list_subproperty_sync_configs` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_subproperty_sync_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_subproperty_sync_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Resource name of the property. - # Format: properties/property_id - # Example: properties/123 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. If unspecified, - # at most 50 resources will be returned. The maximum value is 200; (higher - # values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListSubpropertySyncConfig` call. Provide this to retrieve the subsequent - # page. When paginating, all other parameters provided to - # `ListSubpropertySyncConfig` must match the call that provided the page - # token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new - # - # # Call the list_subproperty_sync_configs method. - # result = client.list_subproperty_sync_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. - # p item - # end - # - def list_subproperty_sync_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_subproperty_sync_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_subproperty_sync_configs.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_subproperty_sync_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :list_subproperty_sync_configs, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_sync_configs, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a `SubpropertySyncConfig`. - # - # @overload update_subproperty_sync_config(request, options = nil) - # Pass arguments to `update_subproperty_sync_config` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_subproperty_sync_config(subproperty_sync_config: nil, update_mask: nil) - # Pass arguments to `update_subproperty_sync_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param subproperty_sync_config [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig, ::Hash] - # Required. The `SubpropertySyncConfig` to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. Field names must be in snake case - # (for example, "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new - # - # # Call the update_subproperty_sync_config method. - # result = client.update_subproperty_sync_config request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. - # p result - # - def update_subproperty_sync_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_subproperty_sync_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.subproperty_sync_config&.name - header_params["subproperty_sync_config.name"] = request.subproperty_sync_config.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_subproperty_sync_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_subproperty_sync_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_subproperty_sync_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single `SubpropertySyncConfig`. - # - # @overload get_subproperty_sync_config(request, options = nil) - # Pass arguments to `get_subproperty_sync_config` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_subproperty_sync_config(name: nil) - # Pass arguments to `get_subproperty_sync_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Resource name of the SubpropertySyncConfig to lookup. - # Format: - # properties/\\{ordinary_property_id}/subpropertySyncConfigs/\\{subproperty_id} - # Example: properties/1234/subpropertySyncConfigs/5678 - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new - # - # # Call the get_subproperty_sync_config method. - # result = client.get_subproperty_sync_config request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. - # p result - # - def get_subproperty_sync_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_subproperty_sync_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_subproperty_sync_config.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_subproperty_sync_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_subproperty_sync_config, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the reporting identity settings for this property. - # - # @overload get_reporting_identity_settings(request, options = nil) - # Pass arguments to `get_reporting_identity_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_reporting_identity_settings(name: nil) - # Pass arguments to `get_reporting_identity_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/reportingIdentitySettings - # Example: "properties/1000/reportingIdentitySettings" - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new - # - # # Call the get_reporting_identity_settings method. - # result = client.get_reporting_identity_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. - # p result - # - def get_reporting_identity_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_reporting_identity_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_reporting_identity_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_reporting_identity_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_reporting_identity_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the reporting identity settings for this property. - # - # @overload update_reporting_identity_settings(request, options = nil) - # Pass arguments to `update_reporting_identity_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_reporting_identity_settings(reporting_identity_settings: nil, update_mask: nil) - # Pass arguments to `update_reporting_identity_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param reporting_identity_settings [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings, ::Hash] - # Required. The reporting identity settings to update. - # The settings' `name` field is used to identify the settings. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to be updated. Field names must be in snake - # case (for example, "field_to_update"). Omitted fields will not be updated. - # To replace the entire entity, use one path with the string "*" to match all - # fields. If omitted, the service will treat it as an implied field mask - # equivalent to all fields that are populated. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new - # - # # Call the update_reporting_identity_settings method. - # result = client.update_reporting_identity_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. - # p result - # - def update_reporting_identity_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_reporting_identity_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.reporting_identity_settings&.name - header_params["reporting_identity_settings.name"] = request.reporting_identity_settings.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_reporting_identity_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_reporting_identity_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :update_reporting_identity_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Looks up settings related to user-provided data for a property. - # - # @overload get_user_provided_data_settings(request, options = nil) - # Pass arguments to `get_user_provided_data_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_user_provided_data_settings(name: nil) - # Pass arguments to `get_user_provided_data_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the user provided data settings to retrieve. - # Format: properties/\\{property}/userProvidedDataSettings - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new - # - # # Call the get_user_provided_data_settings method. - # result = client.get_user_provided_data_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::UserProvidedDataSettings. - # p result - # - def get_user_provided_data_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_user_provided_data_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_user_provided_data_settings.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_user_provided_data_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.call_rpc :get_user_provided_data_settings, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the AnalyticsAdminService API. - # - # This class represents the configuration for AnalyticsAdminService, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_account to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_account.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_account.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "analyticsadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the AnalyticsAdminService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_account` - # @return [::Gapic::Config::Method] - # - attr_reader :get_account - ## - # RPC-specific configuration for `list_accounts` - # @return [::Gapic::Config::Method] - # - attr_reader :list_accounts - ## - # RPC-specific configuration for `delete_account` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_account - ## - # RPC-specific configuration for `update_account` - # @return [::Gapic::Config::Method] - # - attr_reader :update_account - ## - # RPC-specific configuration for `provision_account_ticket` - # @return [::Gapic::Config::Method] - # - attr_reader :provision_account_ticket - ## - # RPC-specific configuration for `list_account_summaries` - # @return [::Gapic::Config::Method] - # - attr_reader :list_account_summaries - ## - # RPC-specific configuration for `get_property` - # @return [::Gapic::Config::Method] - # - attr_reader :get_property - ## - # RPC-specific configuration for `list_properties` - # @return [::Gapic::Config::Method] - # - attr_reader :list_properties - ## - # RPC-specific configuration for `create_property` - # @return [::Gapic::Config::Method] - # - attr_reader :create_property - ## - # RPC-specific configuration for `delete_property` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_property - ## - # RPC-specific configuration for `update_property` - # @return [::Gapic::Config::Method] - # - attr_reader :update_property - ## - # RPC-specific configuration for `create_firebase_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_firebase_link - ## - # RPC-specific configuration for `delete_firebase_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_firebase_link - ## - # RPC-specific configuration for `list_firebase_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_firebase_links - ## - # RPC-specific configuration for `get_global_site_tag` - # @return [::Gapic::Config::Method] - # - attr_reader :get_global_site_tag - ## - # RPC-specific configuration for `create_google_ads_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_google_ads_link - ## - # RPC-specific configuration for `update_google_ads_link` - # @return [::Gapic::Config::Method] - # - attr_reader :update_google_ads_link - ## - # RPC-specific configuration for `delete_google_ads_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_google_ads_link - ## - # RPC-specific configuration for `list_google_ads_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_google_ads_links - ## - # RPC-specific configuration for `get_data_sharing_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_data_sharing_settings - ## - # RPC-specific configuration for `get_measurement_protocol_secret` - # @return [::Gapic::Config::Method] - # - attr_reader :get_measurement_protocol_secret - ## - # RPC-specific configuration for `list_measurement_protocol_secrets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_measurement_protocol_secrets - ## - # RPC-specific configuration for `create_measurement_protocol_secret` - # @return [::Gapic::Config::Method] - # - attr_reader :create_measurement_protocol_secret - ## - # RPC-specific configuration for `delete_measurement_protocol_secret` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_measurement_protocol_secret - ## - # RPC-specific configuration for `update_measurement_protocol_secret` - # @return [::Gapic::Config::Method] - # - attr_reader :update_measurement_protocol_secret - ## - # RPC-specific configuration for `acknowledge_user_data_collection` - # @return [::Gapic::Config::Method] - # - attr_reader :acknowledge_user_data_collection - ## - # RPC-specific configuration for `get_sk_ad_network_conversion_value_schema` - # @return [::Gapic::Config::Method] - # - attr_reader :get_sk_ad_network_conversion_value_schema - ## - # RPC-specific configuration for `create_sk_ad_network_conversion_value_schema` - # @return [::Gapic::Config::Method] - # - attr_reader :create_sk_ad_network_conversion_value_schema - ## - # RPC-specific configuration for `delete_sk_ad_network_conversion_value_schema` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_sk_ad_network_conversion_value_schema - ## - # RPC-specific configuration for `update_sk_ad_network_conversion_value_schema` - # @return [::Gapic::Config::Method] - # - attr_reader :update_sk_ad_network_conversion_value_schema - ## - # RPC-specific configuration for `list_sk_ad_network_conversion_value_schemas` - # @return [::Gapic::Config::Method] - # - attr_reader :list_sk_ad_network_conversion_value_schemas - ## - # RPC-specific configuration for `search_change_history_events` - # @return [::Gapic::Config::Method] - # - attr_reader :search_change_history_events - ## - # RPC-specific configuration for `get_google_signals_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_google_signals_settings - ## - # RPC-specific configuration for `update_google_signals_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_google_signals_settings - ## - # RPC-specific configuration for `create_conversion_event` - # @return [::Gapic::Config::Method] - # - attr_reader :create_conversion_event - ## - # RPC-specific configuration for `update_conversion_event` - # @return [::Gapic::Config::Method] - # - attr_reader :update_conversion_event - ## - # RPC-specific configuration for `get_conversion_event` - # @return [::Gapic::Config::Method] - # - attr_reader :get_conversion_event - ## - # RPC-specific configuration for `delete_conversion_event` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_conversion_event - ## - # RPC-specific configuration for `list_conversion_events` - # @return [::Gapic::Config::Method] - # - attr_reader :list_conversion_events - ## - # RPC-specific configuration for `create_key_event` - # @return [::Gapic::Config::Method] - # - attr_reader :create_key_event - ## - # RPC-specific configuration for `update_key_event` - # @return [::Gapic::Config::Method] - # - attr_reader :update_key_event - ## - # RPC-specific configuration for `get_key_event` - # @return [::Gapic::Config::Method] - # - attr_reader :get_key_event - ## - # RPC-specific configuration for `delete_key_event` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_key_event - ## - # RPC-specific configuration for `list_key_events` - # @return [::Gapic::Config::Method] - # - attr_reader :list_key_events - ## - # RPC-specific configuration for `get_display_video360_advertiser_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_display_video360_advertiser_link - ## - # RPC-specific configuration for `list_display_video360_advertiser_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_display_video360_advertiser_links - ## - # RPC-specific configuration for `create_display_video360_advertiser_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_display_video360_advertiser_link - ## - # RPC-specific configuration for `delete_display_video360_advertiser_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_display_video360_advertiser_link - ## - # RPC-specific configuration for `update_display_video360_advertiser_link` - # @return [::Gapic::Config::Method] - # - attr_reader :update_display_video360_advertiser_link - ## - # RPC-specific configuration for `get_display_video360_advertiser_link_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :get_display_video360_advertiser_link_proposal - ## - # RPC-specific configuration for `list_display_video360_advertiser_link_proposals` - # @return [::Gapic::Config::Method] - # - attr_reader :list_display_video360_advertiser_link_proposals - ## - # RPC-specific configuration for `create_display_video360_advertiser_link_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :create_display_video360_advertiser_link_proposal - ## - # RPC-specific configuration for `delete_display_video360_advertiser_link_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_display_video360_advertiser_link_proposal - ## - # RPC-specific configuration for `approve_display_video360_advertiser_link_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :approve_display_video360_advertiser_link_proposal - ## - # RPC-specific configuration for `cancel_display_video360_advertiser_link_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_display_video360_advertiser_link_proposal - ## - # RPC-specific configuration for `create_custom_dimension` - # @return [::Gapic::Config::Method] - # - attr_reader :create_custom_dimension - ## - # RPC-specific configuration for `update_custom_dimension` - # @return [::Gapic::Config::Method] - # - attr_reader :update_custom_dimension - ## - # RPC-specific configuration for `list_custom_dimensions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_custom_dimensions - ## - # RPC-specific configuration for `archive_custom_dimension` - # @return [::Gapic::Config::Method] - # - attr_reader :archive_custom_dimension - ## - # RPC-specific configuration for `get_custom_dimension` - # @return [::Gapic::Config::Method] - # - attr_reader :get_custom_dimension - ## - # RPC-specific configuration for `create_custom_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :create_custom_metric - ## - # RPC-specific configuration for `update_custom_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :update_custom_metric - ## - # RPC-specific configuration for `list_custom_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :list_custom_metrics - ## - # RPC-specific configuration for `archive_custom_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :archive_custom_metric - ## - # RPC-specific configuration for `get_custom_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :get_custom_metric - ## - # RPC-specific configuration for `get_data_retention_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_data_retention_settings - ## - # RPC-specific configuration for `update_data_retention_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_data_retention_settings - ## - # RPC-specific configuration for `create_data_stream` - # @return [::Gapic::Config::Method] - # - attr_reader :create_data_stream - ## - # RPC-specific configuration for `delete_data_stream` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_data_stream - ## - # RPC-specific configuration for `update_data_stream` - # @return [::Gapic::Config::Method] - # - attr_reader :update_data_stream - ## - # RPC-specific configuration for `list_data_streams` - # @return [::Gapic::Config::Method] - # - attr_reader :list_data_streams - ## - # RPC-specific configuration for `get_data_stream` - # @return [::Gapic::Config::Method] - # - attr_reader :get_data_stream - ## - # RPC-specific configuration for `get_audience` - # @return [::Gapic::Config::Method] - # - attr_reader :get_audience - ## - # RPC-specific configuration for `list_audiences` - # @return [::Gapic::Config::Method] - # - attr_reader :list_audiences - ## - # RPC-specific configuration for `create_audience` - # @return [::Gapic::Config::Method] - # - attr_reader :create_audience - ## - # RPC-specific configuration for `update_audience` - # @return [::Gapic::Config::Method] - # - attr_reader :update_audience - ## - # RPC-specific configuration for `archive_audience` - # @return [::Gapic::Config::Method] - # - attr_reader :archive_audience - ## - # RPC-specific configuration for `get_search_ads360_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_search_ads360_link - ## - # RPC-specific configuration for `list_search_ads360_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_search_ads360_links - ## - # RPC-specific configuration for `create_search_ads360_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_search_ads360_link - ## - # RPC-specific configuration for `delete_search_ads360_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_search_ads360_link - ## - # RPC-specific configuration for `update_search_ads360_link` - # @return [::Gapic::Config::Method] - # - attr_reader :update_search_ads360_link - ## - # RPC-specific configuration for `get_attribution_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_attribution_settings - ## - # RPC-specific configuration for `update_attribution_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_attribution_settings - ## - # RPC-specific configuration for `run_access_report` - # @return [::Gapic::Config::Method] - # - attr_reader :run_access_report - ## - # RPC-specific configuration for `create_access_binding` - # @return [::Gapic::Config::Method] - # - attr_reader :create_access_binding - ## - # RPC-specific configuration for `get_access_binding` - # @return [::Gapic::Config::Method] - # - attr_reader :get_access_binding - ## - # RPC-specific configuration for `update_access_binding` - # @return [::Gapic::Config::Method] - # - attr_reader :update_access_binding - ## - # RPC-specific configuration for `delete_access_binding` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_access_binding - ## - # RPC-specific configuration for `list_access_bindings` - # @return [::Gapic::Config::Method] - # - attr_reader :list_access_bindings - ## - # RPC-specific configuration for `batch_create_access_bindings` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_create_access_bindings - ## - # RPC-specific configuration for `batch_get_access_bindings` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_get_access_bindings - ## - # RPC-specific configuration for `batch_update_access_bindings` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_update_access_bindings - ## - # RPC-specific configuration for `batch_delete_access_bindings` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_delete_access_bindings - ## - # RPC-specific configuration for `get_expanded_data_set` - # @return [::Gapic::Config::Method] - # - attr_reader :get_expanded_data_set - ## - # RPC-specific configuration for `list_expanded_data_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_expanded_data_sets - ## - # RPC-specific configuration for `create_expanded_data_set` - # @return [::Gapic::Config::Method] - # - attr_reader :create_expanded_data_set - ## - # RPC-specific configuration for `update_expanded_data_set` - # @return [::Gapic::Config::Method] - # - attr_reader :update_expanded_data_set - ## - # RPC-specific configuration for `delete_expanded_data_set` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_expanded_data_set - ## - # RPC-specific configuration for `get_channel_group` - # @return [::Gapic::Config::Method] - # - attr_reader :get_channel_group - ## - # RPC-specific configuration for `list_channel_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :list_channel_groups - ## - # RPC-specific configuration for `create_channel_group` - # @return [::Gapic::Config::Method] - # - attr_reader :create_channel_group - ## - # RPC-specific configuration for `update_channel_group` - # @return [::Gapic::Config::Method] - # - attr_reader :update_channel_group - ## - # RPC-specific configuration for `delete_channel_group` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_channel_group - ## - # RPC-specific configuration for `create_big_query_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_big_query_link - ## - # RPC-specific configuration for `get_big_query_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_big_query_link - ## - # RPC-specific configuration for `list_big_query_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_big_query_links - ## - # RPC-specific configuration for `delete_big_query_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_big_query_link - ## - # RPC-specific configuration for `update_big_query_link` - # @return [::Gapic::Config::Method] - # - attr_reader :update_big_query_link - ## - # RPC-specific configuration for `get_enhanced_measurement_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_enhanced_measurement_settings - ## - # RPC-specific configuration for `update_enhanced_measurement_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_enhanced_measurement_settings - ## - # RPC-specific configuration for `get_ad_sense_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_ad_sense_link - ## - # RPC-specific configuration for `create_ad_sense_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_ad_sense_link - ## - # RPC-specific configuration for `delete_ad_sense_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_ad_sense_link - ## - # RPC-specific configuration for `list_ad_sense_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_ad_sense_links - ## - # RPC-specific configuration for `get_event_create_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :get_event_create_rule - ## - # RPC-specific configuration for `list_event_create_rules` - # @return [::Gapic::Config::Method] - # - attr_reader :list_event_create_rules - ## - # RPC-specific configuration for `create_event_create_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :create_event_create_rule - ## - # RPC-specific configuration for `update_event_create_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :update_event_create_rule - ## - # RPC-specific configuration for `delete_event_create_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_event_create_rule - ## - # RPC-specific configuration for `get_event_edit_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :get_event_edit_rule - ## - # RPC-specific configuration for `list_event_edit_rules` - # @return [::Gapic::Config::Method] - # - attr_reader :list_event_edit_rules - ## - # RPC-specific configuration for `create_event_edit_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :create_event_edit_rule - ## - # RPC-specific configuration for `update_event_edit_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :update_event_edit_rule - ## - # RPC-specific configuration for `delete_event_edit_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_event_edit_rule - ## - # RPC-specific configuration for `reorder_event_edit_rules` - # @return [::Gapic::Config::Method] - # - attr_reader :reorder_event_edit_rules - ## - # RPC-specific configuration for `update_data_redaction_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_data_redaction_settings - ## - # RPC-specific configuration for `get_data_redaction_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_data_redaction_settings - ## - # RPC-specific configuration for `get_calculated_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :get_calculated_metric - ## - # RPC-specific configuration for `create_calculated_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :create_calculated_metric - ## - # RPC-specific configuration for `list_calculated_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :list_calculated_metrics - ## - # RPC-specific configuration for `update_calculated_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :update_calculated_metric - ## - # RPC-specific configuration for `delete_calculated_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_calculated_metric - ## - # RPC-specific configuration for `create_rollup_property` - # @return [::Gapic::Config::Method] - # - attr_reader :create_rollup_property - ## - # RPC-specific configuration for `get_rollup_property_source_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_rollup_property_source_link - ## - # RPC-specific configuration for `list_rollup_property_source_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_rollup_property_source_links - ## - # RPC-specific configuration for `create_rollup_property_source_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_rollup_property_source_link - ## - # RPC-specific configuration for `delete_rollup_property_source_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_rollup_property_source_link - ## - # RPC-specific configuration for `provision_subproperty` - # @return [::Gapic::Config::Method] - # - attr_reader :provision_subproperty - ## - # RPC-specific configuration for `create_subproperty_event_filter` - # @return [::Gapic::Config::Method] - # - attr_reader :create_subproperty_event_filter - ## - # RPC-specific configuration for `get_subproperty_event_filter` - # @return [::Gapic::Config::Method] - # - attr_reader :get_subproperty_event_filter - ## - # RPC-specific configuration for `list_subproperty_event_filters` - # @return [::Gapic::Config::Method] - # - attr_reader :list_subproperty_event_filters - ## - # RPC-specific configuration for `update_subproperty_event_filter` - # @return [::Gapic::Config::Method] - # - attr_reader :update_subproperty_event_filter - ## - # RPC-specific configuration for `delete_subproperty_event_filter` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_subproperty_event_filter - ## - # RPC-specific configuration for `create_reporting_data_annotation` - # @return [::Gapic::Config::Method] - # - attr_reader :create_reporting_data_annotation - ## - # RPC-specific configuration for `get_reporting_data_annotation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_reporting_data_annotation - ## - # RPC-specific configuration for `list_reporting_data_annotations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_reporting_data_annotations - ## - # RPC-specific configuration for `update_reporting_data_annotation` - # @return [::Gapic::Config::Method] - # - attr_reader :update_reporting_data_annotation - ## - # RPC-specific configuration for `delete_reporting_data_annotation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_reporting_data_annotation - ## - # RPC-specific configuration for `submit_user_deletion` - # @return [::Gapic::Config::Method] - # - attr_reader :submit_user_deletion - ## - # RPC-specific configuration for `list_subproperty_sync_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_subproperty_sync_configs - ## - # RPC-specific configuration for `update_subproperty_sync_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_subproperty_sync_config - ## - # RPC-specific configuration for `get_subproperty_sync_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_subproperty_sync_config - ## - # RPC-specific configuration for `get_reporting_identity_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_reporting_identity_settings - ## - # RPC-specific configuration for `update_reporting_identity_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_reporting_identity_settings - ## - # RPC-specific configuration for `get_user_provided_data_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_user_provided_data_settings - - # @private - def initialize parent_rpcs = nil - get_account_config = parent_rpcs.get_account if parent_rpcs.respond_to? :get_account - @get_account = ::Gapic::Config::Method.new get_account_config - list_accounts_config = parent_rpcs.list_accounts if parent_rpcs.respond_to? :list_accounts - @list_accounts = ::Gapic::Config::Method.new list_accounts_config - delete_account_config = parent_rpcs.delete_account if parent_rpcs.respond_to? :delete_account - @delete_account = ::Gapic::Config::Method.new delete_account_config - update_account_config = parent_rpcs.update_account if parent_rpcs.respond_to? :update_account - @update_account = ::Gapic::Config::Method.new update_account_config - provision_account_ticket_config = parent_rpcs.provision_account_ticket if parent_rpcs.respond_to? :provision_account_ticket - @provision_account_ticket = ::Gapic::Config::Method.new provision_account_ticket_config - list_account_summaries_config = parent_rpcs.list_account_summaries if parent_rpcs.respond_to? :list_account_summaries - @list_account_summaries = ::Gapic::Config::Method.new list_account_summaries_config - get_property_config = parent_rpcs.get_property if parent_rpcs.respond_to? :get_property - @get_property = ::Gapic::Config::Method.new get_property_config - list_properties_config = parent_rpcs.list_properties if parent_rpcs.respond_to? :list_properties - @list_properties = ::Gapic::Config::Method.new list_properties_config - create_property_config = parent_rpcs.create_property if parent_rpcs.respond_to? :create_property - @create_property = ::Gapic::Config::Method.new create_property_config - delete_property_config = parent_rpcs.delete_property if parent_rpcs.respond_to? :delete_property - @delete_property = ::Gapic::Config::Method.new delete_property_config - update_property_config = parent_rpcs.update_property if parent_rpcs.respond_to? :update_property - @update_property = ::Gapic::Config::Method.new update_property_config - create_firebase_link_config = parent_rpcs.create_firebase_link if parent_rpcs.respond_to? :create_firebase_link - @create_firebase_link = ::Gapic::Config::Method.new create_firebase_link_config - delete_firebase_link_config = parent_rpcs.delete_firebase_link if parent_rpcs.respond_to? :delete_firebase_link - @delete_firebase_link = ::Gapic::Config::Method.new delete_firebase_link_config - list_firebase_links_config = parent_rpcs.list_firebase_links if parent_rpcs.respond_to? :list_firebase_links - @list_firebase_links = ::Gapic::Config::Method.new list_firebase_links_config - get_global_site_tag_config = parent_rpcs.get_global_site_tag if parent_rpcs.respond_to? :get_global_site_tag - @get_global_site_tag = ::Gapic::Config::Method.new get_global_site_tag_config - create_google_ads_link_config = parent_rpcs.create_google_ads_link if parent_rpcs.respond_to? :create_google_ads_link - @create_google_ads_link = ::Gapic::Config::Method.new create_google_ads_link_config - update_google_ads_link_config = parent_rpcs.update_google_ads_link if parent_rpcs.respond_to? :update_google_ads_link - @update_google_ads_link = ::Gapic::Config::Method.new update_google_ads_link_config - delete_google_ads_link_config = parent_rpcs.delete_google_ads_link if parent_rpcs.respond_to? :delete_google_ads_link - @delete_google_ads_link = ::Gapic::Config::Method.new delete_google_ads_link_config - list_google_ads_links_config = parent_rpcs.list_google_ads_links if parent_rpcs.respond_to? :list_google_ads_links - @list_google_ads_links = ::Gapic::Config::Method.new list_google_ads_links_config - get_data_sharing_settings_config = parent_rpcs.get_data_sharing_settings if parent_rpcs.respond_to? :get_data_sharing_settings - @get_data_sharing_settings = ::Gapic::Config::Method.new get_data_sharing_settings_config - get_measurement_protocol_secret_config = parent_rpcs.get_measurement_protocol_secret if parent_rpcs.respond_to? :get_measurement_protocol_secret - @get_measurement_protocol_secret = ::Gapic::Config::Method.new get_measurement_protocol_secret_config - list_measurement_protocol_secrets_config = parent_rpcs.list_measurement_protocol_secrets if parent_rpcs.respond_to? :list_measurement_protocol_secrets - @list_measurement_protocol_secrets = ::Gapic::Config::Method.new list_measurement_protocol_secrets_config - create_measurement_protocol_secret_config = parent_rpcs.create_measurement_protocol_secret if parent_rpcs.respond_to? :create_measurement_protocol_secret - @create_measurement_protocol_secret = ::Gapic::Config::Method.new create_measurement_protocol_secret_config - delete_measurement_protocol_secret_config = parent_rpcs.delete_measurement_protocol_secret if parent_rpcs.respond_to? :delete_measurement_protocol_secret - @delete_measurement_protocol_secret = ::Gapic::Config::Method.new delete_measurement_protocol_secret_config - update_measurement_protocol_secret_config = parent_rpcs.update_measurement_protocol_secret if parent_rpcs.respond_to? :update_measurement_protocol_secret - @update_measurement_protocol_secret = ::Gapic::Config::Method.new update_measurement_protocol_secret_config - acknowledge_user_data_collection_config = parent_rpcs.acknowledge_user_data_collection if parent_rpcs.respond_to? :acknowledge_user_data_collection - @acknowledge_user_data_collection = ::Gapic::Config::Method.new acknowledge_user_data_collection_config - get_sk_ad_network_conversion_value_schema_config = parent_rpcs.get_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :get_sk_ad_network_conversion_value_schema - @get_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new get_sk_ad_network_conversion_value_schema_config - create_sk_ad_network_conversion_value_schema_config = parent_rpcs.create_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :create_sk_ad_network_conversion_value_schema - @create_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new create_sk_ad_network_conversion_value_schema_config - delete_sk_ad_network_conversion_value_schema_config = parent_rpcs.delete_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :delete_sk_ad_network_conversion_value_schema - @delete_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new delete_sk_ad_network_conversion_value_schema_config - update_sk_ad_network_conversion_value_schema_config = parent_rpcs.update_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :update_sk_ad_network_conversion_value_schema - @update_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new update_sk_ad_network_conversion_value_schema_config - list_sk_ad_network_conversion_value_schemas_config = parent_rpcs.list_sk_ad_network_conversion_value_schemas if parent_rpcs.respond_to? :list_sk_ad_network_conversion_value_schemas - @list_sk_ad_network_conversion_value_schemas = ::Gapic::Config::Method.new list_sk_ad_network_conversion_value_schemas_config - search_change_history_events_config = parent_rpcs.search_change_history_events if parent_rpcs.respond_to? :search_change_history_events - @search_change_history_events = ::Gapic::Config::Method.new search_change_history_events_config - get_google_signals_settings_config = parent_rpcs.get_google_signals_settings if parent_rpcs.respond_to? :get_google_signals_settings - @get_google_signals_settings = ::Gapic::Config::Method.new get_google_signals_settings_config - update_google_signals_settings_config = parent_rpcs.update_google_signals_settings if parent_rpcs.respond_to? :update_google_signals_settings - @update_google_signals_settings = ::Gapic::Config::Method.new update_google_signals_settings_config - create_conversion_event_config = parent_rpcs.create_conversion_event if parent_rpcs.respond_to? :create_conversion_event - @create_conversion_event = ::Gapic::Config::Method.new create_conversion_event_config - update_conversion_event_config = parent_rpcs.update_conversion_event if parent_rpcs.respond_to? :update_conversion_event - @update_conversion_event = ::Gapic::Config::Method.new update_conversion_event_config - get_conversion_event_config = parent_rpcs.get_conversion_event if parent_rpcs.respond_to? :get_conversion_event - @get_conversion_event = ::Gapic::Config::Method.new get_conversion_event_config - delete_conversion_event_config = parent_rpcs.delete_conversion_event if parent_rpcs.respond_to? :delete_conversion_event - @delete_conversion_event = ::Gapic::Config::Method.new delete_conversion_event_config - list_conversion_events_config = parent_rpcs.list_conversion_events if parent_rpcs.respond_to? :list_conversion_events - @list_conversion_events = ::Gapic::Config::Method.new list_conversion_events_config - create_key_event_config = parent_rpcs.create_key_event if parent_rpcs.respond_to? :create_key_event - @create_key_event = ::Gapic::Config::Method.new create_key_event_config - update_key_event_config = parent_rpcs.update_key_event if parent_rpcs.respond_to? :update_key_event - @update_key_event = ::Gapic::Config::Method.new update_key_event_config - get_key_event_config = parent_rpcs.get_key_event if parent_rpcs.respond_to? :get_key_event - @get_key_event = ::Gapic::Config::Method.new get_key_event_config - delete_key_event_config = parent_rpcs.delete_key_event if parent_rpcs.respond_to? :delete_key_event - @delete_key_event = ::Gapic::Config::Method.new delete_key_event_config - list_key_events_config = parent_rpcs.list_key_events if parent_rpcs.respond_to? :list_key_events - @list_key_events = ::Gapic::Config::Method.new list_key_events_config - get_display_video360_advertiser_link_config = parent_rpcs.get_display_video360_advertiser_link if parent_rpcs.respond_to? :get_display_video360_advertiser_link - @get_display_video360_advertiser_link = ::Gapic::Config::Method.new get_display_video360_advertiser_link_config - list_display_video360_advertiser_links_config = parent_rpcs.list_display_video360_advertiser_links if parent_rpcs.respond_to? :list_display_video360_advertiser_links - @list_display_video360_advertiser_links = ::Gapic::Config::Method.new list_display_video360_advertiser_links_config - create_display_video360_advertiser_link_config = parent_rpcs.create_display_video360_advertiser_link if parent_rpcs.respond_to? :create_display_video360_advertiser_link - @create_display_video360_advertiser_link = ::Gapic::Config::Method.new create_display_video360_advertiser_link_config - delete_display_video360_advertiser_link_config = parent_rpcs.delete_display_video360_advertiser_link if parent_rpcs.respond_to? :delete_display_video360_advertiser_link - @delete_display_video360_advertiser_link = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_config - update_display_video360_advertiser_link_config = parent_rpcs.update_display_video360_advertiser_link if parent_rpcs.respond_to? :update_display_video360_advertiser_link - @update_display_video360_advertiser_link = ::Gapic::Config::Method.new update_display_video360_advertiser_link_config - get_display_video360_advertiser_link_proposal_config = parent_rpcs.get_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :get_display_video360_advertiser_link_proposal - @get_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new get_display_video360_advertiser_link_proposal_config - list_display_video360_advertiser_link_proposals_config = parent_rpcs.list_display_video360_advertiser_link_proposals if parent_rpcs.respond_to? :list_display_video360_advertiser_link_proposals - @list_display_video360_advertiser_link_proposals = ::Gapic::Config::Method.new list_display_video360_advertiser_link_proposals_config - create_display_video360_advertiser_link_proposal_config = parent_rpcs.create_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :create_display_video360_advertiser_link_proposal - @create_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new create_display_video360_advertiser_link_proposal_config - delete_display_video360_advertiser_link_proposal_config = parent_rpcs.delete_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :delete_display_video360_advertiser_link_proposal - @delete_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_proposal_config - approve_display_video360_advertiser_link_proposal_config = parent_rpcs.approve_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :approve_display_video360_advertiser_link_proposal - @approve_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new approve_display_video360_advertiser_link_proposal_config - cancel_display_video360_advertiser_link_proposal_config = parent_rpcs.cancel_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :cancel_display_video360_advertiser_link_proposal - @cancel_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new cancel_display_video360_advertiser_link_proposal_config - create_custom_dimension_config = parent_rpcs.create_custom_dimension if parent_rpcs.respond_to? :create_custom_dimension - @create_custom_dimension = ::Gapic::Config::Method.new create_custom_dimension_config - update_custom_dimension_config = parent_rpcs.update_custom_dimension if parent_rpcs.respond_to? :update_custom_dimension - @update_custom_dimension = ::Gapic::Config::Method.new update_custom_dimension_config - list_custom_dimensions_config = parent_rpcs.list_custom_dimensions if parent_rpcs.respond_to? :list_custom_dimensions - @list_custom_dimensions = ::Gapic::Config::Method.new list_custom_dimensions_config - archive_custom_dimension_config = parent_rpcs.archive_custom_dimension if parent_rpcs.respond_to? :archive_custom_dimension - @archive_custom_dimension = ::Gapic::Config::Method.new archive_custom_dimension_config - get_custom_dimension_config = parent_rpcs.get_custom_dimension if parent_rpcs.respond_to? :get_custom_dimension - @get_custom_dimension = ::Gapic::Config::Method.new get_custom_dimension_config - create_custom_metric_config = parent_rpcs.create_custom_metric if parent_rpcs.respond_to? :create_custom_metric - @create_custom_metric = ::Gapic::Config::Method.new create_custom_metric_config - update_custom_metric_config = parent_rpcs.update_custom_metric if parent_rpcs.respond_to? :update_custom_metric - @update_custom_metric = ::Gapic::Config::Method.new update_custom_metric_config - list_custom_metrics_config = parent_rpcs.list_custom_metrics if parent_rpcs.respond_to? :list_custom_metrics - @list_custom_metrics = ::Gapic::Config::Method.new list_custom_metrics_config - archive_custom_metric_config = parent_rpcs.archive_custom_metric if parent_rpcs.respond_to? :archive_custom_metric - @archive_custom_metric = ::Gapic::Config::Method.new archive_custom_metric_config - get_custom_metric_config = parent_rpcs.get_custom_metric if parent_rpcs.respond_to? :get_custom_metric - @get_custom_metric = ::Gapic::Config::Method.new get_custom_metric_config - get_data_retention_settings_config = parent_rpcs.get_data_retention_settings if parent_rpcs.respond_to? :get_data_retention_settings - @get_data_retention_settings = ::Gapic::Config::Method.new get_data_retention_settings_config - update_data_retention_settings_config = parent_rpcs.update_data_retention_settings if parent_rpcs.respond_to? :update_data_retention_settings - @update_data_retention_settings = ::Gapic::Config::Method.new update_data_retention_settings_config - create_data_stream_config = parent_rpcs.create_data_stream if parent_rpcs.respond_to? :create_data_stream - @create_data_stream = ::Gapic::Config::Method.new create_data_stream_config - delete_data_stream_config = parent_rpcs.delete_data_stream if parent_rpcs.respond_to? :delete_data_stream - @delete_data_stream = ::Gapic::Config::Method.new delete_data_stream_config - update_data_stream_config = parent_rpcs.update_data_stream if parent_rpcs.respond_to? :update_data_stream - @update_data_stream = ::Gapic::Config::Method.new update_data_stream_config - list_data_streams_config = parent_rpcs.list_data_streams if parent_rpcs.respond_to? :list_data_streams - @list_data_streams = ::Gapic::Config::Method.new list_data_streams_config - get_data_stream_config = parent_rpcs.get_data_stream if parent_rpcs.respond_to? :get_data_stream - @get_data_stream = ::Gapic::Config::Method.new get_data_stream_config - get_audience_config = parent_rpcs.get_audience if parent_rpcs.respond_to? :get_audience - @get_audience = ::Gapic::Config::Method.new get_audience_config - list_audiences_config = parent_rpcs.list_audiences if parent_rpcs.respond_to? :list_audiences - @list_audiences = ::Gapic::Config::Method.new list_audiences_config - create_audience_config = parent_rpcs.create_audience if parent_rpcs.respond_to? :create_audience - @create_audience = ::Gapic::Config::Method.new create_audience_config - update_audience_config = parent_rpcs.update_audience if parent_rpcs.respond_to? :update_audience - @update_audience = ::Gapic::Config::Method.new update_audience_config - archive_audience_config = parent_rpcs.archive_audience if parent_rpcs.respond_to? :archive_audience - @archive_audience = ::Gapic::Config::Method.new archive_audience_config - get_search_ads360_link_config = parent_rpcs.get_search_ads360_link if parent_rpcs.respond_to? :get_search_ads360_link - @get_search_ads360_link = ::Gapic::Config::Method.new get_search_ads360_link_config - list_search_ads360_links_config = parent_rpcs.list_search_ads360_links if parent_rpcs.respond_to? :list_search_ads360_links - @list_search_ads360_links = ::Gapic::Config::Method.new list_search_ads360_links_config - create_search_ads360_link_config = parent_rpcs.create_search_ads360_link if parent_rpcs.respond_to? :create_search_ads360_link - @create_search_ads360_link = ::Gapic::Config::Method.new create_search_ads360_link_config - delete_search_ads360_link_config = parent_rpcs.delete_search_ads360_link if parent_rpcs.respond_to? :delete_search_ads360_link - @delete_search_ads360_link = ::Gapic::Config::Method.new delete_search_ads360_link_config - update_search_ads360_link_config = parent_rpcs.update_search_ads360_link if parent_rpcs.respond_to? :update_search_ads360_link - @update_search_ads360_link = ::Gapic::Config::Method.new update_search_ads360_link_config - get_attribution_settings_config = parent_rpcs.get_attribution_settings if parent_rpcs.respond_to? :get_attribution_settings - @get_attribution_settings = ::Gapic::Config::Method.new get_attribution_settings_config - update_attribution_settings_config = parent_rpcs.update_attribution_settings if parent_rpcs.respond_to? :update_attribution_settings - @update_attribution_settings = ::Gapic::Config::Method.new update_attribution_settings_config - run_access_report_config = parent_rpcs.run_access_report if parent_rpcs.respond_to? :run_access_report - @run_access_report = ::Gapic::Config::Method.new run_access_report_config - create_access_binding_config = parent_rpcs.create_access_binding if parent_rpcs.respond_to? :create_access_binding - @create_access_binding = ::Gapic::Config::Method.new create_access_binding_config - get_access_binding_config = parent_rpcs.get_access_binding if parent_rpcs.respond_to? :get_access_binding - @get_access_binding = ::Gapic::Config::Method.new get_access_binding_config - update_access_binding_config = parent_rpcs.update_access_binding if parent_rpcs.respond_to? :update_access_binding - @update_access_binding = ::Gapic::Config::Method.new update_access_binding_config - delete_access_binding_config = parent_rpcs.delete_access_binding if parent_rpcs.respond_to? :delete_access_binding - @delete_access_binding = ::Gapic::Config::Method.new delete_access_binding_config - list_access_bindings_config = parent_rpcs.list_access_bindings if parent_rpcs.respond_to? :list_access_bindings - @list_access_bindings = ::Gapic::Config::Method.new list_access_bindings_config - batch_create_access_bindings_config = parent_rpcs.batch_create_access_bindings if parent_rpcs.respond_to? :batch_create_access_bindings - @batch_create_access_bindings = ::Gapic::Config::Method.new batch_create_access_bindings_config - batch_get_access_bindings_config = parent_rpcs.batch_get_access_bindings if parent_rpcs.respond_to? :batch_get_access_bindings - @batch_get_access_bindings = ::Gapic::Config::Method.new batch_get_access_bindings_config - batch_update_access_bindings_config = parent_rpcs.batch_update_access_bindings if parent_rpcs.respond_to? :batch_update_access_bindings - @batch_update_access_bindings = ::Gapic::Config::Method.new batch_update_access_bindings_config - batch_delete_access_bindings_config = parent_rpcs.batch_delete_access_bindings if parent_rpcs.respond_to? :batch_delete_access_bindings - @batch_delete_access_bindings = ::Gapic::Config::Method.new batch_delete_access_bindings_config - get_expanded_data_set_config = parent_rpcs.get_expanded_data_set if parent_rpcs.respond_to? :get_expanded_data_set - @get_expanded_data_set = ::Gapic::Config::Method.new get_expanded_data_set_config - list_expanded_data_sets_config = parent_rpcs.list_expanded_data_sets if parent_rpcs.respond_to? :list_expanded_data_sets - @list_expanded_data_sets = ::Gapic::Config::Method.new list_expanded_data_sets_config - create_expanded_data_set_config = parent_rpcs.create_expanded_data_set if parent_rpcs.respond_to? :create_expanded_data_set - @create_expanded_data_set = ::Gapic::Config::Method.new create_expanded_data_set_config - update_expanded_data_set_config = parent_rpcs.update_expanded_data_set if parent_rpcs.respond_to? :update_expanded_data_set - @update_expanded_data_set = ::Gapic::Config::Method.new update_expanded_data_set_config - delete_expanded_data_set_config = parent_rpcs.delete_expanded_data_set if parent_rpcs.respond_to? :delete_expanded_data_set - @delete_expanded_data_set = ::Gapic::Config::Method.new delete_expanded_data_set_config - get_channel_group_config = parent_rpcs.get_channel_group if parent_rpcs.respond_to? :get_channel_group - @get_channel_group = ::Gapic::Config::Method.new get_channel_group_config - list_channel_groups_config = parent_rpcs.list_channel_groups if parent_rpcs.respond_to? :list_channel_groups - @list_channel_groups = ::Gapic::Config::Method.new list_channel_groups_config - create_channel_group_config = parent_rpcs.create_channel_group if parent_rpcs.respond_to? :create_channel_group - @create_channel_group = ::Gapic::Config::Method.new create_channel_group_config - update_channel_group_config = parent_rpcs.update_channel_group if parent_rpcs.respond_to? :update_channel_group - @update_channel_group = ::Gapic::Config::Method.new update_channel_group_config - delete_channel_group_config = parent_rpcs.delete_channel_group if parent_rpcs.respond_to? :delete_channel_group - @delete_channel_group = ::Gapic::Config::Method.new delete_channel_group_config - create_big_query_link_config = parent_rpcs.create_big_query_link if parent_rpcs.respond_to? :create_big_query_link - @create_big_query_link = ::Gapic::Config::Method.new create_big_query_link_config - get_big_query_link_config = parent_rpcs.get_big_query_link if parent_rpcs.respond_to? :get_big_query_link - @get_big_query_link = ::Gapic::Config::Method.new get_big_query_link_config - list_big_query_links_config = parent_rpcs.list_big_query_links if parent_rpcs.respond_to? :list_big_query_links - @list_big_query_links = ::Gapic::Config::Method.new list_big_query_links_config - delete_big_query_link_config = parent_rpcs.delete_big_query_link if parent_rpcs.respond_to? :delete_big_query_link - @delete_big_query_link = ::Gapic::Config::Method.new delete_big_query_link_config - update_big_query_link_config = parent_rpcs.update_big_query_link if parent_rpcs.respond_to? :update_big_query_link - @update_big_query_link = ::Gapic::Config::Method.new update_big_query_link_config - get_enhanced_measurement_settings_config = parent_rpcs.get_enhanced_measurement_settings if parent_rpcs.respond_to? :get_enhanced_measurement_settings - @get_enhanced_measurement_settings = ::Gapic::Config::Method.new get_enhanced_measurement_settings_config - update_enhanced_measurement_settings_config = parent_rpcs.update_enhanced_measurement_settings if parent_rpcs.respond_to? :update_enhanced_measurement_settings - @update_enhanced_measurement_settings = ::Gapic::Config::Method.new update_enhanced_measurement_settings_config - get_ad_sense_link_config = parent_rpcs.get_ad_sense_link if parent_rpcs.respond_to? :get_ad_sense_link - @get_ad_sense_link = ::Gapic::Config::Method.new get_ad_sense_link_config - create_ad_sense_link_config = parent_rpcs.create_ad_sense_link if parent_rpcs.respond_to? :create_ad_sense_link - @create_ad_sense_link = ::Gapic::Config::Method.new create_ad_sense_link_config - delete_ad_sense_link_config = parent_rpcs.delete_ad_sense_link if parent_rpcs.respond_to? :delete_ad_sense_link - @delete_ad_sense_link = ::Gapic::Config::Method.new delete_ad_sense_link_config - list_ad_sense_links_config = parent_rpcs.list_ad_sense_links if parent_rpcs.respond_to? :list_ad_sense_links - @list_ad_sense_links = ::Gapic::Config::Method.new list_ad_sense_links_config - get_event_create_rule_config = parent_rpcs.get_event_create_rule if parent_rpcs.respond_to? :get_event_create_rule - @get_event_create_rule = ::Gapic::Config::Method.new get_event_create_rule_config - list_event_create_rules_config = parent_rpcs.list_event_create_rules if parent_rpcs.respond_to? :list_event_create_rules - @list_event_create_rules = ::Gapic::Config::Method.new list_event_create_rules_config - create_event_create_rule_config = parent_rpcs.create_event_create_rule if parent_rpcs.respond_to? :create_event_create_rule - @create_event_create_rule = ::Gapic::Config::Method.new create_event_create_rule_config - update_event_create_rule_config = parent_rpcs.update_event_create_rule if parent_rpcs.respond_to? :update_event_create_rule - @update_event_create_rule = ::Gapic::Config::Method.new update_event_create_rule_config - delete_event_create_rule_config = parent_rpcs.delete_event_create_rule if parent_rpcs.respond_to? :delete_event_create_rule - @delete_event_create_rule = ::Gapic::Config::Method.new delete_event_create_rule_config - get_event_edit_rule_config = parent_rpcs.get_event_edit_rule if parent_rpcs.respond_to? :get_event_edit_rule - @get_event_edit_rule = ::Gapic::Config::Method.new get_event_edit_rule_config - list_event_edit_rules_config = parent_rpcs.list_event_edit_rules if parent_rpcs.respond_to? :list_event_edit_rules - @list_event_edit_rules = ::Gapic::Config::Method.new list_event_edit_rules_config - create_event_edit_rule_config = parent_rpcs.create_event_edit_rule if parent_rpcs.respond_to? :create_event_edit_rule - @create_event_edit_rule = ::Gapic::Config::Method.new create_event_edit_rule_config - update_event_edit_rule_config = parent_rpcs.update_event_edit_rule if parent_rpcs.respond_to? :update_event_edit_rule - @update_event_edit_rule = ::Gapic::Config::Method.new update_event_edit_rule_config - delete_event_edit_rule_config = parent_rpcs.delete_event_edit_rule if parent_rpcs.respond_to? :delete_event_edit_rule - @delete_event_edit_rule = ::Gapic::Config::Method.new delete_event_edit_rule_config - reorder_event_edit_rules_config = parent_rpcs.reorder_event_edit_rules if parent_rpcs.respond_to? :reorder_event_edit_rules - @reorder_event_edit_rules = ::Gapic::Config::Method.new reorder_event_edit_rules_config - update_data_redaction_settings_config = parent_rpcs.update_data_redaction_settings if parent_rpcs.respond_to? :update_data_redaction_settings - @update_data_redaction_settings = ::Gapic::Config::Method.new update_data_redaction_settings_config - get_data_redaction_settings_config = parent_rpcs.get_data_redaction_settings if parent_rpcs.respond_to? :get_data_redaction_settings - @get_data_redaction_settings = ::Gapic::Config::Method.new get_data_redaction_settings_config - get_calculated_metric_config = parent_rpcs.get_calculated_metric if parent_rpcs.respond_to? :get_calculated_metric - @get_calculated_metric = ::Gapic::Config::Method.new get_calculated_metric_config - create_calculated_metric_config = parent_rpcs.create_calculated_metric if parent_rpcs.respond_to? :create_calculated_metric - @create_calculated_metric = ::Gapic::Config::Method.new create_calculated_metric_config - list_calculated_metrics_config = parent_rpcs.list_calculated_metrics if parent_rpcs.respond_to? :list_calculated_metrics - @list_calculated_metrics = ::Gapic::Config::Method.new list_calculated_metrics_config - update_calculated_metric_config = parent_rpcs.update_calculated_metric if parent_rpcs.respond_to? :update_calculated_metric - @update_calculated_metric = ::Gapic::Config::Method.new update_calculated_metric_config - delete_calculated_metric_config = parent_rpcs.delete_calculated_metric if parent_rpcs.respond_to? :delete_calculated_metric - @delete_calculated_metric = ::Gapic::Config::Method.new delete_calculated_metric_config - create_rollup_property_config = parent_rpcs.create_rollup_property if parent_rpcs.respond_to? :create_rollup_property - @create_rollup_property = ::Gapic::Config::Method.new create_rollup_property_config - get_rollup_property_source_link_config = parent_rpcs.get_rollup_property_source_link if parent_rpcs.respond_to? :get_rollup_property_source_link - @get_rollup_property_source_link = ::Gapic::Config::Method.new get_rollup_property_source_link_config - list_rollup_property_source_links_config = parent_rpcs.list_rollup_property_source_links if parent_rpcs.respond_to? :list_rollup_property_source_links - @list_rollup_property_source_links = ::Gapic::Config::Method.new list_rollup_property_source_links_config - create_rollup_property_source_link_config = parent_rpcs.create_rollup_property_source_link if parent_rpcs.respond_to? :create_rollup_property_source_link - @create_rollup_property_source_link = ::Gapic::Config::Method.new create_rollup_property_source_link_config - delete_rollup_property_source_link_config = parent_rpcs.delete_rollup_property_source_link if parent_rpcs.respond_to? :delete_rollup_property_source_link - @delete_rollup_property_source_link = ::Gapic::Config::Method.new delete_rollup_property_source_link_config - provision_subproperty_config = parent_rpcs.provision_subproperty if parent_rpcs.respond_to? :provision_subproperty - @provision_subproperty = ::Gapic::Config::Method.new provision_subproperty_config - create_subproperty_event_filter_config = parent_rpcs.create_subproperty_event_filter if parent_rpcs.respond_to? :create_subproperty_event_filter - @create_subproperty_event_filter = ::Gapic::Config::Method.new create_subproperty_event_filter_config - get_subproperty_event_filter_config = parent_rpcs.get_subproperty_event_filter if parent_rpcs.respond_to? :get_subproperty_event_filter - @get_subproperty_event_filter = ::Gapic::Config::Method.new get_subproperty_event_filter_config - list_subproperty_event_filters_config = parent_rpcs.list_subproperty_event_filters if parent_rpcs.respond_to? :list_subproperty_event_filters - @list_subproperty_event_filters = ::Gapic::Config::Method.new list_subproperty_event_filters_config - update_subproperty_event_filter_config = parent_rpcs.update_subproperty_event_filter if parent_rpcs.respond_to? :update_subproperty_event_filter - @update_subproperty_event_filter = ::Gapic::Config::Method.new update_subproperty_event_filter_config - delete_subproperty_event_filter_config = parent_rpcs.delete_subproperty_event_filter if parent_rpcs.respond_to? :delete_subproperty_event_filter - @delete_subproperty_event_filter = ::Gapic::Config::Method.new delete_subproperty_event_filter_config - create_reporting_data_annotation_config = parent_rpcs.create_reporting_data_annotation if parent_rpcs.respond_to? :create_reporting_data_annotation - @create_reporting_data_annotation = ::Gapic::Config::Method.new create_reporting_data_annotation_config - get_reporting_data_annotation_config = parent_rpcs.get_reporting_data_annotation if parent_rpcs.respond_to? :get_reporting_data_annotation - @get_reporting_data_annotation = ::Gapic::Config::Method.new get_reporting_data_annotation_config - list_reporting_data_annotations_config = parent_rpcs.list_reporting_data_annotations if parent_rpcs.respond_to? :list_reporting_data_annotations - @list_reporting_data_annotations = ::Gapic::Config::Method.new list_reporting_data_annotations_config - update_reporting_data_annotation_config = parent_rpcs.update_reporting_data_annotation if parent_rpcs.respond_to? :update_reporting_data_annotation - @update_reporting_data_annotation = ::Gapic::Config::Method.new update_reporting_data_annotation_config - delete_reporting_data_annotation_config = parent_rpcs.delete_reporting_data_annotation if parent_rpcs.respond_to? :delete_reporting_data_annotation - @delete_reporting_data_annotation = ::Gapic::Config::Method.new delete_reporting_data_annotation_config - submit_user_deletion_config = parent_rpcs.submit_user_deletion if parent_rpcs.respond_to? :submit_user_deletion - @submit_user_deletion = ::Gapic::Config::Method.new submit_user_deletion_config - list_subproperty_sync_configs_config = parent_rpcs.list_subproperty_sync_configs if parent_rpcs.respond_to? :list_subproperty_sync_configs - @list_subproperty_sync_configs = ::Gapic::Config::Method.new list_subproperty_sync_configs_config - update_subproperty_sync_config_config = parent_rpcs.update_subproperty_sync_config if parent_rpcs.respond_to? :update_subproperty_sync_config - @update_subproperty_sync_config = ::Gapic::Config::Method.new update_subproperty_sync_config_config - get_subproperty_sync_config_config = parent_rpcs.get_subproperty_sync_config if parent_rpcs.respond_to? :get_subproperty_sync_config - @get_subproperty_sync_config = ::Gapic::Config::Method.new get_subproperty_sync_config_config - get_reporting_identity_settings_config = parent_rpcs.get_reporting_identity_settings if parent_rpcs.respond_to? :get_reporting_identity_settings - @get_reporting_identity_settings = ::Gapic::Config::Method.new get_reporting_identity_settings_config - update_reporting_identity_settings_config = parent_rpcs.update_reporting_identity_settings if parent_rpcs.respond_to? :update_reporting_identity_settings - @update_reporting_identity_settings = ::Gapic::Config::Method.new update_reporting_identity_settings_config - get_user_provided_data_settings_config = parent_rpcs.get_user_provided_data_settings if parent_rpcs.respond_to? :get_user_provided_data_settings - @get_user_provided_data_settings = ::Gapic::Config::Method.new get_user_provided_data_settings_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/credentials.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/credentials.rb deleted file mode 100644 index 6b540299bdc9..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/credentials.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Analytics - module Admin - module V1alpha - module AnalyticsAdminService - # Credentials for the AnalyticsAdminService API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/analytics.edit", - "https://www.googleapis.com/auth/analytics.manage.users", - "https://www.googleapis.com/auth/analytics.manage.users.readonly", - "https://www.googleapis.com/auth/analytics.readonly" - ] - self.env_vars = [ - "ANALYTICS_ADMIN_CREDENTIALS", - "ANALYTICS_ADMIN_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "ANALYTICS_ADMIN_CREDENTIALS_JSON", - "ANALYTICS_ADMIN_KEYFILE_JSON", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb deleted file mode 100644 index f621394047df..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb +++ /dev/null @@ -1,665 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Analytics - module Admin - module V1alpha - module AnalyticsAdminService - # Path helper methods for the AnalyticsAdminService API. - module Paths - ## - # Create a fully-qualified AccessBinding resource string. - # - # @overload access_binding_path(account:, access_binding:) - # The resource will be in the following format: - # - # `accounts/{account}/accessBindings/{access_binding}` - # - # @param account [String] - # @param access_binding [String] - # - # @overload access_binding_path(property:, access_binding:) - # The resource will be in the following format: - # - # `properties/{property}/accessBindings/{access_binding}` - # - # @param property [String] - # @param access_binding [String] - # - # @return [::String] - def access_binding_path **args - resources = { - "access_binding:account" => (proc do |account:, access_binding:| - raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" - - "accounts/#{account}/accessBindings/#{access_binding}" - end), - "access_binding:property" => (proc do |property:, access_binding:| - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/accessBindings/#{access_binding}" - end) - } - - resource = resources[args.keys.sort.join(":")] - raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? - resource.call(**args) - end - - ## - # Create a fully-qualified Account resource string. - # - # The resource will be in the following format: - # - # `accounts/{account}` - # - # @param account [String] - # - # @return [::String] - def account_path account: - "accounts/#{account}" - end - - ## - # Create a fully-qualified AdSenseLink resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/adSenseLinks/{adsense_link}` - # - # @param property [String] - # @param adsense_link [String] - # - # @return [::String] - def ad_sense_link_path property:, adsense_link: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/adSenseLinks/#{adsense_link}" - end - - ## - # Create a fully-qualified AttributionSettings resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/attributionSettings` - # - # @param property [String] - # - # @return [::String] - def attribution_settings_path property: - "properties/#{property}/attributionSettings" - end - - ## - # Create a fully-qualified Audience resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/audiences/{audience}` - # - # @param property [String] - # @param audience [String] - # - # @return [::String] - def audience_path property:, audience: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/audiences/#{audience}" - end - - ## - # Create a fully-qualified BigQueryLink resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/bigQueryLinks/{bigquery_link}` - # - # @param property [String] - # @param bigquery_link [String] - # - # @return [::String] - def big_query_link_path property:, bigquery_link: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/bigQueryLinks/#{bigquery_link}" - end - - ## - # Create a fully-qualified CalculatedMetric resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/calculatedMetrics/{calculated_metric}` - # - # @param property [String] - # @param calculated_metric [String] - # - # @return [::String] - def calculated_metric_path property:, calculated_metric: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/calculatedMetrics/#{calculated_metric}" - end - - ## - # Create a fully-qualified ChannelGroup resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/channelGroups/{channel_group}` - # - # @param property [String] - # @param channel_group [String] - # - # @return [::String] - def channel_group_path property:, channel_group: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/channelGroups/#{channel_group}" - end - - ## - # Create a fully-qualified ConversionEvent resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/conversionEvents/{conversion_event}` - # - # @param property [String] - # @param conversion_event [String] - # - # @return [::String] - def conversion_event_path property:, conversion_event: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/conversionEvents/#{conversion_event}" - end - - ## - # Create a fully-qualified CustomDimension resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/customDimensions/{custom_dimension}` - # - # @param property [String] - # @param custom_dimension [String] - # - # @return [::String] - def custom_dimension_path property:, custom_dimension: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/customDimensions/#{custom_dimension}" - end - - ## - # Create a fully-qualified CustomMetric resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/customMetrics/{custom_metric}` - # - # @param property [String] - # @param custom_metric [String] - # - # @return [::String] - def custom_metric_path property:, custom_metric: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/customMetrics/#{custom_metric}" - end - - ## - # Create a fully-qualified DataRedactionSettings resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/dataStreams/{data_stream}/dataRedactionSettings` - # - # @param property [String] - # @param data_stream [String] - # - # @return [::String] - def data_redaction_settings_path property:, data_stream: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/dataStreams/#{data_stream}/dataRedactionSettings" - end - - ## - # Create a fully-qualified DataRetentionSettings resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/dataRetentionSettings` - # - # @param property [String] - # - # @return [::String] - def data_retention_settings_path property: - "properties/#{property}/dataRetentionSettings" - end - - ## - # Create a fully-qualified DataSharingSettings resource string. - # - # The resource will be in the following format: - # - # `accounts/{account}/dataSharingSettings` - # - # @param account [String] - # - # @return [::String] - def data_sharing_settings_path account: - "accounts/#{account}/dataSharingSettings" - end - - ## - # Create a fully-qualified DataStream resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/dataStreams/{data_stream}` - # - # @param property [String] - # @param data_stream [String] - # - # @return [::String] - def data_stream_path property:, data_stream: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/dataStreams/#{data_stream}" - end - - ## - # Create a fully-qualified DisplayVideo360AdvertiserLink resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}` - # - # @param property [String] - # @param display_video_360_advertiser_link [String] - # - # @return [::String] - def display_video360_advertiser_link_path property:, display_video_360_advertiser_link: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/displayVideo360AdvertiserLinks/#{display_video_360_advertiser_link}" - end - - ## - # Create a fully-qualified DisplayVideo360AdvertiserLinkProposal resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}` - # - # @param property [String] - # @param display_video_360_advertiser_link_proposal [String] - # - # @return [::String] - def display_video360_advertiser_link_proposal_path property:, display_video_360_advertiser_link_proposal: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/displayVideo360AdvertiserLinkProposals/#{display_video_360_advertiser_link_proposal}" - end - - ## - # Create a fully-qualified EnhancedMeasurementSettings resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings` - # - # @param property [String] - # @param data_stream [String] - # - # @return [::String] - def enhanced_measurement_settings_path property:, data_stream: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/dataStreams/#{data_stream}/enhancedMeasurementSettings" - end - - ## - # Create a fully-qualified EventCreateRule resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}` - # - # @param property [String] - # @param data_stream [String] - # @param event_create_rule [String] - # - # @return [::String] - def event_create_rule_path property:, data_stream:, event_create_rule: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/" - - "properties/#{property}/dataStreams/#{data_stream}/eventCreateRules/#{event_create_rule}" - end - - ## - # Create a fully-qualified EventEditRule resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}` - # - # @param property [String] - # @param data_stream [String] - # @param event_edit_rule [String] - # - # @return [::String] - def event_edit_rule_path property:, data_stream:, event_edit_rule: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/" - - "properties/#{property}/dataStreams/#{data_stream}/eventEditRules/#{event_edit_rule}" - end - - ## - # Create a fully-qualified ExpandedDataSet resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/expandedDataSets/{expanded_data_set}` - # - # @param property [String] - # @param expanded_data_set [String] - # - # @return [::String] - def expanded_data_set_path property:, expanded_data_set: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/expandedDataSets/#{expanded_data_set}" - end - - ## - # Create a fully-qualified FirebaseLink resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/firebaseLinks/{firebase_link}` - # - # @param property [String] - # @param firebase_link [String] - # - # @return [::String] - def firebase_link_path property:, firebase_link: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/firebaseLinks/#{firebase_link}" - end - - ## - # Create a fully-qualified GlobalSiteTag resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/dataStreams/{data_stream}/globalSiteTag` - # - # @param property [String] - # @param data_stream [String] - # - # @return [::String] - def global_site_tag_path property:, data_stream: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/dataStreams/#{data_stream}/globalSiteTag" - end - - ## - # Create a fully-qualified GoogleAdsLink resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/googleAdsLinks/{google_ads_link}` - # - # @param property [String] - # @param google_ads_link [String] - # - # @return [::String] - def google_ads_link_path property:, google_ads_link: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/googleAdsLinks/#{google_ads_link}" - end - - ## - # Create a fully-qualified GoogleSignalsSettings resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/googleSignalsSettings` - # - # @param property [String] - # - # @return [::String] - def google_signals_settings_path property: - "properties/#{property}/googleSignalsSettings" - end - - ## - # Create a fully-qualified KeyEvent resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/keyEvents/{key_event}` - # - # @param property [String] - # @param key_event [String] - # - # @return [::String] - def key_event_path property:, key_event: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/keyEvents/#{key_event}" - end - - ## - # Create a fully-qualified MeasurementProtocolSecret resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}` - # - # @param property [String] - # @param data_stream [String] - # @param measurement_protocol_secret [String] - # - # @return [::String] - def measurement_protocol_secret_path property:, data_stream:, measurement_protocol_secret: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/" - - "properties/#{property}/dataStreams/#{data_stream}/measurementProtocolSecrets/#{measurement_protocol_secret}" - end - - ## - # Create a fully-qualified Organization resource string. - # - # The resource will be in the following format: - # - # `organizations/{organization}` - # - # @param organization [String] - # - # @return [::String] - def organization_path organization: - "organizations/#{organization}" - end - - ## - # Create a fully-qualified Property resource string. - # - # The resource will be in the following format: - # - # `properties/{property}` - # - # @param property [String] - # - # @return [::String] - def property_path property: - "properties/#{property}" - end - - ## - # Create a fully-qualified ReportingDataAnnotation resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/reportingDataAnnotations/{reporting_data_annotation}` - # - # @param property [String] - # @param reporting_data_annotation [String] - # - # @return [::String] - def reporting_data_annotation_path property:, reporting_data_annotation: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/reportingDataAnnotations/#{reporting_data_annotation}" - end - - ## - # Create a fully-qualified ReportingIdentitySettings resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/reportingIdentitySettings` - # - # @param property [String] - # - # @return [::String] - def reporting_identity_settings_path property: - "properties/#{property}/reportingIdentitySettings" - end - - ## - # Create a fully-qualified RollupPropertySourceLink resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}` - # - # @param property [String] - # @param rollup_property_source_link [String] - # - # @return [::String] - def rollup_property_source_link_path property:, rollup_property_source_link: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/rollupPropertySourceLinks/#{rollup_property_source_link}" - end - - ## - # Create a fully-qualified SKAdNetworkConversionValueSchema resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}` - # - # @param property [String] - # @param data_stream [String] - # @param skadnetwork_conversion_value_schema [String] - # - # @return [::String] - def sk_ad_network_conversion_value_schema_path property:, data_stream:, skadnetwork_conversion_value_schema: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/" - - "properties/#{property}/dataStreams/#{data_stream}/sKAdNetworkConversionValueSchema/#{skadnetwork_conversion_value_schema}" - end - - ## - # Create a fully-qualified SearchAds360Link resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/searchAds360Links/{search_ads_360_link}` - # - # @param property [String] - # @param search_ads_360_link [String] - # - # @return [::String] - def search_ads360_link_path property:, search_ads_360_link: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/searchAds360Links/#{search_ads_360_link}" - end - - ## - # Create a fully-qualified SubpropertyEventFilter resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/subpropertyEventFilters/{sub_property_event_filter}` - # - # @param property [String] - # @param sub_property_event_filter [String] - # - # @return [::String] - def subproperty_event_filter_path property:, sub_property_event_filter: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/subpropertyEventFilters/#{sub_property_event_filter}" - end - - ## - # Create a fully-qualified SubpropertySyncConfig resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/subpropertySyncConfigs/{subproperty_sync_config}` - # - # @param property [String] - # @param subproperty_sync_config [String] - # - # @return [::String] - def subproperty_sync_config_path property:, subproperty_sync_config: - raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" - - "properties/#{property}/subpropertySyncConfigs/#{subproperty_sync_config}" - end - - ## - # Create a fully-qualified UserProvidedDataSettings resource string. - # - # The resource will be in the following format: - # - # `properties/{property}/userProvidedDataSettings` - # - # @param property [String] - # - # @return [::String] - def user_provided_data_settings_path property: - "properties/#{property}/userProvidedDataSettings" - end - - extend self - end - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest.rb deleted file mode 100644 index 2e6d7492d55d..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/analytics/admin/v1alpha/version" - -require "google/analytics/admin/v1alpha/analytics_admin_service/credentials" -require "google/analytics/admin/v1alpha/analytics_admin_service/paths" -require "google/analytics/admin/v1alpha/analytics_admin_service/rest/client" - -module Google - module Analytics - module Admin - module V1alpha - ## - # Service Interface for the Google Analytics Admin API. - # - # To load this service and instantiate a REST client: - # - # require "google/analytics/admin/v1alpha/analytics_admin_service/rest" - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - module AnalyticsAdminService - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/analytics/admin/v1alpha/analytics_admin_service/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb deleted file mode 100644 index 3af8a444b7b6..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb +++ /dev/null @@ -1,14830 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/analytics/admin/v1alpha/analytics_admin_pb" -require "google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub" - -module Google - module Analytics - module Admin - module V1alpha - module AnalyticsAdminService - module Rest - ## - # REST client for the AnalyticsAdminService service. - # - # Service Interface for the Google Analytics Admin API. - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "analyticsadmin.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :analytics_admin_service_stub - - ## - # Configure the AnalyticsAdminService Client class. - # - # See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all AnalyticsAdminService clients - # ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Analytics", "Admin", "V1alpha"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - default_config.retry_policy = { - initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 2] - } - - default_config.rpcs.get_account.timeout = 60.0 - - default_config.rpcs.list_accounts.timeout = 60.0 - - default_config.rpcs.delete_account.timeout = 60.0 - - default_config.rpcs.update_account.timeout = 60.0 - - default_config.rpcs.provision_account_ticket.timeout = 60.0 - - default_config.rpcs.get_property.timeout = 60.0 - - default_config.rpcs.list_properties.timeout = 60.0 - - default_config.rpcs.create_property.timeout = 60.0 - - default_config.rpcs.delete_property.timeout = 60.0 - - default_config.rpcs.update_property.timeout = 60.0 - - default_config.rpcs.create_firebase_link.timeout = 60.0 - - default_config.rpcs.delete_firebase_link.timeout = 60.0 - - default_config.rpcs.list_firebase_links.timeout = 60.0 - - default_config.rpcs.get_global_site_tag.timeout = 60.0 - - default_config.rpcs.create_google_ads_link.timeout = 60.0 - - default_config.rpcs.update_google_ads_link.timeout = 60.0 - - default_config.rpcs.delete_google_ads_link.timeout = 60.0 - - default_config.rpcs.list_google_ads_links.timeout = 60.0 - - default_config.rpcs.get_enhanced_measurement_settings.timeout = 60.0 - - default_config.rpcs.update_enhanced_measurement_settings.timeout = 60.0 - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the AnalyticsAdminService Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @analytics_admin_service_stub.universe_domain - end - - ## - # Create a new AnalyticsAdminService REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the AnalyticsAdminService client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @analytics_admin_service_stub = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @analytics_admin_service_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @analytics_admin_service_stub.logger - end - - # Service calls - - ## - # Lookup for a single Account. - # - # @overload get_account(request, options = nil) - # Pass arguments to `get_account` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetAccountRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetAccountRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_account(name: nil) - # Pass arguments to `get_account` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the account to lookup. - # Format: accounts/\\{account} - # Example: "accounts/100" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Account] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Account] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetAccountRequest.new - # - # # Call the get_account method. - # result = client.get_account request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Account. - # p result - # - def get_account request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAccountRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_account.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_account.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_account.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_account request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns all accounts accessible by the caller. - # - # Note that these accounts might not currently have GA properties. - # Soft-deleted (ie: "trashed") accounts are excluded by default. - # Returns an empty list if no relevant accounts are found. - # - # @overload list_accounts(request, options = nil) - # Pass arguments to `list_accounts` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListAccountsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListAccountsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_accounts(page_size: nil, page_token: nil, show_deleted: nil) - # Pass arguments to `list_accounts` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListAccounts` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListAccounts` must - # match the call that provided the page token. - # @param show_deleted [::Boolean] - # Whether to include soft-deleted (ie: "trashed") Accounts in the - # results. Accounts can be inspected to determine whether they are deleted or - # not. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Account>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListAccountsRequest.new - # - # # Call the list_accounts method. - # result = client.list_accounts request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::Account. - # p item - # end - # - def list_accounts request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccountsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_accounts.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_accounts.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_accounts.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_accounts request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_accounts, "accounts", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Marks target Account as soft-deleted (ie: "trashed") and returns it. - # - # This API does not have a method to restore soft-deleted accounts. - # However, they can be restored using the Trash Can UI. - # - # If the accounts are not restored before the expiration time, the account - # and all child resources (eg: Properties, GoogleAdsLinks, Streams, - # AccessBindings) will be permanently purged. - # https://support.google.com/analytics/answer/6154772 - # - # Returns an error if the target is not found. - # - # @overload delete_account(request, options = nil) - # Pass arguments to `delete_account` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteAccountRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_account(name: nil) - # Pass arguments to `delete_account` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Account to soft-delete. - # Format: accounts/\\{account} - # Example: "accounts/100" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new - # - # # Call the delete_account method. - # result = client.delete_account request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_account request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_account.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_account.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_account.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_account request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an account. - # - # @overload update_account(request, options = nil) - # Pass arguments to `update_account` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateAccountRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_account(account: nil, update_mask: nil) - # Pass arguments to `update_account` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param account [::Google::Analytics::Admin::V1alpha::Account, ::Hash] - # Required. The account to update. - # The account's `name` field is used to identify the account. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (for example, "field_to_update"). Omitted fields will not be updated. - # To replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Account] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Account] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new - # - # # Call the update_account method. - # result = client.update_account request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Account. - # p result - # - def update_account request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_account.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_account.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_account.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_account request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Requests a ticket for creating an account. - # - # @overload provision_account_ticket(request, options = nil) - # Pass arguments to `provision_account_ticket` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload provision_account_ticket(account: nil, redirect_uri: nil) - # Pass arguments to `provision_account_ticket` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param account [::Google::Analytics::Admin::V1alpha::Account, ::Hash] - # The account to create. - # @param redirect_uri [::String] - # Redirect URI where the user will be sent after accepting Terms of Service. - # Must be configured in Cloud Console as a Redirect URI. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new - # - # # Call the provision_account_ticket method. - # result = client.provision_account_ticket request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse. - # p result - # - def provision_account_ticket request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.provision_account_ticket.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.provision_account_ticket.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.provision_account_ticket.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.provision_account_ticket request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns summaries of all accounts accessible by the caller. - # - # @overload list_account_summaries(request, options = nil) - # Pass arguments to `list_account_summaries` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_account_summaries(page_size: nil, page_token: nil) - # Pass arguments to `list_account_summaries` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param page_size [::Integer] - # Optional. The maximum number of AccountSummary resources to return. The - # service may return fewer than this value, even if there are additional - # pages. If unspecified, at most 50 resources will be returned. The maximum - # value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListAccountSummaries` - # call. Provide this to retrieve the subsequent page. When paginating, all - # other parameters provided to `ListAccountSummaries` must match the call - # that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new - # - # # Call the list_account_summaries method. - # result = client.list_account_summaries request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::AccountSummary. - # p item - # end - # - def list_account_summaries request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_account_summaries.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_account_summaries.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_account_summaries.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_account_summaries request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_account_summaries, "account_summaries", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single GA Property. - # - # @overload get_property(request, options = nil) - # Pass arguments to `get_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetPropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetPropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_property(name: nil) - # Pass arguments to `get_property` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the property to lookup. - # Format: properties/\\{property_id} - # Example: "properties/1000" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetPropertyRequest.new - # - # # Call the get_property method. - # result = client.get_property request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - # p result - # - def get_property request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetPropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_property.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_property.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_property.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_property request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns child Properties under the specified parent Account. - # - # Properties will be excluded if the caller does not have access. - # Soft-deleted (ie: "trashed") properties are excluded by default. - # Returns an empty list if no relevant properties are found. - # - # @overload list_properties(request, options = nil) - # Pass arguments to `list_properties` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListPropertiesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_properties(filter: nil, page_size: nil, page_token: nil, show_deleted: nil) - # Pass arguments to `list_properties` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param filter [::String] - # Required. An expression for filtering the results of the request. - # Fields eligible for filtering are: - # `parent:`(The resource name of the parent account/property) or - # `ancestor:`(The resource name of the parent account) or - # `firebase_project:`(The id or number of the linked firebase project). - # Some examples of filters: - # - # ``` - # | Filter | Description | - # |-----------------------------|-------------------------------------------| - # | parent:accounts/123 | The account with account id: 123. | - # | parent:properties/123 | The property with property id: 123. | - # | ancestor:accounts/123 | The account with account id: 123. | - # | firebase_project:project-id | The firebase project with id: project-id. | - # | firebase_project:123 | The firebase project with number: 123. | - # ``` - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListProperties` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListProperties` must - # match the call that provided the page token. - # @param show_deleted [::Boolean] - # Whether to include soft-deleted (ie: "trashed") Properties in the - # results. Properties can be inspected to determine whether they are deleted - # or not. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Property>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new - # - # # Call the list_properties method. - # result = client.list_properties request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::Property. - # p item - # end - # - def list_properties request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_properties.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_properties.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_properties.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_properties request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_properties, "properties", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a Google Analytics property with the specified location and - # attributes. - # - # @overload create_property(request, options = nil) - # Pass arguments to `create_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreatePropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_property(property: nil) - # Pass arguments to `create_property` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] - # Required. The property to create. - # Note: the supplied property must specify its parent. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new - # - # # Call the create_property method. - # result = client.create_property request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - # p result - # - def create_property request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_property.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_property.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_property.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_property request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Marks target Property as soft-deleted (ie: "trashed") and returns it. - # - # This API does not have a method to restore soft-deleted properties. - # However, they can be restored using the Trash Can UI. - # - # If the properties are not restored before the expiration time, the Property - # and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) - # will be permanently purged. - # https://support.google.com/analytics/answer/6154772 - # - # Returns an error if the target is not found. - # - # @overload delete_property(request, options = nil) - # Pass arguments to `delete_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeletePropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_property(name: nil) - # Pass arguments to `delete_property` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Property to soft-delete. - # Format: properties/\\{property_id} - # Example: "properties/1000" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new - # - # # Call the delete_property method. - # result = client.delete_property request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - # p result - # - def delete_property request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_property.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_property.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_property.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_property request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a property. - # - # @overload update_property(request, options = nil) - # Pass arguments to `update_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_property(property: nil, update_mask: nil) - # Pass arguments to `update_property` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] - # Required. The property to update. - # The property's `name` field is used to identify the property to be - # updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new - # - # # Call the update_property method. - # result = client.update_property request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - # p result - # - def update_property request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_property.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_property.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_property.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_property request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a FirebaseLink. - # - # Properties can have at most one FirebaseLink. - # - # @overload create_firebase_link(request, options = nil) - # Pass arguments to `create_firebase_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_firebase_link(parent: nil, firebase_link: nil) - # Pass arguments to `create_firebase_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Format: properties/\\{property_id} - # - # Example: `properties/1234` - # @param firebase_link [::Google::Analytics::Admin::V1alpha::FirebaseLink, ::Hash] - # Required. The Firebase link to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::FirebaseLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new - # - # # Call the create_firebase_link method. - # result = client.create_firebase_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::FirebaseLink. - # p result - # - def create_firebase_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_firebase_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_firebase_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_firebase_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_firebase_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a FirebaseLink on a property - # - # @overload delete_firebase_link(request, options = nil) - # Pass arguments to `delete_firebase_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_firebase_link(name: nil) - # Pass arguments to `delete_firebase_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Format: properties/\\{property_id}/firebaseLinks/\\{firebase_link_id} - # - # Example: `properties/1234/firebaseLinks/5678` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new - # - # # Call the delete_firebase_link method. - # result = client.delete_firebase_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_firebase_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_firebase_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_firebase_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_firebase_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_firebase_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists FirebaseLinks on a property. - # Properties can have at most one FirebaseLink. - # - # @overload list_firebase_links(request, options = nil) - # Pass arguments to `list_firebase_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_firebase_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_firebase_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Format: properties/\\{property_id} - # - # Example: `properties/1234` - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListFirebaseLinks` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListFirebaseLinks` must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::FirebaseLink>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new - # - # # Call the list_firebase_links method. - # result = client.list_firebase_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::FirebaseLink. - # p item - # end - # - def list_firebase_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_firebase_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_firebase_links.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_firebase_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_firebase_links request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_firebase_links, "firebase_links", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the Site Tag for the specified web stream. - # Site Tags are immutable singletons. - # - # @overload get_global_site_tag(request, options = nil) - # Pass arguments to `get_global_site_tag` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_global_site_tag(name: nil) - # Pass arguments to `get_global_site_tag` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the site tag to lookup. - # Note that site tags are singletons and do not have unique IDs. - # Format: properties/\\{property_id}/dataStreams/\\{stream_id}/globalSiteTag - # - # Example: `properties/123/dataStreams/456/globalSiteTag` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new - # - # # Call the get_global_site_tag method. - # result = client.get_global_site_tag request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::GlobalSiteTag. - # p result - # - def get_global_site_tag request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_global_site_tag.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_global_site_tag.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_global_site_tag.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_global_site_tag request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a GoogleAdsLink. - # - # @overload create_google_ads_link(request, options = nil) - # Pass arguments to `create_google_ads_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_google_ads_link(parent: nil, google_ads_link: nil) - # Pass arguments to `create_google_ads_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param google_ads_link [::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash] - # Required. The GoogleAdsLink to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new - # - # # Call the create_google_ads_link method. - # result = client.create_google_ads_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. - # p result - # - def create_google_ads_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_google_ads_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_google_ads_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_google_ads_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_google_ads_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a GoogleAdsLink on a property - # - # @overload update_google_ads_link(request, options = nil) - # Pass arguments to `update_google_ads_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_google_ads_link(google_ads_link: nil, update_mask: nil) - # Pass arguments to `update_google_ads_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param google_ads_link [::Google::Analytics::Admin::V1alpha::GoogleAdsLink, ::Hash] - # The GoogleAdsLink to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new - # - # # Call the update_google_ads_link method. - # result = client.update_google_ads_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. - # p result - # - def update_google_ads_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_google_ads_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_google_ads_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_google_ads_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_google_ads_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a GoogleAdsLink on a property - # - # @overload delete_google_ads_link(request, options = nil) - # Pass arguments to `delete_google_ads_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_google_ads_link(name: nil) - # Pass arguments to `delete_google_ads_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Example format: properties/1234/googleAdsLinks/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new - # - # # Call the delete_google_ads_link method. - # result = client.delete_google_ads_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_google_ads_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_google_ads_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_google_ads_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_google_ads_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_google_ads_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoogleAdsLinks on a property. - # - # @overload list_google_ads_links(request, options = nil) - # Pass arguments to `list_google_ads_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_google_ads_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_google_ads_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # Optional. A page token, received from a previous `ListGoogleAdsLinks` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListGoogleAdsLinks` must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new - # - # # Call the list_google_ads_links method. - # result = client.list_google_ads_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::GoogleAdsLink. - # p item - # end - # - def list_google_ads_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_google_ads_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_google_ads_links.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_google_ads_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_google_ads_links request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_google_ads_links, "google_ads_links", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Get data sharing settings on an account. - # Data sharing settings are singletons. - # - # @overload get_data_sharing_settings(request, options = nil) - # Pass arguments to `get_data_sharing_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_data_sharing_settings(name: nil) - # Pass arguments to `get_data_sharing_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the settings to lookup. - # Format: accounts/\\{account}/dataSharingSettings - # - # Example: `accounts/1000/dataSharingSettings` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataSharingSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataSharingSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new - # - # # Call the get_data_sharing_settings method. - # result = client.get_data_sharing_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataSharingSettings. - # p result - # - def get_data_sharing_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_data_sharing_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_data_sharing_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_data_sharing_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_data_sharing_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single MeasurementProtocolSecret. - # - # @overload get_measurement_protocol_secret(request, options = nil) - # Pass arguments to `get_measurement_protocol_secret` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_measurement_protocol_secret(name: nil) - # Pass arguments to `get_measurement_protocol_secret` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the measurement protocol secret to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new - # - # # Call the get_measurement_protocol_secret method. - # result = client.get_measurement_protocol_secret request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - # p result - # - def get_measurement_protocol_secret request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_measurement_protocol_secret.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_measurement_protocol_secret.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_measurement_protocol_secret.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_measurement_protocol_secret request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns child MeasurementProtocolSecrets under the specified parent - # Property. - # - # @overload list_measurement_protocol_secrets(request, options = nil) - # Pass arguments to `list_measurement_protocol_secrets` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_measurement_protocol_secrets(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_measurement_protocol_secrets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The resource name of the parent stream. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 10 resources will be returned. - # The maximum value is 10. Higher values will be coerced to the maximum. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListMeasurementProtocolSecrets` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListMeasurementProtocolSecrets` must match the call that provided the page - # token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new - # - # # Call the list_measurement_protocol_secrets method. - # result = client.list_measurement_protocol_secrets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - # p item - # end - # - def list_measurement_protocol_secrets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_measurement_protocol_secrets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_measurement_protocol_secrets.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_measurement_protocol_secrets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_measurement_protocol_secrets request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_measurement_protocol_secrets, "measurement_protocol_secrets", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a measurement protocol secret. - # - # @overload create_measurement_protocol_secret(request, options = nil) - # Pass arguments to `create_measurement_protocol_secret` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_measurement_protocol_secret(parent: nil, measurement_protocol_secret: nil) - # Pass arguments to `create_measurement_protocol_secret` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource where this secret will be created. - # Format: properties/\\{property}/dataStreams/\\{dataStream} - # @param measurement_protocol_secret [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret, ::Hash] - # Required. The measurement protocol secret to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new - # - # # Call the create_measurement_protocol_secret method. - # result = client.create_measurement_protocol_secret request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - # p result - # - def create_measurement_protocol_secret request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_measurement_protocol_secret.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_measurement_protocol_secret.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_measurement_protocol_secret.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_measurement_protocol_secret request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes target MeasurementProtocolSecret. - # - # @overload delete_measurement_protocol_secret(request, options = nil) - # Pass arguments to `delete_measurement_protocol_secret` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_measurement_protocol_secret(name: nil) - # Pass arguments to `delete_measurement_protocol_secret` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the MeasurementProtocolSecret to delete. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new - # - # # Call the delete_measurement_protocol_secret method. - # result = client.delete_measurement_protocol_secret request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_measurement_protocol_secret request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_measurement_protocol_secret.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_measurement_protocol_secret.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_measurement_protocol_secret.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_measurement_protocol_secret request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a measurement protocol secret. - # - # @overload update_measurement_protocol_secret(request, options = nil) - # Pass arguments to `update_measurement_protocol_secret` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_measurement_protocol_secret(measurement_protocol_secret: nil, update_mask: nil) - # Pass arguments to `update_measurement_protocol_secret` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param measurement_protocol_secret [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret, ::Hash] - # Required. The measurement protocol secret to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new - # - # # Call the update_measurement_protocol_secret method. - # result = client.update_measurement_protocol_secret request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - # p result - # - def update_measurement_protocol_secret request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_measurement_protocol_secret.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_measurement_protocol_secret.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_measurement_protocol_secret.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_measurement_protocol_secret request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Acknowledges the terms of user data collection for the specified property. - # - # This acknowledgement must be completed (either in the Google Analytics UI - # or through this API) before MeasurementProtocolSecret resources may be - # created. - # - # @overload acknowledge_user_data_collection(request, options = nil) - # Pass arguments to `acknowledge_user_data_collection` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload acknowledge_user_data_collection(property: nil, acknowledgement: nil) - # Pass arguments to `acknowledge_user_data_collection` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param property [::String] - # Required. The property for which to acknowledge user data collection. - # @param acknowledgement [::String] - # Required. An acknowledgement that the caller of this method understands the - # terms of user data collection. - # - # This field must contain the exact value: - # "I acknowledge that I have the necessary privacy disclosures and rights - # from my end users for the collection and processing of their data, - # including the association of such data with the visitation information - # Google Analytics collects from my site and/or app property." - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new - # - # # Call the acknowledge_user_data_collection method. - # result = client.acknowledge_user_data_collection request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse. - # p result - # - def acknowledge_user_data_collection request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.acknowledge_user_data_collection.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.acknowledge_user_data_collection.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.acknowledge_user_data_collection.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.acknowledge_user_data_collection request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Looks up a single SKAdNetworkConversionValueSchema. - # - # @overload get_sk_ad_network_conversion_value_schema(request, options = nil) - # Pass arguments to `get_sk_ad_network_conversion_value_schema` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_sk_ad_network_conversion_value_schema(name: nil) - # Pass arguments to `get_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of SKAdNetwork conversion value schema to look - # up. Format: - # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new - # - # # Call the get_sk_ad_network_conversion_value_schema method. - # result = client.get_sk_ad_network_conversion_value_schema request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - # p result - # - def get_sk_ad_network_conversion_value_schema request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_sk_ad_network_conversion_value_schema.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_sk_ad_network_conversion_value_schema.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_sk_ad_network_conversion_value_schema.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_sk_ad_network_conversion_value_schema request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a SKAdNetworkConversionValueSchema. - # - # @overload create_sk_ad_network_conversion_value_schema(request, options = nil) - # Pass arguments to `create_sk_ad_network_conversion_value_schema` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_sk_ad_network_conversion_value_schema(parent: nil, skadnetwork_conversion_value_schema: nil) - # Pass arguments to `create_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource where this schema will be created. - # Format: properties/\\{property}/dataStreams/\\{dataStream} - # @param skadnetwork_conversion_value_schema [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema, ::Hash] - # Required. SKAdNetwork conversion value schema to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new - # - # # Call the create_sk_ad_network_conversion_value_schema method. - # result = client.create_sk_ad_network_conversion_value_schema request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - # p result - # - def create_sk_ad_network_conversion_value_schema request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_sk_ad_network_conversion_value_schema.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_sk_ad_network_conversion_value_schema.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_sk_ad_network_conversion_value_schema.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_sk_ad_network_conversion_value_schema request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes target SKAdNetworkConversionValueSchema. - # - # @overload delete_sk_ad_network_conversion_value_schema(request, options = nil) - # Pass arguments to `delete_sk_ad_network_conversion_value_schema` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_sk_ad_network_conversion_value_schema(name: nil) - # Pass arguments to `delete_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the SKAdNetworkConversionValueSchema to delete. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new - # - # # Call the delete_sk_ad_network_conversion_value_schema method. - # result = client.delete_sk_ad_network_conversion_value_schema request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_sk_ad_network_conversion_value_schema request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_sk_ad_network_conversion_value_schema.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_sk_ad_network_conversion_value_schema.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_sk_ad_network_conversion_value_schema.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_sk_ad_network_conversion_value_schema request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a SKAdNetworkConversionValueSchema. - # - # @overload update_sk_ad_network_conversion_value_schema(request, options = nil) - # Pass arguments to `update_sk_ad_network_conversion_value_schema` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_sk_ad_network_conversion_value_schema(skadnetwork_conversion_value_schema: nil, update_mask: nil) - # Pass arguments to `update_sk_ad_network_conversion_value_schema` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param skadnetwork_conversion_value_schema [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema, ::Hash] - # Required. SKAdNetwork conversion value schema to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new - # - # # Call the update_sk_ad_network_conversion_value_schema method. - # result = client.update_sk_ad_network_conversion_value_schema request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - # p result - # - def update_sk_ad_network_conversion_value_schema request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_sk_ad_network_conversion_value_schema.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_sk_ad_network_conversion_value_schema.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_sk_ad_network_conversion_value_schema.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_sk_ad_network_conversion_value_schema request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists SKAdNetworkConversionValueSchema on a stream. - # Properties can have at most one SKAdNetworkConversionValueSchema. - # - # @overload list_sk_ad_network_conversion_value_schemas(request, options = nil) - # Pass arguments to `list_sk_ad_network_conversion_value_schemas` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_sk_ad_network_conversion_value_schemas(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_sk_ad_network_conversion_value_schemas` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The DataStream resource to list schemas for. - # Format: - # properties/\\{property_id}/dataStreams/\\{dataStream} - # Example: properties/1234/dataStreams/5678 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListSKAdNetworkConversionValueSchema` must match the call that provided - # the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new - # - # # Call the list_sk_ad_network_conversion_value_schemas method. - # result = client.list_sk_ad_network_conversion_value_schemas request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - # p item - # end - # - def list_sk_ad_network_conversion_value_schemas request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_sk_ad_network_conversion_value_schemas.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_sk_ad_network_conversion_value_schemas.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_sk_ad_network_conversion_value_schemas.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_sk_ad_network_conversion_value_schemas request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_sk_ad_network_conversion_value_schemas, "skadnetwork_conversion_value_schemas", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Searches through all changes to an account or its children given the - # specified set of filters. - # - # Only returns the subset of changes supported by the API. The UI may return - # additional changes. - # - # @overload search_change_history_events(request, options = nil) - # Pass arguments to `search_change_history_events` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload search_change_history_events(account: nil, property: nil, resource_type: nil, action: nil, actor_email: nil, earliest_change_time: nil, latest_change_time: nil, page_size: nil, page_token: nil) - # Pass arguments to `search_change_history_events` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param account [::String] - # Required. The account resource for which to return change history - # resources. Format: accounts/\\{account} - # - # Example: `accounts/100` - # @param property [::String] - # Optional. Resource name for a child property. If set, only return changes - # made to this property or its child resources. - # Format: properties/\\{propertyId} - # - # Example: `properties/100` - # @param resource_type [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryResourceType>] - # Optional. If set, only return changes if they are for a resource that - # matches at least one of these types. - # @param action [::Array<::Google::Analytics::Admin::V1alpha::ActionType>] - # Optional. If set, only return changes that match one or more of these types - # of actions. - # @param actor_email [::Array<::String>] - # Optional. If set, only return changes if they are made by a user in this - # list. - # @param earliest_change_time [::Google::Protobuf::Timestamp, ::Hash] - # Optional. If set, only return changes made after this time (inclusive). - # @param latest_change_time [::Google::Protobuf::Timestamp, ::Hash] - # Optional. If set, only return changes made before this time (inclusive). - # @param page_size [::Integer] - # Optional. The maximum number of ChangeHistoryEvent items to return. - # If unspecified, at most 50 items will be returned. The maximum value is 200 - # (higher values will be coerced to the maximum). - # - # Note that the service may return a page with fewer items than this value - # specifies (potentially even zero), and that there still may be additional - # pages. If you want a particular number of items, you'll need to continue - # requesting additional pages using `page_token` until you get the needed - # number. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - # page. When paginating, all other parameters provided to - # `SearchChangeHistoryEvents` must match the call that provided the page - # token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new - # - # # Call the search_change_history_events method. - # result = client.search_change_history_events request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent. - # p item - # end - # - def search_change_history_events request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.search_change_history_events.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.search_change_history_events.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.search_change_history_events.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.search_change_history_events request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :search_change_history_events, "change_history_events", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for Google Signals settings for a property. - # - # @overload get_google_signals_settings(request, options = nil) - # Pass arguments to `get_google_signals_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_google_signals_settings(name: nil) - # Pass arguments to `get_google_signals_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the google signals settings to retrieve. - # Format: properties/\\{property}/googleSignalsSettings - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new - # - # # Call the get_google_signals_settings method. - # result = client.get_google_signals_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. - # p result - # - def get_google_signals_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_google_signals_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_google_signals_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_google_signals_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_google_signals_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates Google Signals settings for a property. - # - # @overload update_google_signals_settings(request, options = nil) - # Pass arguments to `update_google_signals_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_google_signals_settings(google_signals_settings: nil, update_mask: nil) - # Pass arguments to `update_google_signals_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param google_signals_settings [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings, ::Hash] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new - # - # # Call the update_google_signals_settings method. - # result = client.update_google_signals_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. - # p result - # - def update_google_signals_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_google_signals_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_google_signals_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_google_signals_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_google_signals_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deprecated: Use `CreateKeyEvent` instead. - # Creates a conversion event with the specified attributes. - # - # @overload create_conversion_event(request, options = nil) - # Pass arguments to `create_conversion_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_conversion_event(conversion_event: nil, parent: nil) - # Pass arguments to `create_conversion_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param conversion_event [::Google::Analytics::Admin::V1alpha::ConversionEvent, ::Hash] - # Required. The conversion event to create. - # @param parent [::String] - # Required. The resource name of the parent property where this conversion - # event will be created. Format: properties/123 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new - # - # # Call the create_conversion_event method. - # result = client.create_conversion_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. - # p result - # - def create_conversion_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_conversion_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_conversion_event.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_conversion_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_conversion_event request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deprecated: Use `UpdateKeyEvent` instead. - # Updates a conversion event with the specified attributes. - # - # @overload update_conversion_event(request, options = nil) - # Pass arguments to `update_conversion_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_conversion_event(conversion_event: nil, update_mask: nil) - # Pass arguments to `update_conversion_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param conversion_event [::Google::Analytics::Admin::V1alpha::ConversionEvent, ::Hash] - # Required. The conversion event to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new - # - # # Call the update_conversion_event method. - # result = client.update_conversion_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. - # p result - # - def update_conversion_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_conversion_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_conversion_event.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_conversion_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_conversion_event request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deprecated: Use `GetKeyEvent` instead. - # Retrieve a single conversion event. - # - # @overload get_conversion_event(request, options = nil) - # Pass arguments to `get_conversion_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetConversionEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetConversionEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_conversion_event(name: nil) - # Pass arguments to `get_conversion_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the conversion event to retrieve. - # Format: properties/\\{property}/conversionEvents/\\{conversion_event} - # Example: "properties/123/conversionEvents/456" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new - # - # # Call the get_conversion_event method. - # result = client.get_conversion_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. - # p result - # - def get_conversion_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_conversion_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_conversion_event.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_conversion_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_conversion_event request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deprecated: Use `DeleteKeyEvent` instead. - # Deletes a conversion event in a property. - # - # @overload delete_conversion_event(request, options = nil) - # Pass arguments to `delete_conversion_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_conversion_event(name: nil) - # Pass arguments to `delete_conversion_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the conversion event to delete. - # Format: properties/\\{property}/conversionEvents/\\{conversion_event} - # Example: "properties/123/conversionEvents/456" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new - # - # # Call the delete_conversion_event method. - # result = client.delete_conversion_event request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_conversion_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_conversion_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_conversion_event.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_conversion_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_conversion_event request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deprecated: Use `ListKeyEvents` instead. - # Returns a list of conversion events in the specified parent property. - # - # Returns an empty list if no conversion events are found. - # - # @overload list_conversion_events(request, options = nil) - # Pass arguments to `list_conversion_events` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_conversion_events(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_conversion_events` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The resource name of the parent property. - # Example: 'properties/123' - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListConversionEvents` - # call. Provide this to retrieve the subsequent page. When paginating, all - # other parameters provided to `ListConversionEvents` must match the call - # that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ConversionEvent>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new - # - # # Call the list_conversion_events method. - # result = client.list_conversion_events request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::ConversionEvent. - # p item - # end - # - def list_conversion_events request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_conversion_events.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_conversion_events.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_conversion_events.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_conversion_events request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_conversion_events, "conversion_events", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a Key Event. - # - # @overload create_key_event(request, options = nil) - # Pass arguments to `create_key_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_key_event(key_event: nil, parent: nil) - # Pass arguments to `create_key_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param key_event [::Google::Analytics::Admin::V1alpha::KeyEvent, ::Hash] - # Required. The Key Event to create. - # @param parent [::String] - # Required. The resource name of the parent property where this Key Event - # will be created. Format: properties/123 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new - # - # # Call the create_key_event method. - # result = client.create_key_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. - # p result - # - def create_key_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_key_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_key_event.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_key_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_key_event request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a Key Event. - # - # @overload update_key_event(request, options = nil) - # Pass arguments to `update_key_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_key_event(key_event: nil, update_mask: nil) - # Pass arguments to `update_key_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param key_event [::Google::Analytics::Admin::V1alpha::KeyEvent, ::Hash] - # Required. The Key Event to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new - # - # # Call the update_key_event method. - # result = client.update_key_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. - # p result - # - def update_key_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_key_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_key_event.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_key_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_key_event request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Retrieve a single Key Event. - # - # @overload get_key_event(request, options = nil) - # Pass arguments to `get_key_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetKeyEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetKeyEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_key_event(name: nil) - # Pass arguments to `get_key_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the Key Event to retrieve. - # Format: properties/\\{property}/keyEvents/\\{key_event} - # Example: "properties/123/keyEvents/456" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new - # - # # Call the get_key_event method. - # result = client.get_key_event request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. - # p result - # - def get_key_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_key_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_key_event.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_key_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_key_event request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a Key Event. - # - # @overload delete_key_event(request, options = nil) - # Pass arguments to `delete_key_event` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_key_event(name: nil) - # Pass arguments to `delete_key_event` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The resource name of the Key Event to delete. - # Format: properties/\\{property}/keyEvents/\\{key_event} - # Example: "properties/123/keyEvents/456" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new - # - # # Call the delete_key_event method. - # result = client.delete_key_event request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_key_event request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_key_event.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_key_event.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_key_event.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_key_event request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns a list of Key Events in the specified parent property. - # Returns an empty list if no Key Events are found. - # - # @overload list_key_events(request, options = nil) - # Pass arguments to `list_key_events` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_key_events(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_key_events` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The resource name of the parent property. - # Example: 'properties/123' - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous `ListKeyEvents` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListKeyEvents` - # must match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new - # - # # Call the list_key_events method. - # result = client.list_key_events request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::KeyEvent. - # p item - # end - # - def list_key_events request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_key_events.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_key_events.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_key_events.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_key_events request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_key_events, "key_events", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Look up a single DisplayVideo360AdvertiserLink - # - # @overload get_display_video360_advertiser_link(request, options = nil) - # Pass arguments to `get_display_video360_advertiser_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_display_video360_advertiser_link(name: nil) - # Pass arguments to `get_display_video360_advertiser_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLink to get. - # Example format: properties/1234/displayVideo360AdvertiserLink/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new - # - # # Call the get_display_video360_advertiser_link method. - # result = client.get_display_video360_advertiser_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - # p result - # - def get_display_video360_advertiser_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_display_video360_advertiser_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_display_video360_advertiser_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_display_video360_advertiser_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all DisplayVideo360AdvertiserLinks on a property. - # - # @overload list_display_video360_advertiser_links(request, options = nil) - # Pass arguments to `list_display_video360_advertiser_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_display_video360_advertiser_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_display_video360_advertiser_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new - # - # # Call the list_display_video360_advertiser_links method. - # result = client.list_display_video360_advertiser_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - # p item - # end - # - def list_display_video360_advertiser_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_display_video360_advertiser_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_links.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_display_video360_advertiser_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_display_video360_advertiser_links request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_links, "display_video_360_advertiser_links", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a DisplayVideo360AdvertiserLink. - # This can only be utilized by users who have proper authorization both on - # the Google Analytics property and on the Display & Video 360 advertiser. - # Users who do not have access to the Display & Video 360 advertiser should - # instead seek to create a DisplayVideo360LinkProposal. - # - # @overload create_display_video360_advertiser_link(request, options = nil) - # Pass arguments to `create_display_video360_advertiser_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_display_video360_advertiser_link(parent: nil, display_video_360_advertiser_link: nil) - # Pass arguments to `create_display_video360_advertiser_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash] - # Required. The DisplayVideo360AdvertiserLink to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new - # - # # Call the create_display_video360_advertiser_link method. - # result = client.create_display_video360_advertiser_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - # p result - # - def create_display_video360_advertiser_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_display_video360_advertiser_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_display_video360_advertiser_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_display_video360_advertiser_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a DisplayVideo360AdvertiserLink on a property. - # - # @overload delete_display_video360_advertiser_link(request, options = nil) - # Pass arguments to `delete_display_video360_advertiser_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_display_video360_advertiser_link(name: nil) - # Pass arguments to `delete_display_video360_advertiser_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLink to delete. - # Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new - # - # # Call the delete_display_video360_advertiser_link method. - # result = client.delete_display_video360_advertiser_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_display_video360_advertiser_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_display_video360_advertiser_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_display_video360_advertiser_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_display_video360_advertiser_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a DisplayVideo360AdvertiserLink on a property. - # - # @overload update_display_video360_advertiser_link(request, options = nil) - # Pass arguments to `update_display_video360_advertiser_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_display_video360_advertiser_link(display_video_360_advertiser_link: nil, update_mask: nil) - # Pass arguments to `update_display_video360_advertiser_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash] - # The DisplayVideo360AdvertiserLink to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new - # - # # Call the update_display_video360_advertiser_link method. - # result = client.update_display_video360_advertiser_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - # p result - # - def update_display_video360_advertiser_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_display_video360_advertiser_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_display_video360_advertiser_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_display_video360_advertiser_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_display_video360_advertiser_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single DisplayVideo360AdvertiserLinkProposal. - # - # @overload get_display_video360_advertiser_link_proposal(request, options = nil) - # Pass arguments to `get_display_video360_advertiser_link_proposal` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `get_display_video360_advertiser_link_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new - # - # # Call the get_display_video360_advertiser_link_proposal method. - # result = client.get_display_video360_advertiser_link_proposal request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - # p result - # - def get_display_video360_advertiser_link_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_display_video360_advertiser_link_proposal.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link_proposal.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_display_video360_advertiser_link_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_display_video360_advertiser_link_proposal request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists DisplayVideo360AdvertiserLinkProposals on a property. - # - # @overload list_display_video360_advertiser_link_proposals(request, options = nil) - # Pass arguments to `list_display_video360_advertiser_link_proposals` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_display_video360_advertiser_link_proposals(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_display_video360_advertiser_link_proposals` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous - # `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - # the subsequent page. - # - # When paginating, all other parameters provided to - # `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - # provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new - # - # # Call the list_display_video360_advertiser_link_proposals method. - # result = client.list_display_video360_advertiser_link_proposals request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - # p item - # end - # - def list_display_video360_advertiser_link_proposals request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_display_video360_advertiser_link_proposals.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_link_proposals.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_display_video360_advertiser_link_proposals.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_display_video360_advertiser_link_proposals request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_display_video360_advertiser_link_proposals, "display_video_360_advertiser_link_proposals", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a DisplayVideo360AdvertiserLinkProposal. - # - # @overload create_display_video360_advertiser_link_proposal(request, options = nil) - # Pass arguments to `create_display_video360_advertiser_link_proposal` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_display_video360_advertiser_link_proposal(parent: nil, display_video_360_advertiser_link_proposal: nil) - # Pass arguments to `create_display_video360_advertiser_link_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param display_video_360_advertiser_link_proposal [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal, ::Hash] - # Required. The DisplayVideo360AdvertiserLinkProposal to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new - # - # # Call the create_display_video360_advertiser_link_proposal method. - # result = client.create_display_video360_advertiser_link_proposal request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - # p result - # - def create_display_video360_advertiser_link_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_display_video360_advertiser_link_proposal.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link_proposal.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_display_video360_advertiser_link_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_display_video360_advertiser_link_proposal request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - # This can only be used on cancelled proposals. - # - # @overload delete_display_video360_advertiser_link_proposal(request, options = nil) - # Pass arguments to `delete_display_video360_advertiser_link_proposal` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `delete_display_video360_advertiser_link_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new - # - # # Call the delete_display_video360_advertiser_link_proposal method. - # result = client.delete_display_video360_advertiser_link_proposal request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_display_video360_advertiser_link_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_display_video360_advertiser_link_proposal.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link_proposal.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_display_video360_advertiser_link_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_display_video360_advertiser_link_proposal request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Approves a DisplayVideo360AdvertiserLinkProposal. - # The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - # DisplayVideo360AdvertiserLink will be created. - # - # @overload approve_display_video360_advertiser_link_proposal(request, options = nil) - # Pass arguments to `approve_display_video360_advertiser_link_proposal` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload approve_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `approve_display_video360_advertiser_link_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new - # - # # Call the approve_display_video360_advertiser_link_proposal method. - # result = client.approve_display_video360_advertiser_link_proposal request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse. - # p result - # - def approve_display_video360_advertiser_link_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.approve_display_video360_advertiser_link_proposal.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.approve_display_video360_advertiser_link_proposal.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.approve_display_video360_advertiser_link_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.approve_display_video360_advertiser_link_proposal request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Cancels a DisplayVideo360AdvertiserLinkProposal. - # Cancelling can mean either: - # - Declining a proposal initiated from Display & Video 360 - # - Withdrawing a proposal initiated from Google Analytics - # After being cancelled, a proposal will eventually be deleted automatically. - # - # @overload cancel_display_video360_advertiser_link_proposal(request, options = nil) - # Pass arguments to `cancel_display_video360_advertiser_link_proposal` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `cancel_display_video360_advertiser_link_proposal` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new - # - # # Call the cancel_display_video360_advertiser_link_proposal method. - # result = client.cancel_display_video360_advertiser_link_proposal request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - # p result - # - def cancel_display_video360_advertiser_link_proposal request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_display_video360_advertiser_link_proposal.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_display_video360_advertiser_link_proposal.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_display_video360_advertiser_link_proposal.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.cancel_display_video360_advertiser_link_proposal request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a CustomDimension. - # - # @overload create_custom_dimension(request, options = nil) - # Pass arguments to `create_custom_dimension` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_custom_dimension(parent: nil, custom_dimension: nil) - # Pass arguments to `create_custom_dimension` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash] - # Required. The CustomDimension to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new - # - # # Call the create_custom_dimension method. - # result = client.create_custom_dimension request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - # p result - # - def create_custom_dimension request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_custom_dimension.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_custom_dimension.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_custom_dimension.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_custom_dimension request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a CustomDimension on a property. - # - # @overload update_custom_dimension(request, options = nil) - # Pass arguments to `update_custom_dimension` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_custom_dimension(custom_dimension: nil, update_mask: nil) - # Pass arguments to `update_custom_dimension` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash] - # The CustomDimension to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new - # - # # Call the update_custom_dimension method. - # result = client.update_custom_dimension request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - # p result - # - def update_custom_dimension request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_custom_dimension.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_custom_dimension.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_custom_dimension.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_custom_dimension request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CustomDimensions on a property. - # - # @overload list_custom_dimensions(request, options = nil) - # Pass arguments to `list_custom_dimensions` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_custom_dimensions(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_custom_dimensions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # Optional. A page token, received from a previous `ListCustomDimensions` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCustomDimensions` - # must match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new - # - # # Call the list_custom_dimensions method. - # result = client.list_custom_dimensions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension. - # p item - # end - # - def list_custom_dimensions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_custom_dimensions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_custom_dimensions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_custom_dimensions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_custom_dimensions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_dimensions, "custom_dimensions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Archives a CustomDimension on a property. - # - # @overload archive_custom_dimension(request, options = nil) - # Pass arguments to `archive_custom_dimension` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload archive_custom_dimension(name: nil) - # Pass arguments to `archive_custom_dimension` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CustomDimension to archive. - # Example format: properties/1234/customDimensions/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new - # - # # Call the archive_custom_dimension method. - # result = client.archive_custom_dimension request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def archive_custom_dimension request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.archive_custom_dimension.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.archive_custom_dimension.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.archive_custom_dimension.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.archive_custom_dimension request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single CustomDimension. - # - # @overload get_custom_dimension(request, options = nil) - # Pass arguments to `get_custom_dimension` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_custom_dimension(name: nil) - # Pass arguments to `get_custom_dimension` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CustomDimension to get. - # Example format: properties/1234/customDimensions/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new - # - # # Call the get_custom_dimension method. - # result = client.get_custom_dimension request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - # p result - # - def get_custom_dimension request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_custom_dimension.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_custom_dimension.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_custom_dimension.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_custom_dimension request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a CustomMetric. - # - # @overload create_custom_metric(request, options = nil) - # Pass arguments to `create_custom_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_custom_metric(parent: nil, custom_metric: nil) - # Pass arguments to `create_custom_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param custom_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] - # Required. The CustomMetric to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new - # - # # Call the create_custom_metric method. - # result = client.create_custom_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. - # p result - # - def create_custom_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_custom_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_custom_metric.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_custom_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_custom_metric request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a CustomMetric on a property. - # - # @overload update_custom_metric(request, options = nil) - # Pass arguments to `update_custom_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_custom_metric(custom_metric: nil, update_mask: nil) - # Pass arguments to `update_custom_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param custom_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] - # The CustomMetric to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new - # - # # Call the update_custom_metric method. - # result = client.update_custom_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. - # p result - # - def update_custom_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_custom_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_custom_metric.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_custom_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_custom_metric request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CustomMetrics on a property. - # - # @overload list_custom_metrics(request, options = nil) - # Pass arguments to `list_custom_metrics` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_custom_metrics(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_custom_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListCustomMetrics` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCustomMetrics` must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new - # - # # Call the list_custom_metrics method. - # result = client.list_custom_metrics request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomMetric. - # p item - # end - # - def list_custom_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_custom_metrics.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_custom_metrics.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_custom_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_custom_metrics request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_metrics, "custom_metrics", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Archives a CustomMetric on a property. - # - # @overload archive_custom_metric(request, options = nil) - # Pass arguments to `archive_custom_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload archive_custom_metric(name: nil) - # Pass arguments to `archive_custom_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CustomMetric to archive. - # Example format: properties/1234/customMetrics/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new - # - # # Call the archive_custom_metric method. - # result = client.archive_custom_metric request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def archive_custom_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.archive_custom_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.archive_custom_metric.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.archive_custom_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.archive_custom_metric request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single CustomMetric. - # - # @overload get_custom_metric(request, options = nil) - # Pass arguments to `get_custom_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_custom_metric(name: nil) - # Pass arguments to `get_custom_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CustomMetric to get. - # Example format: properties/1234/customMetrics/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new - # - # # Call the get_custom_metric method. - # result = client.get_custom_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. - # p result - # - def get_custom_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_custom_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_custom_metric.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_custom_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_custom_metric request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the singleton data retention settings for this property. - # - # @overload get_data_retention_settings(request, options = nil) - # Pass arguments to `get_data_retention_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_data_retention_settings(name: nil) - # Pass arguments to `get_data_retention_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataRetentionSettings - # Example: "properties/1000/dataRetentionSettings" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new - # - # # Call the get_data_retention_settings method. - # result = client.get_data_retention_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. - # p result - # - def get_data_retention_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_data_retention_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_data_retention_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_data_retention_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_data_retention_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the singleton data retention settings for this property. - # - # @overload update_data_retention_settings(request, options = nil) - # Pass arguments to `update_data_retention_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_data_retention_settings(data_retention_settings: nil, update_mask: nil) - # Pass arguments to `update_data_retention_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param data_retention_settings [::Google::Analytics::Admin::V1alpha::DataRetentionSettings, ::Hash] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new - # - # # Call the update_data_retention_settings method. - # result = client.update_data_retention_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. - # p result - # - def update_data_retention_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_data_retention_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_data_retention_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_data_retention_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_data_retention_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a DataStream. - # - # @overload create_data_stream(request, options = nil) - # Pass arguments to `create_data_stream` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_data_stream(parent: nil, data_stream: nil) - # Pass arguments to `create_data_stream` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param data_stream [::Google::Analytics::Admin::V1alpha::DataStream, ::Hash] - # Required. The DataStream to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new - # - # # Call the create_data_stream method. - # result = client.create_data_stream request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - # p result - # - def create_data_stream request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_data_stream.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_data_stream.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_data_stream.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_data_stream request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a DataStream on a property. - # - # @overload delete_data_stream(request, options = nil) - # Pass arguments to `delete_data_stream` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_data_stream(name: nil) - # Pass arguments to `delete_data_stream` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DataStream to delete. - # Example format: properties/1234/dataStreams/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new - # - # # Call the delete_data_stream method. - # result = client.delete_data_stream request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_data_stream request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_data_stream.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_data_stream.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_data_stream.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_data_stream request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a DataStream on a property. - # - # @overload update_data_stream(request, options = nil) - # Pass arguments to `update_data_stream` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_data_stream(data_stream: nil, update_mask: nil) - # Pass arguments to `update_data_stream` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param data_stream [::Google::Analytics::Admin::V1alpha::DataStream, ::Hash] - # The DataStream to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new - # - # # Call the update_data_stream method. - # result = client.update_data_stream request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - # p result - # - def update_data_stream request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_data_stream.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_data_stream.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_data_stream.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_data_stream request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists DataStreams on a property. - # - # @overload list_data_streams(request, options = nil) - # Pass arguments to `list_data_streams` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_data_streams(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_data_streams` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListDataStreams` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListDataStreams` must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new - # - # # Call the list_data_streams method. - # result = client.list_data_streams request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::DataStream. - # p item - # end - # - def list_data_streams request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_data_streams.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_data_streams.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_data_streams.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_data_streams request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_data_streams, "data_streams", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single DataStream. - # - # @overload get_data_stream(request, options = nil) - # Pass arguments to `get_data_stream` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDataStreamRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDataStreamRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_data_stream(name: nil) - # Pass arguments to `get_data_stream` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DataStream to get. - # Example format: properties/1234/dataStreams/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new - # - # # Call the get_data_stream method. - # result = client.get_data_stream request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - # p result - # - def get_data_stream request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_data_stream.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_data_stream.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_data_stream.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_data_stream request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single Audience. - # Audiences created before 2020 may not be supported. - # Default audiences will not show filter definitions. - # - # @overload get_audience(request, options = nil) - # Pass arguments to `get_audience` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetAudienceRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetAudienceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_audience(name: nil) - # Pass arguments to `get_audience` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Audience to get. - # Example format: properties/1234/audiences/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetAudienceRequest.new - # - # # Call the get_audience method. - # result = client.get_audience request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - # p result - # - def get_audience request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAudienceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_audience.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_audience.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_audience.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_audience request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Audiences on a property. - # Audiences created before 2020 may not be supported. - # Default audiences will not show filter definitions. - # - # @overload list_audiences(request, options = nil) - # Pass arguments to `list_audiences` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListAudiencesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListAudiencesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_audiences(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_audiences` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListAudiences` call. Provide this - # to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListAudiences` must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new - # - # # Call the list_audiences method. - # result = client.list_audiences request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::Audience. - # p item - # end - # - def list_audiences request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_audiences.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_audiences.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_audiences.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_audiences request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_audiences, "audiences", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an Audience. - # - # @overload create_audience(request, options = nil) - # Pass arguments to `create_audience` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateAudienceRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateAudienceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_audience(parent: nil, audience: nil) - # Pass arguments to `create_audience` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param audience [::Google::Analytics::Admin::V1alpha::Audience, ::Hash] - # Required. The audience to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new - # - # # Call the create_audience method. - # result = client.create_audience request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - # p result - # - def create_audience request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_audience.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_audience.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_audience.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_audience request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an Audience on a property. - # - # @overload update_audience(request, options = nil) - # Pass arguments to `update_audience` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_audience(audience: nil, update_mask: nil) - # Pass arguments to `update_audience` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param audience [::Google::Analytics::Admin::V1alpha::Audience, ::Hash] - # Required. The audience to update. - # The audience's `name` field is used to identify the audience to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new - # - # # Call the update_audience method. - # result = client.update_audience request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - # p result - # - def update_audience request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_audience.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_audience.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_audience.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_audience request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Archives an Audience on a property. - # - # @overload archive_audience(request, options = nil) - # Pass arguments to `archive_audience` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload archive_audience(name: nil) - # Pass arguments to `archive_audience` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Example format: properties/1234/audiences/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new - # - # # Call the archive_audience method. - # result = client.archive_audience request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def archive_audience request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.archive_audience.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.archive_audience.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.archive_audience.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.archive_audience request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Look up a single SearchAds360Link - # - # @overload get_search_ads360_link(request, options = nil) - # Pass arguments to `get_search_ads360_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_search_ads360_link(name: nil) - # Pass arguments to `get_search_ads360_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the SearchAds360Link to get. - # Example format: properties/1234/SearchAds360Link/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new - # - # # Call the get_search_ads360_link method. - # result = client.get_search_ads360_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. - # p result - # - def get_search_ads360_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_search_ads360_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_search_ads360_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_search_ads360_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_search_ads360_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all SearchAds360Links on a property. - # - # @overload list_search_ads360_links(request, options = nil) - # Pass arguments to `list_search_ads360_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_search_ads360_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_search_ads360_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListSearchAds360Links` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListSearchAds360Links` must match the call that provided the - # page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new - # - # # Call the list_search_ads360_links method. - # result = client.list_search_ads360_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::SearchAds360Link. - # p item - # end - # - def list_search_ads360_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_search_ads360_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_search_ads360_links.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_search_ads360_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_search_ads360_links request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_search_ads360_links, "search_ads_360_links", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a SearchAds360Link. - # - # @overload create_search_ads360_link(request, options = nil) - # Pass arguments to `create_search_ads360_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_search_ads360_link(parent: nil, search_ads_360_link: nil) - # Pass arguments to `create_search_ads360_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param search_ads_360_link [::Google::Analytics::Admin::V1alpha::SearchAds360Link, ::Hash] - # Required. The SearchAds360Link to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new - # - # # Call the create_search_ads360_link method. - # result = client.create_search_ads360_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. - # p result - # - def create_search_ads360_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_search_ads360_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_search_ads360_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_search_ads360_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_search_ads360_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a SearchAds360Link on a property. - # - # @overload delete_search_ads360_link(request, options = nil) - # Pass arguments to `delete_search_ads360_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_search_ads360_link(name: nil) - # Pass arguments to `delete_search_ads360_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the SearchAds360Link to delete. - # Example format: properties/1234/SearchAds360Links/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new - # - # # Call the delete_search_ads360_link method. - # result = client.delete_search_ads360_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_search_ads360_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_search_ads360_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_search_ads360_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_search_ads360_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_search_ads360_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a SearchAds360Link on a property. - # - # @overload update_search_ads360_link(request, options = nil) - # Pass arguments to `update_search_ads360_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_search_ads360_link(search_ads_360_link: nil, update_mask: nil) - # Pass arguments to `update_search_ads360_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param search_ads_360_link [::Google::Analytics::Admin::V1alpha::SearchAds360Link, ::Hash] - # The SearchAds360Link to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new - # - # # Call the update_search_ads360_link method. - # result = client.update_search_ads360_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. - # p result - # - def update_search_ads360_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_search_ads360_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_search_ads360_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_search_ads360_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_search_ads360_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a AttributionSettings singleton. - # - # @overload get_attribution_settings(request, options = nil) - # Pass arguments to `get_attribution_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_attribution_settings(name: nil) - # Pass arguments to `get_attribution_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the attribution settings to retrieve. - # Format: properties/\\{property}/attributionSettings - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new - # - # # Call the get_attribution_settings method. - # result = client.get_attribution_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. - # p result - # - def get_attribution_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_attribution_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_attribution_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_attribution_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_attribution_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates attribution settings on a property. - # - # @overload update_attribution_settings(request, options = nil) - # Pass arguments to `update_attribution_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_attribution_settings(attribution_settings: nil, update_mask: nil) - # Pass arguments to `update_attribution_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param attribution_settings [::Google::Analytics::Admin::V1alpha::AttributionSettings, ::Hash] - # Required. The attribution settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new - # - # # Call the update_attribution_settings method. - # result = client.update_attribution_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. - # p result - # - def update_attribution_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_attribution_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_attribution_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_attribution_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_attribution_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns a customized report of data access records. The report provides - # records of each time a user reads Google Analytics reporting data. Access - # records are retained for up to 2 years. - # - # Data Access Reports can be requested for a property. Reports may be - # requested for any property, but dimensions that aren't related to quota can - # only be requested on Google Analytics 360 properties. This method is only - # available to Administrators. - # - # These data access records include GA UI Reporting, GA UI Explorations, - # GA Data API, and other products like Firebase & Admob that can retrieve - # data from Google Analytics through a linkage. These records don't include - # property configuration changes like adding a stream or changing a - # property's time zone. For configuration change history, see - # [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - # - # To give your feedback on this API, complete the [Google Analytics Access - # Reports - # feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) - # form. - # - # @overload run_access_report(request, options = nil) - # Pass arguments to `run_access_report` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::RunAccessReportRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::RunAccessReportRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload run_access_report(entity: nil, dimensions: nil, metrics: nil, date_ranges: nil, dimension_filter: nil, metric_filter: nil, offset: nil, limit: nil, time_zone: nil, order_bys: nil, return_entity_quota: nil, include_all_users: nil, expand_groups: nil) - # Pass arguments to `run_access_report` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param entity [::String] - # The Data Access Report supports requesting at the property level or account - # level. If requested at the account level, Data Access Reports include all - # access for all properties under that account. - # - # To request at the property level, entity should be for example - # 'properties/123' if "123" is your Google Analytics property ID. To request - # at the account level, entity should be for example 'accounts/1234' if - # "1234" is your Google Analytics Account ID. - # @param dimensions [::Array<::Google::Analytics::Admin::V1alpha::AccessDimension, ::Hash>] - # The dimensions requested and displayed in the response. Requests are - # allowed up to 9 dimensions. - # @param metrics [::Array<::Google::Analytics::Admin::V1alpha::AccessMetric, ::Hash>] - # The metrics requested and displayed in the response. Requests are allowed - # up to 10 metrics. - # @param date_ranges [::Array<::Google::Analytics::Admin::V1alpha::AccessDateRange, ::Hash>] - # Date ranges of access records to read. If multiple date ranges are - # requested, each response row will contain a zero based date range index. If - # two date ranges overlap, the access records for the overlapping days is - # included in the response rows for both date ranges. Requests are allowed up - # to 2 date ranges. - # @param dimension_filter [::Google::Analytics::Admin::V1alpha::AccessFilterExpression, ::Hash] - # Dimension filters let you restrict report response to specific - # dimension values which match the filter. For example, filtering on access - # records of a single user. To learn more, see [Fundamentals of Dimension - # Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - # for examples. Metrics cannot be used in this filter. - # @param metric_filter [::Google::Analytics::Admin::V1alpha::AccessFilterExpression, ::Hash] - # Metric filters allow you to restrict report response to specific metric - # values which match the filter. Metric filters are applied after aggregating - # the report's rows, similar to SQL having-clause. Dimensions cannot be used - # in this filter. - # @param offset [::Integer] - # The row count of the start row. The first row is counted as row 0. If - # offset is unspecified, it is treated as 0. If offset is zero, then this - # method will return the first page of results with `limit` entries. - # - # To learn more about this pagination parameter, see - # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - # @param limit [::Integer] - # The number of rows to return. If unspecified, 10,000 rows are returned. The - # API returns a maximum of 100,000 rows per request, no matter how many you - # ask for. `limit` must be positive. - # - # The API may return fewer rows than the requested `limit`, if there aren't - # as many remaining rows as the `limit`. For instance, there are fewer than - # 300 possible values for the dimension `country`, so when reporting on only - # `country`, you can't get more than 300 rows, even if you set `limit` to a - # higher value. - # - # To learn more about this pagination parameter, see - # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - # @param time_zone [::String] - # This request's time zone if specified. If unspecified, the property's time - # zone is used. The request's time zone is used to interpret the start & end - # dates of the report. - # - # Formatted as strings from the IANA Time Zone database - # (https://www.iana.org/time-zones); for example "America/New_York" or - # "Asia/Tokyo". - # @param order_bys [::Array<::Google::Analytics::Admin::V1alpha::AccessOrderBy, ::Hash>] - # Specifies how rows are ordered in the response. - # @param return_entity_quota [::Boolean] - # Toggles whether to return the current state of this Analytics Property's - # quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - # requests, this field must be false. - # @param include_all_users [::Boolean] - # Optional. Determines whether to include users who have never made an API - # call in the response. If true, all users with access to the specified - # property or account are included in the response, regardless of whether - # they have made an API call or not. If false, only the users who have made - # an API call will be included. - # @param expand_groups [::Boolean] - # Optional. Decides whether to return the users within user groups. This - # field works only when include_all_users is set to true. If true, it will - # return all users with access to the specified property or account. - # If false, only the users with direct access will be returned. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new - # - # # Call the run_access_report method. - # result = client.run_access_report request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::RunAccessReportResponse. - # p result - # - def run_access_report request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.run_access_report.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.run_access_report.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.run_access_report.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.run_access_report request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an access binding on an account or property. - # - # @overload create_access_binding(request, options = nil) - # Pass arguments to `create_access_binding` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_access_binding(parent: nil, access_binding: nil) - # Pass arguments to `create_access_binding` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] - # Required. The access binding to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new - # - # # Call the create_access_binding method. - # result = client.create_access_binding request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - # p result - # - def create_access_binding request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_access_binding.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_access_binding.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_access_binding.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_access_binding request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about an access binding. - # - # @overload get_access_binding(request, options = nil) - # Pass arguments to `get_access_binding` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_access_binding(name: nil) - # Pass arguments to `get_access_binding` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the access binding to retrieve. - # Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new - # - # # Call the get_access_binding method. - # result = client.get_access_binding request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - # p result - # - def get_access_binding request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_access_binding.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_access_binding.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_access_binding.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_access_binding request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an access binding on an account or property. - # - # @overload update_access_binding(request, options = nil) - # Pass arguments to `update_access_binding` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_access_binding(access_binding: nil) - # Pass arguments to `update_access_binding` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] - # Required. The access binding to update. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new - # - # # Call the update_access_binding method. - # result = client.update_access_binding request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - # p result - # - def update_access_binding request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_access_binding.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_access_binding.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_access_binding.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_access_binding request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an access binding on an account or property. - # - # @overload delete_access_binding(request, options = nil) - # Pass arguments to `delete_access_binding` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_access_binding(name: nil) - # Pass arguments to `delete_access_binding` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new - # - # # Call the delete_access_binding method. - # result = client.delete_access_binding request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_access_binding request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_access_binding.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_access_binding.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_access_binding.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_access_binding request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all access bindings on an account or property. - # - # @overload list_access_bindings(request, options = nil) - # Pass arguments to `list_access_bindings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_access_bindings(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_access_bindings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param page_size [::Integer] - # The maximum number of access bindings to return. - # The service may return fewer than this value. - # If unspecified, at most 200 access bindings will be returned. - # The maximum value is 500; values above 500 will be coerced to 500. - # @param page_token [::String] - # A page token, received from a previous `ListAccessBindings` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListAccessBindings` must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new - # - # # Call the list_access_bindings method. - # result = client.list_access_bindings request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::AccessBinding. - # p item - # end - # - def list_access_bindings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_access_bindings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_access_bindings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_access_bindings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_access_bindings request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_access_bindings, "access_bindings", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates information about multiple access bindings to an account or - # property. - # - # This method is transactional. If any AccessBinding cannot be created, none - # of the AccessBindings will be created. - # - # @overload batch_create_access_bindings(request, options = nil) - # Pass arguments to `batch_create_access_bindings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload batch_create_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_create_access_bindings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The account or property that owns the access bindings. The parent - # field in the CreateAccessBindingRequest messages must either be empty or - # match this field. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param requests [::Array<::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, ::Hash>] - # Required. The requests specifying the access bindings to create. - # A maximum of 1000 access bindings can be created in a batch. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new - # - # # Call the batch_create_access_bindings method. - # result = client.batch_create_access_bindings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse. - # p result - # - def batch_create_access_bindings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.batch_create_access_bindings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.batch_create_access_bindings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.batch_create_access_bindings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.batch_create_access_bindings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets information about multiple access bindings to an account or property. - # - # @overload batch_get_access_bindings(request, options = nil) - # Pass arguments to `batch_get_access_bindings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload batch_get_access_bindings(parent: nil, names: nil) - # Pass arguments to `batch_get_access_bindings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The account or property that owns the access bindings. The parent - # of all provided values for the 'names' field must match this field. - # Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param names [::Array<::String>] - # Required. The names of the access bindings to retrieve. - # A maximum of 1000 access bindings can be retrieved in a batch. - # Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new - # - # # Call the batch_get_access_bindings method. - # result = client.batch_get_access_bindings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse. - # p result - # - def batch_get_access_bindings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.batch_get_access_bindings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.batch_get_access_bindings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.batch_get_access_bindings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.batch_get_access_bindings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates information about multiple access bindings to an account or - # property. - # - # @overload batch_update_access_bindings(request, options = nil) - # Pass arguments to `batch_update_access_bindings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload batch_update_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_update_access_bindings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The account or property that owns the access bindings. The parent - # of all provided AccessBinding in UpdateAccessBindingRequest messages must - # match this field. - # Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param requests [::Array<::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, ::Hash>] - # Required. The requests specifying the access bindings to update. - # A maximum of 1000 access bindings can be updated in a batch. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new - # - # # Call the batch_update_access_bindings method. - # result = client.batch_update_access_bindings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse. - # p result - # - def batch_update_access_bindings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.batch_update_access_bindings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.batch_update_access_bindings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.batch_update_access_bindings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.batch_update_access_bindings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes information about multiple users' links to an account or property. - # - # @overload batch_delete_access_bindings(request, options = nil) - # Pass arguments to `batch_delete_access_bindings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload batch_delete_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_delete_access_bindings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The account or property that owns the access bindings. The parent - # of all provided values for the 'names' field in DeleteAccessBindingRequest - # messages must match this field. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param requests [::Array<::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, ::Hash>] - # Required. The requests specifying the access bindings to delete. - # A maximum of 1000 access bindings can be deleted in a batch. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new - # - # # Call the batch_delete_access_bindings method. - # result = client.batch_delete_access_bindings request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def batch_delete_access_bindings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.batch_delete_access_bindings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.batch_delete_access_bindings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.batch_delete_access_bindings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.batch_delete_access_bindings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single ExpandedDataSet. - # - # @overload get_expanded_data_set(request, options = nil) - # Pass arguments to `get_expanded_data_set` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_expanded_data_set(name: nil) - # Pass arguments to `get_expanded_data_set` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExpandedDataSet to get. - # Example format: properties/1234/expandedDataSets/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new - # - # # Call the get_expanded_data_set method. - # result = client.get_expanded_data_set request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. - # p result - # - def get_expanded_data_set request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_expanded_data_set.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_expanded_data_set.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_expanded_data_set.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_expanded_data_set request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists ExpandedDataSets on a property. - # - # @overload list_expanded_data_sets(request, options = nil) - # Pass arguments to `list_expanded_data_sets` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_expanded_data_sets(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_expanded_data_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListExpandedDataSets` call. Provide - # this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListExpandedDataSet` - # must match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new - # - # # Call the list_expanded_data_sets method. - # result = client.list_expanded_data_sets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::ExpandedDataSet. - # p item - # end - # - def list_expanded_data_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_expanded_data_sets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_expanded_data_sets.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_expanded_data_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_expanded_data_sets request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_expanded_data_sets, "expanded_data_sets", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a ExpandedDataSet. - # - # @overload create_expanded_data_set(request, options = nil) - # Pass arguments to `create_expanded_data_set` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_expanded_data_set(parent: nil, expanded_data_set: nil) - # Pass arguments to `create_expanded_data_set` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param expanded_data_set [::Google::Analytics::Admin::V1alpha::ExpandedDataSet, ::Hash] - # Required. The ExpandedDataSet to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new - # - # # Call the create_expanded_data_set method. - # result = client.create_expanded_data_set request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. - # p result - # - def create_expanded_data_set request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_expanded_data_set.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_expanded_data_set.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_expanded_data_set.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_expanded_data_set request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a ExpandedDataSet on a property. - # - # @overload update_expanded_data_set(request, options = nil) - # Pass arguments to `update_expanded_data_set` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_expanded_data_set(expanded_data_set: nil, update_mask: nil) - # Pass arguments to `update_expanded_data_set` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param expanded_data_set [::Google::Analytics::Admin::V1alpha::ExpandedDataSet, ::Hash] - # Required. The ExpandedDataSet to update. - # The resource's `name` field is used to identify the ExpandedDataSet to be - # updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new - # - # # Call the update_expanded_data_set method. - # result = client.update_expanded_data_set request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. - # p result - # - def update_expanded_data_set request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_expanded_data_set.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_expanded_data_set.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_expanded_data_set.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_expanded_data_set request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a ExpandedDataSet on a property. - # - # @overload delete_expanded_data_set(request, options = nil) - # Pass arguments to `delete_expanded_data_set` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_expanded_data_set(name: nil) - # Pass arguments to `delete_expanded_data_set` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Example format: properties/1234/expandedDataSets/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new - # - # # Call the delete_expanded_data_set method. - # result = client.delete_expanded_data_set request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_expanded_data_set request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_expanded_data_set.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_expanded_data_set.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_expanded_data_set.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_expanded_data_set request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single ChannelGroup. - # - # @overload get_channel_group(request, options = nil) - # Pass arguments to `get_channel_group` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_channel_group(name: nil) - # Pass arguments to `get_channel_group` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The ChannelGroup to get. - # Example format: properties/1234/channelGroups/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new - # - # # Call the get_channel_group method. - # result = client.get_channel_group request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. - # p result - # - def get_channel_group request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_channel_group.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_channel_group.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_channel_group.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_channel_group request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists ChannelGroups on a property. - # - # @overload list_channel_groups(request, options = nil) - # Pass arguments to `list_channel_groups` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_channel_groups(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_channel_groups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The property for which to list ChannelGroups. - # Example format: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListChannelGroups` call. Provide - # this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListChannelGroups` - # must match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new - # - # # Call the list_channel_groups method. - # result = client.list_channel_groups request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::ChannelGroup. - # p item - # end - # - def list_channel_groups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_channel_groups.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_channel_groups.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_channel_groups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_channel_groups request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_channel_groups, "channel_groups", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a ChannelGroup. - # - # @overload create_channel_group(request, options = nil) - # Pass arguments to `create_channel_group` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_channel_group(parent: nil, channel_group: nil) - # Pass arguments to `create_channel_group` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The property for which to create a ChannelGroup. - # Example format: properties/1234 - # @param channel_group [::Google::Analytics::Admin::V1alpha::ChannelGroup, ::Hash] - # Required. The ChannelGroup to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new - # - # # Call the create_channel_group method. - # result = client.create_channel_group request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. - # p result - # - def create_channel_group request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_channel_group.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_channel_group.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_channel_group.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_channel_group request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a ChannelGroup. - # - # @overload update_channel_group(request, options = nil) - # Pass arguments to `update_channel_group` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_channel_group(channel_group: nil, update_mask: nil) - # Pass arguments to `update_channel_group` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param channel_group [::Google::Analytics::Admin::V1alpha::ChannelGroup, ::Hash] - # Required. The ChannelGroup to update. - # The resource's `name` field is used to identify the ChannelGroup to be - # updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new - # - # # Call the update_channel_group method. - # result = client.update_channel_group request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. - # p result - # - def update_channel_group request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_channel_group.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_channel_group.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_channel_group.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_channel_group request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a ChannelGroup on a property. - # - # @overload delete_channel_group(request, options = nil) - # Pass arguments to `delete_channel_group` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_channel_group(name: nil) - # Pass arguments to `delete_channel_group` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The ChannelGroup to delete. - # Example format: properties/1234/channelGroups/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new - # - # # Call the delete_channel_group method. - # result = client.delete_channel_group request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_channel_group request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_channel_group.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_channel_group.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_channel_group.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_channel_group request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a BigQueryLink. - # - # @overload create_big_query_link(request, options = nil) - # Pass arguments to `create_big_query_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_big_query_link(parent: nil, bigquery_link: nil) - # Pass arguments to `create_big_query_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param bigquery_link [::Google::Analytics::Admin::V1alpha::BigQueryLink, ::Hash] - # Required. The BigQueryLink to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new - # - # # Call the create_big_query_link method. - # result = client.create_big_query_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. - # p result - # - def create_big_query_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_big_query_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_big_query_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_big_query_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_big_query_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single BigQuery Link. - # - # @overload get_big_query_link(request, options = nil) - # Pass arguments to `get_big_query_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_big_query_link(name: nil) - # Pass arguments to `get_big_query_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the BigQuery link to lookup. - # Format: properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id} - # Example: properties/123/bigQueryLinks/456 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new - # - # # Call the get_big_query_link method. - # result = client.get_big_query_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. - # p result - # - def get_big_query_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_big_query_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_big_query_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_big_query_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_big_query_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists BigQuery Links on a property. - # - # @overload list_big_query_links(request, options = nil) - # Pass arguments to `list_big_query_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_big_query_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_big_query_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the property to list BigQuery links under. - # Format: properties/\\{property_id} - # Example: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # A page token, received from a previous `ListBigQueryLinks` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListBigQueryLinks` must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new - # - # # Call the list_big_query_links method. - # result = client.list_big_query_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::BigQueryLink. - # p item - # end - # - def list_big_query_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_big_query_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_big_query_links.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_big_query_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_big_query_links request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_big_query_links, "bigquery_links", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a BigQueryLink on a property. - # - # @overload delete_big_query_link(request, options = nil) - # Pass arguments to `delete_big_query_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_big_query_link(name: nil) - # Pass arguments to `delete_big_query_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The BigQueryLink to delete. - # Example format: properties/1234/bigQueryLinks/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new - # - # # Call the delete_big_query_link method. - # result = client.delete_big_query_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_big_query_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_big_query_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_big_query_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_big_query_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_big_query_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a BigQueryLink. - # - # @overload update_big_query_link(request, options = nil) - # Pass arguments to `update_big_query_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_big_query_link(bigquery_link: nil, update_mask: nil) - # Pass arguments to `update_big_query_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param bigquery_link [::Google::Analytics::Admin::V1alpha::BigQueryLink, ::Hash] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new - # - # # Call the update_big_query_link method. - # result = client.update_big_query_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. - # p result - # - def update_big_query_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_big_query_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_big_query_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_big_query_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_big_query_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the enhanced measurement settings for this data stream. - # Note that the stream must enable enhanced measurement for these settings to - # take effect. - # - # @overload get_enhanced_measurement_settings(request, options = nil) - # Pass arguments to `get_enhanced_measurement_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_enhanced_measurement_settings(name: nil) - # Pass arguments to `get_enhanced_measurement_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{data_stream}/enhancedMeasurementSettings - # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new - # - # # Call the get_enhanced_measurement_settings method. - # result = client.get_enhanced_measurement_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. - # p result - # - def get_enhanced_measurement_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_enhanced_measurement_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_enhanced_measurement_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_enhanced_measurement_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_enhanced_measurement_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the enhanced measurement settings for this data stream. - # Note that the stream must enable enhanced measurement for these settings to - # take effect. - # - # @overload update_enhanced_measurement_settings(request, options = nil) - # Pass arguments to `update_enhanced_measurement_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_enhanced_measurement_settings(enhanced_measurement_settings: nil, update_mask: nil) - # Pass arguments to `update_enhanced_measurement_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param enhanced_measurement_settings [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings, ::Hash] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new - # - # # Call the update_enhanced_measurement_settings method. - # result = client.update_enhanced_measurement_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. - # p result - # - def update_enhanced_measurement_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_enhanced_measurement_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_enhanced_measurement_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_enhanced_measurement_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_enhanced_measurement_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Looks up a single AdSenseLink. - # - # @overload get_ad_sense_link(request, options = nil) - # Pass arguments to `get_ad_sense_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_ad_sense_link(name: nil) - # Pass arguments to `get_ad_sense_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Unique identifier for the AdSense Link requested. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new - # - # # Call the get_ad_sense_link method. - # result = client.get_ad_sense_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. - # p result - # - def get_ad_sense_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_ad_sense_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_ad_sense_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_ad_sense_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_ad_sense_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an AdSenseLink. - # - # @overload create_ad_sense_link(request, options = nil) - # Pass arguments to `create_ad_sense_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_ad_sense_link(parent: nil, adsense_link: nil) - # Pass arguments to `create_ad_sense_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The property for which to create an AdSense Link. - # Format: properties/\\{propertyId} - # Example: properties/1234 - # @param adsense_link [::Google::Analytics::Admin::V1alpha::AdSenseLink, ::Hash] - # Required. The AdSense Link to create - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new - # - # # Call the create_ad_sense_link method. - # result = client.create_ad_sense_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. - # p result - # - def create_ad_sense_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_ad_sense_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_ad_sense_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_ad_sense_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_ad_sense_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an AdSenseLink. - # - # @overload delete_ad_sense_link(request, options = nil) - # Pass arguments to `delete_ad_sense_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_ad_sense_link(name: nil) - # Pass arguments to `delete_ad_sense_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Unique identifier for the AdSense Link to be deleted. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new - # - # # Call the delete_ad_sense_link method. - # result = client.delete_ad_sense_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_ad_sense_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_ad_sense_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_ad_sense_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_ad_sense_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_ad_sense_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists AdSenseLinks on a property. - # - # @overload list_ad_sense_links(request, options = nil) - # Pass arguments to `list_ad_sense_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_ad_sense_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_ad_sense_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Resource name of the parent property. - # Format: properties/\\{propertyId} - # Example: properties/1234 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token received from a previous `ListAdSenseLinks` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListAdSenseLinks` must - # match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new - # - # # Call the list_ad_sense_links method. - # result = client.list_ad_sense_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::AdSenseLink. - # p item - # end - # - def list_ad_sense_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_ad_sense_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_ad_sense_links.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_ad_sense_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_ad_sense_links request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_ad_sense_links, "adsense_links", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single EventCreateRule. - # - # @overload get_event_create_rule(request, options = nil) - # Pass arguments to `get_event_create_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_event_create_rule(name: nil) - # Pass arguments to `get_event_create_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the EventCreateRule to get. - # Example format: properties/123/dataStreams/456/eventCreateRules/789 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new - # - # # Call the get_event_create_rule method. - # result = client.get_event_create_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. - # p result - # - def get_event_create_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_event_create_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_event_create_rule.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_event_create_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_event_create_rule request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists EventCreateRules on a web data stream. - # - # @overload list_event_create_rules(request, options = nil) - # Pass arguments to `list_event_create_rules` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_event_create_rules(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_event_create_rules` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param page_size [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # A page token, received from a previous `ListEventCreateRules` call. Provide - # this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListEventCreateRules` - # must match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new - # - # # Call the list_event_create_rules method. - # result = client.list_event_create_rules request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::EventCreateRule. - # p item - # end - # - def list_event_create_rules request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_event_create_rules.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_event_create_rules.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_event_create_rules.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_event_create_rules request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_event_create_rules, "event_create_rules", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an EventCreateRule. - # - # @overload create_event_create_rule(request, options = nil) - # Pass arguments to `create_event_create_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_event_create_rule(parent: nil, event_create_rule: nil) - # Pass arguments to `create_event_create_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash] - # Required. The EventCreateRule to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new - # - # # Call the create_event_create_rule method. - # result = client.create_event_create_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. - # p result - # - def create_event_create_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_event_create_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_event_create_rule.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_event_create_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_event_create_rule request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an EventCreateRule. - # - # @overload update_event_create_rule(request, options = nil) - # Pass arguments to `update_event_create_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_event_create_rule(event_create_rule: nil, update_mask: nil) - # Pass arguments to `update_event_create_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash] - # Required. The EventCreateRule to update. - # The resource's `name` field is used to identify the EventCreateRule to be - # updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new - # - # # Call the update_event_create_rule method. - # result = client.update_event_create_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. - # p result - # - def update_event_create_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_event_create_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_event_create_rule.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_event_create_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_event_create_rule request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an EventCreateRule. - # - # @overload delete_event_create_rule(request, options = nil) - # Pass arguments to `delete_event_create_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_event_create_rule(name: nil) - # Pass arguments to `delete_event_create_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Example format: - # properties/123/dataStreams/456/eventCreateRules/789 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new - # - # # Call the delete_event_create_rule method. - # result = client.delete_event_create_rule request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_event_create_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_event_create_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_event_create_rule.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_event_create_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_event_create_rule request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single EventEditRule. - # - # @overload get_event_edit_rule(request, options = nil) - # Pass arguments to `get_event_edit_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_event_edit_rule(name: nil) - # Pass arguments to `get_event_edit_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the EventEditRule to get. - # Example format: properties/123/dataStreams/456/eventEditRules/789 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new - # - # # Call the get_event_edit_rule method. - # result = client.get_event_edit_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. - # p result - # - def get_event_edit_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_event_edit_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_event_edit_rule.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_event_edit_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_event_edit_rule request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists EventEditRules on a web data stream. - # - # @overload list_event_edit_rules(request, options = nil) - # Pass arguments to `list_event_edit_rules` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_event_edit_rules(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_event_edit_rules` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # Optional. A page token, received from a previous `ListEventEditRules` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListEventEditRules` - # must match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new - # - # # Call the list_event_edit_rules method. - # result = client.list_event_edit_rules request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::EventEditRule. - # p item - # end - # - def list_event_edit_rules request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_event_edit_rules.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_event_edit_rules.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_event_edit_rules.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_event_edit_rules request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_event_edit_rules, "event_edit_rules", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates an EventEditRule. - # - # @overload create_event_edit_rule(request, options = nil) - # Pass arguments to `create_event_edit_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_event_edit_rule(parent: nil, event_edit_rule: nil) - # Pass arguments to `create_event_edit_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param event_edit_rule [::Google::Analytics::Admin::V1alpha::EventEditRule, ::Hash] - # Required. The EventEditRule to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new - # - # # Call the create_event_edit_rule method. - # result = client.create_event_edit_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. - # p result - # - def create_event_edit_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_event_edit_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_event_edit_rule.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_event_edit_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_event_edit_rule request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates an EventEditRule. - # - # @overload update_event_edit_rule(request, options = nil) - # Pass arguments to `update_event_edit_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_event_edit_rule(event_edit_rule: nil, update_mask: nil) - # Pass arguments to `update_event_edit_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param event_edit_rule [::Google::Analytics::Admin::V1alpha::EventEditRule, ::Hash] - # Required. The EventEditRule to update. - # The resource's `name` field is used to identify the EventEditRule to be - # updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new - # - # # Call the update_event_edit_rule method. - # result = client.update_event_edit_rule request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. - # p result - # - def update_event_edit_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_event_edit_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_event_edit_rule.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_event_edit_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_event_edit_rule request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes an EventEditRule. - # - # @overload delete_event_edit_rule(request, options = nil) - # Pass arguments to `delete_event_edit_rule` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_event_edit_rule(name: nil) - # Pass arguments to `delete_event_edit_rule` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Example format: properties/123/dataStreams/456/eventEditRules/789 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new - # - # # Call the delete_event_edit_rule method. - # result = client.delete_event_edit_rule request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_event_edit_rule request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_event_edit_rule.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_event_edit_rule.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_event_edit_rule.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_event_edit_rule request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Changes the processing order of event edit rules on the specified stream. - # - # @overload reorder_event_edit_rules(request, options = nil) - # Pass arguments to `reorder_event_edit_rules` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload reorder_event_edit_rules(parent: nil, event_edit_rules: nil) - # Pass arguments to `reorder_event_edit_rules` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param event_edit_rules [::Array<::String>] - # Required. EventEditRule resource names for the specified data stream, in - # the needed processing order. All EventEditRules for the stream must be - # present in the list. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new - # - # # Call the reorder_event_edit_rules method. - # result = client.reorder_event_edit_rules request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def reorder_event_edit_rules request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.reorder_event_edit_rules.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.reorder_event_edit_rules.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.reorder_event_edit_rules.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.reorder_event_edit_rules request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a DataRedactionSettings on a property. - # - # @overload update_data_redaction_settings(request, options = nil) - # Pass arguments to `update_data_redaction_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_data_redaction_settings(data_redaction_settings: nil, update_mask: nil) - # Pass arguments to `update_data_redaction_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param data_redaction_settings [::Google::Analytics::Admin::V1alpha::DataRedactionSettings, ::Hash] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new - # - # # Call the update_data_redaction_settings method. - # result = client.update_data_redaction_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. - # p result - # - def update_data_redaction_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_data_redaction_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_data_redaction_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_data_redaction_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_data_redaction_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single DataRedactionSettings. - # - # @overload get_data_redaction_settings(request, options = nil) - # Pass arguments to `get_data_redaction_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_data_redaction_settings(name: nil) - # Pass arguments to `get_data_redaction_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{data_stream}/dataRedactionSettings - # Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new - # - # # Call the get_data_redaction_settings method. - # result = client.get_data_redaction_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. - # p result - # - def get_data_redaction_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_data_redaction_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_data_redaction_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_data_redaction_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_data_redaction_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single CalculatedMetric. - # - # @overload get_calculated_metric(request, options = nil) - # Pass arguments to `get_calculated_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_calculated_metric(name: nil) - # Pass arguments to `get_calculated_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CalculatedMetric to get. - # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} - # Example: properties/1234/calculatedMetrics/Metric01 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new - # - # # Call the get_calculated_metric method. - # result = client.get_calculated_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. - # p result - # - def get_calculated_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_calculated_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_calculated_metric.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_calculated_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_calculated_metric request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a CalculatedMetric. - # - # @overload create_calculated_metric(request, options = nil) - # Pass arguments to `create_calculated_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_calculated_metric(parent: nil, calculated_metric_id: nil, calculated_metric: nil) - # Pass arguments to `create_calculated_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Format: properties/\\{property_id} - # Example: properties/1234 - # @param calculated_metric_id [::String] - # Required. The ID to use for the calculated metric which will become the - # final component of the calculated metric's resource name. - # - # This value should be 1-80 characters and valid characters are - # /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique - # between all calculated metrics under a property. The calculated_metric_id - # is used when referencing this calculated metric from external APIs, for - # example, "calcMetric:\\{calculated_metric_id}". - # @param calculated_metric [::Google::Analytics::Admin::V1alpha::CalculatedMetric, ::Hash] - # Required. The CalculatedMetric to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new - # - # # Call the create_calculated_metric method. - # result = client.create_calculated_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. - # p result - # - def create_calculated_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_calculated_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_calculated_metric.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_calculated_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_calculated_metric request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists CalculatedMetrics on a property. - # - # @overload list_calculated_metrics(request, options = nil) - # Pass arguments to `list_calculated_metrics` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_calculated_metrics(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_calculated_metrics` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Example format: properties/1234 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @param page_token [::String] - # Optional. A page token, received from a previous `ListCalculatedMetrics` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCalculatedMetrics` - # must match the call that provided the page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CalculatedMetric>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CalculatedMetric>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new - # - # # Call the list_calculated_metrics method. - # result = client.list_calculated_metrics request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::CalculatedMetric. - # p item - # end - # - def list_calculated_metrics request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_calculated_metrics.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_calculated_metrics.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_calculated_metrics.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_calculated_metrics request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_calculated_metrics, "calculated_metrics", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a CalculatedMetric on a property. - # - # @overload update_calculated_metric(request, options = nil) - # Pass arguments to `update_calculated_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_calculated_metric(calculated_metric: nil, update_mask: nil) - # Pass arguments to `update_calculated_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param calculated_metric [::Google::Analytics::Admin::V1alpha::CalculatedMetric, ::Hash] - # Required. The CalculatedMetric to update - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new - # - # # Call the update_calculated_metric method. - # result = client.update_calculated_metric request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. - # p result - # - def update_calculated_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_calculated_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_calculated_metric.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_calculated_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_calculated_metric request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a CalculatedMetric on a property. - # - # @overload delete_calculated_metric(request, options = nil) - # Pass arguments to `delete_calculated_metric` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_calculated_metric(name: nil) - # Pass arguments to `delete_calculated_metric` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the CalculatedMetric to delete. - # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} - # Example: properties/1234/calculatedMetrics/Metric01 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new - # - # # Call the delete_calculated_metric method. - # result = client.delete_calculated_metric request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_calculated_metric request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_calculated_metric.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_calculated_metric.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_calculated_metric.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_calculated_metric request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a roll-up property and all roll-up property source links. - # - # @overload create_rollup_property(request, options = nil) - # Pass arguments to `create_rollup_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_rollup_property(rollup_property: nil, source_properties: nil) - # Pass arguments to `create_rollup_property` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param rollup_property [::Google::Analytics::Admin::V1alpha::Property, ::Hash] - # Required. The roll-up property to create. - # @param source_properties [::Array<::String>] - # Optional. The resource names of properties that will be sources to the - # created roll-up property. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new - # - # # Call the create_rollup_property method. - # result = client.create_rollup_property request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse. - # p result - # - def create_rollup_property request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_rollup_property.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_rollup_property.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_rollup_property.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_rollup_property request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single roll-up property source Link. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - # - # @overload get_rollup_property_source_link(request, options = nil) - # Pass arguments to `get_rollup_property_source_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_rollup_property_source_link(name: nil) - # Pass arguments to `get_rollup_property_source_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the roll-up property source link to lookup. - # Format: - # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} - # Example: properties/123/rollupPropertySourceLinks/456 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new - # - # # Call the get_rollup_property_source_link method. - # result = client.get_rollup_property_source_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. - # p result - # - def get_rollup_property_source_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_rollup_property_source_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_rollup_property_source_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_rollup_property_source_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_rollup_property_source_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists roll-up property source Links on a property. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - # - # @overload list_rollup_property_source_links(request, options = nil) - # Pass arguments to `list_rollup_property_source_links` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_rollup_property_source_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_rollup_property_source_links` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the roll-up property to list roll-up property source - # links under. Format: properties/\\{property_id} Example: properties/1234 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListRollupPropertySourceLinks` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListRollupPropertySourceLinks` must match the call that provided the page - # token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new - # - # # Call the list_rollup_property_source_links method. - # result = client.list_rollup_property_source_links request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. - # p item - # end - # - def list_rollup_property_source_links request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_rollup_property_source_links.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_rollup_property_source_links.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_rollup_property_source_links.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_rollup_property_source_links request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_rollup_property_source_links, "rollup_property_source_links", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a roll-up property source link. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - # - # @overload create_rollup_property_source_link(request, options = nil) - # Pass arguments to `create_rollup_property_source_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_rollup_property_source_link(parent: nil, rollup_property_source_link: nil) - # Pass arguments to `create_rollup_property_source_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Format: properties/\\{property_id} - # Example: properties/1234 - # @param rollup_property_source_link [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink, ::Hash] - # Required. The roll-up property source link to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new - # - # # Call the create_rollup_property_source_link method. - # result = client.create_rollup_property_source_link request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. - # p result - # - def create_rollup_property_source_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_rollup_property_source_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_rollup_property_source_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_rollup_property_source_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_rollup_property_source_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a roll-up property source link. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - # - # @overload delete_rollup_property_source_link(request, options = nil) - # Pass arguments to `delete_rollup_property_source_link` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_rollup_property_source_link(name: nil) - # Pass arguments to `delete_rollup_property_source_link` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Format: - # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} - # Example: properties/1234/rollupPropertySourceLinks/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new - # - # # Call the delete_rollup_property_source_link method. - # result = client.delete_rollup_property_source_link request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_rollup_property_source_link request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_rollup_property_source_link.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_rollup_property_source_link.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_rollup_property_source_link.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_rollup_property_source_link request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Create a subproperty and a subproperty event filter that applies to the - # created subproperty. - # - # @overload provision_subproperty(request, options = nil) - # Pass arguments to `provision_subproperty` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload provision_subproperty(subproperty: nil, subproperty_event_filter: nil, custom_dimension_and_metric_synchronization_mode: nil) - # Pass arguments to `provision_subproperty` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param subproperty [::Google::Analytics::Admin::V1alpha::Property, ::Hash] - # Required. The subproperty to create. - # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] - # Optional. The subproperty event filter to create on an ordinary property. - # @param custom_dimension_and_metric_synchronization_mode [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig::SynchronizationMode] - # Optional. The subproperty feature synchronization mode for Custom - # Dimensions and Metrics - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new - # - # # Call the provision_subproperty method. - # result = client.provision_subproperty request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse. - # p result - # - def provision_subproperty request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.provision_subproperty.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.provision_subproperty.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.provision_subproperty.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.provision_subproperty request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a subproperty Event Filter. - # - # @overload create_subproperty_event_filter(request, options = nil) - # Pass arguments to `create_subproperty_event_filter` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_subproperty_event_filter(parent: nil, subproperty_event_filter: nil) - # Pass arguments to `create_subproperty_event_filter` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The ordinary property for which to create a subproperty event - # filter. Format: properties/property_id Example: properties/123 - # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] - # Required. The subproperty event filter to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new - # - # # Call the create_subproperty_event_filter method. - # result = client.create_subproperty_event_filter request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - # p result - # - def create_subproperty_event_filter request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_subproperty_event_filter.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_subproperty_event_filter.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_subproperty_event_filter.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_subproperty_event_filter request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single subproperty Event Filter. - # - # @overload get_subproperty_event_filter(request, options = nil) - # Pass arguments to `get_subproperty_event_filter` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_subproperty_event_filter(name: nil) - # Pass arguments to `get_subproperty_event_filter` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Resource name of the subproperty event filter to lookup. - # Format: - # properties/property_id/subpropertyEventFilters/subproperty_event_filter - # Example: properties/123/subpropertyEventFilters/456 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new - # - # # Call the get_subproperty_event_filter method. - # result = client.get_subproperty_event_filter request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - # p result - # - def get_subproperty_event_filter request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_subproperty_event_filter.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_subproperty_event_filter.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_subproperty_event_filter.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_subproperty_event_filter request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List all subproperty Event Filters on a property. - # - # @overload list_subproperty_event_filters(request, options = nil) - # Pass arguments to `list_subproperty_event_filters` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_subproperty_event_filters(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_subproperty_event_filters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Resource name of the ordinary property. - # Format: properties/property_id - # Example: properties/123 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. If unspecified, - # at most 50 resources will be returned. The maximum value is 200; (higher - # values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent - # page. When paginating, all other parameters provided to - # `ListSubpropertyEventFilters` must match the call that provided the page - # token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new - # - # # Call the list_subproperty_event_filters method. - # result = client.list_subproperty_event_filters request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - # p item - # end - # - def list_subproperty_event_filters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_subproperty_event_filters.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_subproperty_event_filters.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_subproperty_event_filters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_subproperty_event_filters request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_event_filters, "subproperty_event_filters", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a subproperty Event Filter. - # - # @overload update_subproperty_event_filter(request, options = nil) - # Pass arguments to `update_subproperty_event_filter` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_subproperty_event_filter(subproperty_event_filter: nil, update_mask: nil) - # Pass arguments to `update_subproperty_event_filter` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param subproperty_event_filter [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter, ::Hash] - # Required. The subproperty event filter to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Required. The list of fields to update. Field names must be in snake case - # (for example, "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new - # - # # Call the update_subproperty_event_filter method. - # result = client.update_subproperty_event_filter request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - # p result - # - def update_subproperty_event_filter request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_subproperty_event_filter.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_subproperty_event_filter.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_subproperty_event_filter.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_subproperty_event_filter request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a subproperty event filter. - # - # @overload delete_subproperty_event_filter(request, options = nil) - # Pass arguments to `delete_subproperty_event_filter` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_subproperty_event_filter(name: nil) - # Pass arguments to `delete_subproperty_event_filter` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Resource name of the subproperty event filter to delete. - # Format: - # properties/property_id/subpropertyEventFilters/subproperty_event_filter - # Example: properties/123/subpropertyEventFilters/456 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new - # - # # Call the delete_subproperty_event_filter method. - # result = client.delete_subproperty_event_filter request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_subproperty_event_filter request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_subproperty_event_filter.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_subproperty_event_filter.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_subproperty_event_filter.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_subproperty_event_filter request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a Reporting Data Annotation. - # - # @overload create_reporting_data_annotation(request, options = nil) - # Pass arguments to `create_reporting_data_annotation` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_reporting_data_annotation(parent: nil, reporting_data_annotation: nil) - # Pass arguments to `create_reporting_data_annotation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The property for which to create a Reporting Data Annotation. - # Format: properties/property_id - # Example: properties/123 - # @param reporting_data_annotation [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation, ::Hash] - # Required. The Reporting Data Annotation to create. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new - # - # # Call the create_reporting_data_annotation method. - # result = client.create_reporting_data_annotation request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - # p result - # - def create_reporting_data_annotation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_reporting_data_annotation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_reporting_data_annotation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_reporting_data_annotation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.create_reporting_data_annotation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup a single Reporting Data Annotation. - # - # @overload get_reporting_data_annotation(request, options = nil) - # Pass arguments to `get_reporting_data_annotation` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_reporting_data_annotation(name: nil) - # Pass arguments to `get_reporting_data_annotation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Resource name of the Reporting Data Annotation to lookup. - # Format: - # properties/property_id/reportingDataAnnotations/reportingDataAnnotation - # Example: properties/123/reportingDataAnnotations/456 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new - # - # # Call the get_reporting_data_annotation method. - # result = client.get_reporting_data_annotation request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - # p result - # - def get_reporting_data_annotation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_reporting_data_annotation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_reporting_data_annotation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_reporting_data_annotation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_reporting_data_annotation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List all Reporting Data Annotations on a property. - # - # @overload list_reporting_data_annotations(request, options = nil) - # Pass arguments to `list_reporting_data_annotations` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_reporting_data_annotations(parent: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_reporting_data_annotations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Resource name of the property. - # Format: properties/property_id - # Example: properties/123 - # @param filter [::String] - # Optional. Filter that restricts which reporting data annotations under the - # parent property are listed. - # - # Supported fields are: - # - # * 'name' - # * `title` - # * `description` - # * `annotation_date` - # * `annotation_date_range` - # * `color` - # - # Additionally, this API provides the following helper functions: - # - # * annotation_duration() : the duration that this annotation marks, - # [durations](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/duration.proto). - # expect a numeric representation of seconds followed by an `s` suffix. - # * is_annotation_in_range(start_date, end_date) : if the annotation is in - # the range specified by the `start_date` and `end_date`. The dates are in - # ISO-8601 format, for example `2031-06-28`. - # - # Supported operations: - # - # * `=` : equals - # * `!=` : not equals - # * `<` : less than - # * `>` : greater than - # * `<=` : less than or equals - # * `>=` : greater than or equals - # * `:` : has operator - # * `=~` : [regular expression](https://github.com/google/re2/wiki/Syntax) - # match - # * `!~` : [regular expression](https://github.com/google/re2/wiki/Syntax) - # does not match - # * `NOT` : Logical not - # * `AND` : Logical and - # * `OR` : Logical or - # - # Examples: - # - # 1. `title="Holiday Sale"` - # 2. `description=~"[Bb]ig [Gg]ame.*[Ss]ale"` - # 3. `is_annotation_in_range("2025-12-25", "2026-01-16") = true` - # 4. `annotation_duration() >= 172800s AND title:BOGO` - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. If unspecified, - # at most 50 resources will be returned. The maximum value is 200; (higher - # values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListReportingDataAnnotations` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListReportingDataAnnotations` must match the call that provided the page - # token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new - # - # # Call the list_reporting_data_annotations method. - # result = client.list_reporting_data_annotations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - # p item - # end - # - def list_reporting_data_annotations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_reporting_data_annotations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_reporting_data_annotations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_reporting_data_annotations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_reporting_data_annotations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_reporting_data_annotations, "reporting_data_annotations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a Reporting Data Annotation. - # - # @overload update_reporting_data_annotation(request, options = nil) - # Pass arguments to `update_reporting_data_annotation` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_reporting_data_annotation(reporting_data_annotation: nil, update_mask: nil) - # Pass arguments to `update_reporting_data_annotation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param reporting_data_annotation [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation, ::Hash] - # Required. The Reporting Data Annotation to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. Field names must be in snake case - # (for example, "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new - # - # # Call the update_reporting_data_annotation method. - # result = client.update_reporting_data_annotation request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - # p result - # - def update_reporting_data_annotation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_reporting_data_annotation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_reporting_data_annotation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_reporting_data_annotation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_reporting_data_annotation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a Reporting Data Annotation. - # - # @overload delete_reporting_data_annotation(request, options = nil) - # Pass arguments to `delete_reporting_data_annotation` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_reporting_data_annotation(name: nil) - # Pass arguments to `delete_reporting_data_annotation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Resource name of the Reporting Data Annotation to delete. - # Format: - # properties/property_id/reportingDataAnnotations/reporting_data_annotation - # Example: properties/123/reportingDataAnnotations/456 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new - # - # # Call the delete_reporting_data_annotation method. - # result = client.delete_reporting_data_annotation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_reporting_data_annotation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_reporting_data_annotation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_reporting_data_annotation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_reporting_data_annotation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.delete_reporting_data_annotation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Submits a request for user deletion for a property. - # - # @overload submit_user_deletion(request, options = nil) - # Pass arguments to `submit_user_deletion` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload submit_user_deletion(user_id: nil, client_id: nil, app_instance_id: nil, user_provided_data: nil, name: nil) - # Pass arguments to `submit_user_deletion` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param user_id [::String] - # Google Analytics [user - # ID](https://firebase.google.com/docs/analytics/userid). - # - # Note: The following parameters are mutually exclusive: `user_id`, `client_id`, `app_instance_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param client_id [::String] - # Google Analytics [client - # ID](https://support.google.com/analytics/answer/11593727). - # - # Note: The following parameters are mutually exclusive: `client_id`, `user_id`, `app_instance_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param app_instance_id [::String] - # Firebase [application instance - # ID](https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.html#getAppInstanceId). - # - # Note: The following parameters are mutually exclusive: `app_instance_id`, `user_id`, `client_id`, `user_provided_data`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param user_provided_data [::String] - # [User-provided - # data](https://support.google.com/analytics/answer/14077171). May contain - # either one email address or one phone number. - # - # Email addresses should be normalized as such: - # - # * lowercase - # * remove periods before @ for gmail.com/googlemail.com addresses - # * remove all spaces - # - # Phone numbers should be normalized as such: - # - # * remove all non digit characters - # * add + prefix - # - # Note: The following parameters are mutually exclusive: `user_provided_data`, `user_id`, `client_id`, `app_instance_id`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one. - # @param name [::String] - # Required. The name of the property to submit user deletion for. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new - # - # # Call the submit_user_deletion method. - # result = client.submit_user_deletion request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse. - # p result - # - def submit_user_deletion request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.submit_user_deletion.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.submit_user_deletion.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.submit_user_deletion.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.submit_user_deletion request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List all `SubpropertySyncConfig` resources for a property. - # - # @overload list_subproperty_sync_configs(request, options = nil) - # Pass arguments to `list_subproperty_sync_configs` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_subproperty_sync_configs(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_subproperty_sync_configs` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Resource name of the property. - # Format: properties/property_id - # Example: properties/123 - # @param page_size [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. If unspecified, - # at most 50 resources will be returned. The maximum value is 200; (higher - # values will be coerced to the maximum) - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListSubpropertySyncConfig` call. Provide this to retrieve the subsequent - # page. When paginating, all other parameters provided to - # `ListSubpropertySyncConfig` must match the call that provided the page - # token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new - # - # # Call the list_subproperty_sync_configs method. - # result = client.list_subproperty_sync_configs request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. - # p item - # end - # - def list_subproperty_sync_configs request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_subproperty_sync_configs.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_subproperty_sync_configs.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_subproperty_sync_configs.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.list_subproperty_sync_configs request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_subproperty_sync_configs, "subproperty_sync_configs", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a `SubpropertySyncConfig`. - # - # @overload update_subproperty_sync_config(request, options = nil) - # Pass arguments to `update_subproperty_sync_config` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_subproperty_sync_config(subproperty_sync_config: nil, update_mask: nil) - # Pass arguments to `update_subproperty_sync_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param subproperty_sync_config [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig, ::Hash] - # Required. The `SubpropertySyncConfig` to update. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to update. Field names must be in snake case - # (for example, "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new - # - # # Call the update_subproperty_sync_config method. - # result = client.update_subproperty_sync_config request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. - # p result - # - def update_subproperty_sync_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_subproperty_sync_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_subproperty_sync_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_subproperty_sync_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_subproperty_sync_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lookup for a single `SubpropertySyncConfig`. - # - # @overload get_subproperty_sync_config(request, options = nil) - # Pass arguments to `get_subproperty_sync_config` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_subproperty_sync_config(name: nil) - # Pass arguments to `get_subproperty_sync_config` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Resource name of the SubpropertySyncConfig to lookup. - # Format: - # properties/\\{ordinary_property_id}/subpropertySyncConfigs/\\{subproperty_id} - # Example: properties/1234/subpropertySyncConfigs/5678 - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new - # - # # Call the get_subproperty_sync_config method. - # result = client.get_subproperty_sync_config request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. - # p result - # - def get_subproperty_sync_config request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_subproperty_sync_config.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_subproperty_sync_config.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_subproperty_sync_config.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_subproperty_sync_config request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Returns the reporting identity settings for this property. - # - # @overload get_reporting_identity_settings(request, options = nil) - # Pass arguments to `get_reporting_identity_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_reporting_identity_settings(name: nil) - # Pass arguments to `get_reporting_identity_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/reportingIdentitySettings - # Example: "properties/1000/reportingIdentitySettings" - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new - # - # # Call the get_reporting_identity_settings method. - # result = client.get_reporting_identity_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. - # p result - # - def get_reporting_identity_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_reporting_identity_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_reporting_identity_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_reporting_identity_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_reporting_identity_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the reporting identity settings for this property. - # - # @overload update_reporting_identity_settings(request, options = nil) - # Pass arguments to `update_reporting_identity_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_reporting_identity_settings(reporting_identity_settings: nil, update_mask: nil) - # Pass arguments to `update_reporting_identity_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param reporting_identity_settings [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings, ::Hash] - # Required. The reporting identity settings to update. - # The settings' `name` field is used to identify the settings. - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # Optional. The list of fields to be updated. Field names must be in snake - # case (for example, "field_to_update"). Omitted fields will not be updated. - # To replace the entire entity, use one path with the string "*" to match all - # fields. If omitted, the service will treat it as an implied field mask - # equivalent to all fields that are populated. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new - # - # # Call the update_reporting_identity_settings method. - # result = client.update_reporting_identity_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. - # p result - # - def update_reporting_identity_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_reporting_identity_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_reporting_identity_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_reporting_identity_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.update_reporting_identity_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Looks up settings related to user-provided data for a property. - # - # @overload get_user_provided_data_settings(request, options = nil) - # Pass arguments to `get_user_provided_data_settings` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest} or an equivalent Hash. - # - # @param request [::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_user_provided_data_settings(name: nil) - # Pass arguments to `get_user_provided_data_settings` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the user provided data settings to retrieve. - # Format: properties/\\{property}/userProvidedDataSettings - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/analytics/admin/v1alpha" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new - # - # # Call the get_user_provided_data_settings method. - # result = client.get_user_provided_data_settings request - # - # # The returned object is of type Google::Analytics::Admin::V1alpha::UserProvidedDataSettings. - # p result - # - def get_user_provided_data_settings request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_user_provided_data_settings.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_user_provided_data_settings.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_user_provided_data_settings.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @analytics_admin_service_stub.get_user_provided_data_settings request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the AnalyticsAdminService REST API. - # - # This class represents the configuration for AnalyticsAdminService REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # get_account to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.get_account.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.get_account.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "analyticsadmin.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the AnalyticsAdminService API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `get_account` - # @return [::Gapic::Config::Method] - # - attr_reader :get_account - ## - # RPC-specific configuration for `list_accounts` - # @return [::Gapic::Config::Method] - # - attr_reader :list_accounts - ## - # RPC-specific configuration for `delete_account` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_account - ## - # RPC-specific configuration for `update_account` - # @return [::Gapic::Config::Method] - # - attr_reader :update_account - ## - # RPC-specific configuration for `provision_account_ticket` - # @return [::Gapic::Config::Method] - # - attr_reader :provision_account_ticket - ## - # RPC-specific configuration for `list_account_summaries` - # @return [::Gapic::Config::Method] - # - attr_reader :list_account_summaries - ## - # RPC-specific configuration for `get_property` - # @return [::Gapic::Config::Method] - # - attr_reader :get_property - ## - # RPC-specific configuration for `list_properties` - # @return [::Gapic::Config::Method] - # - attr_reader :list_properties - ## - # RPC-specific configuration for `create_property` - # @return [::Gapic::Config::Method] - # - attr_reader :create_property - ## - # RPC-specific configuration for `delete_property` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_property - ## - # RPC-specific configuration for `update_property` - # @return [::Gapic::Config::Method] - # - attr_reader :update_property - ## - # RPC-specific configuration for `create_firebase_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_firebase_link - ## - # RPC-specific configuration for `delete_firebase_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_firebase_link - ## - # RPC-specific configuration for `list_firebase_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_firebase_links - ## - # RPC-specific configuration for `get_global_site_tag` - # @return [::Gapic::Config::Method] - # - attr_reader :get_global_site_tag - ## - # RPC-specific configuration for `create_google_ads_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_google_ads_link - ## - # RPC-specific configuration for `update_google_ads_link` - # @return [::Gapic::Config::Method] - # - attr_reader :update_google_ads_link - ## - # RPC-specific configuration for `delete_google_ads_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_google_ads_link - ## - # RPC-specific configuration for `list_google_ads_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_google_ads_links - ## - # RPC-specific configuration for `get_data_sharing_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_data_sharing_settings - ## - # RPC-specific configuration for `get_measurement_protocol_secret` - # @return [::Gapic::Config::Method] - # - attr_reader :get_measurement_protocol_secret - ## - # RPC-specific configuration for `list_measurement_protocol_secrets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_measurement_protocol_secrets - ## - # RPC-specific configuration for `create_measurement_protocol_secret` - # @return [::Gapic::Config::Method] - # - attr_reader :create_measurement_protocol_secret - ## - # RPC-specific configuration for `delete_measurement_protocol_secret` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_measurement_protocol_secret - ## - # RPC-specific configuration for `update_measurement_protocol_secret` - # @return [::Gapic::Config::Method] - # - attr_reader :update_measurement_protocol_secret - ## - # RPC-specific configuration for `acknowledge_user_data_collection` - # @return [::Gapic::Config::Method] - # - attr_reader :acknowledge_user_data_collection - ## - # RPC-specific configuration for `get_sk_ad_network_conversion_value_schema` - # @return [::Gapic::Config::Method] - # - attr_reader :get_sk_ad_network_conversion_value_schema - ## - # RPC-specific configuration for `create_sk_ad_network_conversion_value_schema` - # @return [::Gapic::Config::Method] - # - attr_reader :create_sk_ad_network_conversion_value_schema - ## - # RPC-specific configuration for `delete_sk_ad_network_conversion_value_schema` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_sk_ad_network_conversion_value_schema - ## - # RPC-specific configuration for `update_sk_ad_network_conversion_value_schema` - # @return [::Gapic::Config::Method] - # - attr_reader :update_sk_ad_network_conversion_value_schema - ## - # RPC-specific configuration for `list_sk_ad_network_conversion_value_schemas` - # @return [::Gapic::Config::Method] - # - attr_reader :list_sk_ad_network_conversion_value_schemas - ## - # RPC-specific configuration for `search_change_history_events` - # @return [::Gapic::Config::Method] - # - attr_reader :search_change_history_events - ## - # RPC-specific configuration for `get_google_signals_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_google_signals_settings - ## - # RPC-specific configuration for `update_google_signals_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_google_signals_settings - ## - # RPC-specific configuration for `create_conversion_event` - # @return [::Gapic::Config::Method] - # - attr_reader :create_conversion_event - ## - # RPC-specific configuration for `update_conversion_event` - # @return [::Gapic::Config::Method] - # - attr_reader :update_conversion_event - ## - # RPC-specific configuration for `get_conversion_event` - # @return [::Gapic::Config::Method] - # - attr_reader :get_conversion_event - ## - # RPC-specific configuration for `delete_conversion_event` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_conversion_event - ## - # RPC-specific configuration for `list_conversion_events` - # @return [::Gapic::Config::Method] - # - attr_reader :list_conversion_events - ## - # RPC-specific configuration for `create_key_event` - # @return [::Gapic::Config::Method] - # - attr_reader :create_key_event - ## - # RPC-specific configuration for `update_key_event` - # @return [::Gapic::Config::Method] - # - attr_reader :update_key_event - ## - # RPC-specific configuration for `get_key_event` - # @return [::Gapic::Config::Method] - # - attr_reader :get_key_event - ## - # RPC-specific configuration for `delete_key_event` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_key_event - ## - # RPC-specific configuration for `list_key_events` - # @return [::Gapic::Config::Method] - # - attr_reader :list_key_events - ## - # RPC-specific configuration for `get_display_video360_advertiser_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_display_video360_advertiser_link - ## - # RPC-specific configuration for `list_display_video360_advertiser_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_display_video360_advertiser_links - ## - # RPC-specific configuration for `create_display_video360_advertiser_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_display_video360_advertiser_link - ## - # RPC-specific configuration for `delete_display_video360_advertiser_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_display_video360_advertiser_link - ## - # RPC-specific configuration for `update_display_video360_advertiser_link` - # @return [::Gapic::Config::Method] - # - attr_reader :update_display_video360_advertiser_link - ## - # RPC-specific configuration for `get_display_video360_advertiser_link_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :get_display_video360_advertiser_link_proposal - ## - # RPC-specific configuration for `list_display_video360_advertiser_link_proposals` - # @return [::Gapic::Config::Method] - # - attr_reader :list_display_video360_advertiser_link_proposals - ## - # RPC-specific configuration for `create_display_video360_advertiser_link_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :create_display_video360_advertiser_link_proposal - ## - # RPC-specific configuration for `delete_display_video360_advertiser_link_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_display_video360_advertiser_link_proposal - ## - # RPC-specific configuration for `approve_display_video360_advertiser_link_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :approve_display_video360_advertiser_link_proposal - ## - # RPC-specific configuration for `cancel_display_video360_advertiser_link_proposal` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_display_video360_advertiser_link_proposal - ## - # RPC-specific configuration for `create_custom_dimension` - # @return [::Gapic::Config::Method] - # - attr_reader :create_custom_dimension - ## - # RPC-specific configuration for `update_custom_dimension` - # @return [::Gapic::Config::Method] - # - attr_reader :update_custom_dimension - ## - # RPC-specific configuration for `list_custom_dimensions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_custom_dimensions - ## - # RPC-specific configuration for `archive_custom_dimension` - # @return [::Gapic::Config::Method] - # - attr_reader :archive_custom_dimension - ## - # RPC-specific configuration for `get_custom_dimension` - # @return [::Gapic::Config::Method] - # - attr_reader :get_custom_dimension - ## - # RPC-specific configuration for `create_custom_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :create_custom_metric - ## - # RPC-specific configuration for `update_custom_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :update_custom_metric - ## - # RPC-specific configuration for `list_custom_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :list_custom_metrics - ## - # RPC-specific configuration for `archive_custom_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :archive_custom_metric - ## - # RPC-specific configuration for `get_custom_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :get_custom_metric - ## - # RPC-specific configuration for `get_data_retention_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_data_retention_settings - ## - # RPC-specific configuration for `update_data_retention_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_data_retention_settings - ## - # RPC-specific configuration for `create_data_stream` - # @return [::Gapic::Config::Method] - # - attr_reader :create_data_stream - ## - # RPC-specific configuration for `delete_data_stream` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_data_stream - ## - # RPC-specific configuration for `update_data_stream` - # @return [::Gapic::Config::Method] - # - attr_reader :update_data_stream - ## - # RPC-specific configuration for `list_data_streams` - # @return [::Gapic::Config::Method] - # - attr_reader :list_data_streams - ## - # RPC-specific configuration for `get_data_stream` - # @return [::Gapic::Config::Method] - # - attr_reader :get_data_stream - ## - # RPC-specific configuration for `get_audience` - # @return [::Gapic::Config::Method] - # - attr_reader :get_audience - ## - # RPC-specific configuration for `list_audiences` - # @return [::Gapic::Config::Method] - # - attr_reader :list_audiences - ## - # RPC-specific configuration for `create_audience` - # @return [::Gapic::Config::Method] - # - attr_reader :create_audience - ## - # RPC-specific configuration for `update_audience` - # @return [::Gapic::Config::Method] - # - attr_reader :update_audience - ## - # RPC-specific configuration for `archive_audience` - # @return [::Gapic::Config::Method] - # - attr_reader :archive_audience - ## - # RPC-specific configuration for `get_search_ads360_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_search_ads360_link - ## - # RPC-specific configuration for `list_search_ads360_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_search_ads360_links - ## - # RPC-specific configuration for `create_search_ads360_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_search_ads360_link - ## - # RPC-specific configuration for `delete_search_ads360_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_search_ads360_link - ## - # RPC-specific configuration for `update_search_ads360_link` - # @return [::Gapic::Config::Method] - # - attr_reader :update_search_ads360_link - ## - # RPC-specific configuration for `get_attribution_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_attribution_settings - ## - # RPC-specific configuration for `update_attribution_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_attribution_settings - ## - # RPC-specific configuration for `run_access_report` - # @return [::Gapic::Config::Method] - # - attr_reader :run_access_report - ## - # RPC-specific configuration for `create_access_binding` - # @return [::Gapic::Config::Method] - # - attr_reader :create_access_binding - ## - # RPC-specific configuration for `get_access_binding` - # @return [::Gapic::Config::Method] - # - attr_reader :get_access_binding - ## - # RPC-specific configuration for `update_access_binding` - # @return [::Gapic::Config::Method] - # - attr_reader :update_access_binding - ## - # RPC-specific configuration for `delete_access_binding` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_access_binding - ## - # RPC-specific configuration for `list_access_bindings` - # @return [::Gapic::Config::Method] - # - attr_reader :list_access_bindings - ## - # RPC-specific configuration for `batch_create_access_bindings` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_create_access_bindings - ## - # RPC-specific configuration for `batch_get_access_bindings` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_get_access_bindings - ## - # RPC-specific configuration for `batch_update_access_bindings` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_update_access_bindings - ## - # RPC-specific configuration for `batch_delete_access_bindings` - # @return [::Gapic::Config::Method] - # - attr_reader :batch_delete_access_bindings - ## - # RPC-specific configuration for `get_expanded_data_set` - # @return [::Gapic::Config::Method] - # - attr_reader :get_expanded_data_set - ## - # RPC-specific configuration for `list_expanded_data_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_expanded_data_sets - ## - # RPC-specific configuration for `create_expanded_data_set` - # @return [::Gapic::Config::Method] - # - attr_reader :create_expanded_data_set - ## - # RPC-specific configuration for `update_expanded_data_set` - # @return [::Gapic::Config::Method] - # - attr_reader :update_expanded_data_set - ## - # RPC-specific configuration for `delete_expanded_data_set` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_expanded_data_set - ## - # RPC-specific configuration for `get_channel_group` - # @return [::Gapic::Config::Method] - # - attr_reader :get_channel_group - ## - # RPC-specific configuration for `list_channel_groups` - # @return [::Gapic::Config::Method] - # - attr_reader :list_channel_groups - ## - # RPC-specific configuration for `create_channel_group` - # @return [::Gapic::Config::Method] - # - attr_reader :create_channel_group - ## - # RPC-specific configuration for `update_channel_group` - # @return [::Gapic::Config::Method] - # - attr_reader :update_channel_group - ## - # RPC-specific configuration for `delete_channel_group` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_channel_group - ## - # RPC-specific configuration for `create_big_query_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_big_query_link - ## - # RPC-specific configuration for `get_big_query_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_big_query_link - ## - # RPC-specific configuration for `list_big_query_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_big_query_links - ## - # RPC-specific configuration for `delete_big_query_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_big_query_link - ## - # RPC-specific configuration for `update_big_query_link` - # @return [::Gapic::Config::Method] - # - attr_reader :update_big_query_link - ## - # RPC-specific configuration for `get_enhanced_measurement_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_enhanced_measurement_settings - ## - # RPC-specific configuration for `update_enhanced_measurement_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_enhanced_measurement_settings - ## - # RPC-specific configuration for `get_ad_sense_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_ad_sense_link - ## - # RPC-specific configuration for `create_ad_sense_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_ad_sense_link - ## - # RPC-specific configuration for `delete_ad_sense_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_ad_sense_link - ## - # RPC-specific configuration for `list_ad_sense_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_ad_sense_links - ## - # RPC-specific configuration for `get_event_create_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :get_event_create_rule - ## - # RPC-specific configuration for `list_event_create_rules` - # @return [::Gapic::Config::Method] - # - attr_reader :list_event_create_rules - ## - # RPC-specific configuration for `create_event_create_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :create_event_create_rule - ## - # RPC-specific configuration for `update_event_create_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :update_event_create_rule - ## - # RPC-specific configuration for `delete_event_create_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_event_create_rule - ## - # RPC-specific configuration for `get_event_edit_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :get_event_edit_rule - ## - # RPC-specific configuration for `list_event_edit_rules` - # @return [::Gapic::Config::Method] - # - attr_reader :list_event_edit_rules - ## - # RPC-specific configuration for `create_event_edit_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :create_event_edit_rule - ## - # RPC-specific configuration for `update_event_edit_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :update_event_edit_rule - ## - # RPC-specific configuration for `delete_event_edit_rule` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_event_edit_rule - ## - # RPC-specific configuration for `reorder_event_edit_rules` - # @return [::Gapic::Config::Method] - # - attr_reader :reorder_event_edit_rules - ## - # RPC-specific configuration for `update_data_redaction_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_data_redaction_settings - ## - # RPC-specific configuration for `get_data_redaction_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_data_redaction_settings - ## - # RPC-specific configuration for `get_calculated_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :get_calculated_metric - ## - # RPC-specific configuration for `create_calculated_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :create_calculated_metric - ## - # RPC-specific configuration for `list_calculated_metrics` - # @return [::Gapic::Config::Method] - # - attr_reader :list_calculated_metrics - ## - # RPC-specific configuration for `update_calculated_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :update_calculated_metric - ## - # RPC-specific configuration for `delete_calculated_metric` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_calculated_metric - ## - # RPC-specific configuration for `create_rollup_property` - # @return [::Gapic::Config::Method] - # - attr_reader :create_rollup_property - ## - # RPC-specific configuration for `get_rollup_property_source_link` - # @return [::Gapic::Config::Method] - # - attr_reader :get_rollup_property_source_link - ## - # RPC-specific configuration for `list_rollup_property_source_links` - # @return [::Gapic::Config::Method] - # - attr_reader :list_rollup_property_source_links - ## - # RPC-specific configuration for `create_rollup_property_source_link` - # @return [::Gapic::Config::Method] - # - attr_reader :create_rollup_property_source_link - ## - # RPC-specific configuration for `delete_rollup_property_source_link` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_rollup_property_source_link - ## - # RPC-specific configuration for `provision_subproperty` - # @return [::Gapic::Config::Method] - # - attr_reader :provision_subproperty - ## - # RPC-specific configuration for `create_subproperty_event_filter` - # @return [::Gapic::Config::Method] - # - attr_reader :create_subproperty_event_filter - ## - # RPC-specific configuration for `get_subproperty_event_filter` - # @return [::Gapic::Config::Method] - # - attr_reader :get_subproperty_event_filter - ## - # RPC-specific configuration for `list_subproperty_event_filters` - # @return [::Gapic::Config::Method] - # - attr_reader :list_subproperty_event_filters - ## - # RPC-specific configuration for `update_subproperty_event_filter` - # @return [::Gapic::Config::Method] - # - attr_reader :update_subproperty_event_filter - ## - # RPC-specific configuration for `delete_subproperty_event_filter` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_subproperty_event_filter - ## - # RPC-specific configuration for `create_reporting_data_annotation` - # @return [::Gapic::Config::Method] - # - attr_reader :create_reporting_data_annotation - ## - # RPC-specific configuration for `get_reporting_data_annotation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_reporting_data_annotation - ## - # RPC-specific configuration for `list_reporting_data_annotations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_reporting_data_annotations - ## - # RPC-specific configuration for `update_reporting_data_annotation` - # @return [::Gapic::Config::Method] - # - attr_reader :update_reporting_data_annotation - ## - # RPC-specific configuration for `delete_reporting_data_annotation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_reporting_data_annotation - ## - # RPC-specific configuration for `submit_user_deletion` - # @return [::Gapic::Config::Method] - # - attr_reader :submit_user_deletion - ## - # RPC-specific configuration for `list_subproperty_sync_configs` - # @return [::Gapic::Config::Method] - # - attr_reader :list_subproperty_sync_configs - ## - # RPC-specific configuration for `update_subproperty_sync_config` - # @return [::Gapic::Config::Method] - # - attr_reader :update_subproperty_sync_config - ## - # RPC-specific configuration for `get_subproperty_sync_config` - # @return [::Gapic::Config::Method] - # - attr_reader :get_subproperty_sync_config - ## - # RPC-specific configuration for `get_reporting_identity_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_reporting_identity_settings - ## - # RPC-specific configuration for `update_reporting_identity_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :update_reporting_identity_settings - ## - # RPC-specific configuration for `get_user_provided_data_settings` - # @return [::Gapic::Config::Method] - # - attr_reader :get_user_provided_data_settings - - # @private - def initialize parent_rpcs = nil - get_account_config = parent_rpcs.get_account if parent_rpcs.respond_to? :get_account - @get_account = ::Gapic::Config::Method.new get_account_config - list_accounts_config = parent_rpcs.list_accounts if parent_rpcs.respond_to? :list_accounts - @list_accounts = ::Gapic::Config::Method.new list_accounts_config - delete_account_config = parent_rpcs.delete_account if parent_rpcs.respond_to? :delete_account - @delete_account = ::Gapic::Config::Method.new delete_account_config - update_account_config = parent_rpcs.update_account if parent_rpcs.respond_to? :update_account - @update_account = ::Gapic::Config::Method.new update_account_config - provision_account_ticket_config = parent_rpcs.provision_account_ticket if parent_rpcs.respond_to? :provision_account_ticket - @provision_account_ticket = ::Gapic::Config::Method.new provision_account_ticket_config - list_account_summaries_config = parent_rpcs.list_account_summaries if parent_rpcs.respond_to? :list_account_summaries - @list_account_summaries = ::Gapic::Config::Method.new list_account_summaries_config - get_property_config = parent_rpcs.get_property if parent_rpcs.respond_to? :get_property - @get_property = ::Gapic::Config::Method.new get_property_config - list_properties_config = parent_rpcs.list_properties if parent_rpcs.respond_to? :list_properties - @list_properties = ::Gapic::Config::Method.new list_properties_config - create_property_config = parent_rpcs.create_property if parent_rpcs.respond_to? :create_property - @create_property = ::Gapic::Config::Method.new create_property_config - delete_property_config = parent_rpcs.delete_property if parent_rpcs.respond_to? :delete_property - @delete_property = ::Gapic::Config::Method.new delete_property_config - update_property_config = parent_rpcs.update_property if parent_rpcs.respond_to? :update_property - @update_property = ::Gapic::Config::Method.new update_property_config - create_firebase_link_config = parent_rpcs.create_firebase_link if parent_rpcs.respond_to? :create_firebase_link - @create_firebase_link = ::Gapic::Config::Method.new create_firebase_link_config - delete_firebase_link_config = parent_rpcs.delete_firebase_link if parent_rpcs.respond_to? :delete_firebase_link - @delete_firebase_link = ::Gapic::Config::Method.new delete_firebase_link_config - list_firebase_links_config = parent_rpcs.list_firebase_links if parent_rpcs.respond_to? :list_firebase_links - @list_firebase_links = ::Gapic::Config::Method.new list_firebase_links_config - get_global_site_tag_config = parent_rpcs.get_global_site_tag if parent_rpcs.respond_to? :get_global_site_tag - @get_global_site_tag = ::Gapic::Config::Method.new get_global_site_tag_config - create_google_ads_link_config = parent_rpcs.create_google_ads_link if parent_rpcs.respond_to? :create_google_ads_link - @create_google_ads_link = ::Gapic::Config::Method.new create_google_ads_link_config - update_google_ads_link_config = parent_rpcs.update_google_ads_link if parent_rpcs.respond_to? :update_google_ads_link - @update_google_ads_link = ::Gapic::Config::Method.new update_google_ads_link_config - delete_google_ads_link_config = parent_rpcs.delete_google_ads_link if parent_rpcs.respond_to? :delete_google_ads_link - @delete_google_ads_link = ::Gapic::Config::Method.new delete_google_ads_link_config - list_google_ads_links_config = parent_rpcs.list_google_ads_links if parent_rpcs.respond_to? :list_google_ads_links - @list_google_ads_links = ::Gapic::Config::Method.new list_google_ads_links_config - get_data_sharing_settings_config = parent_rpcs.get_data_sharing_settings if parent_rpcs.respond_to? :get_data_sharing_settings - @get_data_sharing_settings = ::Gapic::Config::Method.new get_data_sharing_settings_config - get_measurement_protocol_secret_config = parent_rpcs.get_measurement_protocol_secret if parent_rpcs.respond_to? :get_measurement_protocol_secret - @get_measurement_protocol_secret = ::Gapic::Config::Method.new get_measurement_protocol_secret_config - list_measurement_protocol_secrets_config = parent_rpcs.list_measurement_protocol_secrets if parent_rpcs.respond_to? :list_measurement_protocol_secrets - @list_measurement_protocol_secrets = ::Gapic::Config::Method.new list_measurement_protocol_secrets_config - create_measurement_protocol_secret_config = parent_rpcs.create_measurement_protocol_secret if parent_rpcs.respond_to? :create_measurement_protocol_secret - @create_measurement_protocol_secret = ::Gapic::Config::Method.new create_measurement_protocol_secret_config - delete_measurement_protocol_secret_config = parent_rpcs.delete_measurement_protocol_secret if parent_rpcs.respond_to? :delete_measurement_protocol_secret - @delete_measurement_protocol_secret = ::Gapic::Config::Method.new delete_measurement_protocol_secret_config - update_measurement_protocol_secret_config = parent_rpcs.update_measurement_protocol_secret if parent_rpcs.respond_to? :update_measurement_protocol_secret - @update_measurement_protocol_secret = ::Gapic::Config::Method.new update_measurement_protocol_secret_config - acknowledge_user_data_collection_config = parent_rpcs.acknowledge_user_data_collection if parent_rpcs.respond_to? :acknowledge_user_data_collection - @acknowledge_user_data_collection = ::Gapic::Config::Method.new acknowledge_user_data_collection_config - get_sk_ad_network_conversion_value_schema_config = parent_rpcs.get_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :get_sk_ad_network_conversion_value_schema - @get_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new get_sk_ad_network_conversion_value_schema_config - create_sk_ad_network_conversion_value_schema_config = parent_rpcs.create_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :create_sk_ad_network_conversion_value_schema - @create_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new create_sk_ad_network_conversion_value_schema_config - delete_sk_ad_network_conversion_value_schema_config = parent_rpcs.delete_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :delete_sk_ad_network_conversion_value_schema - @delete_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new delete_sk_ad_network_conversion_value_schema_config - update_sk_ad_network_conversion_value_schema_config = parent_rpcs.update_sk_ad_network_conversion_value_schema if parent_rpcs.respond_to? :update_sk_ad_network_conversion_value_schema - @update_sk_ad_network_conversion_value_schema = ::Gapic::Config::Method.new update_sk_ad_network_conversion_value_schema_config - list_sk_ad_network_conversion_value_schemas_config = parent_rpcs.list_sk_ad_network_conversion_value_schemas if parent_rpcs.respond_to? :list_sk_ad_network_conversion_value_schemas - @list_sk_ad_network_conversion_value_schemas = ::Gapic::Config::Method.new list_sk_ad_network_conversion_value_schemas_config - search_change_history_events_config = parent_rpcs.search_change_history_events if parent_rpcs.respond_to? :search_change_history_events - @search_change_history_events = ::Gapic::Config::Method.new search_change_history_events_config - get_google_signals_settings_config = parent_rpcs.get_google_signals_settings if parent_rpcs.respond_to? :get_google_signals_settings - @get_google_signals_settings = ::Gapic::Config::Method.new get_google_signals_settings_config - update_google_signals_settings_config = parent_rpcs.update_google_signals_settings if parent_rpcs.respond_to? :update_google_signals_settings - @update_google_signals_settings = ::Gapic::Config::Method.new update_google_signals_settings_config - create_conversion_event_config = parent_rpcs.create_conversion_event if parent_rpcs.respond_to? :create_conversion_event - @create_conversion_event = ::Gapic::Config::Method.new create_conversion_event_config - update_conversion_event_config = parent_rpcs.update_conversion_event if parent_rpcs.respond_to? :update_conversion_event - @update_conversion_event = ::Gapic::Config::Method.new update_conversion_event_config - get_conversion_event_config = parent_rpcs.get_conversion_event if parent_rpcs.respond_to? :get_conversion_event - @get_conversion_event = ::Gapic::Config::Method.new get_conversion_event_config - delete_conversion_event_config = parent_rpcs.delete_conversion_event if parent_rpcs.respond_to? :delete_conversion_event - @delete_conversion_event = ::Gapic::Config::Method.new delete_conversion_event_config - list_conversion_events_config = parent_rpcs.list_conversion_events if parent_rpcs.respond_to? :list_conversion_events - @list_conversion_events = ::Gapic::Config::Method.new list_conversion_events_config - create_key_event_config = parent_rpcs.create_key_event if parent_rpcs.respond_to? :create_key_event - @create_key_event = ::Gapic::Config::Method.new create_key_event_config - update_key_event_config = parent_rpcs.update_key_event if parent_rpcs.respond_to? :update_key_event - @update_key_event = ::Gapic::Config::Method.new update_key_event_config - get_key_event_config = parent_rpcs.get_key_event if parent_rpcs.respond_to? :get_key_event - @get_key_event = ::Gapic::Config::Method.new get_key_event_config - delete_key_event_config = parent_rpcs.delete_key_event if parent_rpcs.respond_to? :delete_key_event - @delete_key_event = ::Gapic::Config::Method.new delete_key_event_config - list_key_events_config = parent_rpcs.list_key_events if parent_rpcs.respond_to? :list_key_events - @list_key_events = ::Gapic::Config::Method.new list_key_events_config - get_display_video360_advertiser_link_config = parent_rpcs.get_display_video360_advertiser_link if parent_rpcs.respond_to? :get_display_video360_advertiser_link - @get_display_video360_advertiser_link = ::Gapic::Config::Method.new get_display_video360_advertiser_link_config - list_display_video360_advertiser_links_config = parent_rpcs.list_display_video360_advertiser_links if parent_rpcs.respond_to? :list_display_video360_advertiser_links - @list_display_video360_advertiser_links = ::Gapic::Config::Method.new list_display_video360_advertiser_links_config - create_display_video360_advertiser_link_config = parent_rpcs.create_display_video360_advertiser_link if parent_rpcs.respond_to? :create_display_video360_advertiser_link - @create_display_video360_advertiser_link = ::Gapic::Config::Method.new create_display_video360_advertiser_link_config - delete_display_video360_advertiser_link_config = parent_rpcs.delete_display_video360_advertiser_link if parent_rpcs.respond_to? :delete_display_video360_advertiser_link - @delete_display_video360_advertiser_link = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_config - update_display_video360_advertiser_link_config = parent_rpcs.update_display_video360_advertiser_link if parent_rpcs.respond_to? :update_display_video360_advertiser_link - @update_display_video360_advertiser_link = ::Gapic::Config::Method.new update_display_video360_advertiser_link_config - get_display_video360_advertiser_link_proposal_config = parent_rpcs.get_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :get_display_video360_advertiser_link_proposal - @get_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new get_display_video360_advertiser_link_proposal_config - list_display_video360_advertiser_link_proposals_config = parent_rpcs.list_display_video360_advertiser_link_proposals if parent_rpcs.respond_to? :list_display_video360_advertiser_link_proposals - @list_display_video360_advertiser_link_proposals = ::Gapic::Config::Method.new list_display_video360_advertiser_link_proposals_config - create_display_video360_advertiser_link_proposal_config = parent_rpcs.create_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :create_display_video360_advertiser_link_proposal - @create_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new create_display_video360_advertiser_link_proposal_config - delete_display_video360_advertiser_link_proposal_config = parent_rpcs.delete_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :delete_display_video360_advertiser_link_proposal - @delete_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new delete_display_video360_advertiser_link_proposal_config - approve_display_video360_advertiser_link_proposal_config = parent_rpcs.approve_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :approve_display_video360_advertiser_link_proposal - @approve_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new approve_display_video360_advertiser_link_proposal_config - cancel_display_video360_advertiser_link_proposal_config = parent_rpcs.cancel_display_video360_advertiser_link_proposal if parent_rpcs.respond_to? :cancel_display_video360_advertiser_link_proposal - @cancel_display_video360_advertiser_link_proposal = ::Gapic::Config::Method.new cancel_display_video360_advertiser_link_proposal_config - create_custom_dimension_config = parent_rpcs.create_custom_dimension if parent_rpcs.respond_to? :create_custom_dimension - @create_custom_dimension = ::Gapic::Config::Method.new create_custom_dimension_config - update_custom_dimension_config = parent_rpcs.update_custom_dimension if parent_rpcs.respond_to? :update_custom_dimension - @update_custom_dimension = ::Gapic::Config::Method.new update_custom_dimension_config - list_custom_dimensions_config = parent_rpcs.list_custom_dimensions if parent_rpcs.respond_to? :list_custom_dimensions - @list_custom_dimensions = ::Gapic::Config::Method.new list_custom_dimensions_config - archive_custom_dimension_config = parent_rpcs.archive_custom_dimension if parent_rpcs.respond_to? :archive_custom_dimension - @archive_custom_dimension = ::Gapic::Config::Method.new archive_custom_dimension_config - get_custom_dimension_config = parent_rpcs.get_custom_dimension if parent_rpcs.respond_to? :get_custom_dimension - @get_custom_dimension = ::Gapic::Config::Method.new get_custom_dimension_config - create_custom_metric_config = parent_rpcs.create_custom_metric if parent_rpcs.respond_to? :create_custom_metric - @create_custom_metric = ::Gapic::Config::Method.new create_custom_metric_config - update_custom_metric_config = parent_rpcs.update_custom_metric if parent_rpcs.respond_to? :update_custom_metric - @update_custom_metric = ::Gapic::Config::Method.new update_custom_metric_config - list_custom_metrics_config = parent_rpcs.list_custom_metrics if parent_rpcs.respond_to? :list_custom_metrics - @list_custom_metrics = ::Gapic::Config::Method.new list_custom_metrics_config - archive_custom_metric_config = parent_rpcs.archive_custom_metric if parent_rpcs.respond_to? :archive_custom_metric - @archive_custom_metric = ::Gapic::Config::Method.new archive_custom_metric_config - get_custom_metric_config = parent_rpcs.get_custom_metric if parent_rpcs.respond_to? :get_custom_metric - @get_custom_metric = ::Gapic::Config::Method.new get_custom_metric_config - get_data_retention_settings_config = parent_rpcs.get_data_retention_settings if parent_rpcs.respond_to? :get_data_retention_settings - @get_data_retention_settings = ::Gapic::Config::Method.new get_data_retention_settings_config - update_data_retention_settings_config = parent_rpcs.update_data_retention_settings if parent_rpcs.respond_to? :update_data_retention_settings - @update_data_retention_settings = ::Gapic::Config::Method.new update_data_retention_settings_config - create_data_stream_config = parent_rpcs.create_data_stream if parent_rpcs.respond_to? :create_data_stream - @create_data_stream = ::Gapic::Config::Method.new create_data_stream_config - delete_data_stream_config = parent_rpcs.delete_data_stream if parent_rpcs.respond_to? :delete_data_stream - @delete_data_stream = ::Gapic::Config::Method.new delete_data_stream_config - update_data_stream_config = parent_rpcs.update_data_stream if parent_rpcs.respond_to? :update_data_stream - @update_data_stream = ::Gapic::Config::Method.new update_data_stream_config - list_data_streams_config = parent_rpcs.list_data_streams if parent_rpcs.respond_to? :list_data_streams - @list_data_streams = ::Gapic::Config::Method.new list_data_streams_config - get_data_stream_config = parent_rpcs.get_data_stream if parent_rpcs.respond_to? :get_data_stream - @get_data_stream = ::Gapic::Config::Method.new get_data_stream_config - get_audience_config = parent_rpcs.get_audience if parent_rpcs.respond_to? :get_audience - @get_audience = ::Gapic::Config::Method.new get_audience_config - list_audiences_config = parent_rpcs.list_audiences if parent_rpcs.respond_to? :list_audiences - @list_audiences = ::Gapic::Config::Method.new list_audiences_config - create_audience_config = parent_rpcs.create_audience if parent_rpcs.respond_to? :create_audience - @create_audience = ::Gapic::Config::Method.new create_audience_config - update_audience_config = parent_rpcs.update_audience if parent_rpcs.respond_to? :update_audience - @update_audience = ::Gapic::Config::Method.new update_audience_config - archive_audience_config = parent_rpcs.archive_audience if parent_rpcs.respond_to? :archive_audience - @archive_audience = ::Gapic::Config::Method.new archive_audience_config - get_search_ads360_link_config = parent_rpcs.get_search_ads360_link if parent_rpcs.respond_to? :get_search_ads360_link - @get_search_ads360_link = ::Gapic::Config::Method.new get_search_ads360_link_config - list_search_ads360_links_config = parent_rpcs.list_search_ads360_links if parent_rpcs.respond_to? :list_search_ads360_links - @list_search_ads360_links = ::Gapic::Config::Method.new list_search_ads360_links_config - create_search_ads360_link_config = parent_rpcs.create_search_ads360_link if parent_rpcs.respond_to? :create_search_ads360_link - @create_search_ads360_link = ::Gapic::Config::Method.new create_search_ads360_link_config - delete_search_ads360_link_config = parent_rpcs.delete_search_ads360_link if parent_rpcs.respond_to? :delete_search_ads360_link - @delete_search_ads360_link = ::Gapic::Config::Method.new delete_search_ads360_link_config - update_search_ads360_link_config = parent_rpcs.update_search_ads360_link if parent_rpcs.respond_to? :update_search_ads360_link - @update_search_ads360_link = ::Gapic::Config::Method.new update_search_ads360_link_config - get_attribution_settings_config = parent_rpcs.get_attribution_settings if parent_rpcs.respond_to? :get_attribution_settings - @get_attribution_settings = ::Gapic::Config::Method.new get_attribution_settings_config - update_attribution_settings_config = parent_rpcs.update_attribution_settings if parent_rpcs.respond_to? :update_attribution_settings - @update_attribution_settings = ::Gapic::Config::Method.new update_attribution_settings_config - run_access_report_config = parent_rpcs.run_access_report if parent_rpcs.respond_to? :run_access_report - @run_access_report = ::Gapic::Config::Method.new run_access_report_config - create_access_binding_config = parent_rpcs.create_access_binding if parent_rpcs.respond_to? :create_access_binding - @create_access_binding = ::Gapic::Config::Method.new create_access_binding_config - get_access_binding_config = parent_rpcs.get_access_binding if parent_rpcs.respond_to? :get_access_binding - @get_access_binding = ::Gapic::Config::Method.new get_access_binding_config - update_access_binding_config = parent_rpcs.update_access_binding if parent_rpcs.respond_to? :update_access_binding - @update_access_binding = ::Gapic::Config::Method.new update_access_binding_config - delete_access_binding_config = parent_rpcs.delete_access_binding if parent_rpcs.respond_to? :delete_access_binding - @delete_access_binding = ::Gapic::Config::Method.new delete_access_binding_config - list_access_bindings_config = parent_rpcs.list_access_bindings if parent_rpcs.respond_to? :list_access_bindings - @list_access_bindings = ::Gapic::Config::Method.new list_access_bindings_config - batch_create_access_bindings_config = parent_rpcs.batch_create_access_bindings if parent_rpcs.respond_to? :batch_create_access_bindings - @batch_create_access_bindings = ::Gapic::Config::Method.new batch_create_access_bindings_config - batch_get_access_bindings_config = parent_rpcs.batch_get_access_bindings if parent_rpcs.respond_to? :batch_get_access_bindings - @batch_get_access_bindings = ::Gapic::Config::Method.new batch_get_access_bindings_config - batch_update_access_bindings_config = parent_rpcs.batch_update_access_bindings if parent_rpcs.respond_to? :batch_update_access_bindings - @batch_update_access_bindings = ::Gapic::Config::Method.new batch_update_access_bindings_config - batch_delete_access_bindings_config = parent_rpcs.batch_delete_access_bindings if parent_rpcs.respond_to? :batch_delete_access_bindings - @batch_delete_access_bindings = ::Gapic::Config::Method.new batch_delete_access_bindings_config - get_expanded_data_set_config = parent_rpcs.get_expanded_data_set if parent_rpcs.respond_to? :get_expanded_data_set - @get_expanded_data_set = ::Gapic::Config::Method.new get_expanded_data_set_config - list_expanded_data_sets_config = parent_rpcs.list_expanded_data_sets if parent_rpcs.respond_to? :list_expanded_data_sets - @list_expanded_data_sets = ::Gapic::Config::Method.new list_expanded_data_sets_config - create_expanded_data_set_config = parent_rpcs.create_expanded_data_set if parent_rpcs.respond_to? :create_expanded_data_set - @create_expanded_data_set = ::Gapic::Config::Method.new create_expanded_data_set_config - update_expanded_data_set_config = parent_rpcs.update_expanded_data_set if parent_rpcs.respond_to? :update_expanded_data_set - @update_expanded_data_set = ::Gapic::Config::Method.new update_expanded_data_set_config - delete_expanded_data_set_config = parent_rpcs.delete_expanded_data_set if parent_rpcs.respond_to? :delete_expanded_data_set - @delete_expanded_data_set = ::Gapic::Config::Method.new delete_expanded_data_set_config - get_channel_group_config = parent_rpcs.get_channel_group if parent_rpcs.respond_to? :get_channel_group - @get_channel_group = ::Gapic::Config::Method.new get_channel_group_config - list_channel_groups_config = parent_rpcs.list_channel_groups if parent_rpcs.respond_to? :list_channel_groups - @list_channel_groups = ::Gapic::Config::Method.new list_channel_groups_config - create_channel_group_config = parent_rpcs.create_channel_group if parent_rpcs.respond_to? :create_channel_group - @create_channel_group = ::Gapic::Config::Method.new create_channel_group_config - update_channel_group_config = parent_rpcs.update_channel_group if parent_rpcs.respond_to? :update_channel_group - @update_channel_group = ::Gapic::Config::Method.new update_channel_group_config - delete_channel_group_config = parent_rpcs.delete_channel_group if parent_rpcs.respond_to? :delete_channel_group - @delete_channel_group = ::Gapic::Config::Method.new delete_channel_group_config - create_big_query_link_config = parent_rpcs.create_big_query_link if parent_rpcs.respond_to? :create_big_query_link - @create_big_query_link = ::Gapic::Config::Method.new create_big_query_link_config - get_big_query_link_config = parent_rpcs.get_big_query_link if parent_rpcs.respond_to? :get_big_query_link - @get_big_query_link = ::Gapic::Config::Method.new get_big_query_link_config - list_big_query_links_config = parent_rpcs.list_big_query_links if parent_rpcs.respond_to? :list_big_query_links - @list_big_query_links = ::Gapic::Config::Method.new list_big_query_links_config - delete_big_query_link_config = parent_rpcs.delete_big_query_link if parent_rpcs.respond_to? :delete_big_query_link - @delete_big_query_link = ::Gapic::Config::Method.new delete_big_query_link_config - update_big_query_link_config = parent_rpcs.update_big_query_link if parent_rpcs.respond_to? :update_big_query_link - @update_big_query_link = ::Gapic::Config::Method.new update_big_query_link_config - get_enhanced_measurement_settings_config = parent_rpcs.get_enhanced_measurement_settings if parent_rpcs.respond_to? :get_enhanced_measurement_settings - @get_enhanced_measurement_settings = ::Gapic::Config::Method.new get_enhanced_measurement_settings_config - update_enhanced_measurement_settings_config = parent_rpcs.update_enhanced_measurement_settings if parent_rpcs.respond_to? :update_enhanced_measurement_settings - @update_enhanced_measurement_settings = ::Gapic::Config::Method.new update_enhanced_measurement_settings_config - get_ad_sense_link_config = parent_rpcs.get_ad_sense_link if parent_rpcs.respond_to? :get_ad_sense_link - @get_ad_sense_link = ::Gapic::Config::Method.new get_ad_sense_link_config - create_ad_sense_link_config = parent_rpcs.create_ad_sense_link if parent_rpcs.respond_to? :create_ad_sense_link - @create_ad_sense_link = ::Gapic::Config::Method.new create_ad_sense_link_config - delete_ad_sense_link_config = parent_rpcs.delete_ad_sense_link if parent_rpcs.respond_to? :delete_ad_sense_link - @delete_ad_sense_link = ::Gapic::Config::Method.new delete_ad_sense_link_config - list_ad_sense_links_config = parent_rpcs.list_ad_sense_links if parent_rpcs.respond_to? :list_ad_sense_links - @list_ad_sense_links = ::Gapic::Config::Method.new list_ad_sense_links_config - get_event_create_rule_config = parent_rpcs.get_event_create_rule if parent_rpcs.respond_to? :get_event_create_rule - @get_event_create_rule = ::Gapic::Config::Method.new get_event_create_rule_config - list_event_create_rules_config = parent_rpcs.list_event_create_rules if parent_rpcs.respond_to? :list_event_create_rules - @list_event_create_rules = ::Gapic::Config::Method.new list_event_create_rules_config - create_event_create_rule_config = parent_rpcs.create_event_create_rule if parent_rpcs.respond_to? :create_event_create_rule - @create_event_create_rule = ::Gapic::Config::Method.new create_event_create_rule_config - update_event_create_rule_config = parent_rpcs.update_event_create_rule if parent_rpcs.respond_to? :update_event_create_rule - @update_event_create_rule = ::Gapic::Config::Method.new update_event_create_rule_config - delete_event_create_rule_config = parent_rpcs.delete_event_create_rule if parent_rpcs.respond_to? :delete_event_create_rule - @delete_event_create_rule = ::Gapic::Config::Method.new delete_event_create_rule_config - get_event_edit_rule_config = parent_rpcs.get_event_edit_rule if parent_rpcs.respond_to? :get_event_edit_rule - @get_event_edit_rule = ::Gapic::Config::Method.new get_event_edit_rule_config - list_event_edit_rules_config = parent_rpcs.list_event_edit_rules if parent_rpcs.respond_to? :list_event_edit_rules - @list_event_edit_rules = ::Gapic::Config::Method.new list_event_edit_rules_config - create_event_edit_rule_config = parent_rpcs.create_event_edit_rule if parent_rpcs.respond_to? :create_event_edit_rule - @create_event_edit_rule = ::Gapic::Config::Method.new create_event_edit_rule_config - update_event_edit_rule_config = parent_rpcs.update_event_edit_rule if parent_rpcs.respond_to? :update_event_edit_rule - @update_event_edit_rule = ::Gapic::Config::Method.new update_event_edit_rule_config - delete_event_edit_rule_config = parent_rpcs.delete_event_edit_rule if parent_rpcs.respond_to? :delete_event_edit_rule - @delete_event_edit_rule = ::Gapic::Config::Method.new delete_event_edit_rule_config - reorder_event_edit_rules_config = parent_rpcs.reorder_event_edit_rules if parent_rpcs.respond_to? :reorder_event_edit_rules - @reorder_event_edit_rules = ::Gapic::Config::Method.new reorder_event_edit_rules_config - update_data_redaction_settings_config = parent_rpcs.update_data_redaction_settings if parent_rpcs.respond_to? :update_data_redaction_settings - @update_data_redaction_settings = ::Gapic::Config::Method.new update_data_redaction_settings_config - get_data_redaction_settings_config = parent_rpcs.get_data_redaction_settings if parent_rpcs.respond_to? :get_data_redaction_settings - @get_data_redaction_settings = ::Gapic::Config::Method.new get_data_redaction_settings_config - get_calculated_metric_config = parent_rpcs.get_calculated_metric if parent_rpcs.respond_to? :get_calculated_metric - @get_calculated_metric = ::Gapic::Config::Method.new get_calculated_metric_config - create_calculated_metric_config = parent_rpcs.create_calculated_metric if parent_rpcs.respond_to? :create_calculated_metric - @create_calculated_metric = ::Gapic::Config::Method.new create_calculated_metric_config - list_calculated_metrics_config = parent_rpcs.list_calculated_metrics if parent_rpcs.respond_to? :list_calculated_metrics - @list_calculated_metrics = ::Gapic::Config::Method.new list_calculated_metrics_config - update_calculated_metric_config = parent_rpcs.update_calculated_metric if parent_rpcs.respond_to? :update_calculated_metric - @update_calculated_metric = ::Gapic::Config::Method.new update_calculated_metric_config - delete_calculated_metric_config = parent_rpcs.delete_calculated_metric if parent_rpcs.respond_to? :delete_calculated_metric - @delete_calculated_metric = ::Gapic::Config::Method.new delete_calculated_metric_config - create_rollup_property_config = parent_rpcs.create_rollup_property if parent_rpcs.respond_to? :create_rollup_property - @create_rollup_property = ::Gapic::Config::Method.new create_rollup_property_config - get_rollup_property_source_link_config = parent_rpcs.get_rollup_property_source_link if parent_rpcs.respond_to? :get_rollup_property_source_link - @get_rollup_property_source_link = ::Gapic::Config::Method.new get_rollup_property_source_link_config - list_rollup_property_source_links_config = parent_rpcs.list_rollup_property_source_links if parent_rpcs.respond_to? :list_rollup_property_source_links - @list_rollup_property_source_links = ::Gapic::Config::Method.new list_rollup_property_source_links_config - create_rollup_property_source_link_config = parent_rpcs.create_rollup_property_source_link if parent_rpcs.respond_to? :create_rollup_property_source_link - @create_rollup_property_source_link = ::Gapic::Config::Method.new create_rollup_property_source_link_config - delete_rollup_property_source_link_config = parent_rpcs.delete_rollup_property_source_link if parent_rpcs.respond_to? :delete_rollup_property_source_link - @delete_rollup_property_source_link = ::Gapic::Config::Method.new delete_rollup_property_source_link_config - provision_subproperty_config = parent_rpcs.provision_subproperty if parent_rpcs.respond_to? :provision_subproperty - @provision_subproperty = ::Gapic::Config::Method.new provision_subproperty_config - create_subproperty_event_filter_config = parent_rpcs.create_subproperty_event_filter if parent_rpcs.respond_to? :create_subproperty_event_filter - @create_subproperty_event_filter = ::Gapic::Config::Method.new create_subproperty_event_filter_config - get_subproperty_event_filter_config = parent_rpcs.get_subproperty_event_filter if parent_rpcs.respond_to? :get_subproperty_event_filter - @get_subproperty_event_filter = ::Gapic::Config::Method.new get_subproperty_event_filter_config - list_subproperty_event_filters_config = parent_rpcs.list_subproperty_event_filters if parent_rpcs.respond_to? :list_subproperty_event_filters - @list_subproperty_event_filters = ::Gapic::Config::Method.new list_subproperty_event_filters_config - update_subproperty_event_filter_config = parent_rpcs.update_subproperty_event_filter if parent_rpcs.respond_to? :update_subproperty_event_filter - @update_subproperty_event_filter = ::Gapic::Config::Method.new update_subproperty_event_filter_config - delete_subproperty_event_filter_config = parent_rpcs.delete_subproperty_event_filter if parent_rpcs.respond_to? :delete_subproperty_event_filter - @delete_subproperty_event_filter = ::Gapic::Config::Method.new delete_subproperty_event_filter_config - create_reporting_data_annotation_config = parent_rpcs.create_reporting_data_annotation if parent_rpcs.respond_to? :create_reporting_data_annotation - @create_reporting_data_annotation = ::Gapic::Config::Method.new create_reporting_data_annotation_config - get_reporting_data_annotation_config = parent_rpcs.get_reporting_data_annotation if parent_rpcs.respond_to? :get_reporting_data_annotation - @get_reporting_data_annotation = ::Gapic::Config::Method.new get_reporting_data_annotation_config - list_reporting_data_annotations_config = parent_rpcs.list_reporting_data_annotations if parent_rpcs.respond_to? :list_reporting_data_annotations - @list_reporting_data_annotations = ::Gapic::Config::Method.new list_reporting_data_annotations_config - update_reporting_data_annotation_config = parent_rpcs.update_reporting_data_annotation if parent_rpcs.respond_to? :update_reporting_data_annotation - @update_reporting_data_annotation = ::Gapic::Config::Method.new update_reporting_data_annotation_config - delete_reporting_data_annotation_config = parent_rpcs.delete_reporting_data_annotation if parent_rpcs.respond_to? :delete_reporting_data_annotation - @delete_reporting_data_annotation = ::Gapic::Config::Method.new delete_reporting_data_annotation_config - submit_user_deletion_config = parent_rpcs.submit_user_deletion if parent_rpcs.respond_to? :submit_user_deletion - @submit_user_deletion = ::Gapic::Config::Method.new submit_user_deletion_config - list_subproperty_sync_configs_config = parent_rpcs.list_subproperty_sync_configs if parent_rpcs.respond_to? :list_subproperty_sync_configs - @list_subproperty_sync_configs = ::Gapic::Config::Method.new list_subproperty_sync_configs_config - update_subproperty_sync_config_config = parent_rpcs.update_subproperty_sync_config if parent_rpcs.respond_to? :update_subproperty_sync_config - @update_subproperty_sync_config = ::Gapic::Config::Method.new update_subproperty_sync_config_config - get_subproperty_sync_config_config = parent_rpcs.get_subproperty_sync_config if parent_rpcs.respond_to? :get_subproperty_sync_config - @get_subproperty_sync_config = ::Gapic::Config::Method.new get_subproperty_sync_config_config - get_reporting_identity_settings_config = parent_rpcs.get_reporting_identity_settings if parent_rpcs.respond_to? :get_reporting_identity_settings - @get_reporting_identity_settings = ::Gapic::Config::Method.new get_reporting_identity_settings_config - update_reporting_identity_settings_config = parent_rpcs.update_reporting_identity_settings if parent_rpcs.respond_to? :update_reporting_identity_settings - @update_reporting_identity_settings = ::Gapic::Config::Method.new update_reporting_identity_settings_config - get_user_provided_data_settings_config = parent_rpcs.get_user_provided_data_settings if parent_rpcs.respond_to? :get_user_provided_data_settings - @get_user_provided_data_settings = ::Gapic::Config::Method.new get_user_provided_data_settings_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb deleted file mode 100644 index 0cedb6c7973d..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb +++ /dev/null @@ -1,9729 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/analytics/admin/v1alpha/analytics_admin_pb" - -module Google - module Analytics - module Admin - module V1alpha - module AnalyticsAdminService - module Rest - ## - # REST service stub for the AnalyticsAdminService service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the get_account REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccountRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Account] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Account] - # A result object deserialized from the server's reply - def get_account request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_account_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_account", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::Account.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_accounts REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAccountsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListAccountsResponse] - # A result object deserialized from the server's reply - def list_accounts request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_accounts_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_accounts", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListAccountsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_account REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_account request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_account_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_account", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_account REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Account] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Account] - # A result object deserialized from the server's reply - def update_account request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_account_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_account", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::Account.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the provision_account_ticket REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] - # A result object deserialized from the server's reply - def provision_account_ticket request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_provision_account_ticket_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "provision_account_ticket", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_account_summaries REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse] - # A result object deserialized from the server's reply - def list_account_summaries request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_account_summaries_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_account_summaries", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_property REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetPropertyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # A result object deserialized from the server's reply - def get_property request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_property_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_property", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_properties REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListPropertiesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListPropertiesResponse] - # A result object deserialized from the server's reply - def list_properties request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_properties_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_properties", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListPropertiesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_property REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # A result object deserialized from the server's reply - def create_property request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_property_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_property", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_property REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # A result object deserialized from the server's reply - def delete_property request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_property_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_property", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_property REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Property] - # A result object deserialized from the server's reply - def update_property request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_property_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_property", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_firebase_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::FirebaseLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] - # A result object deserialized from the server's reply - def create_firebase_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_firebase_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_firebase_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::FirebaseLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_firebase_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_firebase_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_firebase_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_firebase_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_firebase_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse] - # A result object deserialized from the server's reply - def list_firebase_links request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_firebase_links_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_firebase_links", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_global_site_tag REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] - # A result object deserialized from the server's reply - def get_global_site_tag request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_global_site_tag_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_global_site_tag", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::GlobalSiteTag.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_google_ads_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # A result object deserialized from the server's reply - def create_google_ads_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_google_ads_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_google_ads_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_google_ads_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # A result object deserialized from the server's reply - def update_google_ads_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_google_ads_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_google_ads_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_google_ads_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_google_ads_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_google_ads_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_google_ads_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_google_ads_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse] - # A result object deserialized from the server's reply - def list_google_ads_links request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_google_ads_links_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_google_ads_links", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_data_sharing_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataSharingSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataSharingSettings] - # A result object deserialized from the server's reply - def get_data_sharing_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_data_sharing_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_data_sharing_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DataSharingSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_measurement_protocol_secret REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # A result object deserialized from the server's reply - def get_measurement_protocol_secret request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_measurement_protocol_secret_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_measurement_protocol_secret", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_measurement_protocol_secrets REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse] - # A result object deserialized from the server's reply - def list_measurement_protocol_secrets request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_measurement_protocol_secrets_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_measurement_protocol_secrets", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_measurement_protocol_secret REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # A result object deserialized from the server's reply - def create_measurement_protocol_secret request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_measurement_protocol_secret_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_measurement_protocol_secret", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_measurement_protocol_secret REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_measurement_protocol_secret request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_measurement_protocol_secret_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_measurement_protocol_secret", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_measurement_protocol_secret REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # A result object deserialized from the server's reply - def update_measurement_protocol_secret request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_measurement_protocol_secret_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_measurement_protocol_secret", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the acknowledge_user_data_collection REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] - # A result object deserialized from the server's reply - def acknowledge_user_data_collection request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_acknowledge_user_data_collection_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "acknowledge_user_data_collection", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_sk_ad_network_conversion_value_schema REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # A result object deserialized from the server's reply - def get_sk_ad_network_conversion_value_schema request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_sk_ad_network_conversion_value_schema_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_sk_ad_network_conversion_value_schema", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_sk_ad_network_conversion_value_schema REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # A result object deserialized from the server's reply - def create_sk_ad_network_conversion_value_schema request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_sk_ad_network_conversion_value_schema_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_sk_ad_network_conversion_value_schema", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_sk_ad_network_conversion_value_schema REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_sk_ad_network_conversion_value_schema request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_sk_ad_network_conversion_value_schema_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_sk_ad_network_conversion_value_schema", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_sk_ad_network_conversion_value_schema REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # A result object deserialized from the server's reply - def update_sk_ad_network_conversion_value_schema request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_sk_ad_network_conversion_value_schema_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_sk_ad_network_conversion_value_schema", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_sk_ad_network_conversion_value_schemas REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse] - # A result object deserialized from the server's reply - def list_sk_ad_network_conversion_value_schemas request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_sk_ad_network_conversion_value_schemas_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_sk_ad_network_conversion_value_schemas", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the search_change_history_events REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse] - # A result object deserialized from the server's reply - def search_change_history_events request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_search_change_history_events_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "search_change_history_events", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_google_signals_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # A result object deserialized from the server's reply - def get_google_signals_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_google_signals_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_google_signals_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_google_signals_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # A result object deserialized from the server's reply - def update_google_signals_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_google_signals_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_google_signals_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_conversion_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # A result object deserialized from the server's reply - def create_conversion_event request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_conversion_event_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_conversion_event", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_conversion_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # A result object deserialized from the server's reply - def update_conversion_event request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_conversion_event_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_conversion_event", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_conversion_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetConversionEventRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # A result object deserialized from the server's reply - def get_conversion_event request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_conversion_event_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_conversion_event", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_conversion_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_conversion_event request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_conversion_event_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_conversion_event", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_conversion_events REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse] - # A result object deserialized from the server's reply - def list_conversion_events request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_conversion_events_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_conversion_events", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_key_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # A result object deserialized from the server's reply - def create_key_event request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_key_event_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_key_event", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_key_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # A result object deserialized from the server's reply - def update_key_event request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_key_event_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_key_event", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_key_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetKeyEventRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # A result object deserialized from the server's reply - def get_key_event request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_key_event_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_key_event", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_key_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_key_event request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_key_event_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_key_event", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_key_events REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse] - # A result object deserialized from the server's reply - def list_key_events request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_key_events_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_key_events", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_display_video360_advertiser_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # A result object deserialized from the server's reply - def get_display_video360_advertiser_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_display_video360_advertiser_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_display_video360_advertiser_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_display_video360_advertiser_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse] - # A result object deserialized from the server's reply - def list_display_video360_advertiser_links request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_display_video360_advertiser_links_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_display_video360_advertiser_links", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_display_video360_advertiser_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # A result object deserialized from the server's reply - def create_display_video360_advertiser_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_display_video360_advertiser_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_display_video360_advertiser_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_display_video360_advertiser_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_display_video360_advertiser_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_display_video360_advertiser_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_display_video360_advertiser_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_display_video360_advertiser_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # A result object deserialized from the server's reply - def update_display_video360_advertiser_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_display_video360_advertiser_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_display_video360_advertiser_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_display_video360_advertiser_link_proposal REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # A result object deserialized from the server's reply - def get_display_video360_advertiser_link_proposal request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_display_video360_advertiser_link_proposal_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_display_video360_advertiser_link_proposal", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_display_video360_advertiser_link_proposals REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse] - # A result object deserialized from the server's reply - def list_display_video360_advertiser_link_proposals request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_display_video360_advertiser_link_proposals_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_display_video360_advertiser_link_proposals", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_display_video360_advertiser_link_proposal REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # A result object deserialized from the server's reply - def create_display_video360_advertiser_link_proposal request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_display_video360_advertiser_link_proposal_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_display_video360_advertiser_link_proposal", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_display_video360_advertiser_link_proposal REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_display_video360_advertiser_link_proposal request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_display_video360_advertiser_link_proposal_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_display_video360_advertiser_link_proposal", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the approve_display_video360_advertiser_link_proposal REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] - # A result object deserialized from the server's reply - def approve_display_video360_advertiser_link_proposal request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_approve_display_video360_advertiser_link_proposal_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "approve_display_video360_advertiser_link_proposal", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_display_video360_advertiser_link_proposal REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # A result object deserialized from the server's reply - def cancel_display_video360_advertiser_link_proposal request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_cancel_display_video360_advertiser_link_proposal_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_display_video360_advertiser_link_proposal", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_custom_dimension REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # A result object deserialized from the server's reply - def create_custom_dimension request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_custom_dimension_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_custom_dimension", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CustomDimension.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_custom_dimension REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # A result object deserialized from the server's reply - def update_custom_dimension request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_custom_dimension_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_custom_dimension", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CustomDimension.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_custom_dimensions REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse] - # A result object deserialized from the server's reply - def list_custom_dimensions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_custom_dimensions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_custom_dimensions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the archive_custom_dimension REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def archive_custom_dimension request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_archive_custom_dimension_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "archive_custom_dimension", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_custom_dimension REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # A result object deserialized from the server's reply - def get_custom_dimension request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_custom_dimension_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_custom_dimension", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CustomDimension.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_custom_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # A result object deserialized from the server's reply - def create_custom_metric request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_custom_metric_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_custom_metric", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CustomMetric.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_custom_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # A result object deserialized from the server's reply - def update_custom_metric request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_custom_metric_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_custom_metric", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CustomMetric.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_custom_metrics REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse] - # A result object deserialized from the server's reply - def list_custom_metrics request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_custom_metrics_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_custom_metrics", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the archive_custom_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def archive_custom_metric request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_archive_custom_metric_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "archive_custom_metric", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_custom_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # A result object deserialized from the server's reply - def get_custom_metric request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_custom_metric_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_custom_metric", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CustomMetric.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_data_retention_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # A result object deserialized from the server's reply - def get_data_retention_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_data_retention_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_data_retention_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_data_retention_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # A result object deserialized from the server's reply - def update_data_retention_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_data_retention_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_data_retention_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_data_stream REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # A result object deserialized from the server's reply - def create_data_stream request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_data_stream_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_data_stream", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DataStream.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_data_stream REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_data_stream request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_data_stream_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_data_stream", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_data_stream REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # A result object deserialized from the server's reply - def update_data_stream request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_data_stream_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_data_stream", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DataStream.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_data_streams REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse] - # A result object deserialized from the server's reply - def list_data_streams request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_data_streams_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_data_streams", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_data_stream REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataStreamRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # A result object deserialized from the server's reply - def get_data_stream request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_data_stream_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_data_stream", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DataStream.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_audience REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAudienceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # A result object deserialized from the server's reply - def get_audience request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_audience_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_audience", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::Audience.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_audiences REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAudiencesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAudiencesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListAudiencesResponse] - # A result object deserialized from the server's reply - def list_audiences request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_audiences_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_audiences", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListAudiencesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_audience REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAudienceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # A result object deserialized from the server's reply - def create_audience request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_audience_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_audience", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::Audience.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_audience REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # A result object deserialized from the server's reply - def update_audience request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_audience_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_audience", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::Audience.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the archive_audience REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def archive_audience request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_archive_audience_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "archive_audience", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_search_ads360_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # A result object deserialized from the server's reply - def get_search_ads360_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_search_ads360_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_search_ads360_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_search_ads360_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse] - # A result object deserialized from the server's reply - def list_search_ads360_links request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_search_ads360_links_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_search_ads360_links", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_search_ads360_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # A result object deserialized from the server's reply - def create_search_ads360_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_search_ads360_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_search_ads360_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_search_ads360_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_search_ads360_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_search_ads360_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_search_ads360_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_search_ads360_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # A result object deserialized from the server's reply - def update_search_ads360_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_search_ads360_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_search_ads360_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_attribution_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # A result object deserialized from the server's reply - def get_attribution_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_attribution_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_attribution_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::AttributionSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_attribution_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # A result object deserialized from the server's reply - def update_attribution_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_attribution_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_attribution_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::AttributionSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the run_access_report REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::RunAccessReportRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] - # A result object deserialized from the server's reply - def run_access_report request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_run_access_report_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "run_access_report", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::RunAccessReportResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_access_binding REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # A result object deserialized from the server's reply - def create_access_binding request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_access_binding_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_access_binding", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::AccessBinding.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_access_binding REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # A result object deserialized from the server's reply - def get_access_binding request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_access_binding_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_access_binding", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::AccessBinding.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_access_binding REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # A result object deserialized from the server's reply - def update_access_binding request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_access_binding_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_access_binding", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::AccessBinding.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_access_binding REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_access_binding request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_access_binding_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_access_binding", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_access_bindings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse] - # A result object deserialized from the server's reply - def list_access_bindings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_access_bindings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_access_bindings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the batch_create_access_bindings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] - # A result object deserialized from the server's reply - def batch_create_access_bindings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_access_bindings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "batch_create_access_bindings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the batch_get_access_bindings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] - # A result object deserialized from the server's reply - def batch_get_access_bindings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_batch_get_access_bindings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "batch_get_access_bindings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the batch_update_access_bindings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] - # A result object deserialized from the server's reply - def batch_update_access_bindings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_access_bindings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "batch_update_access_bindings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the batch_delete_access_bindings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def batch_delete_access_bindings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_batch_delete_access_bindings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "batch_delete_access_bindings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_expanded_data_set REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # A result object deserialized from the server's reply - def get_expanded_data_set request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_expanded_data_set_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_expanded_data_set", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_expanded_data_sets REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse] - # A result object deserialized from the server's reply - def list_expanded_data_sets request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_expanded_data_sets_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_expanded_data_sets", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_expanded_data_set REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # A result object deserialized from the server's reply - def create_expanded_data_set request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_expanded_data_set_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_expanded_data_set", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_expanded_data_set REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # A result object deserialized from the server's reply - def update_expanded_data_set request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_expanded_data_set_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_expanded_data_set", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_expanded_data_set REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_expanded_data_set request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_expanded_data_set_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_expanded_data_set", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_channel_group REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # A result object deserialized from the server's reply - def get_channel_group request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_channel_group_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_channel_group", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_channel_groups REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse] - # A result object deserialized from the server's reply - def list_channel_groups request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_channel_groups_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_channel_groups", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_channel_group REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # A result object deserialized from the server's reply - def create_channel_group request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_channel_group_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_channel_group", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_channel_group REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # A result object deserialized from the server's reply - def update_channel_group request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_channel_group_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_channel_group", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_channel_group REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_channel_group request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_channel_group_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_channel_group", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_big_query_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # A result object deserialized from the server's reply - def create_big_query_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_big_query_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_big_query_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_big_query_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # A result object deserialized from the server's reply - def get_big_query_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_big_query_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_big_query_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_big_query_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse] - # A result object deserialized from the server's reply - def list_big_query_links request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_big_query_links_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_big_query_links", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_big_query_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_big_query_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_big_query_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_big_query_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_big_query_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # A result object deserialized from the server's reply - def update_big_query_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_big_query_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_big_query_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_enhanced_measurement_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # A result object deserialized from the server's reply - def get_enhanced_measurement_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_enhanced_measurement_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_enhanced_measurement_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_enhanced_measurement_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # A result object deserialized from the server's reply - def update_enhanced_measurement_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_enhanced_measurement_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_enhanced_measurement_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_ad_sense_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # A result object deserialized from the server's reply - def get_ad_sense_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_ad_sense_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_ad_sense_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::AdSenseLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_ad_sense_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # A result object deserialized from the server's reply - def create_ad_sense_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_ad_sense_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_ad_sense_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::AdSenseLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_ad_sense_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_ad_sense_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_ad_sense_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_ad_sense_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_ad_sense_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse] - # A result object deserialized from the server's reply - def list_ad_sense_links request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_ad_sense_links_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_ad_sense_links", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_event_create_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # A result object deserialized from the server's reply - def get_event_create_rule request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_event_create_rule_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_event_create_rule", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_event_create_rules REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse] - # A result object deserialized from the server's reply - def list_event_create_rules request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_event_create_rules_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_event_create_rules", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_event_create_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # A result object deserialized from the server's reply - def create_event_create_rule request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_event_create_rule_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_event_create_rule", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_event_create_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # A result object deserialized from the server's reply - def update_event_create_rule request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_event_create_rule_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_event_create_rule", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_event_create_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_event_create_rule request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_event_create_rule_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_event_create_rule", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_event_edit_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # A result object deserialized from the server's reply - def get_event_edit_rule request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_event_edit_rule_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_event_edit_rule", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_event_edit_rules REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse] - # A result object deserialized from the server's reply - def list_event_edit_rules request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_event_edit_rules_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_event_edit_rules", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_event_edit_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # A result object deserialized from the server's reply - def create_event_edit_rule request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_event_edit_rule_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_event_edit_rule", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_event_edit_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # A result object deserialized from the server's reply - def update_event_edit_rule request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_event_edit_rule_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_event_edit_rule", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_event_edit_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_event_edit_rule request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_event_edit_rule_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_event_edit_rule", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the reorder_event_edit_rules REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def reorder_event_edit_rules request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_reorder_event_edit_rules_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "reorder_event_edit_rules", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_data_redaction_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # A result object deserialized from the server's reply - def update_data_redaction_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_data_redaction_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_data_redaction_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_data_redaction_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # A result object deserialized from the server's reply - def get_data_redaction_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_data_redaction_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_data_redaction_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_calculated_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # A result object deserialized from the server's reply - def get_calculated_metric request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_calculated_metric_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_calculated_metric", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_calculated_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # A result object deserialized from the server's reply - def create_calculated_metric request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_calculated_metric_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_calculated_metric", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_calculated_metrics REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse] - # A result object deserialized from the server's reply - def list_calculated_metrics request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_calculated_metrics_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_calculated_metrics", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_calculated_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # A result object deserialized from the server's reply - def update_calculated_metric request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_calculated_metric_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_calculated_metric", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_calculated_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_calculated_metric request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_calculated_metric_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_calculated_metric", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_rollup_property REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse] - # A result object deserialized from the server's reply - def create_rollup_property request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_rollup_property_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_rollup_property", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_rollup_property_source_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # A result object deserialized from the server's reply - def get_rollup_property_source_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_rollup_property_source_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_rollup_property_source_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_rollup_property_source_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse] - # A result object deserialized from the server's reply - def list_rollup_property_source_links request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_rollup_property_source_links_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_rollup_property_source_links", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_rollup_property_source_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # A result object deserialized from the server's reply - def create_rollup_property_source_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_rollup_property_source_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_rollup_property_source_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_rollup_property_source_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_rollup_property_source_link request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_rollup_property_source_link_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_rollup_property_source_link", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the provision_subproperty REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] - # A result object deserialized from the server's reply - def provision_subproperty request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_provision_subproperty_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "provision_subproperty", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_subproperty_event_filter REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # A result object deserialized from the server's reply - def create_subproperty_event_filter request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_subproperty_event_filter_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_subproperty_event_filter", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_subproperty_event_filter REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # A result object deserialized from the server's reply - def get_subproperty_event_filter request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_subproperty_event_filter_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_subproperty_event_filter", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_subproperty_event_filters REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse] - # A result object deserialized from the server's reply - def list_subproperty_event_filters request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_subproperty_event_filters_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_subproperty_event_filters", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_subproperty_event_filter REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # A result object deserialized from the server's reply - def update_subproperty_event_filter request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_subproperty_event_filter_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_subproperty_event_filter", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_subproperty_event_filter REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_subproperty_event_filter request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_subproperty_event_filter_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_subproperty_event_filter", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_reporting_data_annotation REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # A result object deserialized from the server's reply - def create_reporting_data_annotation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_reporting_data_annotation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_reporting_data_annotation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_reporting_data_annotation REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # A result object deserialized from the server's reply - def get_reporting_data_annotation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_reporting_data_annotation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_reporting_data_annotation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_reporting_data_annotations REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse] - # A result object deserialized from the server's reply - def list_reporting_data_annotations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_reporting_data_annotations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_reporting_data_annotations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_reporting_data_annotation REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # A result object deserialized from the server's reply - def update_reporting_data_annotation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_reporting_data_annotation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_reporting_data_annotation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_reporting_data_annotation REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_reporting_data_annotation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_reporting_data_annotation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_reporting_data_annotation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the submit_user_deletion REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse] - # A result object deserialized from the server's reply - def submit_user_deletion request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_submit_user_deletion_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "submit_user_deletion", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_subproperty_sync_configs REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse] - # A result object deserialized from the server's reply - def list_subproperty_sync_configs request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_subproperty_sync_configs_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_subproperty_sync_configs", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_subproperty_sync_config REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # A result object deserialized from the server's reply - def update_subproperty_sync_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_subproperty_sync_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_subproperty_sync_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_subproperty_sync_config REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # A result object deserialized from the server's reply - def get_subproperty_sync_config request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_subproperty_sync_config_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_subproperty_sync_config", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_reporting_identity_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # A result object deserialized from the server's reply - def get_reporting_identity_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_reporting_identity_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_reporting_identity_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_reporting_identity_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # A result object deserialized from the server's reply - def update_reporting_identity_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_reporting_identity_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_reporting_identity_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_user_provided_data_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] - # A result object deserialized from the server's reply - def get_user_provided_data_settings request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_user_provided_data_settings_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_user_provided_data_settings", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the get_account REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccountRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_account_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^accounts/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_accounts REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_accounts_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/accounts", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_account REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_account_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^accounts/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_account REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_account_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{account.name}", - body: "account", - matches: [ - ["account.name", %r{^accounts/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the provision_account_ticket REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_provision_account_ticket_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/accounts:provisionAccountTicket", - body: "*", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_account_summaries REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_account_summaries_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/accountSummaries", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_property REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetPropertyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_property_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_properties REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_properties_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/properties", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_property REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_property_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/properties", - body: "property", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_property REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_property_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_property REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_property_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{property.name}", - body: "property", - matches: [ - ["property.name", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_firebase_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_firebase_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/firebaseLinks", - body: "firebase_link", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_firebase_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_firebase_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/firebaseLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_firebase_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_firebase_links_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/firebaseLinks", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_global_site_tag REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_global_site_tag_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/globalSiteTag/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_google_ads_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_google_ads_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/googleAdsLinks", - body: "google_ads_link", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_google_ads_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_google_ads_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{google_ads_link.name}", - body: "google_ads_link", - matches: [ - ["google_ads_link.name", %r{^properties/[^/]+/googleAdsLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_google_ads_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_google_ads_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/googleAdsLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_google_ads_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_google_ads_links_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/googleAdsLinks", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_data_sharing_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_data_sharing_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^accounts/[^/]+/dataSharingSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_measurement_protocol_secret REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_measurement_protocol_secret_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/measurementProtocolSecrets/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_measurement_protocol_secrets REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_measurement_protocol_secrets_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/measurementProtocolSecrets", - matches: [ - ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_measurement_protocol_secret REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_measurement_protocol_secret_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/measurementProtocolSecrets", - body: "measurement_protocol_secret", - matches: [ - ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_measurement_protocol_secret REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_measurement_protocol_secret_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/measurementProtocolSecrets/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_measurement_protocol_secret REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_measurement_protocol_secret_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{measurement_protocol_secret.name}", - body: "measurement_protocol_secret", - matches: [ - ["measurement_protocol_secret.name", %r{^properties/[^/]+/dataStreams/[^/]+/measurementProtocolSecrets/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the acknowledge_user_data_collection REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_acknowledge_user_data_collection_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{property}:acknowledgeUserDataCollection", - body: "*", - matches: [ - ["property", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_sk_ad_network_conversion_value_schema REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_sk_ad_network_conversion_value_schema_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/sKAdNetworkConversionValueSchema/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_sk_ad_network_conversion_value_schema REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_sk_ad_network_conversion_value_schema_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/sKAdNetworkConversionValueSchema", - body: "skadnetwork_conversion_value_schema", - matches: [ - ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_sk_ad_network_conversion_value_schema REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_sk_ad_network_conversion_value_schema_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/sKAdNetworkConversionValueSchema/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_sk_ad_network_conversion_value_schema REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_sk_ad_network_conversion_value_schema_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{skadnetwork_conversion_value_schema.name}", - body: "skadnetwork_conversion_value_schema", - matches: [ - ["skadnetwork_conversion_value_schema.name", %r{^properties/[^/]+/dataStreams/[^/]+/sKAdNetworkConversionValueSchema/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_sk_ad_network_conversion_value_schemas REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_sk_ad_network_conversion_value_schemas_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/sKAdNetworkConversionValueSchema", - matches: [ - ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the search_change_history_events REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_search_change_history_events_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{account}:searchChangeHistoryEvents", - body: "*", - matches: [ - ["account", %r{^accounts/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_google_signals_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_google_signals_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/googleSignalsSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_google_signals_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_google_signals_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{google_signals_settings.name}", - body: "google_signals_settings", - matches: [ - ["google_signals_settings.name", %r{^properties/[^/]+/googleSignalsSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_conversion_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_conversion_event_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/conversionEvents", - body: "conversion_event", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_conversion_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_conversion_event_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{conversion_event.name}", - body: "conversion_event", - matches: [ - ["conversion_event.name", %r{^properties/[^/]+/conversionEvents/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_conversion_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetConversionEventRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_conversion_event_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/conversionEvents/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_conversion_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_conversion_event_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/conversionEvents/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_conversion_events REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_conversion_events_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/conversionEvents", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_key_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_key_event_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/keyEvents", - body: "key_event", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_key_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_key_event_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{key_event.name}", - body: "key_event", - matches: [ - ["key_event.name", %r{^properties/[^/]+/keyEvents/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_key_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetKeyEventRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_key_event_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/keyEvents/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_key_event REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_key_event_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/keyEvents/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_key_events REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_key_events_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/keyEvents", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_display_video360_advertiser_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_display_video360_advertiser_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_display_video360_advertiser_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_display_video360_advertiser_links_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinks", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_display_video360_advertiser_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_display_video360_advertiser_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinks", - body: "display_video_360_advertiser_link", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_display_video360_advertiser_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_display_video360_advertiser_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_display_video360_advertiser_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_display_video360_advertiser_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{display_video_360_advertiser_link.name}", - body: "display_video_360_advertiser_link", - matches: [ - ["display_video_360_advertiser_link.name", %r{^properties/[^/]+/displayVideo360AdvertiserLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_display_video360_advertiser_link_proposal REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_display_video360_advertiser_link_proposal_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_display_video360_advertiser_link_proposals REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_display_video360_advertiser_link_proposals_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinkProposals", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_display_video360_advertiser_link_proposal REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_display_video360_advertiser_link_proposal_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinkProposals", - body: "display_video_360_advertiser_link_proposal", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_display_video360_advertiser_link_proposal REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_display_video360_advertiser_link_proposal_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the approve_display_video360_advertiser_link_proposal REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_approve_display_video360_advertiser_link_proposal_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{name}:approve", - body: "*", - matches: [ - ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_display_video360_advertiser_link_proposal REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_display_video360_advertiser_link_proposal_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_custom_dimension REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_custom_dimension_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/customDimensions", - body: "custom_dimension", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_custom_dimension REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_custom_dimension_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{custom_dimension.name}", - body: "custom_dimension", - matches: [ - ["custom_dimension.name", %r{^properties/[^/]+/customDimensions/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_custom_dimensions REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_custom_dimensions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/customDimensions", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the archive_custom_dimension REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_archive_custom_dimension_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{name}:archive", - body: "*", - matches: [ - ["name", %r{^properties/[^/]+/customDimensions/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_custom_dimension REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_custom_dimension_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/customDimensions/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_custom_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_custom_metric_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/customMetrics", - body: "custom_metric", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_custom_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_custom_metric_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{custom_metric.name}", - body: "custom_metric", - matches: [ - ["custom_metric.name", %r{^properties/[^/]+/customMetrics/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_custom_metrics REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_custom_metrics_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/customMetrics", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the archive_custom_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_archive_custom_metric_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{name}:archive", - body: "*", - matches: [ - ["name", %r{^properties/[^/]+/customMetrics/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_custom_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_custom_metric_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/customMetrics/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_data_retention_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_data_retention_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataRetentionSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_data_retention_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_data_retention_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{data_retention_settings.name}", - body: "data_retention_settings", - matches: [ - ["data_retention_settings.name", %r{^properties/[^/]+/dataRetentionSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_data_stream REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_data_stream_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/dataStreams", - body: "data_stream", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_data_stream REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_data_stream_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_data_stream REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_data_stream_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{data_stream.name}", - body: "data_stream", - matches: [ - ["data_stream.name", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_data_streams REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_data_streams_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/dataStreams", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_data_stream REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataStreamRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_data_stream_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_audience REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAudienceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_audience_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/audiences/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_audiences REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAudiencesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_audiences_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/audiences", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_audience REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAudienceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_audience_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/audiences", - body: "audience", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_audience REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_audience_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{audience.name}", - body: "audience", - matches: [ - ["audience.name", %r{^properties/[^/]+/audiences/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the archive_audience REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_archive_audience_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{name}:archive", - body: "*", - matches: [ - ["name", %r{^properties/[^/]+/audiences/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_search_ads360_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_search_ads360_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/searchAds360Links/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_search_ads360_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_search_ads360_links_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/searchAds360Links", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_search_ads360_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_search_ads360_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/searchAds360Links", - body: "search_ads_360_link", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_search_ads360_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_search_ads360_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/searchAds360Links/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_search_ads360_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_search_ads360_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{search_ads_360_link.name}", - body: "search_ads_360_link", - matches: [ - ["search_ads_360_link.name", %r{^properties/[^/]+/searchAds360Links/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_attribution_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_attribution_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/attributionSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_attribution_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_attribution_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{attribution_settings.name}", - body: "attribution_settings", - matches: [ - ["attribution_settings.name", %r{^properties/[^/]+/attributionSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the run_access_report REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::RunAccessReportRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_run_access_report_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{entity}:runAccessReport", - body: "*", - matches: [ - ["entity", %r{^properties/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{entity}:runAccessReport", - body: "*", - matches: [ - ["entity", %r{^accounts/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_access_binding REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_access_binding_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/accessBindings", - body: "access_binding", - matches: [ - ["parent", %r{^accounts/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/accessBindings", - body: "access_binding", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_access_binding REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_access_binding_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^accounts/[^/]+/accessBindings/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/accessBindings/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_access_binding REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_access_binding_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{access_binding.name}", - body: "access_binding", - matches: [ - ["access_binding.name", %r{^accounts/[^/]+/accessBindings/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{access_binding.name}", - body: "access_binding", - matches: [ - ["access_binding.name", %r{^properties/[^/]+/accessBindings/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_access_binding REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_access_binding_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^accounts/[^/]+/accessBindings/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/accessBindings/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_access_bindings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_access_bindings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/accessBindings", - matches: [ - ["parent", %r{^accounts/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/accessBindings", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the batch_create_access_bindings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_batch_create_access_bindings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/accessBindings:batchCreate", - body: "*", - matches: [ - ["parent", %r{^accounts/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/accessBindings:batchCreate", - body: "*", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the batch_get_access_bindings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_batch_get_access_bindings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/accessBindings:batchGet", - matches: [ - ["parent", %r{^accounts/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/accessBindings:batchGet", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the batch_update_access_bindings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_batch_update_access_bindings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/accessBindings:batchUpdate", - body: "*", - matches: [ - ["parent", %r{^accounts/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/accessBindings:batchUpdate", - body: "*", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the batch_delete_access_bindings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_batch_delete_access_bindings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/accessBindings:batchDelete", - body: "*", - matches: [ - ["parent", %r{^accounts/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/accessBindings:batchDelete", - body: "*", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_expanded_data_set REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_expanded_data_set_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/expandedDataSets/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_expanded_data_sets REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_expanded_data_sets_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/expandedDataSets", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_expanded_data_set REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_expanded_data_set_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/expandedDataSets", - body: "expanded_data_set", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_expanded_data_set REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_expanded_data_set_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{expanded_data_set.name}", - body: "expanded_data_set", - matches: [ - ["expanded_data_set.name", %r{^properties/[^/]+/expandedDataSets/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_expanded_data_set REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_expanded_data_set_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/expandedDataSets/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_channel_group REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_channel_group_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_channel_groups REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_channel_groups_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/channelGroups", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_channel_group REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_channel_group_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/channelGroups", - body: "channel_group", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_channel_group REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_channel_group_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{channel_group.name}", - body: "channel_group", - matches: [ - ["channel_group.name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_channel_group REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_channel_group_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_big_query_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_big_query_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/bigQueryLinks", - body: "bigquery_link", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_big_query_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_big_query_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/bigQueryLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_big_query_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_big_query_links_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/bigQueryLinks", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_big_query_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_big_query_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/bigQueryLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_big_query_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_big_query_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{bigquery_link.name}", - body: "bigquery_link", - matches: [ - ["bigquery_link.name", %r{^properties/[^/]+/bigQueryLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_enhanced_measurement_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_enhanced_measurement_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_enhanced_measurement_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_enhanced_measurement_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{enhanced_measurement_settings.name}", - body: "enhanced_measurement_settings", - matches: [ - ["enhanced_measurement_settings.name", %r{^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_ad_sense_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_ad_sense_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/adSenseLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_ad_sense_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_ad_sense_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/adSenseLinks", - body: "adsense_link", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_ad_sense_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_ad_sense_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/adSenseLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_ad_sense_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_ad_sense_links_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/adSenseLinks", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_event_create_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_event_create_rule_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventCreateRules/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_event_create_rules REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_event_create_rules_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/eventCreateRules", - matches: [ - ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_event_create_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_event_create_rule_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/eventCreateRules", - body: "event_create_rule", - matches: [ - ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_event_create_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_event_create_rule_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{event_create_rule.name}", - body: "event_create_rule", - matches: [ - ["event_create_rule.name", %r{^properties/[^/]+/dataStreams/[^/]+/eventCreateRules/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_event_create_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_event_create_rule_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventCreateRules/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_event_edit_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_event_edit_rule_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_event_edit_rules REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_event_edit_rules_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/eventEditRules", - matches: [ - ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_event_edit_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_event_edit_rule_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/eventEditRules", - body: "event_edit_rule", - matches: [ - ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_event_edit_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_event_edit_rule_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{event_edit_rule.name}", - body: "event_edit_rule", - matches: [ - ["event_edit_rule.name", %r{^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_event_edit_rule REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_event_edit_rule_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the reorder_event_edit_rules REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_reorder_event_edit_rules_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/eventEditRules:reorder", - body: "*", - matches: [ - ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_data_redaction_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_data_redaction_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{data_redaction_settings.name}", - body: "data_redaction_settings", - matches: [ - ["data_redaction_settings.name", %r{^properties/[^/]+/dataStreams/[^/]+/dataRedactionSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_data_redaction_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_data_redaction_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/dataStreams/[^/]+/dataRedactionSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_calculated_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_calculated_metric_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/calculatedMetrics/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_calculated_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_calculated_metric_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/calculatedMetrics", - body: "calculated_metric", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_calculated_metrics REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_calculated_metrics_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/calculatedMetrics", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_calculated_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_calculated_metric_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{calculated_metric.name}", - body: "calculated_metric", - matches: [ - ["calculated_metric.name", %r{^properties/[^/]+/calculatedMetrics/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_calculated_metric REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_calculated_metric_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/calculatedMetrics/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_rollup_property REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_rollup_property_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/properties:createRollupProperty", - body: "*", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_rollup_property_source_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_rollup_property_source_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/rollupPropertySourceLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_rollup_property_source_links REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_rollup_property_source_links_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/rollupPropertySourceLinks", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_rollup_property_source_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_rollup_property_source_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/rollupPropertySourceLinks", - body: "rollup_property_source_link", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_rollup_property_source_link REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_rollup_property_source_link_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/rollupPropertySourceLinks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the provision_subproperty REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_provision_subproperty_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/properties:provisionSubproperty", - body: "*", - matches: [] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_subproperty_event_filter REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_subproperty_event_filter_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/subpropertyEventFilters", - body: "subproperty_event_filter", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_subproperty_event_filter REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_subproperty_event_filter_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/subpropertyEventFilters/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_subproperty_event_filters REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_subproperty_event_filters_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/subpropertyEventFilters", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_subproperty_event_filter REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_subproperty_event_filter_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{subproperty_event_filter.name}", - body: "subproperty_event_filter", - matches: [ - ["subproperty_event_filter.name", %r{^properties/[^/]+/subpropertyEventFilters/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_subproperty_event_filter REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_subproperty_event_filter_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/subpropertyEventFilters/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_reporting_data_annotation REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_reporting_data_annotation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{parent}/reportingDataAnnotations", - body: "reporting_data_annotation", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_reporting_data_annotation REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_reporting_data_annotation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/reportingDataAnnotations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_reporting_data_annotations REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_reporting_data_annotations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/reportingDataAnnotations", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_reporting_data_annotation REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_reporting_data_annotation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{reporting_data_annotation.name}", - body: "reporting_data_annotation", - matches: [ - ["reporting_data_annotation.name", %r{^properties/[^/]+/reportingDataAnnotations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_reporting_data_annotation REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_reporting_data_annotation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/reportingDataAnnotations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the submit_user_deletion REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_submit_user_deletion_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1alpha/{name}:submitUserDeletion", - body: "*", - matches: [ - ["name", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_subproperty_sync_configs REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_subproperty_sync_configs_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{parent}/subpropertySyncConfigs", - matches: [ - ["parent", %r{^properties/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_subproperty_sync_config REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_subproperty_sync_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{subproperty_sync_config.name}", - body: "subproperty_sync_config", - matches: [ - ["subproperty_sync_config.name", %r{^properties/[^/]+/subpropertySyncConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_subproperty_sync_config REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_subproperty_sync_config_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/subpropertySyncConfigs/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_reporting_identity_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_reporting_identity_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/reportingIdentitySettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_reporting_identity_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_reporting_identity_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1alpha/{reporting_identity_settings.name}", - body: "reporting_identity_settings", - matches: [ - ["reporting_identity_settings.name", %r{^properties/[^/]+/reportingIdentitySettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_user_provided_data_settings REST call - # - # @param request_pb [::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_user_provided_data_settings_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1alpha/{name}", - matches: [ - ["name", %r{^properties/[^/]+/userProvidedDataSettings/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb deleted file mode 100644 index 0dc7c617ad61..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_services_pb.rb +++ /dev/null @@ -1,459 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/analytics/admin/v1alpha/analytics_admin.proto for package 'google.analytics.admin.v1alpha' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/analytics/admin/v1alpha/analytics_admin_pb' - -module Google - module Analytics - module Admin - module V1alpha - module AnalyticsAdminService - # Service Interface for the Google Analytics Admin API. - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.analytics.admin.v1alpha.AnalyticsAdminService' - - # Lookup for a single Account. - rpc :GetAccount, ::Google::Analytics::Admin::V1alpha::GetAccountRequest, ::Google::Analytics::Admin::V1alpha::Account - # Returns all accounts accessible by the caller. - # - # Note that these accounts might not currently have GA properties. - # Soft-deleted (ie: "trashed") accounts are excluded by default. - # Returns an empty list if no relevant accounts are found. - rpc :ListAccounts, ::Google::Analytics::Admin::V1alpha::ListAccountsRequest, ::Google::Analytics::Admin::V1alpha::ListAccountsResponse - # Marks target Account as soft-deleted (ie: "trashed") and returns it. - # - # This API does not have a method to restore soft-deleted accounts. - # However, they can be restored using the Trash Can UI. - # - # If the accounts are not restored before the expiration time, the account - # and all child resources (eg: Properties, GoogleAdsLinks, Streams, - # AccessBindings) will be permanently purged. - # https://support.google.com/analytics/answer/6154772 - # - # Returns an error if the target is not found. - rpc :DeleteAccount, ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, ::Google::Protobuf::Empty - # Updates an account. - rpc :UpdateAccount, ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, ::Google::Analytics::Admin::V1alpha::Account - # Requests a ticket for creating an account. - rpc :ProvisionAccountTicket, ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse - # Returns summaries of all accounts accessible by the caller. - rpc :ListAccountSummaries, ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, ::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse - # Lookup for a single GA Property. - rpc :GetProperty, ::Google::Analytics::Admin::V1alpha::GetPropertyRequest, ::Google::Analytics::Admin::V1alpha::Property - # Returns child Properties under the specified parent Account. - # - # Properties will be excluded if the caller does not have access. - # Soft-deleted (ie: "trashed") properties are excluded by default. - # Returns an empty list if no relevant properties are found. - rpc :ListProperties, ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, ::Google::Analytics::Admin::V1alpha::ListPropertiesResponse - # Creates a Google Analytics property with the specified location and - # attributes. - rpc :CreateProperty, ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, ::Google::Analytics::Admin::V1alpha::Property - # Marks target Property as soft-deleted (ie: "trashed") and returns it. - # - # This API does not have a method to restore soft-deleted properties. - # However, they can be restored using the Trash Can UI. - # - # If the properties are not restored before the expiration time, the Property - # and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) - # will be permanently purged. - # https://support.google.com/analytics/answer/6154772 - # - # Returns an error if the target is not found. - rpc :DeleteProperty, ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, ::Google::Analytics::Admin::V1alpha::Property - # Updates a property. - rpc :UpdateProperty, ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, ::Google::Analytics::Admin::V1alpha::Property - # Creates a FirebaseLink. - # - # Properties can have at most one FirebaseLink. - rpc :CreateFirebaseLink, ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, ::Google::Analytics::Admin::V1alpha::FirebaseLink - # Deletes a FirebaseLink on a property - rpc :DeleteFirebaseLink, ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, ::Google::Protobuf::Empty - # Lists FirebaseLinks on a property. - # Properties can have at most one FirebaseLink. - rpc :ListFirebaseLinks, ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse - # Returns the Site Tag for the specified web stream. - # Site Tags are immutable singletons. - rpc :GetGlobalSiteTag, ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, ::Google::Analytics::Admin::V1alpha::GlobalSiteTag - # Creates a GoogleAdsLink. - rpc :CreateGoogleAdsLink, ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, ::Google::Analytics::Admin::V1alpha::GoogleAdsLink - # Updates a GoogleAdsLink on a property - rpc :UpdateGoogleAdsLink, ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, ::Google::Analytics::Admin::V1alpha::GoogleAdsLink - # Deletes a GoogleAdsLink on a property - rpc :DeleteGoogleAdsLink, ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, ::Google::Protobuf::Empty - # Lists GoogleAdsLinks on a property. - rpc :ListGoogleAdsLinks, ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse - # Get data sharing settings on an account. - # Data sharing settings are singletons. - rpc :GetDataSharingSettings, ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataSharingSettings - # Lookup for a single MeasurementProtocolSecret. - rpc :GetMeasurementProtocolSecret, ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest, ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret - # Returns child MeasurementProtocolSecrets under the specified parent - # Property. - rpc :ListMeasurementProtocolSecrets, ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest, ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse - # Creates a measurement protocol secret. - rpc :CreateMeasurementProtocolSecret, ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest, ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret - # Deletes target MeasurementProtocolSecret. - rpc :DeleteMeasurementProtocolSecret, ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest, ::Google::Protobuf::Empty - # Updates a measurement protocol secret. - rpc :UpdateMeasurementProtocolSecret, ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest, ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret - # Acknowledges the terms of user data collection for the specified property. - # - # This acknowledgement must be completed (either in the Google Analytics UI - # or through this API) before MeasurementProtocolSecret resources may be - # created. - rpc :AcknowledgeUserDataCollection, ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest, ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse - # Looks up a single SKAdNetworkConversionValueSchema. - rpc :GetSKAdNetworkConversionValueSchema, ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest, ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema - # Creates a SKAdNetworkConversionValueSchema. - rpc :CreateSKAdNetworkConversionValueSchema, ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest, ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema - # Deletes target SKAdNetworkConversionValueSchema. - rpc :DeleteSKAdNetworkConversionValueSchema, ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest, ::Google::Protobuf::Empty - # Updates a SKAdNetworkConversionValueSchema. - rpc :UpdateSKAdNetworkConversionValueSchema, ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest, ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema - # Lists SKAdNetworkConversionValueSchema on a stream. - # Properties can have at most one SKAdNetworkConversionValueSchema. - rpc :ListSKAdNetworkConversionValueSchemas, ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest, ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse - # Searches through all changes to an account or its children given the - # specified set of filters. - # - # Only returns the subset of changes supported by the API. The UI may return - # additional changes. - rpc :SearchChangeHistoryEvents, ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest, ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse - # Lookup for Google Signals settings for a property. - rpc :GetGoogleSignalsSettings, ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest, ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings - # Updates Google Signals settings for a property. - rpc :UpdateGoogleSignalsSettings, ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest, ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings - # Deprecated: Use `CreateKeyEvent` instead. - # Creates a conversion event with the specified attributes. - rpc :CreateConversionEvent, ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest, ::Google::Analytics::Admin::V1alpha::ConversionEvent - # Deprecated: Use `UpdateKeyEvent` instead. - # Updates a conversion event with the specified attributes. - rpc :UpdateConversionEvent, ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest, ::Google::Analytics::Admin::V1alpha::ConversionEvent - # Deprecated: Use `GetKeyEvent` instead. - # Retrieve a single conversion event. - rpc :GetConversionEvent, ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest, ::Google::Analytics::Admin::V1alpha::ConversionEvent - # Deprecated: Use `DeleteKeyEvent` instead. - # Deletes a conversion event in a property. - rpc :DeleteConversionEvent, ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest, ::Google::Protobuf::Empty - # Deprecated: Use `ListKeyEvents` instead. - # Returns a list of conversion events in the specified parent property. - # - # Returns an empty list if no conversion events are found. - rpc :ListConversionEvents, ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest, ::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse - # Creates a Key Event. - rpc :CreateKeyEvent, ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest, ::Google::Analytics::Admin::V1alpha::KeyEvent - # Updates a Key Event. - rpc :UpdateKeyEvent, ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest, ::Google::Analytics::Admin::V1alpha::KeyEvent - # Retrieve a single Key Event. - rpc :GetKeyEvent, ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest, ::Google::Analytics::Admin::V1alpha::KeyEvent - # Deletes a Key Event. - rpc :DeleteKeyEvent, ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest, ::Google::Protobuf::Empty - # Returns a list of Key Events in the specified parent property. - # Returns an empty list if no Key Events are found. - rpc :ListKeyEvents, ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest, ::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse - # Look up a single DisplayVideo360AdvertiserLink - rpc :GetDisplayVideo360AdvertiserLink, ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink - # Lists all DisplayVideo360AdvertiserLinks on a property. - rpc :ListDisplayVideo360AdvertiserLinks, ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse - # Creates a DisplayVideo360AdvertiserLink. - # This can only be utilized by users who have proper authorization both on - # the Google Analytics property and on the Display & Video 360 advertiser. - # Users who do not have access to the Display & Video 360 advertiser should - # instead seek to create a DisplayVideo360LinkProposal. - rpc :CreateDisplayVideo360AdvertiserLink, ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink - # Deletes a DisplayVideo360AdvertiserLink on a property. - rpc :DeleteDisplayVideo360AdvertiserLink, ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, ::Google::Protobuf::Empty - # Updates a DisplayVideo360AdvertiserLink on a property. - rpc :UpdateDisplayVideo360AdvertiserLink, ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink - # Lookup for a single DisplayVideo360AdvertiserLinkProposal. - rpc :GetDisplayVideo360AdvertiserLinkProposal, ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal - # Lists DisplayVideo360AdvertiserLinkProposals on a property. - rpc :ListDisplayVideo360AdvertiserLinkProposals, ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse - # Creates a DisplayVideo360AdvertiserLinkProposal. - rpc :CreateDisplayVideo360AdvertiserLinkProposal, ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal - # Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - # This can only be used on cancelled proposals. - rpc :DeleteDisplayVideo360AdvertiserLinkProposal, ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::Google::Protobuf::Empty - # Approves a DisplayVideo360AdvertiserLinkProposal. - # The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - # DisplayVideo360AdvertiserLink will be created. - rpc :ApproveDisplayVideo360AdvertiserLinkProposal, ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse - # Cancels a DisplayVideo360AdvertiserLinkProposal. - # Cancelling can mean either: - # - Declining a proposal initiated from Display & Video 360 - # - Withdrawing a proposal initiated from Google Analytics - # After being cancelled, a proposal will eventually be deleted automatically. - rpc :CancelDisplayVideo360AdvertiserLinkProposal, ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal - # Creates a CustomDimension. - rpc :CreateCustomDimension, ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, ::Google::Analytics::Admin::V1alpha::CustomDimension - # Updates a CustomDimension on a property. - rpc :UpdateCustomDimension, ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest, ::Google::Analytics::Admin::V1alpha::CustomDimension - # Lists CustomDimensions on a property. - rpc :ListCustomDimensions, ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest, ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse - # Archives a CustomDimension on a property. - rpc :ArchiveCustomDimension, ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest, ::Google::Protobuf::Empty - # Lookup for a single CustomDimension. - rpc :GetCustomDimension, ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest, ::Google::Analytics::Admin::V1alpha::CustomDimension - # Creates a CustomMetric. - rpc :CreateCustomMetric, ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest, ::Google::Analytics::Admin::V1alpha::CustomMetric - # Updates a CustomMetric on a property. - rpc :UpdateCustomMetric, ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest, ::Google::Analytics::Admin::V1alpha::CustomMetric - # Lists CustomMetrics on a property. - rpc :ListCustomMetrics, ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest, ::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse - # Archives a CustomMetric on a property. - rpc :ArchiveCustomMetric, ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest, ::Google::Protobuf::Empty - # Lookup for a single CustomMetric. - rpc :GetCustomMetric, ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest, ::Google::Analytics::Admin::V1alpha::CustomMetric - # Returns the singleton data retention settings for this property. - rpc :GetDataRetentionSettings, ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataRetentionSettings - # Updates the singleton data retention settings for this property. - rpc :UpdateDataRetentionSettings, ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataRetentionSettings - # Creates a DataStream. - rpc :CreateDataStream, ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest, ::Google::Analytics::Admin::V1alpha::DataStream - # Deletes a DataStream on a property. - rpc :DeleteDataStream, ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest, ::Google::Protobuf::Empty - # Updates a DataStream on a property. - rpc :UpdateDataStream, ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest, ::Google::Analytics::Admin::V1alpha::DataStream - # Lists DataStreams on a property. - rpc :ListDataStreams, ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest, ::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse - # Lookup for a single DataStream. - rpc :GetDataStream, ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest, ::Google::Analytics::Admin::V1alpha::DataStream - # Lookup for a single Audience. - # Audiences created before 2020 may not be supported. - # Default audiences will not show filter definitions. - rpc :GetAudience, ::Google::Analytics::Admin::V1alpha::GetAudienceRequest, ::Google::Analytics::Admin::V1alpha::Audience - # Lists Audiences on a property. - # Audiences created before 2020 may not be supported. - # Default audiences will not show filter definitions. - rpc :ListAudiences, ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest, ::Google::Analytics::Admin::V1alpha::ListAudiencesResponse - # Creates an Audience. - rpc :CreateAudience, ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest, ::Google::Analytics::Admin::V1alpha::Audience - # Updates an Audience on a property. - rpc :UpdateAudience, ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest, ::Google::Analytics::Admin::V1alpha::Audience - # Archives an Audience on a property. - rpc :ArchiveAudience, ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest, ::Google::Protobuf::Empty - # Look up a single SearchAds360Link - rpc :GetSearchAds360Link, ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest, ::Google::Analytics::Admin::V1alpha::SearchAds360Link - # Lists all SearchAds360Links on a property. - rpc :ListSearchAds360Links, ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest, ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse - # Creates a SearchAds360Link. - rpc :CreateSearchAds360Link, ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest, ::Google::Analytics::Admin::V1alpha::SearchAds360Link - # Deletes a SearchAds360Link on a property. - rpc :DeleteSearchAds360Link, ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest, ::Google::Protobuf::Empty - # Updates a SearchAds360Link on a property. - rpc :UpdateSearchAds360Link, ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest, ::Google::Analytics::Admin::V1alpha::SearchAds360Link - # Lookup for a AttributionSettings singleton. - rpc :GetAttributionSettings, ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest, ::Google::Analytics::Admin::V1alpha::AttributionSettings - # Updates attribution settings on a property. - rpc :UpdateAttributionSettings, ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest, ::Google::Analytics::Admin::V1alpha::AttributionSettings - # Returns a customized report of data access records. The report provides - # records of each time a user reads Google Analytics reporting data. Access - # records are retained for up to 2 years. - # - # Data Access Reports can be requested for a property. Reports may be - # requested for any property, but dimensions that aren't related to quota can - # only be requested on Google Analytics 360 properties. This method is only - # available to Administrators. - # - # These data access records include GA UI Reporting, GA UI Explorations, - # GA Data API, and other products like Firebase & Admob that can retrieve - # data from Google Analytics through a linkage. These records don't include - # property configuration changes like adding a stream or changing a - # property's time zone. For configuration change history, see - # [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). - # - # To give your feedback on this API, complete the [Google Analytics Access - # Reports - # feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) - # form. - rpc :RunAccessReport, ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest, ::Google::Analytics::Admin::V1alpha::RunAccessReportResponse - # Creates an access binding on an account or property. - rpc :CreateAccessBinding, ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, ::Google::Analytics::Admin::V1alpha::AccessBinding - # Gets information about an access binding. - rpc :GetAccessBinding, ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest, ::Google::Analytics::Admin::V1alpha::AccessBinding - # Updates an access binding on an account or property. - rpc :UpdateAccessBinding, ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, ::Google::Analytics::Admin::V1alpha::AccessBinding - # Deletes an access binding on an account or property. - rpc :DeleteAccessBinding, ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, ::Google::Protobuf::Empty - # Lists all access bindings on an account or property. - rpc :ListAccessBindings, ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest, ::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse - # Creates information about multiple access bindings to an account or - # property. - # - # This method is transactional. If any AccessBinding cannot be created, none - # of the AccessBindings will be created. - rpc :BatchCreateAccessBindings, ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest, ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse - # Gets information about multiple access bindings to an account or property. - rpc :BatchGetAccessBindings, ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest, ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse - # Updates information about multiple access bindings to an account or - # property. - rpc :BatchUpdateAccessBindings, ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest, ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse - # Deletes information about multiple users' links to an account or property. - rpc :BatchDeleteAccessBindings, ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest, ::Google::Protobuf::Empty - # Lookup for a single ExpandedDataSet. - rpc :GetExpandedDataSet, ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest, ::Google::Analytics::Admin::V1alpha::ExpandedDataSet - # Lists ExpandedDataSets on a property. - rpc :ListExpandedDataSets, ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest, ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse - # Creates a ExpandedDataSet. - rpc :CreateExpandedDataSet, ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest, ::Google::Analytics::Admin::V1alpha::ExpandedDataSet - # Updates a ExpandedDataSet on a property. - rpc :UpdateExpandedDataSet, ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest, ::Google::Analytics::Admin::V1alpha::ExpandedDataSet - # Deletes a ExpandedDataSet on a property. - rpc :DeleteExpandedDataSet, ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest, ::Google::Protobuf::Empty - # Lookup for a single ChannelGroup. - rpc :GetChannelGroup, ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest, ::Google::Analytics::Admin::V1alpha::ChannelGroup - # Lists ChannelGroups on a property. - rpc :ListChannelGroups, ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest, ::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse - # Creates a ChannelGroup. - rpc :CreateChannelGroup, ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest, ::Google::Analytics::Admin::V1alpha::ChannelGroup - # Updates a ChannelGroup. - rpc :UpdateChannelGroup, ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest, ::Google::Analytics::Admin::V1alpha::ChannelGroup - # Deletes a ChannelGroup on a property. - rpc :DeleteChannelGroup, ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest, ::Google::Protobuf::Empty - # Creates a BigQueryLink. - rpc :CreateBigQueryLink, ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest, ::Google::Analytics::Admin::V1alpha::BigQueryLink - # Lookup for a single BigQuery Link. - rpc :GetBigQueryLink, ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, ::Google::Analytics::Admin::V1alpha::BigQueryLink - # Lists BigQuery Links on a property. - rpc :ListBigQueryLinks, ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse - # Deletes a BigQueryLink on a property. - rpc :DeleteBigQueryLink, ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest, ::Google::Protobuf::Empty - # Updates a BigQueryLink. - rpc :UpdateBigQueryLink, ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest, ::Google::Analytics::Admin::V1alpha::BigQueryLink - # Returns the enhanced measurement settings for this data stream. - # Note that the stream must enable enhanced measurement for these settings to - # take effect. - rpc :GetEnhancedMeasurementSettings, ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings - # Updates the enhanced measurement settings for this data stream. - # Note that the stream must enable enhanced measurement for these settings to - # take effect. - rpc :UpdateEnhancedMeasurementSettings, ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings - # Looks up a single AdSenseLink. - rpc :GetAdSenseLink, ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest, ::Google::Analytics::Admin::V1alpha::AdSenseLink - # Creates an AdSenseLink. - rpc :CreateAdSenseLink, ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest, ::Google::Analytics::Admin::V1alpha::AdSenseLink - # Deletes an AdSenseLink. - rpc :DeleteAdSenseLink, ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest, ::Google::Protobuf::Empty - # Lists AdSenseLinks on a property. - rpc :ListAdSenseLinks, ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest, ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse - # Lookup for a single EventCreateRule. - rpc :GetEventCreateRule, ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest, ::Google::Analytics::Admin::V1alpha::EventCreateRule - # Lists EventCreateRules on a web data stream. - rpc :ListEventCreateRules, ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest, ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse - # Creates an EventCreateRule. - rpc :CreateEventCreateRule, ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest, ::Google::Analytics::Admin::V1alpha::EventCreateRule - # Updates an EventCreateRule. - rpc :UpdateEventCreateRule, ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest, ::Google::Analytics::Admin::V1alpha::EventCreateRule - # Deletes an EventCreateRule. - rpc :DeleteEventCreateRule, ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest, ::Google::Protobuf::Empty - # Lookup for a single EventEditRule. - rpc :GetEventEditRule, ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest, ::Google::Analytics::Admin::V1alpha::EventEditRule - # Lists EventEditRules on a web data stream. - rpc :ListEventEditRules, ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest, ::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse - # Creates an EventEditRule. - rpc :CreateEventEditRule, ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest, ::Google::Analytics::Admin::V1alpha::EventEditRule - # Updates an EventEditRule. - rpc :UpdateEventEditRule, ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest, ::Google::Analytics::Admin::V1alpha::EventEditRule - # Deletes an EventEditRule. - rpc :DeleteEventEditRule, ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest, ::Google::Protobuf::Empty - # Changes the processing order of event edit rules on the specified stream. - rpc :ReorderEventEditRules, ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest, ::Google::Protobuf::Empty - # Updates a DataRedactionSettings on a property. - rpc :UpdateDataRedactionSettings, ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataRedactionSettings - # Lookup for a single DataRedactionSettings. - rpc :GetDataRedactionSettings, ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataRedactionSettings - # Lookup for a single CalculatedMetric. - rpc :GetCalculatedMetric, ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest, ::Google::Analytics::Admin::V1alpha::CalculatedMetric - # Creates a CalculatedMetric. - rpc :CreateCalculatedMetric, ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest, ::Google::Analytics::Admin::V1alpha::CalculatedMetric - # Lists CalculatedMetrics on a property. - rpc :ListCalculatedMetrics, ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest, ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse - # Updates a CalculatedMetric on a property. - rpc :UpdateCalculatedMetric, ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest, ::Google::Analytics::Admin::V1alpha::CalculatedMetric - # Deletes a CalculatedMetric on a property. - rpc :DeleteCalculatedMetric, ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest, ::Google::Protobuf::Empty - # Create a roll-up property and all roll-up property source links. - rpc :CreateRollupProperty, ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest, ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse - # Lookup for a single roll-up property source Link. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - rpc :GetRollupPropertySourceLink, ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest, ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink - # Lists roll-up property source Links on a property. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - rpc :ListRollupPropertySourceLinks, ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest, ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse - # Creates a roll-up property source link. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - rpc :CreateRollupPropertySourceLink, ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest, ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink - # Deletes a roll-up property source link. - # Only roll-up properties can have source links, so this method will throw an - # error if used on other types of properties. - rpc :DeleteRollupPropertySourceLink, ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest, ::Google::Protobuf::Empty - # Create a subproperty and a subproperty event filter that applies to the - # created subproperty. - rpc :ProvisionSubproperty, ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest, ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse - # Creates a subproperty Event Filter. - rpc :CreateSubpropertyEventFilter, ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest, ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter - # Lookup for a single subproperty Event Filter. - rpc :GetSubpropertyEventFilter, ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest, ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter - # List all subproperty Event Filters on a property. - rpc :ListSubpropertyEventFilters, ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest, ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse - # Updates a subproperty Event Filter. - rpc :UpdateSubpropertyEventFilter, ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest, ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter - # Deletes a subproperty event filter. - rpc :DeleteSubpropertyEventFilter, ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest, ::Google::Protobuf::Empty - # Creates a Reporting Data Annotation. - rpc :CreateReportingDataAnnotation, ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest, ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation - # Lookup a single Reporting Data Annotation. - rpc :GetReportingDataAnnotation, ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest, ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation - # List all Reporting Data Annotations on a property. - rpc :ListReportingDataAnnotations, ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest, ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse - # Updates a Reporting Data Annotation. - rpc :UpdateReportingDataAnnotation, ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest, ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation - # Deletes a Reporting Data Annotation. - rpc :DeleteReportingDataAnnotation, ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest, ::Google::Protobuf::Empty - # Submits a request for user deletion for a property. - rpc :SubmitUserDeletion, ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest, ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse - # List all `SubpropertySyncConfig` resources for a property. - rpc :ListSubpropertySyncConfigs, ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest, ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse - # Updates a `SubpropertySyncConfig`. - rpc :UpdateSubpropertySyncConfig, ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest, ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig - # Lookup for a single `SubpropertySyncConfig`. - rpc :GetSubpropertySyncConfig, ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig - # Returns the reporting identity settings for this property. - rpc :GetReportingIdentitySettings, ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest, ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings - # Updates the reporting identity settings for this property. - rpc :UpdateReportingIdentitySettings, ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings - # Looks up settings related to user-provided data for a property. - rpc :GetUserProvidedDataSettings, ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest, ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb deleted file mode 100644 index 9d63364e3bc1..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb +++ /dev/null @@ -1,46 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/analytics/admin/v1alpha/audience.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/duration_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n-google/analytics/admin/v1alpha/audience.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfc\x0b\n\x1f\x41udienceDimensionOrMetricFilter\x12\x65\n\rstring_filter\x18\x02 \x01(\x0b\x32L.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterH\x00\x12\x66\n\x0ein_list_filter\x18\x03 \x01(\x0b\x32L.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterH\x00\x12g\n\x0enumeric_filter\x18\x04 \x01(\x0b\x32M.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterH\x00\x12g\n\x0e\x62\x65tween_filter\x18\x05 \x01(\x0b\x32M.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterH\x00\x12\x1a\n\nfield_name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12!\n\x14\x61t_any_point_in_time\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13in_any_n_day_period\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x1a\xa3\x02\n\x0cStringFilter\x12o\n\nmatch_type\x18\x01 \x01(\x0e\x32V.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchTypeB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63\x61se_sensitive\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"q\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0f\n\x0b\x42\x45GINS_WITH\x10\x02\x12\r\n\tENDS_WITH\x10\x03\x12\x0c\n\x08\x43ONTAINS\x10\x04\x12\x0f\n\x0b\x46ULL_REGEXP\x10\x05\x1a@\n\x0cInListFilter\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63\x61se_sensitive\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x1aJ\n\x0cNumericValue\x12\x15\n\x0bint64_value\x18\x01 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x02 \x01(\x01H\x00\x42\x0b\n\tone_value\x1a\xb6\x02\n\rNumericFilter\x12o\n\toperation\x18\x01 \x01(\x0e\x32W.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.OperationB\x03\xe0\x41\x02\x12`\n\x05value\x18\x02 \x01(\x0b\x32L.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueB\x03\xe0\x41\x02\"R\n\tOperation\x12\x19\n\x15OPERATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x45QUAL\x10\x01\x12\r\n\tLESS_THAN\x10\x02\x12\x10\n\x0cGREATER_THAN\x10\x04\x1a\xdb\x01\n\rBetweenFilter\x12\x65\n\nfrom_value\x18\x01 \x01(\x0b\x32L.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueB\x03\xe0\x41\x02\x12\x63\n\x08to_value\x18\x02 \x01(\x0b\x32L.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueB\x03\xe0\x41\x02\x42\x0c\n\none_filter\"\x9b\x01\n\x13\x41udienceEventFilter\x12\x1a\n\nevent_name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12h\n!event_parameter_filter_expression\x18\x02 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.AudienceFilterExpressionB\x03\xe0\x41\x01\"\xcf\x03\n\x18\x41udienceFilterExpression\x12Q\n\tand_group\x18\x01 \x01(\x0b\x32<.google.analytics.admin.v1alpha.AudienceFilterExpressionListH\x00\x12P\n\x08or_group\x18\x02 \x01(\x0b\x32<.google.analytics.admin.v1alpha.AudienceFilterExpressionListH\x00\x12R\n\x0enot_expression\x18\x03 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.AudienceFilterExpressionH\x00\x12\x65\n\x1a\x64imension_or_metric_filter\x18\x04 \x01(\x0b\x32?.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterH\x00\x12K\n\x0c\x65vent_filter\x18\x05 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AudienceEventFilterH\x00\x42\x06\n\x04\x65xpr\"t\n\x1c\x41udienceFilterExpressionList\x12T\n\x12\x66ilter_expressions\x18\x01 \x03(\x0b\x32\x38.google.analytics.admin.v1alpha.AudienceFilterExpression\"\xbf\x01\n\x14\x41udienceSimpleFilter\x12J\n\x05scope\x18\x01 \x01(\x0e\x32\x33.google.analytics.admin.v1alpha.AudienceFilterScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12[\n\x11\x66ilter_expression\x18\x02 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.AudienceFilterExpressionB\x06\xe0\x41\x02\xe0\x41\x05\"\xb2\x04\n\x16\x41udienceSequenceFilter\x12J\n\x05scope\x18\x01 \x01(\x0e\x32\x33.google.analytics.admin.v1alpha.AudienceFilterScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x41\n\x19sequence_maximum_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12h\n\x0esequence_steps\x18\x03 \x03(\x0b\x32K.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepB\x03\xe0\x41\x02\x1a\x9e\x02\n\x14\x41udienceSequenceStep\x12J\n\x05scope\x18\x01 \x01(\x0e\x32\x33.google.analytics.admin.v1alpha.AudienceFilterScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x13immediately_follows\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12;\n\x13\x63onstraint_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12[\n\x11\x66ilter_expression\x18\x04 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.AudienceFilterExpressionB\x06\xe0\x41\x02\xe0\x41\x05\"\xfb\x02\n\x14\x41udienceFilterClause\x12M\n\rsimple_filter\x18\x02 \x01(\x0b\x32\x34.google.analytics.admin.v1alpha.AudienceSimpleFilterH\x00\x12Q\n\x0fsequence_filter\x18\x03 \x01(\x0b\x32\x36.google.analytics.admin.v1alpha.AudienceSequenceFilterH\x00\x12\x61\n\x0b\x63lause_type\x18\x01 \x01(\x0e\x32G.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseTypeB\x03\xe0\x41\x02\"T\n\x12\x41udienceClauseType\x12$\n AUDIENCE_CLAUSE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07INCLUDE\x10\x01\x12\x0b\n\x07\x45XCLUDE\x10\x02\x42\x08\n\x06\x66ilter\"\xf3\x01\n\x14\x41udienceEventTrigger\x12\x17\n\nevent_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12]\n\rlog_condition\x18\x02 \x01(\x0e\x32\x41.google.analytics.admin.v1alpha.AudienceEventTrigger.LogConditionB\x03\xe0\x41\x02\"c\n\x0cLogCondition\x12\x1d\n\x19LOG_CONDITION_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x41UDIENCE_JOINED\x10\x01\x12\x1f\n\x1b\x41UDIENCE_MEMBERSHIP_RENEWED\x10\x02\"\xd4\x05\n\x08\x41udience\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12(\n\x18membership_duration_days\x18\x04 \x01(\x05\x42\x06\xe0\x41\x02\xe0\x41\x05\x12(\n\x1b\x61\x64s_personalization_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12P\n\revent_trigger\x18\x06 \x01(\x0b\x32\x34.google.analytics.admin.v1alpha.AudienceEventTriggerB\x03\xe0\x41\x01\x12l\n\x17\x65xclusion_duration_mode\x18\x07 \x01(\x0e\x32\x46.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationModeB\x03\xe0\x41\x05\x12W\n\x0e\x66ilter_clauses\x18\x08 \x03(\x0b\x32\x34.google.analytics.admin.v1alpha.AudienceFilterClauseB\t\xe0\x41\x05\xe0\x41\x02\xe0\x41\x06\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x83\x01\n\x1d\x41udienceExclusionDurationMode\x12\x30\n,AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x45XCLUDE_TEMPORARILY\x10\x01\x12\x17\n\x13\x45XCLUDE_PERMANENTLY\x10\x02:W\xea\x41T\n&analyticsadmin.googleapis.com/Audience\x12*properties/{property}/audiences/{audience}*\xc7\x01\n\x13\x41udienceFilterScope\x12%\n!AUDIENCE_FILTER_SCOPE_UNSPECIFIED\x10\x00\x12+\n\'AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT\x10\x01\x12-\n)AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION\x10\x02\x12-\n)AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS\x10\x03\x42u\n\"com.google.analytics.admin.v1alphaB\rAudienceProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Analytics - module Admin - module V1alpha - AudienceDimensionOrMetricFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter").msgclass - AudienceDimensionOrMetricFilter::StringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter").msgclass - AudienceDimensionOrMetricFilter::StringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType").enummodule - AudienceDimensionOrMetricFilter::InListFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter").msgclass - AudienceDimensionOrMetricFilter::NumericValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue").msgclass - AudienceDimensionOrMetricFilter::NumericFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter").msgclass - AudienceDimensionOrMetricFilter::NumericFilter::Operation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation").enummodule - AudienceDimensionOrMetricFilter::BetweenFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter").msgclass - AudienceEventFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceEventFilter").msgclass - AudienceFilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceFilterExpression").msgclass - AudienceFilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceFilterExpressionList").msgclass - AudienceSimpleFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceSimpleFilter").msgclass - AudienceSequenceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceSequenceFilter").msgclass - AudienceSequenceFilter::AudienceSequenceStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep").msgclass - AudienceFilterClause = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceFilterClause").msgclass - AudienceFilterClause::AudienceClauseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType").enummodule - AudienceEventTrigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceEventTrigger").msgclass - AudienceEventTrigger::LogCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition").enummodule - Audience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.Audience").msgclass - Audience::AudienceExclusionDurationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode").enummodule - AudienceFilterScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AudienceFilterScope").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb deleted file mode 100644 index c3cfa480e242..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/analytics/admin/v1alpha/channel_group.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n2google/analytics/admin/v1alpha/channel_group.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xab\x04\n\x12\x43hannelGroupFilter\x12X\n\rstring_filter\x18\x02 \x01(\x0b\x32?.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterH\x00\x12Y\n\x0ein_list_filter\x18\x03 \x01(\x0b\x32?.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterH\x00\x12\x1a\n\nfield_name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x1a\x8e\x02\n\x0cStringFilter\x12\x62\n\nmatch_type\x18\x01 \x01(\x0e\x32I.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchTypeB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x85\x01\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0f\n\x0b\x42\x45GINS_WITH\x10\x02\x12\r\n\tENDS_WITH\x10\x03\x12\x0c\n\x08\x43ONTAINS\x10\x04\x12\x0f\n\x0b\x46ULL_REGEXP\x10\x05\x12\x12\n\x0ePARTIAL_REGEXP\x10\x06\x1a#\n\x0cInListFilter\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\x42\x0e\n\x0cvalue_filter\"\xf1\x02\n\x1c\x43hannelGroupFilterExpression\x12U\n\tand_group\x18\x01 \x01(\x0b\x32@.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListH\x00\x12T\n\x08or_group\x18\x02 \x01(\x0b\x32@.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListH\x00\x12V\n\x0enot_expression\x18\x03 \x01(\x0b\x32<.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionH\x00\x12\x44\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x32.google.analytics.admin.v1alpha.ChannelGroupFilterH\x00\x42\x06\n\x04\x65xpr\"|\n ChannelGroupFilterExpressionList\x12X\n\x12\x66ilter_expressions\x18\x01 \x03(\x0b\x32<.google.analytics.admin.v1alpha.ChannelGroupFilterExpression\"\x80\x01\n\x0cGroupingRule\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\nexpression\x18\x02 \x01(\x0b\x32<.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionB\x03\xe0\x41\x02\"\xb4\x02\n\x0c\x43hannelGroup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12H\n\rgrouping_rule\x18\x04 \x03(\x0b\x32,.google.analytics.admin.v1alpha.GroupingRuleB\x03\xe0\x41\x02\x12\x1b\n\x0esystem_defined\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x07primary\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01:d\xea\x41\x61\n*analyticsadmin.googleapis.com/ChannelGroup\x12\x33properties/{property}/channelGroups/{channel_group}By\n\"com.google.analytics.admin.v1alphaB\x11\x43hannelGroupProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Analytics - module Admin - module V1alpha - ChannelGroupFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilter").msgclass - ChannelGroupFilter::StringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter").msgclass - ChannelGroupFilter::StringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType").enummodule - ChannelGroupFilter::InListFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter").msgclass - ChannelGroupFilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilterExpression").msgclass - ChannelGroupFilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList").msgclass - GroupingRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GroupingRule").msgclass - ChannelGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChannelGroup").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb deleted file mode 100644 index 6c82f8d9ab55..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/analytics/admin/v1alpha/event_create_and_edit.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n:google/analytics/admin/v1alpha/event_create_and_edit.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"I\n\x11ParameterMutation\x12\x16\n\tparameter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fparameter_value\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x92\x03\n\x0f\x45ventCreateRule\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1e\n\x11\x64\x65stination_event\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x10\x65vent_conditions\x18\x03 \x03(\x0b\x32\x31.google.analytics.admin.v1alpha.MatchingConditionB\x03\xe0\x41\x02\x12\x1e\n\x16source_copy_parameters\x18\x04 \x01(\x08\x12N\n\x13parameter_mutations\x18\x05 \x03(\x0b\x32\x31.google.analytics.admin.v1alpha.ParameterMutation:\x89\x01\xea\x41\x85\x01\n-analyticsadmin.googleapis.com/EventCreateRule\x12Tproperties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}\"\xa8\x03\n\rEventEditRule\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12P\n\x10\x65vent_conditions\x18\x03 \x03(\x0b\x32\x31.google.analytics.admin.v1alpha.MatchingConditionB\x03\xe0\x41\x02\x12S\n\x13parameter_mutations\x18\x04 \x03(\x0b\x32\x31.google.analytics.admin.v1alpha.ParameterMutationB\x03\xe0\x41\x02\x12\x1d\n\x10processing_order\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03:\xa2\x01\xea\x41\x9e\x01\n+analyticsadmin.googleapis.com/EventEditRule\x12Pproperties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}*\x0e\x65ventEditRules2\reventEditRule\"\xad\x04\n\x11MatchingCondition\x12\x12\n\x05\x66ield\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12^\n\x0f\x63omparison_type\x18\x02 \x01(\x0e\x32@.google.analytics.admin.v1alpha.MatchingCondition.ComparisonTypeB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07negated\x18\x04 \x01(\x08\"\xfe\x02\n\x0e\x43omparisonType\x12\x1f\n\x1b\x43OMPARISON_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x45QUALS\x10\x01\x12\x1b\n\x17\x45QUALS_CASE_INSENSITIVE\x10\x02\x12\x0c\n\x08\x43ONTAINS\x10\x03\x12\x1d\n\x19\x43ONTAINS_CASE_INSENSITIVE\x10\x04\x12\x0f\n\x0bSTARTS_WITH\x10\x05\x12 \n\x1cSTARTS_WITH_CASE_INSENSITIVE\x10\x06\x12\r\n\tENDS_WITH\x10\x07\x12\x1e\n\x1a\x45NDS_WITH_CASE_INSENSITIVE\x10\x08\x12\x10\n\x0cGREATER_THAN\x10\t\x12\x19\n\x15GREATER_THAN_OR_EQUAL\x10\n\x12\r\n\tLESS_THAN\x10\x0b\x12\x16\n\x12LESS_THAN_OR_EQUAL\x10\x0c\x12\x16\n\x12REGULAR_EXPRESSION\x10\r\x12\'\n#REGULAR_EXPRESSION_CASE_INSENSITIVE\x10\x0e\x42\x66\n\"com.google.analytics.admin.v1alphaP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Analytics - module Admin - module V1alpha - ParameterMutation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ParameterMutation").msgclass - EventCreateRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.EventCreateRule").msgclass - EventEditRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.EventEditRule").msgclass - MatchingCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.MatchingCondition").msgclass - MatchingCondition::ComparisonType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.MatchingCondition.ComparisonType").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/expanded_data_set_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/expanded_data_set_pb.rb deleted file mode 100644 index 5bd114a73dbc..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/expanded_data_set_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/analytics/admin/v1alpha/expanded_data_set.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n6google/analytics/admin/v1alpha/expanded_data_set.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa6\x04\n\x15\x45xpandedDataSetFilter\x12[\n\rstring_filter\x18\x02 \x01(\x0b\x32\x42.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterH\x00\x12\\\n\x0ein_list_filter\x18\x03 \x01(\x0b\x32\x42.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterH\x00\x12\x17\n\nfield_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a\xe8\x01\n\x0cStringFilter\x12\x65\n\nmatch_type\x18\x01 \x01(\x0e\x32L.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchTypeB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63\x61se_sensitive\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"@\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0c\n\x08\x43ONTAINS\x10\x02\x1a@\n\x0cInListFilter\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63\x61se_sensitive\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x42\x0c\n\none_filter\"\xa7\x02\n\x1f\x45xpandedDataSetFilterExpression\x12X\n\tand_group\x18\x01 \x01(\x0b\x32\x43.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListH\x00\x12Y\n\x0enot_expression\x18\x02 \x01(\x0b\x32?.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionH\x00\x12G\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.ExpandedDataSetFilterH\x00\x42\x06\n\x04\x65xpr\"\x82\x01\n#ExpandedDataSetFilterExpressionList\x12[\n\x12\x66ilter_expressions\x18\x01 \x03(\x0b\x32?.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression\"\xb2\x03\n\x0f\x45xpandedDataSet\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64imension_names\x18\x04 \x03(\tB\x03\xe0\x41\x05\x12\x19\n\x0cmetric_names\x18\x05 \x03(\tB\x03\xe0\x41\x05\x12i\n\x1b\x64imension_filter_expression\x18\x06 \x01(\x0b\x32?.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionB\x03\xe0\x41\x05\x12\x43\n\x1a\x64\x61ta_collection_start_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:n\xea\x41k\n-analyticsadmin.googleapis.com/ExpandedDataSet\x12:properties/{property}/expandedDataSets/{expanded_data_set}B|\n\"com.google.analytics.admin.v1alphaB\x14\x45xpandedDataSetProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Analytics - module Admin - module V1alpha - ExpandedDataSetFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilter").msgclass - ExpandedDataSetFilter::StringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter").msgclass - ExpandedDataSetFilter::StringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType").enummodule - ExpandedDataSetFilter::InListFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter").msgclass - ExpandedDataSetFilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression").msgclass - ExpandedDataSetFilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList").msgclass - ExpandedDataSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ExpandedDataSet").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb deleted file mode 100644 index 87d76f572e89..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/resources_pb.rb +++ /dev/null @@ -1,103 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/analytics/admin/v1alpha/resources.proto - -require 'google/protobuf' - -require 'google/analytics/admin/v1alpha/audience_pb' -require 'google/analytics/admin/v1alpha/channel_group_pb' -require 'google/analytics/admin/v1alpha/event_create_and_edit_pb' -require 'google/analytics/admin/v1alpha/expanded_data_set_pb' -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/timestamp_pb' -require 'google/protobuf/wrappers_pb' -require 'google/type/date_pb' - - -descriptor_data = "\n.google/analytics/admin/v1alpha/resources.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a-google/analytics/admin/v1alpha/audience.proto\x1a\x32google/analytics/admin/v1alpha/channel_group.proto\x1a:google/analytics/admin/v1alpha/event_create_and_edit.proto\x1a\x36google/analytics/admin/v1alpha/expanded_data_set.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x16google/type/date.proto\"\xf7\x02\n\x07\x41\x63\x63ount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0bregion_code\x18\x05 \x01(\t\x12\x14\n\x07\x64\x65leted\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12T\n\x10gmp_organization\x18\x07 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2marketingplatformadmin.googleapis.com/Organization:Q\xea\x41N\n%analyticsadmin.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}*\x08\x61\x63\x63ounts2\x07\x61\x63\x63ount\"\xcf\x05\n\x08Property\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12H\n\rproperty_type\x18\x0e \x01(\x0e\x32,.google.analytics.admin.v1alpha.PropertyTypeB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06parent\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12K\n\x11industry_category\x18\x06 \x01(\x0e\x32\x30.google.analytics.admin.v1alpha.IndustryCategory\x12\x16\n\ttime_zone\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rcurrency_code\x18\x08 \x01(\t\x12H\n\rservice_level\x18\n \x01(\x0e\x32,.google.analytics.admin.v1alpha.ServiceLevelB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12>\n\x07\x61\x63\x63ount\x18\r \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%analyticsadmin.googleapis.com/Account:X\xea\x41U\n&analyticsadmin.googleapis.com/Property\x12\x15properties/{property}*\nproperties2\x08property\"\x8d\x08\n\nDataStream\x12S\n\x0fweb_stream_data\x18\x06 \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.DataStream.WebStreamDataH\x00\x12\x62\n\x17\x61ndroid_app_stream_data\x18\x07 \x01(\x0b\x32?.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataH\x00\x12Z\n\x13ios_app_stream_data\x18\x08 \x01(\x0b\x32;.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12O\n\x04type\x18\x02 \x01(\x0e\x32\x39.google.analytics.admin.v1alpha.DataStream.DataStreamTypeB\x06\xe0\x41\x05\xe0\x41\x02\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a_\n\rWebStreamData\x12\x1b\n\x0emeasurement_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x66irebase_app_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65\x66\x61ult_uri\x18\x03 \x01(\t\x1aO\n\x14\x41ndroidAppStreamData\x12\x1c\n\x0f\x66irebase_app_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cpackage_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x1aK\n\x10IosAppStreamData\x12\x1c\n\x0f\x66irebase_app_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\tbundle_id\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02\"}\n\x0e\x44\x61taStreamType\x12 \n\x1c\x44\x41TA_STREAM_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fWEB_DATA_STREAM\x10\x01\x12\x1b\n\x17\x41NDROID_APP_DATA_STREAM\x10\x02\x12\x17\n\x13IOS_APP_DATA_STREAM\x10\x03:w\xea\x41t\n(analyticsadmin.googleapis.com/DataStream\x12/properties/{property}/dataStreams/{data_stream}*\x0b\x64\x61taStreams2\ndataStreamB\r\n\x0bstream_data\"\xf1\x01\n\x0c\x46irebaseLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07project\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\x81\x01\xea\x41~\n*analyticsadmin.googleapis.com/FirebaseLink\x12\x33properties/{property}/firebaseLinks/{firebase_link}*\rfirebaseLinks2\x0c\x66irebaseLink\"\xca\x01\n\rGlobalSiteTag\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07snippet\x18\x02 \x01(\tB\x03\xe0\x41\x05:\x8f\x01\xea\x41\x8b\x01\n+analyticsadmin.googleapis.com/GlobalSiteTag\x12=properties/{property}/dataStreams/{data_stream}/globalSiteTag*\x0eglobalSiteTags2\rglobalSiteTag\"\xb9\x03\n\rGoogleAdsLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x0b\x63ustomer_id\x18\x03 \x01(\tB\x03\xe0\x41\x05\x12\x1f\n\x12\x63\x61n_manage_clients\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\"\n\x15\x63reator_email_address\x18\t \x01(\tB\x03\xe0\x41\x03:\x88\x01\xea\x41\x84\x01\n+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x36properties/{property}/googleAdsLinks/{google_ads_link}*\x0egoogleAdsLinks2\rgoogleAdsLink\"\x9b\x03\n\x13\x44\x61taSharingSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12+\n#sharing_with_google_support_enabled\x18\x02 \x01(\x08\x12\x32\n*sharing_with_google_assigned_sales_enabled\x18\x03 \x01(\x08\x12\x31\n%sharing_with_google_any_sales_enabled\x18\x04 \x01(\x08\x42\x02\x18\x01\x12,\n$sharing_with_google_products_enabled\x18\x05 \x01(\x08\x12#\n\x1bsharing_with_others_enabled\x18\x06 \x01(\x08:\x89\x01\xea\x41\x85\x01\n1analyticsadmin.googleapis.com/DataSharingSettings\x12&accounts/{account}/dataSharingSettings*\x13\x64\x61taSharingSettings2\x13\x64\x61taSharingSettings\"\xbc\x02\n\x0e\x41\x63\x63ountSummary\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12;\n\x07\x61\x63\x63ount\x18\x02 \x01(\tB*\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12K\n\x12property_summaries\x18\x04 \x03(\x0b\x32/.google.analytics.admin.v1alpha.PropertySummary:w\xea\x41t\n,analyticsadmin.googleapis.com/AccountSummary\x12\"accountSummaries/{account_summary}*\x10\x61\x63\x63ountSummaries2\x0e\x61\x63\x63ountSummary\"\xcd\x01\n\x0fPropertySummary\x12=\n\x08property\x18\x01 \x01(\tB+\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x43\n\rproperty_type\x18\x03 \x01(\x0e\x32,.google.analytics.admin.v1alpha.PropertyType\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12\x10\n\x08\x63\x61n_edit\x18\x05 \x01(\x08\"\xc5\x02\n\x19MeasurementProtocolSecret\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0csecret_value\x18\x03 \x01(\tB\x03\xe0\x41\x03:\xde\x01\xea\x41\xda\x01\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\x12hproperties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}*\x1ameasurementProtocolSecrets2\x19measurementProtocolSecret\"\xc8\x04\n SKAdNetworkConversionValueSchema\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12P\n\x13postback_window_one\x18\x02 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindowB\x03\xe0\x41\x02\x12K\n\x13postback_window_two\x18\x03 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindow\x12M\n\x15postback_window_three\x18\x04 \x01(\x0b\x32..google.analytics.admin.v1alpha.PostbackWindow\x12\x1f\n\x17\x61pply_conversion_values\x18\x05 \x01(\x08:\x81\x02\xea\x41\xfd\x01\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12vproperties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}*!skAdNetworkConversionValueSchemas2 skAdNetworkConversionValueSchema\"\x87\x01\n\x0ePostbackWindow\x12K\n\x11\x63onversion_values\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.ConversionValues\x12(\n postback_window_settings_enabled\x18\x02 \x01(\x08\"\xf4\x01\n\x10\x43onversionValues\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x17\n\nfine_value\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x46\n\x0c\x63oarse_value\x18\x03 \x01(\x0e\x32+.google.analytics.admin.v1alpha.CoarseValueB\x03\xe0\x41\x02\x12\x44\n\x0e\x65vent_mappings\x18\x04 \x03(\x0b\x32,.google.analytics.admin.v1alpha.EventMapping\x12\x14\n\x0clock_enabled\x18\x05 \x01(\x08\x42\r\n\x0b_fine_value\"\xef\x01\n\x0c\x45ventMapping\x12\x17\n\nevent_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fmin_event_count\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x1c\n\x0fmax_event_count\x18\x03 \x01(\x03H\x01\x88\x01\x01\x12\x1c\n\x0fmin_event_value\x18\x04 \x01(\x01H\x02\x88\x01\x01\x12\x1c\n\x0fmax_event_value\x18\x05 \x01(\x01H\x03\x88\x01\x01\x42\x12\n\x10_min_event_countB\x12\n\x10_max_event_countB\x12\n\x10_min_event_valueB\x12\n\x10_max_event_value\"\x8a\x02\n\x12\x43hangeHistoryEvent\x12\n\n\x02id\x18\x01 \x01(\t\x12/\n\x0b\x63hange_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\nactor_type\x18\x03 \x01(\x0e\x32).google.analytics.admin.v1alpha.ActorType\x12\x18\n\x10user_actor_email\x18\x04 \x01(\t\x12\x18\n\x10\x63hanges_filtered\x18\x05 \x01(\x08\x12\x44\n\x07\x63hanges\x18\x06 \x03(\x0b\x32\x33.google.analytics.admin.v1alpha.ChangeHistoryChange\"\x99\x16\n\x13\x43hangeHistoryChange\x12\x10\n\x08resource\x18\x01 \x01(\t\x12:\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32*.google.analytics.admin.v1alpha.ActionType\x12i\n\x16resource_before_change\x18\x03 \x01(\x0b\x32I.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\x12h\n\x15resource_after_change\x18\x04 \x01(\x0b\x32I.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\x1a\xde\x13\n\x15\x43hangeHistoryResource\x12:\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\'.google.analytics.admin.v1alpha.AccountH\x00\x12<\n\x08property\x18\x02 \x01(\x0b\x32(.google.analytics.admin.v1alpha.PropertyH\x00\x12\x45\n\rfirebase_link\x18\x06 \x01(\x0b\x32,.google.analytics.admin.v1alpha.FirebaseLinkH\x00\x12H\n\x0fgoogle_ads_link\x18\x07 \x01(\x0b\x32-.google.analytics.admin.v1alpha.GoogleAdsLinkH\x00\x12X\n\x17google_signals_settings\x18\x08 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.GoogleSignalsSettingsH\x00\x12j\n!display_video_360_advertiser_link\x18\t \x01(\x0b\x32=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkH\x00\x12{\n*display_video_360_advertiser_link_proposal\x18\n \x01(\x0b\x32\x45.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalH\x00\x12K\n\x10\x63onversion_event\x18\x0b \x01(\x0b\x32/.google.analytics.admin.v1alpha.ConversionEventH\x00\x12`\n\x1bmeasurement_protocol_secret\x18\x0c \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.MeasurementProtocolSecretH\x00\x12K\n\x10\x63ustom_dimension\x18\r \x01(\x0b\x32/.google.analytics.admin.v1alpha.CustomDimensionH\x00\x12\x45\n\rcustom_metric\x18\x0e \x01(\x0b\x32,.google.analytics.admin.v1alpha.CustomMetricH\x00\x12X\n\x17\x64\x61ta_retention_settings\x18\x0f \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRetentionSettingsH\x00\x12O\n\x13search_ads_360_link\x18\x10 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.SearchAds360LinkH\x00\x12\x41\n\x0b\x64\x61ta_stream\x18\x12 \x01(\x0b\x32*.google.analytics.admin.v1alpha.DataStreamH\x00\x12S\n\x14\x61ttribution_settings\x18\x14 \x01(\x0b\x32\x33.google.analytics.admin.v1alpha.AttributionSettingsH\x00\x12L\n\x11\x65xpanded_data_set\x18\x15 \x01(\x0b\x32/.google.analytics.admin.v1alpha.ExpandedDataSetH\x00\x12\x45\n\rchannel_group\x18\x16 \x01(\x0b\x32,.google.analytics.admin.v1alpha.ChannelGroupH\x00\x12\x45\n\rbigquery_link\x18\x17 \x01(\x0b\x32,.google.analytics.admin.v1alpha.BigQueryLinkH\x00\x12\x64\n\x1d\x65nhanced_measurement_settings\x18\x18 \x01(\x0b\x32;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsH\x00\x12X\n\x17\x64\x61ta_redaction_settings\x18\x19 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.DataRedactionSettingsH\x00\x12o\n#skadnetwork_conversion_value_schema\x18\x1a \x01(\x0b\x32@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaH\x00\x12\x43\n\x0c\x61\x64sense_link\x18\x1b \x01(\x0b\x32+.google.analytics.admin.v1alpha.AdSenseLinkH\x00\x12<\n\x08\x61udience\x18\x1c \x01(\x0b\x32(.google.analytics.admin.v1alpha.AudienceH\x00\x12L\n\x11\x65vent_create_rule\x18\x1d \x01(\x0b\x32/.google.analytics.admin.v1alpha.EventCreateRuleH\x00\x12=\n\tkey_event\x18\x1e \x01(\x0b\x32(.google.analytics.admin.v1alpha.KeyEventH\x00\x12M\n\x11\x63\x61lculated_metric\x18\x1f \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricH\x00\x12\\\n\x19reporting_data_annotation\x18 \x01(\x0b\x32\x37.google.analytics.admin.v1alpha.ReportingDataAnnotationH\x00\x12X\n\x17subproperty_sync_config\x18! \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.SubpropertySyncConfigH\x00\x12`\n\x1breporting_identity_settings\x18\" \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.ReportingIdentitySettingsH\x00\x12_\n\x1buser_provided_data_settings\x18# \x01(\x0b\x32\x38.google.analytics.admin.v1alpha.UserProvidedDataSettingsH\x00\x42\n\n\x08resource\"\x9e\x04\n\x1d\x44isplayVideo360AdvertiserLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12$\n\x17\x61\x64vertiser_display_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05:\xda\x01\xea\x41\xd6\x01\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12Xproperties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}*\x1e\x64isplayVideo360AdvertiserLinks2\x1d\x64isplayVideo360AdvertiserLink\"\xd9\x05\n%DisplayVideo360AdvertiserLinkProposal\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x64\n\x1clink_proposal_status_details\x18\x03 \x01(\x0b\x32\x39.google.analytics.admin.v1alpha.LinkProposalStatusDetailsB\x03\xe0\x41\x03\x12$\n\x17\x61\x64vertiser_display_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10validation_email\x18\x05 \x01(\tB\x03\xe0\x41\x04\x12\x44\n\x1b\x61\x64s_personalization_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05:\x83\x02\xea\x41\xff\x01\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12iproperties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}*&displayVideo360AdvertiserLinkProposals2%displayVideo360AdvertiserLinkProposal\"\x8f\x04\n\x10SearchAds360Link\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\radvertiser_id\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x46\n\x1d\x63\x61mpaign_data_sharing_enabled\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x42\n\x19\x63ost_data_sharing_enabled\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12$\n\x17\x61\x64vertiser_display_name\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12?\n\x1b\x61\x64s_personalization_enabled\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12>\n\x1asite_stats_sharing_enabled\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue:\x98\x01\xea\x41\x94\x01\n.analyticsadmin.googleapis.com/SearchAds360Link\x12=properties/{property}/searchAds360Links/{search_ads_360_link}*\x11searchAds360Links2\x10searchAds360Link\"\xfc\x01\n\x19LinkProposalStatusDetails\x12l\n link_proposal_initiating_product\x18\x01 \x01(\x0e\x32=.google.analytics.admin.v1alpha.LinkProposalInitiatingProductB\x03\xe0\x41\x03\x12\x1c\n\x0frequestor_email\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12S\n\x13link_proposal_state\x18\x03 \x01(\x0e\x32\x31.google.analytics.admin.v1alpha.LinkProposalStateB\x03\xe0\x41\x03\"\x85\x06\n\x0f\x43onversionEvent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\nevent_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tdeletable\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06\x63ustom\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12\x66\n\x0f\x63ounting_method\x18\x06 \x01(\x0e\x32H.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethodB\x03\xe0\x41\x01\x12r\n\x18\x64\x65\x66\x61ult_conversion_value\x18\x07 \x01(\x0b\x32\x46.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a\x64\n\x16\x44\x65\x66\x61ultConversionValue\x12\x12\n\x05value\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_valueB\x10\n\x0e_currency_code\"p\n\x18\x43onversionCountingMethod\x12*\n&CONVERSION_COUNTING_METHOD_UNSPECIFIED\x10\x00\x12\x12\n\x0eONCE_PER_EVENT\x10\x01\x12\x14\n\x10ONCE_PER_SESSION\x10\x02:\x91\x01\xea\x41\x8d\x01\n-analyticsadmin.googleapis.com/ConversionEvent\x12\x39properties/{property}/conversionEvents/{conversion_event}*\x10\x63onversionEvents2\x0f\x63onversionEventB\x1b\n\x19_default_conversion_value\"\xd7\x04\n\x08KeyEvent\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nevent_name\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tdeletable\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x13\n\x06\x63ustom\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12U\n\x0f\x63ounting_method\x18\x06 \x01(\x0e\x32\x37.google.analytics.admin.v1alpha.KeyEvent.CountingMethodB\x03\xe0\x41\x02\x12Q\n\rdefault_value\x18\x07 \x01(\x0b\x32\x35.google.analytics.admin.v1alpha.KeyEvent.DefaultValueB\x03\xe0\x41\x01\x1a\x46\n\x0c\x44\x65\x66\x61ultValue\x12\x1a\n\rnumeric_value\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"[\n\x0e\x43ountingMethod\x12\x1f\n\x1b\x43OUNTING_METHOD_UNSPECIFIED\x10\x00\x12\x12\n\x0eONCE_PER_EVENT\x10\x01\x12\x14\n\x10ONCE_PER_SESSION\x10\x02:m\xea\x41j\n&analyticsadmin.googleapis.com/KeyEvent\x12+properties/{property}/keyEvents/{key_event}*\tkeyEvents2\x08keyEvent\"\xa0\x02\n\x15GoogleSignalsSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x05state\x18\x03 \x01(\x0e\x32\x32.google.analytics.admin.v1alpha.GoogleSignalsState\x12J\n\x07\x63onsent\x18\x04 \x01(\x0e\x32\x34.google.analytics.admin.v1alpha.GoogleSignalsConsentB\x03\xe0\x41\x03:e\xea\x41\x62\n3analyticsadmin.googleapis.com/GoogleSignalsSettings\x12+properties/{property}/googleSignalsSettings\"\xe1\x03\n\x0f\x43ustomDimension\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0eparameter_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12U\n\x05scope\x18\x05 \x01(\x0e\x32>.google.analytics.admin.v1alpha.CustomDimension.DimensionScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12)\n\x1c\x64isallow_ads_personalization\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\"P\n\x0e\x44imensionScope\x12\x1f\n\x1b\x44IMENSION_SCOPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45VENT\x10\x01\x12\x08\n\x04USER\x10\x02\x12\x08\n\x04ITEM\x10\x03:\x91\x01\xea\x41\x8d\x01\n-analyticsadmin.googleapis.com/CustomDimension\x12\x39properties/{property}/customDimensions/{custom_dimension}*\x10\x63ustomDimensions2\x0f\x63ustomDimension\"\xe3\x06\n\x0c\x43ustomMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0eparameter_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12[\n\x10measurement_unit\x18\x05 \x01(\x0e\x32<.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnitB\x03\xe0\x41\x02\x12O\n\x05scope\x18\x06 \x01(\x0e\x32\x38.google.analytics.admin.v1alpha.CustomMetric.MetricScopeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x66\n\x16restricted_metric_type\x18\x08 \x03(\x0e\x32\x41.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricTypeB\x03\xe0\x41\x01\"\xb7\x01\n\x0fMeasurementUnit\x12 \n\x1cMEASUREMENT_UNIT_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0c\n\x08\x43URRENCY\x10\x02\x12\x08\n\x04\x46\x45\x45T\x10\x03\x12\n\n\x06METERS\x10\x04\x12\x0e\n\nKILOMETERS\x10\x05\x12\t\n\x05MILES\x10\x06\x12\x10\n\x0cMILLISECONDS\x10\x07\x12\x0b\n\x07SECONDS\x10\x08\x12\x0b\n\x07MINUTES\x10\t\x12\t\n\x05HOURS\x10\n\"6\n\x0bMetricScope\x12\x1c\n\x18METRIC_SCOPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45VENT\x10\x01\"_\n\x14RestrictedMetricType\x12&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCOST_DATA\x10\x01\x12\x10\n\x0cREVENUE_DATA\x10\x02:\x81\x01\xea\x41~\n*analyticsadmin.googleapis.com/CustomMetric\x12\x33properties/{property}/customMetrics/{custom_metric}*\rcustomMetrics2\x0c\x63ustomMetric\"\xa7\x06\n\x10\x43\x61lculatedMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12!\n\x14\x63\x61lculated_metric_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12U\n\x0bmetric_unit\x18\x05 \x01(\x0e\x32;.google.analytics.admin.v1alpha.CalculatedMetric.MetricUnitB\x03\xe0\x41\x02\x12j\n\x16restricted_metric_type\x18\x06 \x03(\x0e\x32\x45.google.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricTypeB\x03\xe0\x41\x03\x12\x14\n\x07\x66ormula\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18invalid_metric_reference\x18\t \x01(\x08\x42\x03\xe0\x41\x03\"\xad\x01\n\nMetricUnit\x12\x1b\n\x17METRIC_UNIT_UNSPECIFIED\x10\x00\x12\x0c\n\x08STANDARD\x10\x01\x12\x0c\n\x08\x43URRENCY\x10\x02\x12\x08\n\x04\x46\x45\x45T\x10\x03\x12\t\n\x05MILES\x10\x04\x12\n\n\x06METERS\x10\x05\x12\x0e\n\nKILOMETERS\x10\x06\x12\x10\n\x0cMILLISECONDS\x10\x07\x12\x0b\n\x07SECONDS\x10\x08\x12\x0b\n\x07MINUTES\x10\t\x12\t\n\x05HOURS\x10\n\"_\n\x14RestrictedMetricType\x12&\n\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCOST_DATA\x10\x01\x12\x10\n\x0cREVENUE_DATA\x10\x02:\x96\x01\xea\x41\x92\x01\n.analyticsadmin.googleapis.com/CalculatedMetric\x12;properties/{property}/calculatedMetrics/{calculated_metric}*\x11\x63\x61lculatedMetrics2\x10\x63\x61lculatedMetric\"\xe2\x04\n\x15\x44\x61taRetentionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12j\n\x14\x65vent_data_retention\x18\x02 \x01(\x0e\x32G.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\x03\xe0\x41\x02\x12i\n\x13user_data_retention\x18\x04 \x01(\x0e\x32G.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\x03\xe0\x41\x02\x12\'\n\x1freset_user_data_on_new_activity\x18\x03 \x01(\x08\"\x9e\x01\n\x11RetentionDuration\x12\"\n\x1eRETENTION_DURATION_UNSPECIFIED\x10\x00\x12\x0e\n\nTWO_MONTHS\x10\x01\x12\x13\n\x0f\x46OURTEEN_MONTHS\x10\x03\x12\x15\n\x11TWENTY_SIX_MONTHS\x10\x04\x12\x17\n\x13THIRTY_EIGHT_MONTHS\x10\x05\x12\x10\n\x0c\x46IFTY_MONTHS\x10\x06:\x94\x01\xea\x41\x90\x01\n3analyticsadmin.googleapis.com/DataRetentionSettings\x12+properties/{property}/dataRetentionSettings*\x15\x64\x61taRetentionSettings2\x15\x64\x61taRetentionSettings\"\xfc\x0b\n\x13\x41ttributionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x97\x01\n,acquisition_conversion_event_lookback_window\x18\x02 \x01(\x0e\x32\\.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindowB\x03\xe0\x41\x02\x12\x8b\x01\n&other_conversion_event_lookback_window\x18\x03 \x01(\x0e\x32V.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindowB\x03\xe0\x41\x02\x12w\n\x1breporting_attribution_model\x18\x04 \x01(\x0e\x32M.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModelB\x03\xe0\x41\x02\x12\x86\x01\n$ads_web_conversion_data_export_scope\x18\x05 \x01(\x0e\x32S.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScopeB\x03\xe0\x41\x02\"\xdb\x01\n(AcquisitionConversionEventLookbackWindow\x12<\n8ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\x10\x00\x12\x37\n3ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS\x10\x01\x12\x38\n4ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS\x10\x02\"\xf8\x01\n\"OtherConversionEventLookbackWindow\x12\x36\n2OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\x10\x00\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS\x10\x01\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS\x10\x02\x12\x32\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS\x10\x03\"\xc2\x01\n\x19ReportingAttributionModel\x12+\n\'REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED\x10\x00\x12)\n%PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN\x10\x01\x12(\n$PAID_AND_ORGANIC_CHANNELS_LAST_CLICK\x10\x02\x12#\n\x1fGOOGLE_PAID_CHANNELS_LAST_CLICK\x10\x07\"\xa6\x01\n\x1f\x41\x64sWebConversionDataExportScope\x12\x34\n0ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED\x10\x00\x12\x14\n\x10NOT_SELECTED_YET\x10\x01\x12\x1d\n\x19PAID_AND_ORGANIC_CHANNELS\x10\x02\x12\x18\n\x14GOOGLE_PAID_CHANNELS\x10\x03:a\xea\x41^\n1analyticsadmin.googleapis.com/AttributionSettings\x12)properties/{property}/attributionSettings\"\xf1\x01\n\rAccessBinding\x12\x0e\n\x04user\x18\x02 \x01(\tH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\r\n\x05roles\x18\x03 \x03(\t:\x9c\x01\xea\x41\x98\x01\n+analyticsadmin.googleapis.com/AccessBinding\x12\x32\x61\x63\x63ounts/{account}/accessBindings/{access_binding}\x12\x35properties/{property}/accessBindings/{access_binding}B\x0f\n\raccess_target\"\xaa\x03\n\x0c\x42igQueryLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07project\x18\x02 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x14\x64\x61ily_export_enabled\x18\x04 \x01(\x08\x12 \n\x18streaming_export_enabled\x18\x05 \x01(\x08\x12\"\n\x1a\x66resh_daily_export_enabled\x18\t \x01(\x08\x12\x1e\n\x16include_advertising_id\x18\x06 \x01(\x08\x12\x16\n\x0e\x65xport_streams\x18\x07 \x03(\t\x12\x17\n\x0f\x65xcluded_events\x18\x08 \x03(\t\x12 \n\x10\x64\x61taset_location\x18\n \x01(\tB\x06\xe0\x41\x05\xe0\x41\x02:d\xea\x41\x61\n*analyticsadmin.googleapis.com/BigQueryLink\x12\x33properties/{property}/bigQueryLinks/{bigquery_link}\"\xf3\x03\n\x1b\x45nhancedMeasurementSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\x0estream_enabled\x18\x02 \x01(\x08\x12\x17\n\x0fscrolls_enabled\x18\x03 \x01(\x08\x12\x1f\n\x17outbound_clicks_enabled\x18\x04 \x01(\x08\x12\x1b\n\x13site_search_enabled\x18\x05 \x01(\x08\x12 \n\x18video_engagement_enabled\x18\x06 \x01(\x08\x12\x1e\n\x16\x66ile_downloads_enabled\x18\x07 \x01(\x08\x12\x1c\n\x14page_changes_enabled\x18\x08 \x01(\x08\x12!\n\x19\x66orm_interactions_enabled\x18\t \x01(\x08\x12#\n\x16search_query_parameter\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x13uri_query_parameter\x18\x0b \x01(\t:\x8c\x01\xea\x41\x88\x01\n9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\x12Kproperties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings\"\x95\x02\n\x15\x44\x61taRedactionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x17\x65mail_redaction_enabled\x18\x02 \x01(\x08\x12)\n!query_parameter_redaction_enabled\x18\x03 \x01(\x08\x12\x1c\n\x14query_parameter_keys\x18\x04 \x03(\t:\x7f\xea\x41|\n3analyticsadmin.googleapis.com/DataRedactionSettings\x12\x45properties/{property}/dataStreams/{data_stream}/dataRedactionSettings\"\xa0\x01\n\x0b\x41\x64SenseLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x61\x64_client_code\x18\x02 \x01(\tB\x03\xe0\x41\x05:a\xea\x41^\n)analyticsadmin.googleapis.com/AdSenseLink\x12\x31properties/{property}/adSenseLinks/{adsense_link}\"\x8e\x02\n\x18RollupPropertySourceLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsource_property\x18\x02 \x01(\tB\x03\xe0\x41\x05:\xc0\x01\xea\x41\xbc\x01\n6analyticsadmin.googleapis.com/RollupPropertySourceLink\x12Mproperties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}*\x19rollupPropertySourceLinks2\x18rollupPropertySourceLink\"\xf6\x05\n\x17ReportingDataAnnotation\x12,\n\x0f\x61nnotation_date\x18\x04 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x62\n\x15\x61nnotation_date_range\x18\x05 \x01(\x0b\x32\x41.google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRangeH\x00\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x02\x12\x12\n\x05title\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Q\n\x05\x63olor\x18\x06 \x01(\x0e\x32=.google.analytics.admin.v1alpha.ReportingDataAnnotation.ColorB\x03\xe0\x41\x02\x12\x1d\n\x10system_generated\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x1a\x61\n\tDateRange\x12*\n\nstart_date\x18\x01 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12(\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\"i\n\x05\x43olor\x12\x15\n\x11\x43OLOR_UNSPECIFIED\x10\x00\x12\n\n\x06PURPLE\x10\x01\x12\t\n\x05\x42ROWN\x10\x02\x12\x08\n\x04\x42LUE\x10\x03\x12\t\n\x05GREEN\x10\x04\x12\x07\n\x03RED\x10\x05\x12\x08\n\x04\x43YAN\x10\x06\x12\n\n\x06ORANGE\x10\x07:\xba\x01\xea\x41\xb6\x01\n5analyticsadmin.googleapis.com/ReportingDataAnnotation\x12Jproperties/{property}/reportingDataAnnotations/{reporting_data_annotation}*\x18reportingDataAnnotations2\x17reportingDataAnnotationB\x08\n\x06target\"\xd2\x03\n\x15SubpropertySyncConfig\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x03\x12!\n\x11\x61pply_to_property\x18\x02 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12}\n%custom_dimension_and_metric_sync_mode\x18\x03 \x01(\x0e\x32I.google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationModeB\x03\xe0\x41\x02\"N\n\x13SynchronizationMode\x12$\n SYNCHRONIZATION_MODE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03\x41LL\x10\x02:\xb0\x01\xea\x41\xac\x01\n3analyticsadmin.googleapis.com/SubpropertySyncConfig\x12\x46properties/{property}/subpropertySyncConfigs/{subproperty_sync_config}*\x16subpropertySyncConfigs2\x15subpropertySyncConfig\"\xaf\x03\n\x19ReportingIdentitySettings\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x08\xe0\x41\x03\x12g\n\x12reporting_identity\x18\x02 \x01(\x0e\x32K.google.analytics.admin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n\x11ReportingIdentity\x12*\n&IDENTITY_BLENDING_STRATEGY_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42LENDED\x10\x01\x12\x0c\n\x08OBSERVED\x10\x02\x12\x10\n\x0c\x44\x45VICE_BASED\x10\x03:\xa4\x01\xea\x41\xa0\x01\n7analyticsadmin.googleapis.com/ReportingIdentitySettings\x12/properties/{property}/reportingIdentitySettings*\x19reportingIdentitySettings2\x19reportingIdentitySettings\"\xc1\x02\n\x18UserProvidedDataSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x32\n%user_provided_data_collection_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12;\n.automatically_detected_data_collection_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01:\xa0\x01\xea\x41\x9c\x01\n6analyticsadmin.googleapis.com/UserProvidedDataSettings\x12.properties/{property}/userProvidedDataSettings*\x18userProvidedDataSettings2\x18userProvidedDataSettings*\xaa\x04\n\x10IndustryCategory\x12!\n\x1dINDUSTRY_CATEGORY_UNSPECIFIED\x10\x00\x12\x0e\n\nAUTOMOTIVE\x10\x01\x12#\n\x1f\x42USINESS_AND_INDUSTRIAL_MARKETS\x10\x02\x12\x0b\n\x07\x46INANCE\x10\x03\x12\x0e\n\nHEALTHCARE\x10\x04\x12\x0e\n\nTECHNOLOGY\x10\x05\x12\n\n\x06TRAVEL\x10\x06\x12\t\n\x05OTHER\x10\x07\x12\x1a\n\x16\x41RTS_AND_ENTERTAINMENT\x10\x08\x12\x16\n\x12\x42\x45\x41UTY_AND_FITNESS\x10\t\x12\x18\n\x14\x42OOKS_AND_LITERATURE\x10\n\x12\x12\n\x0e\x46OOD_AND_DRINK\x10\x0b\x12\t\n\x05GAMES\x10\x0c\x12\x17\n\x13HOBBIES_AND_LEISURE\x10\r\x12\x13\n\x0fHOME_AND_GARDEN\x10\x0e\x12\x18\n\x14INTERNET_AND_TELECOM\x10\x0f\x12\x16\n\x12LAW_AND_GOVERNMENT\x10\x10\x12\x08\n\x04NEWS\x10\x11\x12\x16\n\x12ONLINE_COMMUNITIES\x10\x12\x12\x16\n\x12PEOPLE_AND_SOCIETY\x10\x13\x12\x14\n\x10PETS_AND_ANIMALS\x10\x14\x12\x0f\n\x0bREAL_ESTATE\x10\x15\x12\r\n\tREFERENCE\x10\x16\x12\x0b\n\x07SCIENCE\x10\x17\x12\n\n\x06SPORTS\x10\x18\x12\x16\n\x12JOBS_AND_EDUCATION\x10\x19\x12\x0c\n\x08SHOPPING\x10\x1a*f\n\x0cServiceLevel\x12\x1d\n\x19SERVICE_LEVEL_UNSPECIFIED\x10\x00\x12\x1d\n\x19GOOGLE_ANALYTICS_STANDARD\x10\x01\x12\x18\n\x14GOOGLE_ANALYTICS_360\x10\x02*J\n\tActorType\x12\x1a\n\x16\x41\x43TOR_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04USER\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\x0b\n\x07SUPPORT\x10\x03*P\n\nActionType\x12\x1b\n\x17\x41\x43TION_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07UPDATED\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03*\xc2\x06\n\x19\x43hangeHistoryResourceType\x12,\n(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41\x43\x43OUNT\x10\x01\x12\x0c\n\x08PROPERTY\x10\x02\x12\x11\n\rFIREBASE_LINK\x10\x06\x12\x13\n\x0fGOOGLE_ADS_LINK\x10\x07\x12\x1b\n\x17GOOGLE_SIGNALS_SETTINGS\x10\x08\x12\x14\n\x10\x43ONVERSION_EVENT\x10\t\x12\x1f\n\x1bMEASUREMENT_PROTOCOL_SECRET\x10\n\x12\x14\n\x10\x43USTOM_DIMENSION\x10\x0b\x12\x11\n\rCUSTOM_METRIC\x10\x0c\x12\x1b\n\x17\x44\x41TA_RETENTION_SETTINGS\x10\r\x12%\n!DISPLAY_VIDEO_360_ADVERTISER_LINK\x10\x0e\x12.\n*DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL\x10\x0f\x12\x17\n\x13SEARCH_ADS_360_LINK\x10\x10\x12\x0f\n\x0b\x44\x41TA_STREAM\x10\x12\x12\x18\n\x14\x41TTRIBUTION_SETTINGS\x10\x14\x12\x15\n\x11\x45XPANDED_DATA_SET\x10\x15\x12\x11\n\rCHANNEL_GROUP\x10\x16\x12\x11\n\rBIGQUERY_LINK\x10\x17\x12!\n\x1d\x45NHANCED_MEASUREMENT_SETTINGS\x10\x18\x12\x1b\n\x17\x44\x41TA_REDACTION_SETTINGS\x10\x19\x12\'\n#SKADNETWORK_CONVERSION_VALUE_SCHEMA\x10\x1a\x12\x10\n\x0c\x41\x44SENSE_LINK\x10\x1b\x12\x0c\n\x08\x41UDIENCE\x10\x1c\x12\x15\n\x11\x45VENT_CREATE_RULE\x10\x1d\x12\r\n\tKEY_EVENT\x10\x1e\x12\x15\n\x11\x43\x41LCULATED_METRIC\x10\x1f\x12\x1d\n\x19REPORTING_DATA_ANNOTATION\x10 \x12\x1b\n\x17SUBPROPERTY_SYNC_CONFIG\x10!\x12\x1f\n\x1bREPORTING_IDENTITY_SETTINGS\x10\"\x12\x1f\n\x1bUSER_PROVIDED_DATA_SETTINGS\x10#*s\n\x12GoogleSignalsState\x12$\n GOOGLE_SIGNALS_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16GOOGLE_SIGNALS_ENABLED\x10\x01\x12\x1b\n\x17GOOGLE_SIGNALS_DISABLED\x10\x02*\x8e\x01\n\x14GoogleSignalsConsent\x12&\n\"GOOGLE_SIGNALS_CONSENT_UNSPECIFIED\x10\x00\x12$\n GOOGLE_SIGNALS_CONSENT_CONSENTED\x10\x02\x12(\n$GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED\x10\x01*{\n\x1dLinkProposalInitiatingProduct\x12\x30\n,LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED\x10\x00\x12\x14\n\x10GOOGLE_ANALYTICS\x10\x01\x12\x12\n\x0eLINKED_PRODUCT\x10\x02*\xc4\x01\n\x11LinkProposalState\x12#\n\x1fLINK_PROPOSAL_STATE_UNSPECIFIED\x10\x00\x12)\n%AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS\x10\x01\x12\'\n#AWAITING_REVIEW_FROM_LINKED_PRODUCT\x10\x02\x12\r\n\tWITHDRAWN\x10\x03\x12\x0c\n\x08\x44\x45\x43LINED\x10\x04\x12\x0b\n\x07\x45XPIRED\x10\x05\x12\x0c\n\x08OBSOLETE\x10\x06*\x82\x01\n\x0cPropertyType\x12\x1d\n\x19PROPERTY_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16PROPERTY_TYPE_ORDINARY\x10\x01\x12\x1d\n\x19PROPERTY_TYPE_SUBPROPERTY\x10\x02\x12\x18\n\x14PROPERTY_TYPE_ROLLUP\x10\x03*q\n\x0b\x43oarseValue\x12\x1c\n\x18\x43OARSE_VALUE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x43OARSE_VALUE_LOW\x10\x01\x12\x17\n\x13\x43OARSE_VALUE_MEDIUM\x10\x02\x12\x15\n\x11\x43OARSE_VALUE_HIGH\x10\x03\x42\xcb\x01\n\"com.google.analytics.admin.v1alphaB\x0eResourcesProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb\xea\x41R\n2marketingplatformadmin.googleapis.com/Organization\x12\x1corganizations/{organization}b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Analytics - module Admin - module V1alpha - Account = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.Account").msgclass - Property = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.Property").msgclass - DataStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataStream").msgclass - DataStream::WebStreamData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataStream.WebStreamData").msgclass - DataStream::AndroidAppStreamData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData").msgclass - DataStream::IosAppStreamData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataStream.IosAppStreamData").msgclass - DataStream::DataStreamType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataStream.DataStreamType").enummodule - FirebaseLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.FirebaseLink").msgclass - GlobalSiteTag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GlobalSiteTag").msgclass - GoogleAdsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GoogleAdsLink").msgclass - DataSharingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataSharingSettings").msgclass - AccountSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccountSummary").msgclass - PropertySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.PropertySummary").msgclass - MeasurementProtocolSecret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.MeasurementProtocolSecret").msgclass - SKAdNetworkConversionValueSchema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema").msgclass - PostbackWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.PostbackWindow").msgclass - ConversionValues = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ConversionValues").msgclass - EventMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.EventMapping").msgclass - ChangeHistoryEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChangeHistoryEvent").msgclass - ChangeHistoryChange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChangeHistoryChange").msgclass - ChangeHistoryChange::ChangeHistoryResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource").msgclass - DisplayVideo360AdvertiserLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink").msgclass - DisplayVideo360AdvertiserLinkProposal = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal").msgclass - SearchAds360Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SearchAds360Link").msgclass - LinkProposalStatusDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.LinkProposalStatusDetails").msgclass - ConversionEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ConversionEvent").msgclass - ConversionEvent::DefaultConversionValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue").msgclass - ConversionEvent::ConversionCountingMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod").enummodule - KeyEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.KeyEvent").msgclass - KeyEvent::DefaultValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.KeyEvent.DefaultValue").msgclass - KeyEvent::CountingMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.KeyEvent.CountingMethod").enummodule - GoogleSignalsSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GoogleSignalsSettings").msgclass - CustomDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomDimension").msgclass - CustomDimension::DimensionScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomDimension.DimensionScope").enummodule - CustomMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomMetric").msgclass - CustomMetric::MeasurementUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit").enummodule - CustomMetric::MetricScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomMetric.MetricScope").enummodule - CustomMetric::RestrictedMetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType").enummodule - CalculatedMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CalculatedMetric").msgclass - CalculatedMetric::MetricUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CalculatedMetric.MetricUnit").enummodule - CalculatedMetric::RestrictedMetricType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricType").enummodule - DataRetentionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataRetentionSettings").msgclass - DataRetentionSettings::RetentionDuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration").enummodule - AttributionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AttributionSettings").msgclass - AttributionSettings::AcquisitionConversionEventLookbackWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow").enummodule - AttributionSettings::OtherConversionEventLookbackWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow").enummodule - AttributionSettings::ReportingAttributionModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel").enummodule - AttributionSettings::AdsWebConversionDataExportScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope").enummodule - AccessBinding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccessBinding").msgclass - BigQueryLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.BigQueryLink").msgclass - EnhancedMeasurementSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.EnhancedMeasurementSettings").msgclass - DataRedactionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataRedactionSettings").msgclass - AdSenseLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AdSenseLink").msgclass - RollupPropertySourceLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.RollupPropertySourceLink").msgclass - ReportingDataAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReportingDataAnnotation").msgclass - ReportingDataAnnotation::DateRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange").msgclass - ReportingDataAnnotation::Color = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReportingDataAnnotation.Color").enummodule - SubpropertySyncConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertySyncConfig").msgclass - SubpropertySyncConfig::SynchronizationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationMode").enummodule - ReportingIdentitySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReportingIdentitySettings").msgclass - ReportingIdentitySettings::ReportingIdentity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ReportingIdentitySettings.ReportingIdentity").enummodule - UserProvidedDataSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.UserProvidedDataSettings").msgclass - IndustryCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.IndustryCategory").enummodule - ServiceLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ServiceLevel").enummodule - ActorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ActorType").enummodule - ActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ActionType").enummodule - ChangeHistoryResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ChangeHistoryResourceType").enummodule - GoogleSignalsState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GoogleSignalsState").enummodule - GoogleSignalsConsent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GoogleSignalsConsent").enummodule - LinkProposalInitiatingProduct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.LinkProposalInitiatingProduct").enummodule - LinkProposalState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.LinkProposalState").enummodule - PropertyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.PropertyType").enummodule - CoarseValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CoarseValue").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/rest.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/rest.rb deleted file mode 100644 index 894e9e1fd01f..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/rest.rb +++ /dev/null @@ -1,37 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/analytics/admin/v1alpha/analytics_admin_service/rest" -require "google/analytics/admin/v1alpha/version" - -module Google - module Analytics - module Admin - ## - # To load just the REST part of this package, including all its services, and instantiate a REST client: - # - # @example - # - # require "google/analytics/admin/v1alpha/rest" - # client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new - # - module V1alpha - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/subproperty_event_filter_pb.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/subproperty_event_filter_pb.rb deleted file mode 100644 index acc2bb134f80..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/subproperty_event_filter_pb.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n=google/analytics/admin/v1alpha/subproperty_event_filter.proto\x12\x1egoogle.analytics.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x81\x04\n\x1fSubpropertyEventFilterCondition\x12\x15\n\x0bnull_filter\x18\x02 \x01(\x08H\x00\x12\x65\n\rstring_filter\x18\x03 \x01(\x0b\x32L.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterH\x00\x12\x17\n\nfield_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x1a\xb8\x02\n\x0cStringFilter\x12o\n\nmatch_type\x18\x01 \x01(\x0e\x32V.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchTypeB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x63\x61se_sensitive\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x85\x01\n\tMatchType\x12\x1a\n\x16MATCH_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45XACT\x10\x01\x12\x0f\n\x0b\x42\x45GINS_WITH\x10\x02\x12\r\n\tENDS_WITH\x10\x03\x12\x0c\n\x08\x43ONTAINS\x10\x04\x12\x0f\n\x0b\x46ULL_REGEXP\x10\x05\x12\x12\n\x0ePARTIAL_REGEXP\x10\x06\x42\x0c\n\none_filter\"\xbd\x02\n SubpropertyEventFilterExpression\x12X\n\x08or_group\x18\x01 \x01(\x0b\x32\x44.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListH\x00\x12Z\n\x0enot_expression\x18\x02 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionH\x00\x12[\n\x10\x66ilter_condition\x18\x03 \x01(\x0b\x32?.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionH\x00\x42\x06\n\x04\x65xpr\"\x8c\x01\n$SubpropertyEventFilterExpressionList\x12\x64\n\x12\x66ilter_expressions\x18\x01 \x03(\x0b\x32@.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionB\x06\xe0\x41\x02\xe0\x41\x06\"\xc2\x02\n\x1cSubpropertyEventFilterClause\x12n\n\x12\x66ilter_clause_type\x18\x01 \x01(\x0e\x32M.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseTypeB\x03\xe0\x41\x02\x12`\n\x11\x66ilter_expression\x18\x02 \x01(\x0b\x32@.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionB\x03\xe0\x41\x02\"P\n\x10\x46ilterClauseType\x12\"\n\x1e\x46ILTER_CLAUSE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07INCLUDE\x10\x01\x12\x0b\n\x07\x45XCLUDE\x10\x02\"\xfd\x02\n\x16SubpropertyEventFilter\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12#\n\x11\x61pply_to_property\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x88\x01\x01\x12\\\n\x0e\x66ilter_clauses\x18\x03 \x03(\x0b\x32<.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseB\x06\xe0\x41\x02\xe0\x41\x06:\xb6\x01\xea\x41\xb2\x01\n4analyticsadmin.googleapis.com/SubpropertyEventFilter\x12Iproperties/{property}/subpropertyEventFilters/{sub_property_event_filter}*\x17subpropertyEventFilters2\x16subpropertyEventFilterB\x14\n\x12_apply_to_propertyB\x83\x01\n\"com.google.analytics.admin.v1alphaB\x1bSubpropertyEventFilterProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Analytics - module Admin - module V1alpha - SubpropertyEventFilterCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterCondition").msgclass - SubpropertyEventFilterCondition::StringFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter").msgclass - SubpropertyEventFilterCondition::StringFilter::MatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType").enummodule - SubpropertyEventFilterExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterExpression").msgclass - SubpropertyEventFilterExpressionList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList").msgclass - SubpropertyEventFilterClause = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterClause").msgclass - SubpropertyEventFilterClause::FilterClauseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType").enummodule - SubpropertyEventFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SubpropertyEventFilter").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/version.rb b/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/version.rb deleted file mode 100644 index 4d66dda17d38..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/version.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Analytics - module Admin - module V1alpha - VERSION = "0.0.1" - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/README.md b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/README.md deleted file mode 100644 index 7c78a1759490..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Google Analytics Admin V1alpha Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/access_report.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/access_report.rb deleted file mode 100644 index 49f13e7f02f9..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/access_report.rb +++ /dev/null @@ -1,413 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Analytics - module Admin - module V1alpha - # Dimensions are attributes of your data. For example, the dimension - # `userEmail` indicates the email of the user that accessed reporting data. - # Dimension values in report responses are strings. - # @!attribute [rw] dimension_name - # @return [::String] - # The API name of the dimension. See [Data Access - # Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - # for the list of dimensions supported in this API. - # - # Dimensions are referenced by name in `dimensionFilter` and `orderBys`. - class AccessDimension - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The quantitative measurements of a report. For example, the metric - # `accessCount` is the total number of data access records. - # @!attribute [rw] metric_name - # @return [::String] - # The API name of the metric. See [Data Access - # Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema) - # for the list of metrics supported in this API. - # - # Metrics are referenced by name in `metricFilter` & `orderBys`. - class AccessMetric - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A contiguous range of days: startDate, startDate + 1, ..., endDate. - # @!attribute [rw] start_date - # @return [::String] - # The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - # be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also - # accepted, and in that case, the date is inferred based on the current time - # in the request's time zone. - # @!attribute [rw] end_date - # @return [::String] - # The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - # be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is - # also accepted, and in that case, the date is inferred based on the current - # time in the request's time zone. - class AccessDateRange - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Expresses dimension or metric filters. The fields in the same expression need - # to be either all dimensions or all metrics. - # @!attribute [rw] and_group - # @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpressionList] - # Each of the FilterExpressions in the and_group has an AND relationship. - # - # Note: The following fields are mutually exclusive: `and_group`, `or_group`, `not_expression`, `access_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] or_group - # @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpressionList] - # Each of the FilterExpressions in the or_group has an OR relationship. - # - # Note: The following fields are mutually exclusive: `or_group`, `and_group`, `not_expression`, `access_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] not_expression - # @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpression] - # The FilterExpression is NOT of not_expression. - # - # Note: The following fields are mutually exclusive: `not_expression`, `and_group`, `or_group`, `access_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] access_filter - # @return [::Google::Analytics::Admin::V1alpha::AccessFilter] - # A primitive filter. In the same FilterExpression, all of the filter's - # field names need to be either all dimensions or all metrics. - # - # Note: The following fields are mutually exclusive: `access_filter`, `and_group`, `or_group`, `not_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class AccessFilterExpression - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A list of filter expressions. - # @!attribute [rw] expressions - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessFilterExpression>] - # A list of filter expressions. - class AccessFilterExpressionList - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # An expression to filter dimension or metric values. - # @!attribute [rw] string_filter - # @return [::Google::Analytics::Admin::V1alpha::AccessStringFilter] - # Strings related filter. - # - # Note: The following fields are mutually exclusive: `string_filter`, `in_list_filter`, `numeric_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] in_list_filter - # @return [::Google::Analytics::Admin::V1alpha::AccessInListFilter] - # A filter for in list values. - # - # Note: The following fields are mutually exclusive: `in_list_filter`, `string_filter`, `numeric_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] numeric_filter - # @return [::Google::Analytics::Admin::V1alpha::AccessNumericFilter] - # A filter for numeric or date values. - # - # Note: The following fields are mutually exclusive: `numeric_filter`, `string_filter`, `in_list_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] between_filter - # @return [::Google::Analytics::Admin::V1alpha::AccessBetweenFilter] - # A filter for two values. - # - # Note: The following fields are mutually exclusive: `between_filter`, `string_filter`, `in_list_filter`, `numeric_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] field_name - # @return [::String] - # The dimension name or metric name. - class AccessFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The filter for strings. - # @!attribute [rw] match_type - # @return [::Google::Analytics::Admin::V1alpha::AccessStringFilter::MatchType] - # The match type for this filter. - # @!attribute [rw] value - # @return [::String] - # The string value used for the matching. - # @!attribute [rw] case_sensitive - # @return [::Boolean] - # If true, the string value is case sensitive. - class AccessStringFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The match type of a string filter. - module MatchType - # Unspecified - MATCH_TYPE_UNSPECIFIED = 0 - - # Exact match of the string value. - EXACT = 1 - - # Begins with the string value. - BEGINS_WITH = 2 - - # Ends with the string value. - ENDS_WITH = 3 - - # Contains the string value. - CONTAINS = 4 - - # Full match for the regular expression with the string value. - FULL_REGEXP = 5 - - # Partial match for the regular expression with the string value. - PARTIAL_REGEXP = 6 - end - end - - # The result needs to be in a list of string values. - # @!attribute [rw] values - # @return [::Array<::String>] - # The list of string values. Must be non-empty. - # @!attribute [rw] case_sensitive - # @return [::Boolean] - # If true, the string value is case sensitive. - class AccessInListFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Filters for numeric or date values. - # @!attribute [rw] operation - # @return [::Google::Analytics::Admin::V1alpha::AccessNumericFilter::Operation] - # The operation type for this filter. - # @!attribute [rw] value - # @return [::Google::Analytics::Admin::V1alpha::NumericValue] - # A numeric value or a date value. - class AccessNumericFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The operation applied to a numeric filter. - module Operation - # Unspecified. - OPERATION_UNSPECIFIED = 0 - - # Equal - EQUAL = 1 - - # Less than - LESS_THAN = 2 - - # Less than or equal - LESS_THAN_OR_EQUAL = 3 - - # Greater than - GREATER_THAN = 4 - - # Greater than or equal - GREATER_THAN_OR_EQUAL = 5 - end - end - - # To express that the result needs to be between two numbers (inclusive). - # @!attribute [rw] from_value - # @return [::Google::Analytics::Admin::V1alpha::NumericValue] - # Begins with this number. - # @!attribute [rw] to_value - # @return [::Google::Analytics::Admin::V1alpha::NumericValue] - # Ends with this number. - class AccessBetweenFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # To represent a number. - # @!attribute [rw] int64_value - # @return [::Integer] - # Integer value - # - # Note: The following fields are mutually exclusive: `int64_value`, `double_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] double_value - # @return [::Float] - # Double value - # - # Note: The following fields are mutually exclusive: `double_value`, `int64_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class NumericValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Order bys define how rows will be sorted in the response. For example, - # ordering rows by descending access count is one ordering, and ordering rows - # by the country string is a different ordering. - # @!attribute [rw] metric - # @return [::Google::Analytics::Admin::V1alpha::AccessOrderBy::MetricOrderBy] - # Sorts results by a metric's values. - # - # Note: The following fields are mutually exclusive: `metric`, `dimension`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] dimension - # @return [::Google::Analytics::Admin::V1alpha::AccessOrderBy::DimensionOrderBy] - # Sorts results by a dimension's values. - # - # Note: The following fields are mutually exclusive: `dimension`, `metric`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] desc - # @return [::Boolean] - # If true, sorts by descending order. If false or unspecified, sorts in - # ascending order. - class AccessOrderBy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Sorts by metric values. - # @!attribute [rw] metric_name - # @return [::String] - # A metric name in the request to order by. - class MetricOrderBy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Sorts by dimension values. - # @!attribute [rw] dimension_name - # @return [::String] - # A dimension name in the request to order by. - # @!attribute [rw] order_type - # @return [::Google::Analytics::Admin::V1alpha::AccessOrderBy::DimensionOrderBy::OrderType] - # Controls the rule for dimension value ordering. - class DimensionOrderBy - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Rule to order the string dimension values by. - module OrderType - # Unspecified. - ORDER_TYPE_UNSPECIFIED = 0 - - # Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < - # "b" < "z". - ALPHANUMERIC = 1 - - # Case insensitive alphanumeric sort by lower case Unicode code point. - # For example, "2" < "A" < "b" < "X" < "z". - CASE_INSENSITIVE_ALPHANUMERIC = 2 - - # Dimension values are converted to numbers before sorting. For example - # in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < - # "25". Non-numeric dimension values all have equal ordering value below - # all numeric values. - NUMERIC = 3 - end - end - end - - # Describes a dimension column in the report. Dimensions requested in a report - # produce column entries within rows and DimensionHeaders. However, dimensions - # used exclusively within filters or expressions do not produce columns in a - # report; correspondingly, those dimensions do not produce headers. - # @!attribute [rw] dimension_name - # @return [::String] - # The dimension's name; for example 'userEmail'. - class AccessDimensionHeader - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Describes a metric column in the report. Visible metrics requested in a - # report produce column entries within rows and MetricHeaders. However, - # metrics used exclusively within filters or expressions do not produce columns - # in a report; correspondingly, those metrics do not produce headers. - # @!attribute [rw] metric_name - # @return [::String] - # The metric's name; for example 'accessCount'. - class AccessMetricHeader - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Access report data for each row. - # @!attribute [rw] dimension_values - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessDimensionValue>] - # List of dimension values. These values are in the same order as specified - # in the request. - # @!attribute [rw] metric_values - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessMetricValue>] - # List of metric values. These values are in the same order as specified - # in the request. - class AccessRow - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The value of a dimension. - # @!attribute [rw] value - # @return [::String] - # The dimension value. For example, this value may be 'France' for the - # 'country' dimension. - class AccessDimensionValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The value of a metric. - # @!attribute [rw] value - # @return [::String] - # The measurement value. For example, this value may be '13'. - class AccessMetricValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Current state of all quotas for this Analytics property. If any quota for a - # property is exhausted, all requests to that property will return Resource - # Exhausted errors. - # @!attribute [rw] tokens_per_day - # @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus] - # Properties can use 250,000 tokens per day. Most requests consume fewer than - # 10 tokens. - # @!attribute [rw] tokens_per_hour - # @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus] - # Properties can use 50,000 tokens per hour. An API request consumes a single - # number of tokens, and that number is deducted from all of the hourly, - # daily, and per project hourly quotas. - # @!attribute [rw] concurrent_requests - # @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus] - # Properties can use up to 50 concurrent requests. - # @!attribute [rw] server_errors_per_project_per_hour - # @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus] - # Properties and cloud project pairs can have up to 50 server errors per - # hour. - # @!attribute [rw] tokens_per_project_per_hour - # @return [::Google::Analytics::Admin::V1alpha::AccessQuotaStatus] - # Properties can use up to 25% of their tokens per project per hour. This - # amounts to Analytics 360 Properties can use 12,500 tokens per project per - # hour. An API request consumes a single number of tokens, and that number is - # deducted from all of the hourly, daily, and per project hourly quotas. - class AccessQuota - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Current state for a particular quota group. - # @!attribute [rw] consumed - # @return [::Integer] - # Quota consumed by this request. - # @!attribute [rw] remaining - # @return [::Integer] - # Quota remaining after this request. - class AccessQuotaStatus - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb deleted file mode 100644 index f61747ae51f7..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/analytics_admin.rb +++ /dev/null @@ -1,2988 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Analytics - module Admin - module V1alpha - # The request for a Data Access Record Report. - # @!attribute [rw] entity - # @return [::String] - # The Data Access Report supports requesting at the property level or account - # level. If requested at the account level, Data Access Reports include all - # access for all properties under that account. - # - # To request at the property level, entity should be for example - # 'properties/123' if "123" is your Google Analytics property ID. To request - # at the account level, entity should be for example 'accounts/1234' if - # "1234" is your Google Analytics Account ID. - # @!attribute [rw] dimensions - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessDimension>] - # The dimensions requested and displayed in the response. Requests are - # allowed up to 9 dimensions. - # @!attribute [rw] metrics - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessMetric>] - # The metrics requested and displayed in the response. Requests are allowed - # up to 10 metrics. - # @!attribute [rw] date_ranges - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessDateRange>] - # Date ranges of access records to read. If multiple date ranges are - # requested, each response row will contain a zero based date range index. If - # two date ranges overlap, the access records for the overlapping days is - # included in the response rows for both date ranges. Requests are allowed up - # to 2 date ranges. - # @!attribute [rw] dimension_filter - # @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpression] - # Dimension filters let you restrict report response to specific - # dimension values which match the filter. For example, filtering on access - # records of a single user. To learn more, see [Fundamentals of Dimension - # Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - # for examples. Metrics cannot be used in this filter. - # @!attribute [rw] metric_filter - # @return [::Google::Analytics::Admin::V1alpha::AccessFilterExpression] - # Metric filters allow you to restrict report response to specific metric - # values which match the filter. Metric filters are applied after aggregating - # the report's rows, similar to SQL having-clause. Dimensions cannot be used - # in this filter. - # @!attribute [rw] offset - # @return [::Integer] - # The row count of the start row. The first row is counted as row 0. If - # offset is unspecified, it is treated as 0. If offset is zero, then this - # method will return the first page of results with `limit` entries. - # - # To learn more about this pagination parameter, see - # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - # @!attribute [rw] limit - # @return [::Integer] - # The number of rows to return. If unspecified, 10,000 rows are returned. The - # API returns a maximum of 100,000 rows per request, no matter how many you - # ask for. `limit` must be positive. - # - # The API may return fewer rows than the requested `limit`, if there aren't - # as many remaining rows as the `limit`. For instance, there are fewer than - # 300 possible values for the dimension `country`, so when reporting on only - # `country`, you can't get more than 300 rows, even if you set `limit` to a - # higher value. - # - # To learn more about this pagination parameter, see - # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - # @!attribute [rw] time_zone - # @return [::String] - # This request's time zone if specified. If unspecified, the property's time - # zone is used. The request's time zone is used to interpret the start & end - # dates of the report. - # - # Formatted as strings from the IANA Time Zone database - # (https://www.iana.org/time-zones); for example "America/New_York" or - # "Asia/Tokyo". - # @!attribute [rw] order_bys - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessOrderBy>] - # Specifies how rows are ordered in the response. - # @!attribute [rw] return_entity_quota - # @return [::Boolean] - # Toggles whether to return the current state of this Analytics Property's - # quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level - # requests, this field must be false. - # @!attribute [rw] include_all_users - # @return [::Boolean] - # Optional. Determines whether to include users who have never made an API - # call in the response. If true, all users with access to the specified - # property or account are included in the response, regardless of whether - # they have made an API call or not. If false, only the users who have made - # an API call will be included. - # @!attribute [rw] expand_groups - # @return [::Boolean] - # Optional. Decides whether to return the users within user groups. This - # field works only when include_all_users is set to true. If true, it will - # return all users with access to the specified property or account. - # If false, only the users with direct access will be returned. - class RunAccessReportRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The customized Data Access Record Report response. - # @!attribute [rw] dimension_headers - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessDimensionHeader>] - # The header for a column in the report that corresponds to a specific - # dimension. The number of DimensionHeaders and ordering of DimensionHeaders - # matches the dimensions present in rows. - # @!attribute [rw] metric_headers - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessMetricHeader>] - # The header for a column in the report that corresponds to a specific - # metric. The number of MetricHeaders and ordering of MetricHeaders matches - # the metrics present in rows. - # @!attribute [rw] rows - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessRow>] - # Rows of dimension value combinations and metric values in the report. - # @!attribute [rw] row_count - # @return [::Integer] - # The total number of rows in the query result. `rowCount` is independent of - # the number of rows returned in the response, the `limit` request - # parameter, and the `offset` request parameter. For example if a query - # returns 175 rows and includes `limit` of 50 in the API request, the - # response will contain `rowCount` of 175 but only 50 rows. - # - # To learn more about this pagination parameter, see - # [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - # @!attribute [rw] quota - # @return [::Google::Analytics::Admin::V1alpha::AccessQuota] - # The quota state for this Analytics property including this request. This - # field doesn't work with account-level requests. - class RunAccessReportResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetAccount RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the account to lookup. - # Format: accounts/\\{account} - # Example: "accounts/100" - class GetAccountRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListAccounts RPC. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListAccounts` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListAccounts` must - # match the call that provided the page token. - # @!attribute [rw] show_deleted - # @return [::Boolean] - # Whether to include soft-deleted (ie: "trashed") Accounts in the - # results. Accounts can be inspected to determine whether they are deleted or - # not. - class ListAccountsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListAccounts RPC. - # @!attribute [rw] accounts - # @return [::Array<::Google::Analytics::Admin::V1alpha::Account>] - # Results that were accessible to the caller. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListAccountsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteAccount RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Account to soft-delete. - # Format: accounts/\\{account} - # Example: "accounts/100" - class DeleteAccountRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateAccount RPC. - # @!attribute [rw] account - # @return [::Google::Analytics::Admin::V1alpha::Account] - # Required. The account to update. - # The account's `name` field is used to identify the account. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (for example, "field_to_update"). Omitted fields will not be updated. - # To replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateAccountRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ProvisionAccountTicket RPC. - # @!attribute [rw] account - # @return [::Google::Analytics::Admin::V1alpha::Account] - # The account to create. - # @!attribute [rw] redirect_uri - # @return [::String] - # Redirect URI where the user will be sent after accepting Terms of Service. - # Must be configured in Cloud Console as a Redirect URI. - class ProvisionAccountTicketRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ProvisionAccountTicket RPC. - # @!attribute [rw] account_ticket_id - # @return [::String] - # The param to be passed in the ToS link. - class ProvisionAccountTicketResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetProperty RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the property to lookup. - # Format: properties/\\{property_id} - # Example: "properties/1000" - class GetPropertyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListProperties RPC. - # @!attribute [rw] filter - # @return [::String] - # Required. An expression for filtering the results of the request. - # Fields eligible for filtering are: - # `parent:`(The resource name of the parent account/property) or - # `ancestor:`(The resource name of the parent account) or - # `firebase_project:`(The id or number of the linked firebase project). - # Some examples of filters: - # - # ``` - # | Filter | Description | - # |-----------------------------|-------------------------------------------| - # | parent:accounts/123 | The account with account id: 123. | - # | parent:properties/123 | The property with property id: 123. | - # | ancestor:accounts/123 | The account with account id: 123. | - # | firebase_project:project-id | The firebase project with id: project-id. | - # | firebase_project:123 | The firebase project with number: 123. | - # ``` - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListProperties` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListProperties` must - # match the call that provided the page token. - # @!attribute [rw] show_deleted - # @return [::Boolean] - # Whether to include soft-deleted (ie: "trashed") Properties in the - # results. Properties can be inspected to determine whether they are deleted - # or not. - class ListPropertiesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListProperties RPC. - # @!attribute [rw] properties - # @return [::Array<::Google::Analytics::Admin::V1alpha::Property>] - # Results that matched the filter criteria and were accessible to the caller. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListPropertiesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateProperty RPC. - # @!attribute [rw] property - # @return [::Google::Analytics::Admin::V1alpha::Property] - # Required. The property to update. - # The property's `name` field is used to identify the property to be - # updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdatePropertyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateProperty RPC. - # @!attribute [rw] property - # @return [::Google::Analytics::Admin::V1alpha::Property] - # Required. The property to create. - # Note: the supplied property must specify its parent. - class CreatePropertyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteProperty RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Property to soft-delete. - # Format: properties/\\{property_id} - # Example: "properties/1000" - class DeletePropertyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateFirebaseLink RPC - # @!attribute [rw] parent - # @return [::String] - # Required. Format: properties/\\{property_id} - # - # Example: `properties/1234` - # @!attribute [rw] firebase_link - # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] - # Required. The Firebase link to create. - class CreateFirebaseLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteFirebaseLink RPC - # @!attribute [rw] name - # @return [::String] - # Required. Format: properties/\\{property_id}/firebaseLinks/\\{firebase_link_id} - # - # Example: `properties/1234/firebaseLinks/5678` - class DeleteFirebaseLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListFirebaseLinks RPC - # @!attribute [rw] parent - # @return [::String] - # Required. Format: properties/\\{property_id} - # - # Example: `properties/1234` - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListFirebaseLinks` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListFirebaseLinks` must - # match the call that provided the page token. - class ListFirebaseLinksRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListFirebaseLinks RPC - # @!attribute [rw] firebase_links - # @return [::Array<::Google::Analytics::Admin::V1alpha::FirebaseLink>] - # List of FirebaseLinks. This will have at most one value. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # Currently, Google Analytics supports only one FirebaseLink per property, - # so this will never be populated. - class ListFirebaseLinksResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetGlobalSiteTag RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the site tag to lookup. - # Note that site tags are singletons and do not have unique IDs. - # Format: properties/\\{property_id}/dataStreams/\\{stream_id}/globalSiteTag - # - # Example: `properties/123/dataStreams/456/globalSiteTag` - class GetGlobalSiteTagRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateGoogleAdsLink RPC - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] google_ads_link - # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # Required. The GoogleAdsLink to create. - class CreateGoogleAdsLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateGoogleAdsLink RPC - # @!attribute [rw] google_ads_link - # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # The GoogleAdsLink to update - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateGoogleAdsLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteGoogleAdsLink RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Example format: properties/1234/googleAdsLinks/5678 - class DeleteGoogleAdsLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListGoogleAdsLinks RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListGoogleAdsLinks` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListGoogleAdsLinks` must - # match the call that provided the page token. - class ListGoogleAdsLinksRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListGoogleAdsLinks RPC. - # @!attribute [rw] google_ads_links - # @return [::Array<::Google::Analytics::Admin::V1alpha::GoogleAdsLink>] - # List of GoogleAdsLinks. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListGoogleAdsLinksResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetDataSharingSettings RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the settings to lookup. - # Format: accounts/\\{account}/dataSharingSettings - # - # Example: `accounts/1000/dataSharingSettings` - class GetDataSharingSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListAccountSummaries RPC. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of AccountSummary resources to return. The - # service may return fewer than this value, even if there are additional - # pages. If unspecified, at most 50 resources will be returned. The maximum - # value is 200; (higher values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListAccountSummaries` - # call. Provide this to retrieve the subsequent page. When paginating, all - # other parameters provided to `ListAccountSummaries` must match the call - # that provided the page token. - class ListAccountSummariesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListAccountSummaries RPC. - # @!attribute [rw] account_summaries - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccountSummary>] - # Account summaries of all accounts the caller has access to. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListAccountSummariesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for AcknowledgeUserDataCollection RPC. - # @!attribute [rw] property - # @return [::String] - # Required. The property for which to acknowledge user data collection. - # @!attribute [rw] acknowledgement - # @return [::String] - # Required. An acknowledgement that the caller of this method understands the - # terms of user data collection. - # - # This field must contain the exact value: - # "I acknowledge that I have the necessary privacy disclosures and rights - # from my end users for the collection and processing of their data, - # including the association of such data with the visitation information - # Google Analytics collects from my site and/or app property." - class AcknowledgeUserDataCollectionRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for AcknowledgeUserDataCollection RPC. - class AcknowledgeUserDataCollectionResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for SearchChangeHistoryEvents RPC. - # @!attribute [rw] account - # @return [::String] - # Required. The account resource for which to return change history - # resources. Format: accounts/\\{account} - # - # Example: `accounts/100` - # @!attribute [rw] property - # @return [::String] - # Optional. Resource name for a child property. If set, only return changes - # made to this property or its child resources. - # Format: properties/\\{propertyId} - # - # Example: `properties/100` - # @!attribute [rw] resource_type - # @return [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryResourceType>] - # Optional. If set, only return changes if they are for a resource that - # matches at least one of these types. - # @!attribute [rw] action - # @return [::Array<::Google::Analytics::Admin::V1alpha::ActionType>] - # Optional. If set, only return changes that match one or more of these types - # of actions. - # @!attribute [rw] actor_email - # @return [::Array<::String>] - # Optional. If set, only return changes if they are made by a user in this - # list. - # @!attribute [rw] earliest_change_time - # @return [::Google::Protobuf::Timestamp] - # Optional. If set, only return changes made after this time (inclusive). - # @!attribute [rw] latest_change_time - # @return [::Google::Protobuf::Timestamp] - # Optional. If set, only return changes made before this time (inclusive). - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of ChangeHistoryEvent items to return. - # If unspecified, at most 50 items will be returned. The maximum value is 200 - # (higher values will be coerced to the maximum). - # - # Note that the service may return a page with fewer items than this value - # specifies (potentially even zero), and that there still may be additional - # pages. If you want a particular number of items, you'll need to continue - # requesting additional pages using `page_token` until you get the needed - # number. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous - # `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - # page. When paginating, all other parameters provided to - # `SearchChangeHistoryEvents` must match the call that provided the page - # token. - class SearchChangeHistoryEventsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for SearchAccounts RPC. - # @!attribute [rw] change_history_events - # @return [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent>] - # Results that were accessible to the caller. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class SearchChangeHistoryEventsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetMeasurementProtocolSecret RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the measurement protocol secret to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} - class GetMeasurementProtocolSecretRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateMeasurementProtocolSecret RPC - # @!attribute [rw] parent - # @return [::String] - # Required. The parent resource where this secret will be created. - # Format: properties/\\{property}/dataStreams/\\{dataStream} - # @!attribute [rw] measurement_protocol_secret - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # Required. The measurement protocol secret to create. - class CreateMeasurementProtocolSecretRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteMeasurementProtocolSecret RPC - # @!attribute [rw] name - # @return [::String] - # Required. The name of the MeasurementProtocolSecret to delete. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} - class DeleteMeasurementProtocolSecretRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateMeasurementProtocolSecret RPC - # @!attribute [rw] measurement_protocol_secret - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # Required. The measurement protocol secret to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. - class UpdateMeasurementProtocolSecretRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListMeasurementProtocolSecret RPC - # @!attribute [rw] parent - # @return [::String] - # Required. The resource name of the parent stream. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 10 resources will be returned. - # The maximum value is 10. Higher values will be coerced to the maximum. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous - # `ListMeasurementProtocolSecrets` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListMeasurementProtocolSecrets` must match the call that provided the page - # token. - class ListMeasurementProtocolSecretsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListMeasurementProtocolSecret RPC - # @!attribute [rw] measurement_protocol_secrets - # @return [::Array<::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret>] - # A list of secrets for the parent stream specified in the request. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListMeasurementProtocolSecretsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetSKAdNetworkConversionValueSchema RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of SKAdNetwork conversion value schema to look - # up. Format: - # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} - class GetSKAdNetworkConversionValueSchemaRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateSKAdNetworkConversionValueSchema RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent resource where this schema will be created. - # Format: properties/\\{property}/dataStreams/\\{dataStream} - # @!attribute [rw] skadnetwork_conversion_value_schema - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # Required. SKAdNetwork conversion value schema to create. - class CreateSKAdNetworkConversionValueSchemaRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteSKAdNetworkConversionValueSchema RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the SKAdNetworkConversionValueSchema to delete. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema/\\{skadnetwork_conversion_value_schema} - class DeleteSKAdNetworkConversionValueSchemaRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateSKAdNetworkConversionValueSchema RPC. - # @!attribute [rw] skadnetwork_conversion_value_schema - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # Required. SKAdNetwork conversion value schema to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. - class UpdateSKAdNetworkConversionValueSchemaRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListSKAdNetworkConversionValueSchemas RPC - # @!attribute [rw] parent - # @return [::String] - # Required. The DataStream resource to list schemas for. - # Format: - # properties/\\{property_id}/dataStreams/\\{dataStream} - # Example: properties/1234/dataStreams/5678 - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous - # `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListSKAdNetworkConversionValueSchema` must match the call that provided - # the page token. - class ListSKAdNetworkConversionValueSchemasRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListSKAdNetworkConversionValueSchemas RPC - # @!attribute [rw] skadnetwork_conversion_value_schemas - # @return [::Array<::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema>] - # List of SKAdNetworkConversionValueSchemas. This will have at most one - # value. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - # Currently, Google Analytics supports only one - # SKAdNetworkConversionValueSchema per dataStream, so this will never be - # populated. - class ListSKAdNetworkConversionValueSchemasResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetGoogleSignalsSettings RPC - # @!attribute [rw] name - # @return [::String] - # Required. The name of the google signals settings to retrieve. - # Format: properties/\\{property}/googleSignalsSettings - class GetGoogleSignalsSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateGoogleSignalsSettings RPC - # @!attribute [rw] google_signals_settings - # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateGoogleSignalsSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateConversionEvent RPC - # @!attribute [rw] conversion_event - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # Required. The conversion event to create. - # @!attribute [rw] parent - # @return [::String] - # Required. The resource name of the parent property where this conversion - # event will be created. Format: properties/123 - class CreateConversionEventRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateConversionEvent RPC - # @!attribute [rw] conversion_event - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # Required. The conversion event to update. - # The `name` field is used to identify the settings to be updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateConversionEventRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetConversionEvent RPC - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the conversion event to retrieve. - # Format: properties/\\{property}/conversionEvents/\\{conversion_event} - # Example: "properties/123/conversionEvents/456" - class GetConversionEventRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteConversionEvent RPC - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the conversion event to delete. - # Format: properties/\\{property}/conversionEvents/\\{conversion_event} - # Example: "properties/123/conversionEvents/456" - class DeleteConversionEventRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListConversionEvents RPC - # @!attribute [rw] parent - # @return [::String] - # Required. The resource name of the parent property. - # Example: 'properties/123' - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListConversionEvents` - # call. Provide this to retrieve the subsequent page. When paginating, all - # other parameters provided to `ListConversionEvents` must match the call - # that provided the page token. - class ListConversionEventsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListConversionEvents RPC. - # @!attribute [rw] conversion_events - # @return [::Array<::Google::Analytics::Admin::V1alpha::ConversionEvent>] - # The requested conversion events - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListConversionEventsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateKeyEvent RPC - # @!attribute [rw] key_event - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # Required. The Key Event to create. - # @!attribute [rw] parent - # @return [::String] - # Required. The resource name of the parent property where this Key Event - # will be created. Format: properties/123 - class CreateKeyEventRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateKeyEvent RPC - # @!attribute [rw] key_event - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # Required. The Key Event to update. - # The `name` field is used to identify the settings to be updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateKeyEventRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetKeyEvent RPC - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the Key Event to retrieve. - # Format: properties/\\{property}/keyEvents/\\{key_event} - # Example: "properties/123/keyEvents/456" - class GetKeyEventRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteKeyEvent RPC - # @!attribute [rw] name - # @return [::String] - # Required. The resource name of the Key Event to delete. - # Format: properties/\\{property}/keyEvents/\\{key_event} - # Example: "properties/123/keyEvents/456" - class DeleteKeyEventRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListKeyEvents RPC - # @!attribute [rw] parent - # @return [::String] - # Required. The resource name of the parent property. - # Example: 'properties/123' - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListKeyEvents` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListKeyEvents` - # must match the call that provided the page token. - class ListKeyEventsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListKeyEvents RPC. - # @!attribute [rw] key_events - # @return [::Array<::Google::Analytics::Admin::V1alpha::KeyEvent>] - # The requested Key Events - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListKeyEventsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetDisplayVideo360AdvertiserLink RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the DisplayVideo360AdvertiserLink to get. - # Example format: properties/1234/displayVideo360AdvertiserLink/5678 - class GetDisplayVideo360AdvertiserLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListDisplayVideo360AdvertiserLinks RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - # page token. - class ListDisplayVideo360AdvertiserLinksRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListDisplayVideo360AdvertiserLinks RPC. - # @!attribute [rw] display_video_360_advertiser_links - # @return [::Array<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] - # List of DisplayVideo360AdvertiserLinks. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListDisplayVideo360AdvertiserLinksResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateDisplayVideo360AdvertiserLink RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] display_video_360_advertiser_link - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # Required. The DisplayVideo360AdvertiserLink to create. - class CreateDisplayVideo360AdvertiserLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteDisplayVideo360AdvertiserLink RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the DisplayVideo360AdvertiserLink to delete. - # Example format: properties/1234/displayVideo360AdvertiserLinks/5678 - class DeleteDisplayVideo360AdvertiserLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateDisplayVideo360AdvertiserLink RPC. - # @!attribute [rw] display_video_360_advertiser_link - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # The DisplayVideo360AdvertiserLink to update - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - class UpdateDisplayVideo360AdvertiserLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetDisplayVideo360AdvertiserLinkProposal RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - class GetDisplayVideo360AdvertiserLinkProposalRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListDisplayVideo360AdvertiserLinkProposals RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous - # `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - # the subsequent page. - # - # When paginating, all other parameters provided to - # `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - # provided the page token. - class ListDisplayVideo360AdvertiserLinkProposalsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListDisplayVideo360AdvertiserLinkProposals RPC. - # @!attribute [rw] display_video_360_advertiser_link_proposals - # @return [::Array<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] - # List of DisplayVideo360AdvertiserLinkProposals. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListDisplayVideo360AdvertiserLinkProposalsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateDisplayVideo360AdvertiserLinkProposal RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] display_video_360_advertiser_link_proposal - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # Required. The DisplayVideo360AdvertiserLinkProposal to create. - class CreateDisplayVideo360AdvertiserLinkProposalRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - class DeleteDisplayVideo360AdvertiserLinkProposalRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - class ApproveDisplayVideo360AdvertiserLinkProposalRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC. - # @!attribute [rw] display_video_360_advertiser_link - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # The DisplayVideo360AdvertiserLink created as a result of approving the - # proposal. - class ApproveDisplayVideo360AdvertiserLinkProposalResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 - class CancelDisplayVideo360AdvertiserLinkProposalRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetSearchAds360Link RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the SearchAds360Link to get. - # Example format: properties/1234/SearchAds360Link/5678 - class GetSearchAds360LinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListSearchAds360Links RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListSearchAds360Links` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to - # `ListSearchAds360Links` must match the call that provided the - # page token. - class ListSearchAds360LinksRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListSearchAds360Links RPC. - # @!attribute [rw] search_ads_360_links - # @return [::Array<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] - # List of SearchAds360Links. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListSearchAds360LinksResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateSearchAds360Link RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] search_ads_360_link - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # Required. The SearchAds360Link to create. - class CreateSearchAds360LinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteSearchAds360Link RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the SearchAds360Link to delete. - # Example format: properties/1234/SearchAds360Links/5678 - class DeleteSearchAds360LinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateSearchAds360Link RPC. - # @!attribute [rw] search_ads_360_link - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # The SearchAds360Link to update - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - class UpdateSearchAds360LinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateCustomDimension RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] custom_dimension - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # Required. The CustomDimension to create. - class CreateCustomDimensionRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateCustomDimension RPC. - # @!attribute [rw] custom_dimension - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # The CustomDimension to update - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - class UpdateCustomDimensionRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListCustomDimensions RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListCustomDimensions` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCustomDimensions` - # must match the call that provided the page token. - class ListCustomDimensionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListCustomDimensions RPC. - # @!attribute [rw] custom_dimensions - # @return [::Array<::Google::Analytics::Admin::V1alpha::CustomDimension>] - # List of CustomDimensions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListCustomDimensionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ArchiveCustomDimension RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the CustomDimension to archive. - # Example format: properties/1234/customDimensions/5678 - class ArchiveCustomDimensionRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetCustomDimension RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the CustomDimension to get. - # Example format: properties/1234/customDimensions/5678 - class GetCustomDimensionRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateCustomMetric RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] custom_metric - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # Required. The CustomMetric to create. - class CreateCustomMetricRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateCustomMetric RPC. - # @!attribute [rw] custom_metric - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # The CustomMetric to update - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - class UpdateCustomMetricRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListCustomMetrics RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListCustomMetrics` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCustomMetrics` must - # match the call that provided the page token. - class ListCustomMetricsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListCustomMetrics RPC. - # @!attribute [rw] custom_metrics - # @return [::Array<::Google::Analytics::Admin::V1alpha::CustomMetric>] - # List of CustomMetrics. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListCustomMetricsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ArchiveCustomMetric RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the CustomMetric to archive. - # Example format: properties/1234/customMetrics/5678 - class ArchiveCustomMetricRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetCustomMetric RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the CustomMetric to get. - # Example format: properties/1234/customMetrics/5678 - class GetCustomMetricRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateCalculatedMetric RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Format: properties/\\{property_id} - # Example: properties/1234 - # @!attribute [rw] calculated_metric_id - # @return [::String] - # Required. The ID to use for the calculated metric which will become the - # final component of the calculated metric's resource name. - # - # This value should be 1-80 characters and valid characters are - # /[a-zA-Z0-9_]/, no spaces allowed. calculated_metric_id must be unique - # between all calculated metrics under a property. The calculated_metric_id - # is used when referencing this calculated metric from external APIs, for - # example, "calcMetric:\\{calculated_metric_id}". - # @!attribute [rw] calculated_metric - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # Required. The CalculatedMetric to create. - class CreateCalculatedMetricRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateCalculatedMetric RPC. - # @!attribute [rw] calculated_metric - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # Required. The CalculatedMetric to update - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - class UpdateCalculatedMetricRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteCalculatedMetric RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the CalculatedMetric to delete. - # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} - # Example: properties/1234/calculatedMetrics/Metric01 - class DeleteCalculatedMetricRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListCalculatedMetrics RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListCalculatedMetrics` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListCalculatedMetrics` - # must match the call that provided the page token. - class ListCalculatedMetricsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListCalculatedMetrics RPC. - # @!attribute [rw] calculated_metrics - # @return [::Array<::Google::Analytics::Admin::V1alpha::CalculatedMetric>] - # List of CalculatedMetrics. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListCalculatedMetricsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetCalculatedMetric RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the CalculatedMetric to get. - # Format: properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id} - # Example: properties/1234/calculatedMetrics/Metric01 - class GetCalculatedMetricRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetDataRetentionSettings RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataRetentionSettings - # Example: "properties/1000/dataRetentionSettings" - class GetDataRetentionSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateDataRetentionSettings RPC. - # @!attribute [rw] data_retention_settings - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateDataRetentionSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateDataStream RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] data_stream - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # Required. The DataStream to create. - class CreateDataStreamRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteDataStream RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the DataStream to delete. - # Example format: properties/1234/dataStreams/5678 - class DeleteDataStreamRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateDataStream RPC. - # @!attribute [rw] data_stream - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # The DataStream to update - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Omitted fields will not be - # updated. To replace the entire entity, use one path with the string "*" to - # match all fields. - class UpdateDataStreamRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListDataStreams RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListDataStreams` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListDataStreams` must - # match the call that provided the page token. - class ListDataStreamsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListDataStreams RPC. - # @!attribute [rw] data_streams - # @return [::Array<::Google::Analytics::Admin::V1alpha::DataStream>] - # List of DataStreams. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListDataStreamsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetDataStream RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the DataStream to get. - # Example format: properties/1234/dataStreams/5678 - class GetDataStreamRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetAudience RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Audience to get. - # Example format: properties/1234/audiences/5678 - class GetAudienceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListAudiences RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListAudiences` call. Provide this - # to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListAudiences` must - # match the call that provided the page token. - class ListAudiencesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListAudiences RPC. - # @!attribute [rw] audiences - # @return [::Array<::Google::Analytics::Admin::V1alpha::Audience>] - # List of Audiences. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListAudiencesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateAudience RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] audience - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # Required. The audience to create. - class CreateAudienceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateAudience RPC. - # @!attribute [rw] audience - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # Required. The audience to update. - # The audience's `name` field is used to identify the audience to be updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateAudienceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ArchiveAudience RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Example format: properties/1234/audiences/5678 - class ArchiveAudienceRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetAttributionSettings RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the attribution settings to retrieve. - # Format: properties/\\{property}/attributionSettings - class GetAttributionSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateAttributionSettings RPC - # @!attribute [rw] attribution_settings - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # Required. The attribution settings to update. - # The `name` field is used to identify the settings to be updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateAttributionSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetAccessBinding RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the access binding to retrieve. - # Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} - class GetAccessBindingRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BatchGetAccessBindings RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The account or property that owns the access bindings. The parent - # of all provided values for the 'names' field must match this field. - # Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @!attribute [rw] names - # @return [::Array<::String>] - # Required. The names of the access bindings to retrieve. - # A maximum of 1000 access bindings can be retrieved in a batch. - # Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} - class BatchGetAccessBindingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BatchGetAccessBindings RPC. - # @!attribute [rw] access_bindings - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessBinding>] - # The requested access bindings. - class BatchGetAccessBindingsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListAccessBindings RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of access bindings to return. - # The service may return fewer than this value. - # If unspecified, at most 200 access bindings will be returned. - # The maximum value is 500; values above 500 will be coerced to 500. - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListAccessBindings` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListAccessBindings` must - # match the call that provided the page token. - class ListAccessBindingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListAccessBindings RPC. - # @!attribute [rw] access_bindings - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessBinding>] - # List of AccessBindings. These will be ordered stably, but in an arbitrary - # order. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListAccessBindingsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateAccessBinding RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @!attribute [rw] access_binding - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # Required. The access binding to create. - class CreateAccessBindingRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BatchCreateAccessBindings RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The account or property that owns the access bindings. The parent - # field in the CreateAccessBindingRequest messages must either be empty or - # match this field. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @!attribute [rw] requests - # @return [::Array<::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest>] - # Required. The requests specifying the access bindings to create. - # A maximum of 1000 access bindings can be created in a batch. - class BatchCreateAccessBindingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BatchCreateAccessBindings RPC. - # @!attribute [rw] access_bindings - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessBinding>] - # The access bindings created. - class BatchCreateAccessBindingsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateAccessBinding RPC. - # @!attribute [rw] access_binding - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] - # Required. The access binding to update. - class UpdateAccessBindingRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BatchUpdateAccessBindings RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The account or property that owns the access bindings. The parent - # of all provided AccessBinding in UpdateAccessBindingRequest messages must - # match this field. - # Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @!attribute [rw] requests - # @return [::Array<::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest>] - # Required. The requests specifying the access bindings to update. - # A maximum of 1000 access bindings can be updated in a batch. - class BatchUpdateAccessBindingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for BatchUpdateAccessBindings RPC. - # @!attribute [rw] access_bindings - # @return [::Array<::Google::Analytics::Admin::V1alpha::AccessBinding>] - # The access bindings updated. - class BatchUpdateAccessBindingsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteAccessBinding RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} - class DeleteAccessBindingRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for BatchDeleteAccessBindings RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The account or property that owns the access bindings. The parent - # of all provided values for the 'names' field in DeleteAccessBindingRequest - # messages must match this field. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @!attribute [rw] requests - # @return [::Array<::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest>] - # Required. The requests specifying the access bindings to delete. - # A maximum of 1000 access bindings can be deleted in a batch. - class BatchDeleteAccessBindingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateExpandedDataSet RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] expanded_data_set - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # Required. The ExpandedDataSet to create. - class CreateExpandedDataSetRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateExpandedDataSet RPC. - # @!attribute [rw] expanded_data_set - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # Required. The ExpandedDataSet to update. - # The resource's `name` field is used to identify the ExpandedDataSet to be - # updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateExpandedDataSetRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteExpandedDataSet RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Example format: properties/1234/expandedDataSets/5678 - class DeleteExpandedDataSetRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetExpandedDataSet RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the ExpandedDataSet to get. - # Example format: properties/1234/expandedDataSets/5678 - class GetExpandedDataSetRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListExpandedDataSets RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListExpandedDataSets` call. Provide - # this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListExpandedDataSet` - # must match the call that provided the page token. - class ListExpandedDataSetsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListExpandedDataSets RPC. - # @!attribute [rw] expanded_data_sets - # @return [::Array<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] - # List of ExpandedDataSet. These will be ordered stably, but in an arbitrary - # order. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListExpandedDataSetsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateChannelGroup RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The property for which to create a ChannelGroup. - # Example format: properties/1234 - # @!attribute [rw] channel_group - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # Required. The ChannelGroup to create. - class CreateChannelGroupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateChannelGroup RPC. - # @!attribute [rw] channel_group - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # Required. The ChannelGroup to update. - # The resource's `name` field is used to identify the ChannelGroup to be - # updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateChannelGroupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteChannelGroup RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The ChannelGroup to delete. - # Example format: properties/1234/channelGroups/5678 - class DeleteChannelGroupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetChannelGroup RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The ChannelGroup to get. - # Example format: properties/1234/channelGroups/5678 - class GetChannelGroupRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListChannelGroups RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The property for which to list ChannelGroups. - # Example format: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListChannelGroups` call. Provide - # this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListChannelGroups` - # must match the call that provided the page token. - class ListChannelGroupsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListChannelGroups RPC. - # @!attribute [rw] channel_groups - # @return [::Array<::Google::Analytics::Admin::V1alpha::ChannelGroup>] - # List of ChannelGroup. These will be ordered stably, but in an arbitrary - # order. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListChannelGroupsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateBigQueryLink RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/1234 - # @!attribute [rw] bigquery_link - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # Required. The BigQueryLink to create. - class CreateBigQueryLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetBigQueryLink RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the BigQuery link to lookup. - # Format: properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id} - # Example: properties/123/bigQueryLinks/456 - class GetBigQueryLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListBigQueryLinks RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the property to list BigQuery links under. - # Format: properties/\\{property_id} - # Example: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListBigQueryLinks` call. - # Provide this to retrieve the subsequent page. - # When paginating, all other parameters provided to `ListBigQueryLinks` must - # match the call that provided the page token. - class ListBigQueryLinksRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListBigQueryLinks RPC - # @!attribute [rw] bigquery_links - # @return [::Array<::Google::Analytics::Admin::V1alpha::BigQueryLink>] - # List of BigQueryLinks. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListBigQueryLinksResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateBigQueryLink RPC. - # @!attribute [rw] bigquery_link - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateBigQueryLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteBigQueryLink RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The BigQueryLink to delete. - # Example format: properties/1234/bigQueryLinks/5678 - class DeleteBigQueryLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetEnhancedMeasurementSettings RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{data_stream}/enhancedMeasurementSettings - # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - class GetEnhancedMeasurementSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateEnhancedMeasurementSettings RPC. - # @!attribute [rw] enhanced_measurement_settings - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateEnhancedMeasurementSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetDataRedactionSettings RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{data_stream}/dataRedactionSettings - # Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - class GetDataRedactionSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateDataRedactionSettings RPC. - # @!attribute [rw] data_redaction_settings - # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # Required. The settings to update. - # The `name` field is used to identify the settings to be updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateDataRedactionSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message to be passed to CreateAdSenseLink method. - # @!attribute [rw] parent - # @return [::String] - # Required. The property for which to create an AdSense Link. - # Format: properties/\\{propertyId} - # Example: properties/1234 - # @!attribute [rw] adsense_link - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # Required. The AdSense Link to create - class CreateAdSenseLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message to be passed to GetAdSenseLink method. - # @!attribute [rw] name - # @return [::String] - # Required. Unique identifier for the AdSense Link requested. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/5678 - class GetAdSenseLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message to be passed to DeleteAdSenseLink method. - # @!attribute [rw] name - # @return [::String] - # Required. Unique identifier for the AdSense Link to be deleted. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/5678 - class DeleteAdSenseLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message to be passed to ListAdSenseLinks method. - # @!attribute [rw] parent - # @return [::String] - # Required. Resource name of the parent property. - # Format: properties/\\{propertyId} - # Example: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # A page token received from a previous `ListAdSenseLinks` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListAdSenseLinks` must - # match the call that provided the page token. - class ListAdSenseLinksRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListAdSenseLinks method. - # @!attribute [rw] adsense_links - # @return [::Array<::Google::Analytics::Admin::V1alpha::AdSenseLink>] - # List of AdSenseLinks. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListAdSenseLinksResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateEventCreateRule RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/123/dataStreams/456 - # @!attribute [rw] event_create_rule - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # Required. The EventCreateRule to create. - class CreateEventCreateRuleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateEventCreateRule RPC. - # @!attribute [rw] event_create_rule - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # Required. The EventCreateRule to update. - # The resource's `name` field is used to identify the EventCreateRule to be - # updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateEventCreateRuleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteEventCreateRule RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Example format: - # properties/123/dataStreams/456/eventCreateRules/789 - class DeleteEventCreateRuleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetEventCreateRule RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the EventCreateRule to get. - # Example format: properties/123/dataStreams/456/eventCreateRules/789 - class GetEventCreateRuleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListEventCreateRules RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/123/dataStreams/456 - # @!attribute [rw] page_size - # @return [::Integer] - # The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # A page token, received from a previous `ListEventCreateRules` call. Provide - # this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListEventCreateRules` - # must match the call that provided the page token. - class ListEventCreateRulesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListEventCreateRules RPC. - # @!attribute [rw] event_create_rules - # @return [::Array<::Google::Analytics::Admin::V1alpha::EventCreateRule>] - # List of EventCreateRules. These will be ordered stably, but in an arbitrary - # order. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListEventCreateRulesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateEventEditRule RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/123/dataStreams/456 - # @!attribute [rw] event_edit_rule - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # Required. The EventEditRule to create. - class CreateEventEditRuleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateEventEditRule RPC. - # @!attribute [rw] event_edit_rule - # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] - # Required. The EventEditRule to update. - # The resource's `name` field is used to identify the EventEditRule to be - # updated. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to be updated. Field names must be in snake - # case (e.g., "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateEventEditRuleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteEventEditRule RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Example format: properties/123/dataStreams/456/eventEditRules/789 - class DeleteEventEditRuleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetEventEditRule RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the EventEditRule to get. - # Example format: properties/123/dataStreams/456/eventEditRules/789 - class GetEventEditRuleRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListEventEditRules RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/123/dataStreams/456 - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200 (higher values will be coerced to the maximum). - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListEventEditRules` call. - # Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListEventEditRules` - # must match the call that provided the page token. - class ListEventEditRulesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListEventEditRules RPC. - # @!attribute [rw] event_edit_rules - # @return [::Array<::Google::Analytics::Admin::V1alpha::EventEditRule>] - # List of EventEditRules. These will be ordered stably, but in an arbitrary - # order. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListEventEditRulesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ReorderEventEditRules RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Example format: properties/123/dataStreams/456 - # @!attribute [rw] event_edit_rules - # @return [::Array<::String>] - # Required. EventEditRule resource names for the specified data stream, in - # the needed processing order. All EventEditRules for the stream must be - # present in the list. - class ReorderEventEditRulesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateRollupProperty RPC. - # @!attribute [rw] rollup_property - # @return [::Google::Analytics::Admin::V1alpha::Property] - # Required. The roll-up property to create. - # @!attribute [rw] source_properties - # @return [::Array<::String>] - # Optional. The resource names of properties that will be sources to the - # created roll-up property. - class CreateRollupPropertyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for CreateRollupProperty RPC. - # @!attribute [rw] rollup_property - # @return [::Google::Analytics::Admin::V1alpha::Property] - # The created roll-up property. - # @!attribute [rw] rollup_property_source_links - # @return [::Array<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] - # The created roll-up property source links. - class CreateRollupPropertyResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetRollupPropertySourceLink RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the roll-up property source link to lookup. - # Format: - # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} - # Example: properties/123/rollupPropertySourceLinks/456 - class GetRollupPropertySourceLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListRollupPropertySourceLinks RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the roll-up property to list roll-up property source - # links under. Format: properties/\\{property_id} Example: properties/1234 - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. - # If unspecified, at most 50 resources will be returned. - # The maximum value is 200; (higher values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous - # `ListRollupPropertySourceLinks` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListRollupPropertySourceLinks` must match the call that provided the page - # token. - class ListRollupPropertySourceLinksRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListRollupPropertySourceLinks RPC. - # @!attribute [rw] rollup_property_source_links - # @return [::Array<::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink>] - # List of RollupPropertySourceLinks. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. - # If this field is omitted, there are no subsequent pages. - class ListRollupPropertySourceLinksResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateRollupPropertySourceLink RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Format: properties/\\{property_id} - # Example: properties/1234 - # @!attribute [rw] rollup_property_source_link - # @return [::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink] - # Required. The roll-up property source link to create. - class CreateRollupPropertySourceLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteRollupPropertySourceLink RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Format: - # properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link_id} - # Example: properties/1234/rollupPropertySourceLinks/5678 - class DeleteRollupPropertySourceLinkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateSubproperty RPC. - # @!attribute [rw] subproperty - # @return [::Google::Analytics::Admin::V1alpha::Property] - # Required. The subproperty to create. - # @!attribute [rw] subproperty_event_filter - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # Optional. The subproperty event filter to create on an ordinary property. - # @!attribute [rw] custom_dimension_and_metric_synchronization_mode - # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig::SynchronizationMode] - # Optional. The subproperty feature synchronization mode for Custom - # Dimensions and Metrics - class ProvisionSubpropertyRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ProvisionSubproperty RPC. - # @!attribute [rw] subproperty - # @return [::Google::Analytics::Admin::V1alpha::Property] - # The created subproperty. - # @!attribute [rw] subproperty_event_filter - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # The created subproperty event filter. - class ProvisionSubpropertyResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateSubpropertyEventFilter RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The ordinary property for which to create a subproperty event - # filter. Format: properties/property_id Example: properties/123 - # @!attribute [rw] subproperty_event_filter - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # Required. The subproperty event filter to create. - class CreateSubpropertyEventFilterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetSubpropertyEventFilter RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Resource name of the subproperty event filter to lookup. - # Format: - # properties/property_id/subpropertyEventFilters/subproperty_event_filter - # Example: properties/123/subpropertyEventFilters/456 - class GetSubpropertyEventFilterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListSubpropertyEventFilters RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Resource name of the ordinary property. - # Format: properties/property_id - # Example: properties/123 - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. If unspecified, - # at most 50 resources will be returned. The maximum value is 200; (higher - # values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous - # `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent - # page. When paginating, all other parameters provided to - # `ListSubpropertyEventFilters` must match the call that provided the page - # token. - class ListSubpropertyEventFiltersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListSubpropertyEventFilter RPC. - # @!attribute [rw] subproperty_event_filters - # @return [::Array<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter>] - # List of subproperty event filters. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. If - # this field is omitted, there are no subsequent pages. - class ListSubpropertyEventFiltersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateSubpropertyEventFilter RPC. - # @!attribute [rw] subproperty_event_filter - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter] - # Required. The subproperty event filter to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Required. The list of fields to update. Field names must be in snake case - # (for example, "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateSubpropertyEventFilterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteSubpropertyEventFilter RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Resource name of the subproperty event filter to delete. - # Format: - # properties/property_id/subpropertyEventFilters/subproperty_event_filter - # Example: properties/123/subpropertyEventFilters/456 - class DeleteSubpropertyEventFilterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for CreateReportingDataAnnotation RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The property for which to create a Reporting Data Annotation. - # Format: properties/property_id - # Example: properties/123 - # @!attribute [rw] reporting_data_annotation - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # Required. The Reporting Data Annotation to create. - class CreateReportingDataAnnotationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetReportingDataAnnotation RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Resource name of the Reporting Data Annotation to lookup. - # Format: - # properties/property_id/reportingDataAnnotations/reportingDataAnnotation - # Example: properties/123/reportingDataAnnotations/456 - class GetReportingDataAnnotationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListReportingDataAnnotation RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Resource name of the property. - # Format: properties/property_id - # Example: properties/123 - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter that restricts which reporting data annotations under the - # parent property are listed. - # - # Supported fields are: - # - # * 'name' - # * `title` - # * `description` - # * `annotation_date` - # * `annotation_date_range` - # * `color` - # - # Additionally, this API provides the following helper functions: - # - # * annotation_duration() : the duration that this annotation marks, - # [durations](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/duration.proto). - # expect a numeric representation of seconds followed by an `s` suffix. - # * is_annotation_in_range(start_date, end_date) : if the annotation is in - # the range specified by the `start_date` and `end_date`. The dates are in - # ISO-8601 format, for example `2031-06-28`. - # - # Supported operations: - # - # * `=` : equals - # * `!=` : not equals - # * `<` : less than - # * `>` : greater than - # * `<=` : less than or equals - # * `>=` : greater than or equals - # * `:` : has operator - # * `=~` : [regular expression](https://github.com/google/re2/wiki/Syntax) - # match - # * `!~` : [regular expression](https://github.com/google/re2/wiki/Syntax) - # does not match - # * `NOT` : Logical not - # * `AND` : Logical and - # * `OR` : Logical or - # - # Examples: - # - # 1. `title="Holiday Sale"` - # 2. `description=~"[Bb]ig [Gg]ame.*[Ss]ale"` - # 3. `is_annotation_in_range("2025-12-25", "2026-01-16") = true` - # 4. `annotation_duration() >= 172800s AND title:BOGO` - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. If unspecified, - # at most 50 resources will be returned. The maximum value is 200; (higher - # values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous - # `ListReportingDataAnnotations` call. Provide this to retrieve the - # subsequent page. When paginating, all other parameters provided to - # `ListReportingDataAnnotations` must match the call that provided the page - # token. - class ListReportingDataAnnotationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListReportingDataAnnotation RPC. - # @!attribute [rw] reporting_data_annotations - # @return [::Array<::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation>] - # List of Reporting Data Annotations. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. If - # this field is omitted, there are no subsequent pages. - class ListReportingDataAnnotationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateReportingDataAnnotation RPC. - # @!attribute [rw] reporting_data_annotation - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # Required. The Reporting Data Annotation to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. Field names must be in snake case - # (for example, "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateReportingDataAnnotationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for DeleteReportingDataAnnotation RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Resource name of the Reporting Data Annotation to delete. - # Format: - # properties/property_id/reportingDataAnnotations/reporting_data_annotation - # Example: properties/123/reportingDataAnnotations/456 - class DeleteReportingDataAnnotationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for SubmitUserDeletion RPC. - # @!attribute [rw] user_id - # @return [::String] - # Google Analytics [user - # ID](https://firebase.google.com/docs/analytics/userid). - # - # Note: The following fields are mutually exclusive: `user_id`, `client_id`, `app_instance_id`, `user_provided_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] client_id - # @return [::String] - # Google Analytics [client - # ID](https://support.google.com/analytics/answer/11593727). - # - # Note: The following fields are mutually exclusive: `client_id`, `user_id`, `app_instance_id`, `user_provided_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] app_instance_id - # @return [::String] - # Firebase [application instance - # ID](https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.html#getAppInstanceId). - # - # Note: The following fields are mutually exclusive: `app_instance_id`, `user_id`, `client_id`, `user_provided_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] user_provided_data - # @return [::String] - # [User-provided - # data](https://support.google.com/analytics/answer/14077171). May contain - # either one email address or one phone number. - # - # Email addresses should be normalized as such: - # - # * lowercase - # * remove periods before @ for gmail.com/googlemail.com addresses - # * remove all spaces - # - # Phone numbers should be normalized as such: - # - # * remove all non digit characters - # * add + prefix - # - # Note: The following fields are mutually exclusive: `user_provided_data`, `user_id`, `client_id`, `app_instance_id`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the property to submit user deletion for. - class SubmitUserDeletionRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for SubmitUserDeletion RPC. - # @!attribute [rw] deletion_request_time - # @return [::Google::Protobuf::Timestamp] - # Marks the moment for which all visitor data before this point should be - # deleted. This is set to the time at which the deletion request was - # received. - class SubmitUserDeletionResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetSubpropertySyncConfig RPC. - # @!attribute [rw] name - # @return [::String] - # Required. Resource name of the SubpropertySyncConfig to lookup. - # Format: - # properties/\\{ordinary_property_id}/subpropertySyncConfigs/\\{subproperty_id} - # Example: properties/1234/subpropertySyncConfigs/5678 - class GetSubpropertySyncConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for ListSubpropertySyncConfigs RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. Resource name of the property. - # Format: properties/property_id - # Example: properties/123 - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of resources to return. The service may return - # fewer than this value, even if there are additional pages. If unspecified, - # at most 50 resources will be returned. The maximum value is 200; (higher - # values will be coerced to the maximum) - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous - # `ListSubpropertySyncConfig` call. Provide this to retrieve the subsequent - # page. When paginating, all other parameters provided to - # `ListSubpropertySyncConfig` must match the call that provided the page - # token. - class ListSubpropertySyncConfigsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Response message for ListSubpropertySyncConfigs RPC. - # @!attribute [rw] subproperty_sync_configs - # @return [::Array<::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig>] - # List of `SubpropertySyncConfig` resources. - # @!attribute [rw] next_page_token - # @return [::String] - # A token, which can be sent as `page_token` to retrieve the next page. If - # this field is omitted, there are no subsequent pages. - class ListSubpropertySyncConfigsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateSubpropertySyncConfig RPC. - # @!attribute [rw] subproperty_sync_config - # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # Required. The `SubpropertySyncConfig` to update. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to update. Field names must be in snake case - # (for example, "field_to_update"). Omitted fields will not be updated. To - # replace the entire entity, use one path with the string "*" to match all - # fields. - class UpdateSubpropertySyncConfigRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetReportingIdentitySettings RPC. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/reportingIdentitySettings - # Example: "properties/1000/reportingIdentitySettings" - class GetReportingIdentitySettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for UpdateReportingIdentitySettings RPC. - # @!attribute [rw] reporting_identity_settings - # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # Required. The reporting identity settings to update. - # The settings' `name` field is used to identify the settings. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::FieldMask] - # Optional. The list of fields to be updated. Field names must be in snake - # case (for example, "field_to_update"). Omitted fields will not be updated. - # To replace the entire entity, use one path with the string "*" to match all - # fields. If omitted, the service will treat it as an implied field mask - # equivalent to all fields that are populated. - class UpdateReportingIdentitySettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Request message for GetUserProvidedDataSettings RPC - # @!attribute [rw] name - # @return [::String] - # Required. The name of the user provided data settings to retrieve. - # Format: properties/\\{property}/userProvidedDataSettings - class GetUserProvidedDataSettingsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb deleted file mode 100644 index 15c8f1fc5ef1..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb +++ /dev/null @@ -1,447 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Analytics - module Admin - module V1alpha - # A specific filter for a single dimension or metric. - # @!attribute [rw] string_filter - # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::StringFilter] - # A filter for a string-type dimension that matches a particular pattern. - # - # Note: The following fields are mutually exclusive: `string_filter`, `in_list_filter`, `numeric_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] in_list_filter - # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::InListFilter] - # A filter for a string dimension that matches a particular list of - # options. - # - # Note: The following fields are mutually exclusive: `in_list_filter`, `string_filter`, `numeric_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] numeric_filter - # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::NumericFilter] - # A filter for numeric or date values on a dimension or metric. - # - # Note: The following fields are mutually exclusive: `numeric_filter`, `string_filter`, `in_list_filter`, `between_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] between_filter - # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::BetweenFilter] - # A filter for numeric or date values between certain values on a dimension - # or metric. - # - # Note: The following fields are mutually exclusive: `between_filter`, `string_filter`, `in_list_filter`, `numeric_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] field_name - # @return [::String] - # Required. Immutable. The dimension name or metric name to filter. If the - # field name refers to a custom dimension or metric, a scope prefix will be - # added to the front of the custom dimensions or metric name. For more on - # scope prefixes or custom dimensions/metrics, reference the [Google - # Analytics Data API documentation] - # (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). - # @!attribute [rw] at_any_point_in_time - # @return [::Boolean] - # Optional. Indicates whether this filter needs dynamic evaluation or not. If - # set to true, users join the Audience if they ever met the condition (static - # evaluation). If unset or set to false, user evaluation for an Audience is - # dynamic; users are added to an Audience when they meet the conditions and - # then removed when they no longer meet them. - # - # This can only be set when Audience scope is ACROSS_ALL_SESSIONS. - # @!attribute [rw] in_any_n_day_period - # @return [::Integer] - # Optional. If set, specifies the time window for which to evaluate data in - # number of days. If not set, then audience data is evaluated against - # lifetime data (For example, infinite time window). - # - # For example, if set to 1 day, only the current day's data is evaluated. The - # reference point is the current day when at_any_point_in_time is unset or - # false. - # - # It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be - # greater than 60 days. - class AudienceDimensionOrMetricFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A filter for a string-type dimension that matches a particular pattern. - # @!attribute [rw] match_type - # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::StringFilter::MatchType] - # Required. The match type for the string filter. - # @!attribute [rw] value - # @return [::String] - # Required. The string value to be matched against. - # @!attribute [rw] case_sensitive - # @return [::Boolean] - # Optional. If true, the match is case-sensitive. If false, the match is - # case-insensitive. - class StringFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The match type for the string filter. - module MatchType - # Unspecified - MATCH_TYPE_UNSPECIFIED = 0 - - # Exact match of the string value. - EXACT = 1 - - # Begins with the string value. - BEGINS_WITH = 2 - - # Ends with the string value. - ENDS_WITH = 3 - - # Contains the string value. - CONTAINS = 4 - - # Full regular expression matches with the string value. - FULL_REGEXP = 5 - end - end - - # A filter for a string dimension that matches a particular list of options. - # @!attribute [rw] values - # @return [::Array<::String>] - # Required. The list of possible string values to match against. Must be - # non-empty. - # @!attribute [rw] case_sensitive - # @return [::Boolean] - # Optional. If true, the match is case-sensitive. If false, the match is - # case-insensitive. - class InListFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # To represent a number. - # @!attribute [rw] int64_value - # @return [::Integer] - # Integer value. - # - # Note: The following fields are mutually exclusive: `int64_value`, `double_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] double_value - # @return [::Float] - # Double value. - # - # Note: The following fields are mutually exclusive: `double_value`, `int64_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class NumericValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A filter for numeric or date values on a dimension or metric. - # @!attribute [rw] operation - # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::NumericFilter::Operation] - # Required. The operation applied to a numeric filter. - # @!attribute [rw] value - # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::NumericValue] - # Required. The numeric or date value to match against. - class NumericFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The operation applied to a numeric filter. - module Operation - # Unspecified. - OPERATION_UNSPECIFIED = 0 - - # Equal. - EQUAL = 1 - - # Less than. - LESS_THAN = 2 - - # Greater than. - GREATER_THAN = 4 - end - end - - # A filter for numeric or date values between certain values on a dimension - # or metric. - # @!attribute [rw] from_value - # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::NumericValue] - # Required. Begins with this number, inclusive. - # @!attribute [rw] to_value - # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter::NumericValue] - # Required. Ends with this number, inclusive. - class BetweenFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A filter that matches events of a single event name. If an event parameter - # is specified, only the subset of events that match both the single event name - # and the parameter filter expressions match this event filter. - # @!attribute [rw] event_name - # @return [::String] - # Required. Immutable. The name of the event to match against. - # @!attribute [rw] event_parameter_filter_expression - # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpression] - # Optional. If specified, this filter matches events that match both the - # single event name and the parameter filter expressions. AudienceEventFilter - # inside the parameter filter expression cannot be set (For example, nested - # event filters are not supported). This should be a single and_group of - # dimension_or_metric_filter or not_expression; ANDs of ORs are not - # supported. Also, if it includes a filter for "eventCount", only that one - # will be considered; all the other filters will be ignored. - class AudienceEventFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A logical expression of Audience dimension, metric, or event filters. - # @!attribute [rw] and_group - # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpressionList] - # A list of expressions to be AND’ed together. It can only contain - # AudienceFilterExpressions with or_group. This must be set for the top - # level AudienceFilterExpression. - # - # Note: The following fields are mutually exclusive: `and_group`, `or_group`, `not_expression`, `dimension_or_metric_filter`, `event_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] or_group - # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpressionList] - # A list of expressions to OR’ed together. It cannot contain - # AudienceFilterExpressions with and_group or or_group. - # - # Note: The following fields are mutually exclusive: `or_group`, `and_group`, `not_expression`, `dimension_or_metric_filter`, `event_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] not_expression - # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpression] - # A filter expression to be NOT'ed (For example, inverted, complemented). - # It can only include a dimension_or_metric_filter. This cannot be set on - # the top level AudienceFilterExpression. - # - # Note: The following fields are mutually exclusive: `not_expression`, `and_group`, `or_group`, `dimension_or_metric_filter`, `event_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] dimension_or_metric_filter - # @return [::Google::Analytics::Admin::V1alpha::AudienceDimensionOrMetricFilter] - # A filter on a single dimension or metric. This cannot be set on the top - # level AudienceFilterExpression. - # - # Note: The following fields are mutually exclusive: `dimension_or_metric_filter`, `and_group`, `or_group`, `not_expression`, `event_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] event_filter - # @return [::Google::Analytics::Admin::V1alpha::AudienceEventFilter] - # Creates a filter that matches a specific event. This cannot be set on the - # top level AudienceFilterExpression. - # - # Note: The following fields are mutually exclusive: `event_filter`, `and_group`, `or_group`, `not_expression`, `dimension_or_metric_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class AudienceFilterExpression - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A list of Audience filter expressions. - # @!attribute [rw] filter_expressions - # @return [::Array<::Google::Analytics::Admin::V1alpha::AudienceFilterExpression>] - # A list of Audience filter expressions. - class AudienceFilterExpressionList - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a simple filter that a user must satisfy to be a member of the - # Audience. - # @!attribute [rw] scope - # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterScope] - # Required. Immutable. Specifies the scope for this filter. - # @!attribute [rw] filter_expression - # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpression] - # Required. Immutable. A logical expression of Audience dimension, metric, or - # event filters. - class AudienceSimpleFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines filters that must occur in a specific order for the user to be a - # member of the Audience. - # @!attribute [rw] scope - # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterScope] - # Required. Immutable. Specifies the scope for this filter. - # @!attribute [rw] sequence_maximum_duration - # @return [::Google::Protobuf::Duration] - # Optional. Defines the time period in which the whole sequence must occur. - # @!attribute [rw] sequence_steps - # @return [::Array<::Google::Analytics::Admin::V1alpha::AudienceSequenceFilter::AudienceSequenceStep>] - # Required. An ordered sequence of steps. A user must complete each step in - # order to join the sequence filter. - class AudienceSequenceFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A condition that must occur in the specified step order for this user - # to match the sequence. - # @!attribute [rw] scope - # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterScope] - # Required. Immutable. Specifies the scope for this step. - # @!attribute [rw] immediately_follows - # @return [::Boolean] - # Optional. If true, the event satisfying this step must be the very next - # event after the event satisfying the last step. If unset or false, this - # step indirectly follows the prior step; for example, there may be - # events between the prior step and this step. It is ignored for the - # first step. - # @!attribute [rw] constraint_duration - # @return [::Google::Protobuf::Duration] - # Optional. When set, this step must be satisfied within the - # constraint_duration of the previous step (For example, t[i] - t[i-1] <= - # constraint_duration). If not set, there is no duration requirement (the - # duration is effectively unlimited). It is ignored for the first step. - # @!attribute [rw] filter_expression - # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterExpression] - # Required. Immutable. A logical expression of Audience dimension, metric, - # or event filters in each step. - class AudienceSequenceStep - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A clause for defining either a simple or sequence filter. A filter can be - # inclusive (For example, users satisfying the filter clause are included in - # the Audience) or exclusive (For example, users satisfying the filter clause - # are excluded from the Audience). - # @!attribute [rw] simple_filter - # @return [::Google::Analytics::Admin::V1alpha::AudienceSimpleFilter] - # A simple filter that a user must satisfy to be a member of the Audience. - # - # Note: The following fields are mutually exclusive: `simple_filter`, `sequence_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] sequence_filter - # @return [::Google::Analytics::Admin::V1alpha::AudienceSequenceFilter] - # Filters that must occur in a specific order for the user to be a member - # of the Audience. - # - # Note: The following fields are mutually exclusive: `sequence_filter`, `simple_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] clause_type - # @return [::Google::Analytics::Admin::V1alpha::AudienceFilterClause::AudienceClauseType] - # Required. Specifies whether this is an include or exclude filter clause. - class AudienceFilterClause - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Specifies whether this is an include or exclude filter clause. - module AudienceClauseType - # Unspecified clause type. - AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0 - - # Users will be included in the Audience if the filter clause is met. - INCLUDE = 1 - - # Users will be excluded from the Audience if the filter clause is met. - EXCLUDE = 2 - end - end - - # Specifies an event to log when a user joins the Audience. - # @!attribute [rw] event_name - # @return [::String] - # Required. The event name that will be logged. - # @!attribute [rw] log_condition - # @return [::Google::Analytics::Admin::V1alpha::AudienceEventTrigger::LogCondition] - # Required. When to log the event. - class AudienceEventTrigger - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Determines when to log the event. - module LogCondition - # Log condition is not specified. - LOG_CONDITION_UNSPECIFIED = 0 - - # The event should be logged only when a user is joined. - AUDIENCE_JOINED = 1 - - # The event should be logged whenever the Audience condition is met, even - # if the user is already a member of the Audience. - AUDIENCE_MEMBERSHIP_RENEWED = 2 - end - end - - # A resource message representing an Audience. - # @!attribute [r] name - # @return [::String] - # Output only. The resource name for this Audience resource. - # Format: properties/\\{propertyId}/audiences/\\{audienceId} - # @!attribute [rw] display_name - # @return [::String] - # Required. The display name of the Audience. - # @!attribute [rw] description - # @return [::String] - # Required. The description of the Audience. - # @!attribute [rw] membership_duration_days - # @return [::Integer] - # Required. Immutable. The duration a user should stay in an Audience. It - # cannot be set to more than 540 days. - # @!attribute [r] ads_personalization_enabled - # @return [::Boolean] - # Output only. It is automatically set by GA to false if this is an NPA - # Audience and is excluded from ads personalization. - # @!attribute [rw] event_trigger - # @return [::Google::Analytics::Admin::V1alpha::AudienceEventTrigger] - # Optional. Specifies an event to log when a user joins the Audience. If not - # set, no event is logged when a user joins the Audience. - # @!attribute [rw] exclusion_duration_mode - # @return [::Google::Analytics::Admin::V1alpha::Audience::AudienceExclusionDurationMode] - # Immutable. Specifies how long an exclusion lasts for users that meet the - # exclusion filter. It is applied to all EXCLUDE filter clauses and is - # ignored when there is no EXCLUDE filter clause in the Audience. - # @!attribute [rw] filter_clauses - # @return [::Array<::Google::Analytics::Admin::V1alpha::AudienceFilterClause>] - # Required. Immutable. Unordered list. Filter clauses that define the - # Audience. All clauses will be AND’ed together. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when the Audience was created. - class Audience - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Specifies how long an exclusion lasts for users that meet the exclusion - # filter. - module AudienceExclusionDurationMode - # Not specified. - AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0 - - # Exclude users from the Audience during periods when they meet the - # filter clause. - EXCLUDE_TEMPORARILY = 1 - - # Exclude users from the Audience if they've ever met the filter clause. - EXCLUDE_PERMANENTLY = 2 - end - end - - # Specifies how to evaluate users for joining an Audience. - module AudienceFilterScope - # Scope is not specified. - AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0 - - # User joins the Audience if the filter condition is met within one - # event. - AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1 - - # User joins the Audience if the filter condition is met within one - # session. - AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2 - - # User joins the Audience if the filter condition is met by any event - # across any session. - AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3 - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb deleted file mode 100644 index 7d063995ee9b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb +++ /dev/null @@ -1,179 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Analytics - module Admin - module V1alpha - # A specific filter for a single dimension. - # @!attribute [rw] string_filter - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilter::StringFilter] - # A filter for a string-type dimension that matches a particular pattern. - # - # Note: The following fields are mutually exclusive: `string_filter`, `in_list_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] in_list_filter - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilter::InListFilter] - # A filter for a string dimension that matches a particular list of - # options. - # - # Note: The following fields are mutually exclusive: `in_list_filter`, `string_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] field_name - # @return [::String] - # Required. Immutable. The dimension name to filter. - class ChannelGroupFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Filter where the field value is a String. The match is case insensitive. - # @!attribute [rw] match_type - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilter::StringFilter::MatchType] - # Required. The match type for the string filter. - # @!attribute [rw] value - # @return [::String] - # Required. The string value to be matched against. - class StringFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # How the filter will be used to determine a match. - module MatchType - # Default match type. - MATCH_TYPE_UNSPECIFIED = 0 - - # Exact match of the string value. - EXACT = 1 - - # Begins with the string value. - BEGINS_WITH = 2 - - # Ends with the string value. - ENDS_WITH = 3 - - # Contains the string value. - CONTAINS = 4 - - # Full regular expression match with the string value. - FULL_REGEXP = 5 - - # Partial regular expression match with the string value. - PARTIAL_REGEXP = 6 - end - end - - # A filter for a string dimension that matches a particular list of options. - # The match is case insensitive. - # @!attribute [rw] values - # @return [::Array<::String>] - # Required. The list of possible string values to match against. Must be - # non-empty. - class InListFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A logical expression of Channel Group dimension filters. - # @!attribute [rw] and_group - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilterExpressionList] - # A list of expressions to be AND’ed together. It can only contain - # ChannelGroupFilterExpressions with or_group. This must be set for the - # top level ChannelGroupFilterExpression. - # - # Note: The following fields are mutually exclusive: `and_group`, `or_group`, `not_expression`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] or_group - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilterExpressionList] - # A list of expressions to OR’ed together. It cannot contain - # ChannelGroupFilterExpressions with and_group or or_group. - # - # Note: The following fields are mutually exclusive: `or_group`, `and_group`, `not_expression`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] not_expression - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilterExpression] - # A filter expression to be NOT'ed (that is inverted, complemented). It - # can only include a dimension_or_metric_filter. This cannot be set on the - # top level ChannelGroupFilterExpression. - # - # Note: The following fields are mutually exclusive: `not_expression`, `and_group`, `or_group`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] filter - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilter] - # A filter on a single dimension. This cannot be set on the top - # level ChannelGroupFilterExpression. - # - # Note: The following fields are mutually exclusive: `filter`, `and_group`, `or_group`, `not_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class ChannelGroupFilterExpression - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A list of Channel Group filter expressions. - # @!attribute [rw] filter_expressions - # @return [::Array<::Google::Analytics::Admin::V1alpha::ChannelGroupFilterExpression>] - # A list of Channel Group filter expressions. - class ChannelGroupFilterExpressionList - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The rules that govern how traffic is grouped into one channel. - # @!attribute [rw] display_name - # @return [::String] - # Required. Customer defined display name for the channel. - # @!attribute [rw] expression - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroupFilterExpression] - # Required. The Filter Expression that defines the Grouping Rule. - class GroupingRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A resource message representing a Channel Group. - # @!attribute [r] name - # @return [::String] - # Output only. The resource name for this Channel Group resource. - # Format: properties/\\{property}/channelGroups/\\{channel_group} - # @!attribute [rw] display_name - # @return [::String] - # Required. The display name of the Channel Group. Max length of 80 - # characters. - # @!attribute [rw] description - # @return [::String] - # The description of the Channel Group. Max length of 256 characters. - # @!attribute [rw] grouping_rule - # @return [::Array<::Google::Analytics::Admin::V1alpha::GroupingRule>] - # Required. The grouping rules of channels. Maximum number of rules is 50. - # @!attribute [r] system_defined - # @return [::Boolean] - # Output only. If true, then this channel group is the Default Channel Group - # predefined by Google Analytics. Display name and grouping rules cannot be - # updated for this channel group. - # @!attribute [rw] primary - # @return [::Boolean] - # Optional. If true, this channel group will be used as the default channel - # group for reports. Only one channel group can be set as `primary` at any - # time. If the `primary` field gets set on a channel group, it will get unset - # on the previous primary channel group. - # - # The Google Analytics predefined channel group is the primary by default. - class ChannelGroup - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb deleted file mode 100644 index ef60bd1da6bc..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb +++ /dev/null @@ -1,206 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Analytics - module Admin - module V1alpha - # Defines an event parameter to mutate. - # @!attribute [rw] parameter - # @return [::String] - # Required. The name of the parameter to mutate. - # This value must: - # * be less than 40 characters. - # * be unique across across all mutations within the rule - # * consist only of letters, digits or _ (underscores) - # For event edit rules, the name may also be set to 'event_name' to modify - # the event_name in place. - # @!attribute [rw] parameter_value - # @return [::String] - # Required. The value mutation to perform. - # * Must be less than 100 characters. - # * To specify a constant value for the param, use the value's string. - # * To copy value from another parameter, use syntax like - # "[[other_parameter]]" For more details, see this [help center - # article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). - class ParameterMutation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # An Event Create Rule defines conditions that will trigger the creation - # of an entirely new event based upon matched criteria of a source event. - # Additional mutations of the parameters from the source event can be defined. - # - # Unlike Event Edit rules, Event Creation Rules have no defined order. They - # will all be run independently. - # - # Event Edit and Event Create rules can't be used to modify an event created - # from an Event Create rule. - # @!attribute [r] name - # @return [::String] - # Output only. Resource name for this EventCreateRule resource. - # Format: - # properties/\\{property}/dataStreams/\\{data_stream}/eventCreateRules/\\{event_create_rule} - # @!attribute [rw] destination_event - # @return [::String] - # Required. The name of the new event to be created. - # - # This value must: - # * be less than 40 characters - # * consist only of letters, digits or _ (underscores) - # * start with a letter - # @!attribute [rw] event_conditions - # @return [::Array<::Google::Analytics::Admin::V1alpha::MatchingCondition>] - # Required. Must have at least one condition, and can have up to 10 max. - # Conditions on the source event must match for this rule to be applied. - # @!attribute [rw] source_copy_parameters - # @return [::Boolean] - # If true, the source parameters are copied to the new event. - # If false, or unset, all non-internal parameters are not copied from the - # source event. Parameter mutations are applied after the parameters have - # been copied. - # @!attribute [rw] parameter_mutations - # @return [::Array<::Google::Analytics::Admin::V1alpha::ParameterMutation>] - # Parameter mutations define parameter behavior on the new event, and - # are applied in order. - # A maximum of 20 mutations can be applied. - class EventCreateRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # An Event Edit Rule defines conditions that will trigger the creation of an - # entirely new event based upon matched criteria of a source event. Additional - # mutations of the parameters from the source event can be defined. - # - # Unlike Event Create rules, Event Edit Rules are applied in their defined - # order. - # - # Event Edit rules can't be used to modify an event created from an Event - # Create rule. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name for this EventEditRule resource. - # Format: - # properties/\\{property}/dataStreams/\\{data_stream}/eventEditRules/\\{event_edit_rule} - # @!attribute [rw] display_name - # @return [::String] - # Required. The display name of this event edit rule. Maximum of 255 - # characters. - # @!attribute [rw] event_conditions - # @return [::Array<::Google::Analytics::Admin::V1alpha::MatchingCondition>] - # Required. Conditions on the source event must match for this rule to be - # applied. Must have at least one condition, and can have up to 10 max. - # @!attribute [rw] parameter_mutations - # @return [::Array<::Google::Analytics::Admin::V1alpha::ParameterMutation>] - # Required. Parameter mutations define parameter behavior on the new event, - # and are applied in order. A maximum of 20 mutations can be applied. - # @!attribute [r] processing_order - # @return [::Integer] - # Output only. The order for which this rule will be processed. Rules with an - # order value lower than this will be processed before this rule, rules with - # an order value higher than this will be processed after this rule. New - # event edit rules will be assigned an order value at the end of the order. - # - # This value does not apply to event create rules. - class EventEditRule - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Defines a condition for when an Event Edit or Event Creation rule applies to - # an event. - # @!attribute [rw] field - # @return [::String] - # Required. The name of the field that is compared against for the condition. - # If 'event_name' is specified this condition will apply to the name of the - # event. Otherwise the condition will apply to a parameter with the - # specified name. - # - # This value cannot contain spaces. - # @!attribute [rw] comparison_type - # @return [::Google::Analytics::Admin::V1alpha::MatchingCondition::ComparisonType] - # Required. The type of comparison to be applied to the value. - # @!attribute [rw] value - # @return [::String] - # Required. The value being compared against for this condition. The runtime - # implementation may perform type coercion of this value to evaluate this - # condition based on the type of the parameter value. - # @!attribute [rw] negated - # @return [::Boolean] - # Whether or not the result of the comparison should be negated. For example, - # if `negated` is true, then 'equals' comparisons would function as 'not - # equals'. - class MatchingCondition - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Comparison type for matching condition - module ComparisonType - # Unknown - COMPARISON_TYPE_UNSPECIFIED = 0 - - # Equals, case sensitive - EQUALS = 1 - - # Equals, case insensitive - EQUALS_CASE_INSENSITIVE = 2 - - # Contains, case sensitive - CONTAINS = 3 - - # Contains, case insensitive - CONTAINS_CASE_INSENSITIVE = 4 - - # Starts with, case sensitive - STARTS_WITH = 5 - - # Starts with, case insensitive - STARTS_WITH_CASE_INSENSITIVE = 6 - - # Ends with, case sensitive - ENDS_WITH = 7 - - # Ends with, case insensitive - ENDS_WITH_CASE_INSENSITIVE = 8 - - # Greater than - GREATER_THAN = 9 - - # Greater than or equal - GREATER_THAN_OR_EQUAL = 10 - - # Less than - LESS_THAN = 11 - - # Less than or equal - LESS_THAN_OR_EQUAL = 12 - - # regular expression. Only supported for web streams. - REGULAR_EXPRESSION = 13 - - # regular expression, case insensitive. Only supported for web streams. - REGULAR_EXPRESSION_CASE_INSENSITIVE = 14 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb deleted file mode 100644 index 3610896c0a8b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb +++ /dev/null @@ -1,166 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Analytics - module Admin - module V1alpha - # A specific filter for a single dimension - # @!attribute [rw] string_filter - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilter::StringFilter] - # A filter for a string-type dimension that matches a particular pattern. - # - # Note: The following fields are mutually exclusive: `string_filter`, `in_list_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] in_list_filter - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilter::InListFilter] - # A filter for a string dimension that matches a particular list of - # options. - # - # Note: The following fields are mutually exclusive: `in_list_filter`, `string_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] field_name - # @return [::String] - # Required. The dimension name to filter. - class ExpandedDataSetFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A filter for a string-type dimension that matches a particular pattern. - # @!attribute [rw] match_type - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilter::StringFilter::MatchType] - # Required. The match type for the string filter. - # @!attribute [rw] value - # @return [::String] - # Required. The string value to be matched against. - # @!attribute [rw] case_sensitive - # @return [::Boolean] - # Optional. If true, the match is case-sensitive. If false, the match is - # case-insensitive. - # Must be true when match_type is EXACT. - # Must be false when match_type is CONTAINS. - class StringFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The match type for the string filter. - module MatchType - # Unspecified - MATCH_TYPE_UNSPECIFIED = 0 - - # Exact match of the string value. - EXACT = 1 - - # Contains the string value. - CONTAINS = 2 - end - end - - # A filter for a string dimension that matches a particular list of options. - # @!attribute [rw] values - # @return [::Array<::String>] - # Required. The list of possible string values to match against. Must be - # non-empty. - # @!attribute [rw] case_sensitive - # @return [::Boolean] - # Optional. If true, the match is case-sensitive. If false, the match is - # case-insensitive. - # Must be true. - class InListFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A logical expression of EnhancedDataSet dimension filters. - # @!attribute [rw] and_group - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilterExpressionList] - # A list of expressions to be AND’ed together. It must contain a - # ExpandedDataSetFilterExpression with either not_expression or - # dimension_filter. This must be set for the top level - # ExpandedDataSetFilterExpression. - # - # Note: The following fields are mutually exclusive: `and_group`, `not_expression`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] not_expression - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilterExpression] - # A filter expression to be NOT'ed (that is, inverted, complemented). It - # must include a dimension_filter. This cannot be set on the - # top level ExpandedDataSetFilterExpression. - # - # Note: The following fields are mutually exclusive: `not_expression`, `and_group`, `filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] filter - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilter] - # A filter on a single dimension. This cannot be set on the top - # level ExpandedDataSetFilterExpression. - # - # Note: The following fields are mutually exclusive: `filter`, `and_group`, `not_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class ExpandedDataSetFilterExpression - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A list of ExpandedDataSet filter expressions. - # @!attribute [rw] filter_expressions - # @return [::Array<::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilterExpression>] - # A list of ExpandedDataSet filter expressions. - class ExpandedDataSetFilterExpressionList - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A resource message representing an `ExpandedDataSet`. - # @!attribute [r] name - # @return [::String] - # Output only. The resource name for this ExpandedDataSet resource. - # Format: properties/\\{property_id}/expandedDataSets/\\{expanded_data_set} - # @!attribute [rw] display_name - # @return [::String] - # Required. The display name of the ExpandedDataSet. - # Max 200 chars. - # @!attribute [rw] description - # @return [::String] - # Optional. The description of the ExpandedDataSet. - # Max 50 chars. - # @!attribute [rw] dimension_names - # @return [::Array<::String>] - # Immutable. The list of dimensions included in the ExpandedDataSet. - # See the [API - # Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - # for the list of dimension names. - # @!attribute [rw] metric_names - # @return [::Array<::String>] - # Immutable. The list of metrics included in the ExpandedDataSet. - # See the [API - # Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - # for the list of dimension names. - # @!attribute [rw] dimension_filter_expression - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSetFilterExpression] - # Immutable. A logical expression of ExpandedDataSet filters applied to - # dimension included in the ExpandedDataSet. This filter is used to reduce - # the number of rows and thus the chance of encountering `other` row. - # @!attribute [r] data_collection_start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when expanded data set began (or will begin) collecing - # data. - class ExpandedDataSet - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb deleted file mode 100644 index 6fabb98c56f1..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/resources.rb +++ /dev/null @@ -1,2181 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Analytics - module Admin - module V1alpha - # A resource message representing a Google Analytics account. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name of this account. - # Format: accounts/\\{account} - # Example: "accounts/100" - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when this account was originally created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when account payload fields were last updated. - # @!attribute [rw] display_name - # @return [::String] - # Required. Human-readable display name for this account. - # @!attribute [rw] region_code - # @return [::String] - # Country of business. Must be a Unicode CLDR region code. - # @!attribute [r] deleted - # @return [::Boolean] - # Output only. Indicates whether this Account is soft-deleted or not. Deleted - # accounts are excluded from List results unless specifically requested. - # @!attribute [r] gmp_organization - # @return [::String] - # Output only. The URI for a Google Marketing Platform organization resource. - # Only set when this account is connected to a GMP organization. - # Format: marketingplatformadmin.googleapis.com/organizations/\\{org_id} - class Account - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A resource message representing a Google Analytics property. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name of this property. - # Format: properties/\\{property_id} - # Example: "properties/1000" - # @!attribute [rw] property_type - # @return [::Google::Analytics::Admin::V1alpha::PropertyType] - # Immutable. The property type for this Property resource. When creating a - # property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - # "ORDINARY_PROPERTY" will be implied. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when the entity was originally created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when entity payload fields were last updated. - # @!attribute [rw] parent - # @return [::String] - # Immutable. Resource name of this property's logical parent. - # - # Note: The Property-Moving UI can be used to change the parent. - # Format: accounts/\\{account}, properties/\\{property} - # Example: "accounts/100", "properties/101" - # @!attribute [rw] display_name - # @return [::String] - # Required. Human-readable display name for this property. - # - # The max allowed display name length is 100 UTF-16 code units. - # @!attribute [rw] industry_category - # @return [::Google::Analytics::Admin::V1alpha::IndustryCategory] - # Industry associated with this property - # Example: AUTOMOTIVE, FOOD_AND_DRINK - # @!attribute [rw] time_zone - # @return [::String] - # Required. Reporting Time Zone, used as the day boundary for reports, - # regardless of where the data originates. If the time zone honors DST, - # Analytics will automatically adjust for the changes. - # - # NOTE: Changing the time zone only affects data going forward, and is not - # applied retroactively. - # - # Format: https://www.iana.org/time-zones - # Example: "America/Los_Angeles" - # @!attribute [rw] currency_code - # @return [::String] - # The currency type used in reports involving monetary values. - # - # - # Format: https://en.wikipedia.org/wiki/ISO_4217 - # Examples: "USD", "EUR", "JPY" - # @!attribute [r] service_level - # @return [::Google::Analytics::Admin::V1alpha::ServiceLevel] - # Output only. The Google Analytics service level that applies to this - # property. - # @!attribute [r] delete_time - # @return [::Google::Protobuf::Timestamp] - # Output only. If set, the time at which this property was trashed. If not - # set, then this property is not currently in the trash can. - # @!attribute [r] expire_time - # @return [::Google::Protobuf::Timestamp] - # Output only. If set, the time at which this trashed property will be - # permanently deleted. If not set, then this property is not currently in the - # trash can and is not slated to be deleted. - # @!attribute [rw] account - # @return [::String] - # Immutable. The resource name of the parent account - # Format: accounts/\\{account_id} - # Example: "accounts/123" - class Property - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A resource message representing a data stream. - # @!attribute [rw] web_stream_data - # @return [::Google::Analytics::Admin::V1alpha::DataStream::WebStreamData] - # Data specific to web streams. Must be populated if type is - # WEB_DATA_STREAM. - # - # Note: The following fields are mutually exclusive: `web_stream_data`, `android_app_stream_data`, `ios_app_stream_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] android_app_stream_data - # @return [::Google::Analytics::Admin::V1alpha::DataStream::AndroidAppStreamData] - # Data specific to Android app streams. Must be populated if type is - # ANDROID_APP_DATA_STREAM. - # - # Note: The following fields are mutually exclusive: `android_app_stream_data`, `web_stream_data`, `ios_app_stream_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] ios_app_stream_data - # @return [::Google::Analytics::Admin::V1alpha::DataStream::IosAppStreamData] - # Data specific to iOS app streams. Must be populated if type is - # IOS_APP_DATA_STREAM. - # - # Note: The following fields are mutually exclusive: `ios_app_stream_data`, `web_stream_data`, `android_app_stream_data`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name of this Data Stream. - # Format: properties/\\{property_id}/dataStreams/\\{stream_id} - # Example: "properties/1000/dataStreams/2000" - # @!attribute [rw] type - # @return [::Google::Analytics::Admin::V1alpha::DataStream::DataStreamType] - # Required. Immutable. The type of this DataStream resource. - # @!attribute [rw] display_name - # @return [::String] - # Human-readable display name for the Data Stream. - # - # Required for web data streams. - # - # The max allowed display name length is 255 UTF-16 code units. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when this stream was originally created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when stream payload fields were last updated. - class DataStream - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Data specific to web streams. - # @!attribute [r] measurement_id - # @return [::String] - # Output only. Analytics Measurement ID. - # - # Example: "G-1A2BCD345E" - # @!attribute [r] firebase_app_id - # @return [::String] - # Output only. ID of the corresponding web app in Firebase, if any. - # This ID can change if the web app is deleted and recreated. - # @!attribute [rw] default_uri - # @return [::String] - # Domain name of the web app being measured, or empty. - # Example: "http://www.google.com", "https://www.google.com" - class WebStreamData - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Data specific to Android app streams. - # @!attribute [r] firebase_app_id - # @return [::String] - # Output only. ID of the corresponding Android app in Firebase, if any. - # This ID can change if the Android app is deleted and recreated. - # @!attribute [rw] package_name - # @return [::String] - # Immutable. The package name for the app being measured. - # Example: "com.example.myandroidapp" - class AndroidAppStreamData - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Data specific to iOS app streams. - # @!attribute [r] firebase_app_id - # @return [::String] - # Output only. ID of the corresponding iOS app in Firebase, if any. - # This ID can change if the iOS app is deleted and recreated. - # @!attribute [rw] bundle_id - # @return [::String] - # Required. Immutable. The Apple App Store Bundle ID for the app - # Example: "com.example.myiosapp" - class IosAppStreamData - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The type of the data stream. - module DataStreamType - # Type unknown or not specified. - DATA_STREAM_TYPE_UNSPECIFIED = 0 - - # Web data stream. - WEB_DATA_STREAM = 1 - - # Android app data stream. - ANDROID_APP_DATA_STREAM = 2 - - # iOS app data stream. - IOS_APP_DATA_STREAM = 3 - end - end - - # A link between a Google Analytics property and a Firebase project. - # @!attribute [rw] name - # @return [::String] - # Identifier. Example format: properties/1234/firebaseLinks/5678 - # @!attribute [rw] project - # @return [::String] - # Immutable. Firebase project resource name. When creating a FirebaseLink, - # you may provide this resource name using either a project number or project - # ID. Once this resource has been created, returned FirebaseLinks will always - # have a project_name that contains a project number. - # - # Format: 'projects/\\{project number}' - # Example: 'projects/1234' - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when this FirebaseLink was originally created. - class FirebaseLink - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Read-only resource with the tag for sending data from a website to a - # DataStream. Only present for web DataStream resources. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name for this GlobalSiteTag resource. - # Format: properties/\\{property_id}/dataStreams/\\{stream_id}/globalSiteTag - # Example: "properties/123/dataStreams/456/globalSiteTag" - # @!attribute [rw] snippet - # @return [::String] - # Immutable. JavaScript code snippet to be pasted as the first item into the - # head tag of every webpage to measure. - class GlobalSiteTag - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A link between a Google Analytics property and a Google Ads account. - # @!attribute [rw] name - # @return [::String] - # Identifier. Format: - # properties/\\{propertyId}/googleAdsLinks/\\{googleAdsLinkId} - # - # Note: googleAdsLinkId is not the Google Ads customer ID. - # @!attribute [rw] customer_id - # @return [::String] - # Immutable. Google Ads customer ID. - # @!attribute [r] can_manage_clients - # @return [::Boolean] - # Output only. If true, this link is for a Google Ads manager account. - # @!attribute [rw] ads_personalization_enabled - # @return [::Google::Protobuf::BoolValue] - # Enable personalized advertising features with this integration. - # Automatically publish my Google Analytics audience lists and Google - # Analytics remarketing events/parameters to the linked Google Ads account. - # If this field is not set on create/update, it will be defaulted to true. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when this link was originally created. - # @!attribute [r] update_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when this link was last updated. - # @!attribute [r] creator_email_address - # @return [::String] - # Output only. Email address of the user that created the link. - # An empty string will be returned if the email address can't be retrieved. - class GoogleAdsLink - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A resource message representing data sharing settings of a Google Analytics - # account. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name. - # Format: accounts/\\{account}/dataSharingSettings - # Example: "accounts/1000/dataSharingSettings" - # @!attribute [rw] sharing_with_google_support_enabled - # @return [::Boolean] - # Allows Google technical support representatives access to your Google - # Analytics data and account when necessary to provide service and find - # solutions to technical issues. - # - # This field maps to the "Technical support" field in the Google Analytics - # Admin UI. - # @!attribute [rw] sharing_with_google_assigned_sales_enabled - # @return [::Boolean] - # Allows Google access to your Google Analytics account data, including - # account usage and configuration data, product spending, and users - # associated with your Google Analytics account, so that Google can help you - # make the most of Google products, providing you with insights, offers, - # recommendations, and optimization tips across Google Analytics and other - # Google products for business. - # - # This field maps to the "Recommendations for your business" field in the - # Google Analytics Admin UI. - # @!attribute [rw] sharing_with_google_any_sales_enabled - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Boolean] - # Deprecated. This field is no longer used and always returns false. - # @!attribute [rw] sharing_with_google_products_enabled - # @return [::Boolean] - # Allows Google to use the data to improve other Google products or services. - # - # This fields maps to the "Google products & services" field in the Google - # Analytics Admin UI. - # @!attribute [rw] sharing_with_others_enabled - # @return [::Boolean] - # Enable features like predictions, modeled data, and benchmarking that can - # provide you with richer business insights when you contribute aggregated - # measurement data. The data you share (including information about the - # property from which it is shared) is aggregated and de-identified before - # being used to generate business insights. - # - # This field maps to the "Modeling contributions & business insights" field - # in the Google Analytics Admin UI. - class DataSharingSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A virtual resource representing an overview of an account and - # all its child Google Analytics properties. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name for this account summary. - # Format: accountSummaries/\\{account_id} - # Example: "accountSummaries/1000" - # @!attribute [rw] account - # @return [::String] - # Resource name of account referred to by this account summary - # Format: accounts/\\{account_id} - # Example: "accounts/1000" - # @!attribute [rw] display_name - # @return [::String] - # Display name for the account referred to in this account summary. - # @!attribute [rw] property_summaries - # @return [::Array<::Google::Analytics::Admin::V1alpha::PropertySummary>] - # List of summaries for child accounts of this account. - class AccountSummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A virtual resource representing metadata for a Google Analytics property. - # @!attribute [rw] property - # @return [::String] - # Resource name of property referred to by this property summary - # Format: properties/\\{property_id} - # Example: "properties/1000" - # @!attribute [rw] display_name - # @return [::String] - # Display name for the property referred to in this property summary. - # @!attribute [rw] property_type - # @return [::Google::Analytics::Admin::V1alpha::PropertyType] - # The property's property type. - # @!attribute [rw] parent - # @return [::String] - # Resource name of this property's logical parent. - # - # Note: The Property-Moving UI can be used to change the parent. - # Format: accounts/\\{account}, properties/\\{property} - # Example: "accounts/100", "properties/200" - # @!attribute [rw] can_edit - # @return [::Boolean] - # If true, then the user has a Google Analytics role that permits them to - # edit the property. - class PropertySummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A secret value used for sending hits to Measurement Protocol. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name of this secret. This secret may be a child of any - # type of stream. Format: - # properties/\\{property}/dataStreams/\\{dataStream}/measurementProtocolSecrets/\\{measurementProtocolSecret} - # @!attribute [rw] display_name - # @return [::String] - # Required. Human-readable display name for this secret. - # @!attribute [r] secret_value - # @return [::String] - # Output only. The measurement protocol secret value. Pass this value to the - # api_secret field of the Measurement Protocol API when sending hits to this - # secret's parent property. - class MeasurementProtocolSecret - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # SKAdNetwork conversion value schema of an iOS stream. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name of the schema. This will be child of ONLY an iOS - # stream, and there can be at most one such child under an iOS stream. - # Format: - # properties/\\{property}/dataStreams/\\{dataStream}/sKAdNetworkConversionValueSchema - # @!attribute [rw] postback_window_one - # @return [::Google::Analytics::Admin::V1alpha::PostbackWindow] - # Required. The conversion value settings for the first postback window. - # These differ from values for postback window two and three in that they - # contain a "Fine" grained conversion value (a numeric value). - # - # Conversion values for this postback window must be set. The other windows - # are optional and may inherit this window's settings if unset or disabled. - # @!attribute [rw] postback_window_two - # @return [::Google::Analytics::Admin::V1alpha::PostbackWindow] - # The conversion value settings for the second postback window. - # - # This field should only be configured if there is a need to define different - # conversion values for this postback window. - # - # If enable_postback_window_settings is set to false for this postback - # window, the values from postback_window_one will be used. - # @!attribute [rw] postback_window_three - # @return [::Google::Analytics::Admin::V1alpha::PostbackWindow] - # The conversion value settings for the third postback window. - # - # This field should only be set if the user chose to define different - # conversion values for this postback window. It is allowed to configure - # window 3 without setting window 2. In case window 1 & 2 settings are set - # and enable_postback_window_settings for this postback window is set to - # false, the schema will inherit settings from postback_window_two. - # @!attribute [rw] apply_conversion_values - # @return [::Boolean] - # If enabled, the GA SDK will set conversion values using this schema - # definition, and schema will be exported to any Google Ads accounts linked - # to this property. If disabled, the GA SDK will not automatically set - # conversion values, and also the schema will not be exported to Ads. - class SKAdNetworkConversionValueSchema - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for a SKAdNetwork conversion postback window. - # @!attribute [rw] conversion_values - # @return [::Array<::Google::Analytics::Admin::V1alpha::ConversionValues>] - # Ordering of the repeated field will be used to prioritize the conversion - # value settings. Lower indexed entries are prioritized higher. The first - # conversion value setting that evaluates to true will be selected. It must - # have at least one entry if enable_postback_window_settings is set to - # true. It can have maximum of 128 entries. - # @!attribute [rw] postback_window_settings_enabled - # @return [::Boolean] - # If enable_postback_window_settings is true, conversion_values - # must be populated and will be used for determining when and how to set the - # Conversion Value on a client device and exporting schema to linked Ads - # accounts. If false, the settings are not used, but are retained in case - # they may be used in the future. This must always be true for - # postback_window_one. - class PostbackWindow - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Conversion value settings for a postback window for SKAdNetwork conversion - # value schema. - # @!attribute [rw] display_name - # @return [::String] - # Display name of the SKAdNetwork conversion value. - # The max allowed display name length is 50 UTF-16 code units. - # @!attribute [rw] fine_value - # @return [::Integer] - # The fine-grained conversion value. This is applicable only to the first - # postback window. Its valid values are [0,63], both inclusive. It must be - # set for postback window 1, and must not be set for postback window 2 & 3. - # This value is not guaranteed to be unique. - # - # If the configuration for the first postback window is re-used for second or - # third postback windows this field has no effect. - # @!attribute [rw] coarse_value - # @return [::Google::Analytics::Admin::V1alpha::CoarseValue] - # Required. A coarse grained conversion value. - # - # This value is not guaranteed to be unique. - # @!attribute [rw] event_mappings - # @return [::Array<::Google::Analytics::Admin::V1alpha::EventMapping>] - # Event conditions that must be met for this Conversion Value to be achieved. - # The conditions in this list are ANDed together. It must have minimum of 1 - # entry and maximum of 3 entries, if the postback window is enabled. - # @!attribute [rw] lock_enabled - # @return [::Boolean] - # If true, the SDK should lock to this conversion value for the current - # postback window. - class ConversionValues - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Event setting conditions to match an event. - # @!attribute [rw] event_name - # @return [::String] - # Required. Name of the Google Analytics event. It must always be set. - # The max allowed display name length is 40 UTF-16 code units. - # @!attribute [rw] min_event_count - # @return [::Integer] - # At least one of the following four min/max values must be set. The - # values set will be ANDed together to qualify an event. - # The minimum number of times the event occurred. If not set, minimum event - # count won't be checked. - # @!attribute [rw] max_event_count - # @return [::Integer] - # The maximum number of times the event occurred. If not set, maximum event - # count won't be checked. - # @!attribute [rw] min_event_value - # @return [::Float] - # The minimum revenue generated due to the event. Revenue currency will be - # defined at the property level. If not set, minimum event value won't be - # checked. - # @!attribute [rw] max_event_value - # @return [::Float] - # The maximum revenue generated due to the event. Revenue currency will be - # defined at the property level. If not set, maximum event value won't be - # checked. - class EventMapping - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A set of changes within a Google Analytics account or its child properties - # that resulted from the same cause. Common causes would be updates made in the - # Google Analytics UI, changes from customer support, or automatic Google - # Analytics system changes. - # @!attribute [rw] id - # @return [::String] - # ID of this change history event. This ID is unique across Google Analytics. - # @!attribute [rw] change_time - # @return [::Google::Protobuf::Timestamp] - # Time when change was made. - # @!attribute [rw] actor_type - # @return [::Google::Analytics::Admin::V1alpha::ActorType] - # The type of actor that made this change. - # @!attribute [rw] user_actor_email - # @return [::String] - # Email address of the Google account that made the change. This will be a - # valid email address if the actor field is set to USER, and empty otherwise. - # Google accounts that have been deleted will cause an error. - # @!attribute [rw] changes_filtered - # @return [::Boolean] - # If true, then the list of changes returned was filtered, and does not - # represent all changes that occurred in this event. - # @!attribute [rw] changes - # @return [::Array<::Google::Analytics::Admin::V1alpha::ChangeHistoryChange>] - # A list of changes made in this change history event that fit the filters - # specified in SearchChangeHistoryEventsRequest. - class ChangeHistoryEvent - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A description of a change to a single Google Analytics resource. - # @!attribute [rw] resource - # @return [::String] - # Resource name of the resource whose changes are described by this entry. - # @!attribute [rw] action - # @return [::Google::Analytics::Admin::V1alpha::ActionType] - # The type of action that changed this resource. - # @!attribute [rw] resource_before_change - # @return [::Google::Analytics::Admin::V1alpha::ChangeHistoryChange::ChangeHistoryResource] - # Resource contents from before the change was made. If this resource was - # created in this change, this field will be missing. - # @!attribute [rw] resource_after_change - # @return [::Google::Analytics::Admin::V1alpha::ChangeHistoryChange::ChangeHistoryResource] - # Resource contents from after the change was made. If this resource was - # deleted in this change, this field will be missing. - class ChangeHistoryChange - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A snapshot of a resource as before or after the result of a change in - # change history. - # @!attribute [rw] account - # @return [::Google::Analytics::Admin::V1alpha::Account] - # A snapshot of an Account resource in change history. - # - # Note: The following fields are mutually exclusive: `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] property - # @return [::Google::Analytics::Admin::V1alpha::Property] - # A snapshot of a Property resource in change history. - # - # Note: The following fields are mutually exclusive: `property`, `account`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] firebase_link - # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] - # A snapshot of a FirebaseLink resource in change history. - # - # Note: The following fields are mutually exclusive: `firebase_link`, `account`, `property`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] google_ads_link - # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] - # A snapshot of a GoogleAdsLink resource in change history. - # - # Note: The following fields are mutually exclusive: `google_ads_link`, `account`, `property`, `firebase_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] google_signals_settings - # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] - # A snapshot of a GoogleSignalsSettings resource in change history. - # - # Note: The following fields are mutually exclusive: `google_signals_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] display_video_360_advertiser_link - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] - # A snapshot of a DisplayVideo360AdvertiserLink resource in change - # history. - # - # Note: The following fields are mutually exclusive: `display_video_360_advertiser_link`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] display_video_360_advertiser_link_proposal - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] - # A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in - # change history. - # - # Note: The following fields are mutually exclusive: `display_video_360_advertiser_link_proposal`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] conversion_event - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] - # A snapshot of a ConversionEvent resource in change history. - # - # Note: The following fields are mutually exclusive: `conversion_event`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] measurement_protocol_secret - # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] - # A snapshot of a MeasurementProtocolSecret resource in change history. - # - # Note: The following fields are mutually exclusive: `measurement_protocol_secret`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] custom_dimension - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] - # A snapshot of a CustomDimension resource in change history. - # - # Note: The following fields are mutually exclusive: `custom_dimension`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] custom_metric - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] - # A snapshot of a CustomMetric resource in change history. - # - # Note: The following fields are mutually exclusive: `custom_metric`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_retention_settings - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] - # A snapshot of a data retention settings resource in change history. - # - # Note: The following fields are mutually exclusive: `data_retention_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] search_ads_360_link - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] - # A snapshot of a SearchAds360Link resource in change history. - # - # Note: The following fields are mutually exclusive: `search_ads_360_link`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_stream - # @return [::Google::Analytics::Admin::V1alpha::DataStream] - # A snapshot of a DataStream resource in change history. - # - # Note: The following fields are mutually exclusive: `data_stream`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] attribution_settings - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] - # A snapshot of AttributionSettings resource in change history. - # - # Note: The following fields are mutually exclusive: `attribution_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] expanded_data_set - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] - # A snapshot of an ExpandedDataSet resource in change history. - # - # Note: The following fields are mutually exclusive: `expanded_data_set`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] channel_group - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] - # A snapshot of a ChannelGroup resource in change history. - # - # Note: The following fields are mutually exclusive: `channel_group`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] bigquery_link - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] - # A snapshot of a BigQuery link resource in change history. - # - # Note: The following fields are mutually exclusive: `bigquery_link`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] enhanced_measurement_settings - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] - # A snapshot of EnhancedMeasurementSettings resource in change history. - # - # Note: The following fields are mutually exclusive: `enhanced_measurement_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] data_redaction_settings - # @return [::Google::Analytics::Admin::V1alpha::DataRedactionSettings] - # A snapshot of DataRedactionSettings resource in change history. - # - # Note: The following fields are mutually exclusive: `data_redaction_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] skadnetwork_conversion_value_schema - # @return [::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema] - # A snapshot of SKAdNetworkConversionValueSchema resource in change - # history. - # - # Note: The following fields are mutually exclusive: `skadnetwork_conversion_value_schema`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] adsense_link - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] - # A snapshot of an AdSenseLink resource in change history. - # - # Note: The following fields are mutually exclusive: `adsense_link`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] audience - # @return [::Google::Analytics::Admin::V1alpha::Audience] - # A snapshot of an Audience resource in change history. - # - # Note: The following fields are mutually exclusive: `audience`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] event_create_rule - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] - # A snapshot of an EventCreateRule resource in change history. - # - # Note: The following fields are mutually exclusive: `event_create_rule`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] key_event - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] - # A snapshot of a KeyEvent resource in change history. - # - # Note: The following fields are mutually exclusive: `key_event`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] calculated_metric - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric] - # A snapshot of a CalculatedMetric resource in change history. - # - # Note: The following fields are mutually exclusive: `calculated_metric`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] reporting_data_annotation - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation] - # A snapshot of a ReportingDataAnnotation resource in change history. - # - # Note: The following fields are mutually exclusive: `reporting_data_annotation`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `subproperty_sync_config`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] subproperty_sync_config - # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig] - # A snapshot of a SubpropertySyncConfig resource in change history. - # - # Note: The following fields are mutually exclusive: `subproperty_sync_config`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `reporting_identity_settings`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] reporting_identity_settings - # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings] - # A snapshot of a ReportingIdentitySettings resource in change history. - # - # Note: The following fields are mutually exclusive: `reporting_identity_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `user_provided_data_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] user_provided_data_settings - # @return [::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings] - # A snapshot of a UserProvidedDataSettings resource in change history. - # - # Note: The following fields are mutually exclusive: `user_provided_data_settings`, `account`, `property`, `firebase_link`, `google_ads_link`, `google_signals_settings`, `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `conversion_event`, `measurement_protocol_secret`, `custom_dimension`, `custom_metric`, `data_retention_settings`, `search_ads_360_link`, `data_stream`, `attribution_settings`, `expanded_data_set`, `channel_group`, `bigquery_link`, `enhanced_measurement_settings`, `data_redaction_settings`, `skadnetwork_conversion_value_schema`, `adsense_link`, `audience`, `event_create_rule`, `key_event`, `calculated_metric`, `reporting_data_annotation`, `subproperty_sync_config`, `reporting_identity_settings`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class ChangeHistoryResource - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # A link between a Google Analytics property and a Display & Video 360 - # advertiser. - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name for this DisplayVideo360AdvertiserLink - # resource. Format: - # properties/\\{propertyId}/displayVideo360AdvertiserLinks/\\{linkId} - # - # Note: linkId is not the Display & Video 360 Advertiser ID - # @!attribute [rw] advertiser_id - # @return [::String] - # Immutable. The Display & Video 360 Advertiser's advertiser ID. - # @!attribute [r] advertiser_display_name - # @return [::String] - # Output only. The display name of the Display & Video 360 Advertiser. - # @!attribute [rw] ads_personalization_enabled - # @return [::Google::Protobuf::BoolValue] - # Enables personalized advertising features with this integration. - # If this field is not set on create/update, it will be defaulted to true. - # @!attribute [rw] campaign_data_sharing_enabled - # @return [::Google::Protobuf::BoolValue] - # Immutable. Enables the import of campaign data from Display & Video 360 - # into the Google Analytics property. After link creation, this can only be - # updated from the Display & Video 360 product. If this field is not set on - # create, it will be defaulted to true. - # @!attribute [rw] cost_data_sharing_enabled - # @return [::Google::Protobuf::BoolValue] - # Immutable. Enables the import of cost data from Display & Video 360 into - # the Google Analytics property. This can only be enabled if - # `campaign_data_sharing_enabled` is true. After link creation, this can - # only be updated from the Display & Video 360 product. If this field is not - # set on create, it will be defaulted to true. - class DisplayVideo360AdvertiserLink - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A proposal for a link between a Google Analytics property and a Display & - # Video 360 advertiser. - # - # A proposal is converted to a DisplayVideo360AdvertiserLink once approved. - # Google Analytics admins approve inbound proposals while Display & Video 360 - # admins approve outbound proposals. - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name for this - # DisplayVideo360AdvertiserLinkProposal resource. Format: - # properties/\\{propertyId}/displayVideo360AdvertiserLinkProposals/\\{proposalId} - # - # Note: proposalId is not the Display & Video 360 Advertiser ID - # @!attribute [rw] advertiser_id - # @return [::String] - # Immutable. The Display & Video 360 Advertiser's advertiser ID. - # @!attribute [r] link_proposal_status_details - # @return [::Google::Analytics::Admin::V1alpha::LinkProposalStatusDetails] - # Output only. The status information for this link proposal. - # @!attribute [r] advertiser_display_name - # @return [::String] - # Output only. The display name of the Display & Video Advertiser. - # Only populated for proposals that originated from Display & Video 360. - # @!attribute [rw] validation_email - # @return [::String] - # Input only. On a proposal being sent to Display & Video 360, this field - # must be set to the email address of an admin on the target advertiser. This - # is used to verify that the Google Analytics admin is aware of at least one - # admin on the Display & Video 360 Advertiser. This does not restrict - # approval of the proposal to a single user. Any admin on the Display & Video - # 360 Advertiser may approve the proposal. - # @!attribute [rw] ads_personalization_enabled - # @return [::Google::Protobuf::BoolValue] - # Immutable. Enables personalized advertising features with this integration. - # If this field is not set on create, it will be defaulted to true. - # @!attribute [rw] campaign_data_sharing_enabled - # @return [::Google::Protobuf::BoolValue] - # Immutable. Enables the import of campaign data from Display & Video 360. - # If this field is not set on create, it will be defaulted to true. - # @!attribute [rw] cost_data_sharing_enabled - # @return [::Google::Protobuf::BoolValue] - # Immutable. Enables the import of cost data from Display & Video 360. - # This can only be enabled if campaign_data_sharing_enabled is enabled. - # If this field is not set on create, it will be defaulted to true. - class DisplayVideo360AdvertiserLinkProposal - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A link between a Google Analytics property and a Search Ads 360 entity. - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name for this SearchAds360Link resource. - # Format: properties/\\{propertyId}/searchAds360Links/\\{linkId} - # - # Note: linkId is not the Search Ads 360 advertiser ID - # @!attribute [rw] advertiser_id - # @return [::String] - # Immutable. This field represents the Advertiser ID of the Search Ads 360 - # Advertiser. that has been linked. - # @!attribute [rw] campaign_data_sharing_enabled - # @return [::Google::Protobuf::BoolValue] - # Immutable. Enables the import of campaign data from Search Ads 360 into the - # Google Analytics property. After link creation, this can only be updated - # from the Search Ads 360 product. If this field is not set on create, it - # will be defaulted to true. - # @!attribute [rw] cost_data_sharing_enabled - # @return [::Google::Protobuf::BoolValue] - # Immutable. Enables the import of cost data from Search Ads 360 to the - # Google Analytics property. This can only be enabled if - # campaign_data_sharing_enabled is enabled. After link creation, this can - # only be updated from the Search Ads 360 product. If this field is not set - # on create, it will be defaulted to true. - # @!attribute [r] advertiser_display_name - # @return [::String] - # Output only. The display name of the Search Ads 360 Advertiser. - # Allows users to easily identify the linked resource. - # @!attribute [rw] ads_personalization_enabled - # @return [::Google::Protobuf::BoolValue] - # Enables personalized advertising features with this integration. - # If this field is not set on create, it will be defaulted to true. - # @!attribute [rw] site_stats_sharing_enabled - # @return [::Google::Protobuf::BoolValue] - # Enables export of site stats with this integration. - # If this field is not set on create, it will be defaulted to true. - class SearchAds360Link - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Status information for a link proposal. - # @!attribute [r] link_proposal_initiating_product - # @return [::Google::Analytics::Admin::V1alpha::LinkProposalInitiatingProduct] - # Output only. The source of this proposal. - # @!attribute [r] requestor_email - # @return [::String] - # Output only. The email address of the user that proposed this linkage. - # @!attribute [r] link_proposal_state - # @return [::Google::Analytics::Admin::V1alpha::LinkProposalState] - # Output only. The state of this proposal. - class LinkProposalStatusDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A conversion event in a Google Analytics property. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name of this conversion event. - # Format: properties/\\{property}/conversionEvents/\\{conversion_event} - # @!attribute [rw] event_name - # @return [::String] - # Immutable. The event name for this conversion event. - # Examples: 'click', 'purchase' - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when this conversion event was created in the property. - # @!attribute [r] deletable - # @return [::Boolean] - # Output only. If set, this event can currently be deleted with - # DeleteConversionEvent. - # @!attribute [r] custom - # @return [::Boolean] - # Output only. If set to true, this conversion event refers to a custom - # event. If set to false, this conversion event refers to a default event in - # GA. Default events typically have special meaning in GA. Default events are - # usually created for you by the GA system, but in some cases can be created - # by property admins. Custom events count towards the maximum number of - # custom conversion events that may be created per property. - # @!attribute [rw] counting_method - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent::ConversionCountingMethod] - # Optional. The method by which conversions will be counted across multiple - # events within a session. If this value is not provided, it will be set to - # `ONCE_PER_EVENT`. - # @!attribute [rw] default_conversion_value - # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent::DefaultConversionValue] - # Optional. Defines a default value/currency for a conversion event. - class ConversionEvent - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Defines a default value/currency for a conversion event. Both value and - # currency must be provided. - # @!attribute [rw] value - # @return [::Float] - # This value will be used to populate the value for all conversions - # of the specified event_name where the event "value" parameter is unset. - # @!attribute [rw] currency_code - # @return [::String] - # When a conversion event for this event_name has no set currency, - # this currency will be applied as the default. Must be in ISO 4217 - # currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for - # more information. - class DefaultConversionValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The method by which conversions will be counted across multiple events - # within a session. - module ConversionCountingMethod - # Counting method not specified. - CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0 - - # Each Event instance is considered a Conversion. - ONCE_PER_EVENT = 1 - - # An Event instance is considered a Conversion at most once per session per - # user. - ONCE_PER_SESSION = 2 - end - end - - # A key event in a Google Analytics property. - # @!attribute [r] name - # @return [::String] - # Output only. Resource name of this key event. - # Format: properties/\\{property}/keyEvents/\\{key_event} - # @!attribute [rw] event_name - # @return [::String] - # Immutable. The event name for this key event. - # Examples: 'click', 'purchase' - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when this key event was created in the property. - # @!attribute [r] deletable - # @return [::Boolean] - # Output only. If set to true, this event can be deleted. - # @!attribute [r] custom - # @return [::Boolean] - # Output only. If set to true, this key event refers to a custom event. If - # set to false, this key event refers to a default event in GA. Default - # events typically have special meaning in GA. Default events are usually - # created for you by the GA system, but in some cases can be created by - # property admins. Custom events count towards the maximum number of - # custom key events that may be created per property. - # @!attribute [rw] counting_method - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent::CountingMethod] - # Required. The method by which Key Events will be counted across multiple - # events within a session. - # @!attribute [rw] default_value - # @return [::Google::Analytics::Admin::V1alpha::KeyEvent::DefaultValue] - # Optional. Defines a default value/currency for a key event. - class KeyEvent - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Defines a default value/currency for a key event. - # @!attribute [rw] numeric_value - # @return [::Float] - # Required. This will be used to populate the "value" parameter for all - # occurrences of this Key Event (specified by event_name) where that - # parameter is unset. - # @!attribute [rw] currency_code - # @return [::String] - # Required. When an occurrence of this Key Event (specified by event_name) - # has no set currency this currency will be applied as the default. Must be - # in ISO 4217 currency code format. - # - # See https://en.wikipedia.org/wiki/ISO_4217 for more information. - class DefaultValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The method by which Key Events will be counted across multiple events - # within a session. - module CountingMethod - # Counting method not specified. - COUNTING_METHOD_UNSPECIFIED = 0 - - # Each Event instance is considered a Key Event. - ONCE_PER_EVENT = 1 - - # An Event instance is considered a Key Event at most once per session per - # user. - ONCE_PER_SESSION = 2 - end - end - - # Settings values for Google Signals. This is a singleton resource. - # @!attribute [r] name - # @return [::String] - # Output only. Resource name of this setting. - # Format: properties/\\{property_id}/googleSignalsSettings - # Example: "properties/1000/googleSignalsSettings" - # @!attribute [rw] state - # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsState] - # Status of this setting. - # @!attribute [r] consent - # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsConsent] - # Output only. Terms of Service acceptance. - class GoogleSignalsSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A definition for a CustomDimension. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name for this CustomDimension resource. - # Format: properties/\\{property}/customDimensions/\\{customDimension} - # @!attribute [rw] parameter_name - # @return [::String] - # Required. Immutable. Tagging parameter name for this custom dimension. - # - # If this is a user-scoped dimension, then this is the user property name. - # If this is an event-scoped dimension, then this is the event parameter - # name. - # - # If this is an item-scoped dimension, then this is the parameter - # name found in the eCommerce items array. - # - # May only contain alphanumeric and underscore characters, starting with a - # letter. Max length of 24 characters for user-scoped dimensions, 40 - # characters for event-scoped dimensions. - # @!attribute [rw] display_name - # @return [::String] - # Required. Display name for this custom dimension as shown in the Analytics - # UI. Max length of 82 characters, alphanumeric plus space and underscore - # starting with a letter. Legacy system-generated display names may contain - # square brackets, but updates to this field will never permit square - # brackets. - # @!attribute [rw] description - # @return [::String] - # Optional. Description for this custom dimension. Max length of 150 - # characters. - # @!attribute [rw] scope - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension::DimensionScope] - # Required. Immutable. The scope of this dimension. - # @!attribute [rw] disallow_ads_personalization - # @return [::Boolean] - # Optional. If set to true, sets this dimension as NPA and excludes it from - # ads personalization. - # - # This is currently only supported by user-scoped custom dimensions. - class CustomDimension - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Valid values for the scope of this dimension. - module DimensionScope - # Scope unknown or not specified. - DIMENSION_SCOPE_UNSPECIFIED = 0 - - # Dimension scoped to an event. - EVENT = 1 - - # Dimension scoped to a user. - USER = 2 - - # Dimension scoped to eCommerce items - ITEM = 3 - end - end - - # A definition for a custom metric. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name for this CustomMetric resource. - # Format: properties/\\{property}/customMetrics/\\{customMetric} - # @!attribute [rw] parameter_name - # @return [::String] - # Required. Immutable. Tagging name for this custom metric. - # - # If this is an event-scoped metric, then this is the event parameter - # name. - # - # May only contain alphanumeric and underscore charactes, starting with a - # letter. Max length of 40 characters for event-scoped metrics. - # @!attribute [rw] display_name - # @return [::String] - # Required. Display name for this custom metric as shown in the Analytics UI. - # Max length of 82 characters, alphanumeric plus space and underscore - # starting with a letter. Legacy system-generated display names may contain - # square brackets, but updates to this field will never permit square - # brackets. - # @!attribute [rw] description - # @return [::String] - # Optional. Description for this custom dimension. - # Max length of 150 characters. - # @!attribute [rw] measurement_unit - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric::MeasurementUnit] - # Required. The type for the custom metric's value. - # @!attribute [rw] scope - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric::MetricScope] - # Required. Immutable. The scope of this custom metric. - # @!attribute [rw] restricted_metric_type - # @return [::Array<::Google::Analytics::Admin::V1alpha::CustomMetric::RestrictedMetricType>] - # Optional. Types of restricted data that this metric may contain. Required - # for metrics with CURRENCY measurement unit. Must be empty for metrics with - # a non-CURRENCY measurement unit. - class CustomMetric - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Possible types of representing the custom metric's value. - # - # Currency representation may change in the future, requiring a breaking API - # change. - module MeasurementUnit - # MeasurementUnit unspecified or missing. - MEASUREMENT_UNIT_UNSPECIFIED = 0 - - # This metric uses default units. - STANDARD = 1 - - # This metric measures a currency. - CURRENCY = 2 - - # This metric measures feet. - FEET = 3 - - # This metric measures meters. - METERS = 4 - - # This metric measures kilometers. - KILOMETERS = 5 - - # This metric measures miles. - MILES = 6 - - # This metric measures milliseconds. - MILLISECONDS = 7 - - # This metric measures seconds. - SECONDS = 8 - - # This metric measures minutes. - MINUTES = 9 - - # This metric measures hours. - HOURS = 10 - end - - # The scope of this metric. - module MetricScope - # Scope unknown or not specified. - METRIC_SCOPE_UNSPECIFIED = 0 - - # Metric scoped to an event. - EVENT = 1 - end - - # Labels that mark the data in this custom metric as data that should be - # restricted to specific users. - module RestrictedMetricType - # Type unknown or unspecified. - RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0 - - # Metric reports cost data. - COST_DATA = 1 - - # Metric reports revenue data. - REVENUE_DATA = 2 - end - end - - # A definition for a calculated metric. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name for this CalculatedMetric. - # Format: 'properties/\\{property_id}/calculatedMetrics/\\{calculated_metric_id}' - # @!attribute [rw] description - # @return [::String] - # Optional. Description for this calculated metric. - # Max length of 4096 characters. - # @!attribute [rw] display_name - # @return [::String] - # Required. Display name for this calculated metric as shown in the - # Google Analytics UI. Max length 82 characters. - # @!attribute [r] calculated_metric_id - # @return [::String] - # Output only. The ID to use for the calculated metric. In the UI, this is - # referred to as the "API name." - # - # The calculated_metric_id is used when referencing this calculated metric - # from external APIs. For example, "calcMetric:\\{calculated_metric_id}". - # @!attribute [rw] metric_unit - # @return [::Google::Analytics::Admin::V1alpha::CalculatedMetric::MetricUnit] - # Required. The type for the calculated metric's value. - # @!attribute [r] restricted_metric_type - # @return [::Array<::Google::Analytics::Admin::V1alpha::CalculatedMetric::RestrictedMetricType>] - # Output only. Types of restricted data that this metric contains. - # @!attribute [rw] formula - # @return [::String] - # Required. The calculated metric's definition. Maximum number of unique - # referenced custom metrics is 5. Formulas supports the following operations: - # + (addition), - (subtraction), - (negative), * (multiplication), / - # (division), () (parenthesis). Any valid real numbers are acceptable that - # fit in a Long (64bit integer) or a Double (64 bit floating point number). - # Example formula: - # "( customEvent:parameter_name + cartPurchaseQuantity ) / 2.0" - # @!attribute [r] invalid_metric_reference - # @return [::Boolean] - # Output only. If true, this calculated metric has a invalid metric - # reference. Anything using a calculated metric with invalid_metric_reference - # set to true may fail, produce warnings, or produce unexpected results. - class CalculatedMetric - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Possible types of representing the calculated metric's value. - module MetricUnit - # MetricUnit unspecified or missing. - METRIC_UNIT_UNSPECIFIED = 0 - - # This metric uses default units. - STANDARD = 1 - - # This metric measures a currency. - CURRENCY = 2 - - # This metric measures feet. - FEET = 3 - - # This metric measures miles. - MILES = 4 - - # This metric measures meters. - METERS = 5 - - # This metric measures kilometers. - KILOMETERS = 6 - - # This metric measures milliseconds. - MILLISECONDS = 7 - - # This metric measures seconds. - SECONDS = 8 - - # This metric measures minutes. - MINUTES = 9 - - # This metric measures hours. - HOURS = 10 - end - - # Labels that mark the data in calculated metric used in conjunction with - # user roles that restrict access to cost and/or revenue metrics. - module RestrictedMetricType - # Type unknown or unspecified. - RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0 - - # Metric reports cost data. - COST_DATA = 1 - - # Metric reports revenue data. - REVENUE_DATA = 2 - end - end - - # Settings values for data retention. This is a singleton resource. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name for this DataRetentionSetting resource. - # Format: properties/\\{property}/dataRetentionSettings - # @!attribute [rw] event_data_retention - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings::RetentionDuration] - # Required. The length of time that event-level data is retained. - # @!attribute [rw] user_data_retention - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings::RetentionDuration] - # Required. The length of time that user-level data is retained. - # @!attribute [rw] reset_user_data_on_new_activity - # @return [::Boolean] - # If true, reset the retention period for the user identifier with every - # event from that user. - class DataRetentionSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Valid values for the data retention duration. - module RetentionDuration - # Data retention time duration is not specified. - RETENTION_DURATION_UNSPECIFIED = 0 - - # The data retention time duration is 2 months. - TWO_MONTHS = 1 - - # The data retention time duration is 14 months. - FOURTEEN_MONTHS = 3 - - # The data retention time duration is 26 months. - # Available to 360 properties only. Available for event data only. - TWENTY_SIX_MONTHS = 4 - - # The data retention time duration is 38 months. - # Available to 360 properties only. Available for event data only. - THIRTY_EIGHT_MONTHS = 5 - - # The data retention time duration is 50 months. - # Available to 360 properties only. Available for event data only. - FIFTY_MONTHS = 6 - end - end - - # The attribution settings used for a given property. This is a singleton - # resource. - # @!attribute [r] name - # @return [::String] - # Output only. Resource name of this attribution settings resource. - # Format: properties/\\{property_id}/attributionSettings - # Example: "properties/1000/attributionSettings" - # @!attribute [rw] acquisition_conversion_event_lookback_window - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings::AcquisitionConversionEventLookbackWindow] - # Required. The lookback window configuration for acquisition conversion - # events. The default window size is 30 days. - # @!attribute [rw] other_conversion_event_lookback_window - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings::OtherConversionEventLookbackWindow] - # Required. The lookback window for all other, non-acquisition conversion - # events. The default window size is 90 days. - # @!attribute [rw] reporting_attribution_model - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings::ReportingAttributionModel] - # Required. The reporting attribution model used to calculate conversion - # credit in this property's reports. - # - # Changing the attribution model will apply to both historical and future - # data. These changes will be reflected in reports with conversion and - # revenue data. User and session data will be unaffected. - # @!attribute [rw] ads_web_conversion_data_export_scope - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings::AdsWebConversionDataExportScope] - # Required. The Conversion Export Scope for data exported to linked Ads - # Accounts. - class AttributionSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # How far back in time events should be considered for inclusion in a - # converting path which leads to the first install of an app or the first - # visit to a site. - module AcquisitionConversionEventLookbackWindow - # Lookback window size unspecified. - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0 - - # 7-day lookback window. - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1 - - # 30-day lookback window. - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2 - end - - # How far back in time events should be considered for inclusion in a - # converting path for all conversions other than first app install/first site - # visit. - module OtherConversionEventLookbackWindow - # Lookback window size unspecified. - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0 - - # 30-day lookback window. - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1 - - # 60-day lookback window. - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2 - - # 90-day lookback window. - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3 - end - - # The reporting attribution model used to calculate conversion credit in this - # property's reports. - module ReportingAttributionModel - # Reporting attribution model unspecified. - REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0 - - # Data-driven attribution distributes credit for the conversion based on - # data for each conversion event. Each Data-driven model is specific to - # each advertiser and each conversion event. - # Previously CROSS_CHANNEL_DATA_DRIVEN - PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1 - - # Ignores direct traffic and attributes 100% of the conversion value to the - # last channel that the customer clicked through (or engaged view through - # for YouTube) before converting. - # Previously CROSS_CHANNEL_LAST_CLICK - PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2 - - # Attributes 100% of the conversion value to the last Google Paid channel - # that the customer clicked through before converting. - # Previously ADS_PREFERRED_LAST_CLICK - GOOGLE_PAID_CHANNELS_LAST_CLICK = 7 - end - - # The Conversion Export Scope for data exported to linked Ads Accounts. - module AdsWebConversionDataExportScope - # Default value. This value is unused. - ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0 - - # No data export scope selected yet. - # Export scope can never be changed back to this value. - NOT_SELECTED_YET = 1 - - # Paid and organic channels are eligible to receive conversion credit, but - # only credit assigned to Google Ads channels will appear in your Ads - # accounts. To learn more, see [Paid and Organic - # channels](https://support.google.com/analytics/answer/10632359). - PAID_AND_ORGANIC_CHANNELS = 2 - - # Only Google Ads paid channels are eligible to receive conversion credit. - # To learn more, see [Google Paid - # channels](https://support.google.com/analytics/answer/10632359). - GOOGLE_PAID_CHANNELS = 3 - end - end - - # A binding of a user to a set of roles. - # @!attribute [rw] user - # @return [::String] - # If set, the email address of the user to set roles for. - # Format: "someuser@gmail.com" - # @!attribute [r] name - # @return [::String] - # Output only. Resource name of this binding. - # - # Format: accounts/\\{account}/accessBindings/\\{access_binding} or - # properties/\\{property}/accessBindings/\\{access_binding} - # - # Example: - # "accounts/100/accessBindings/200" - # @!attribute [rw] roles - # @return [::Array<::String>] - # A list of roles for to grant to the parent resource. - # - # Valid values: - # predefinedRoles/viewer - # predefinedRoles/analyst - # predefinedRoles/editor - # predefinedRoles/admin - # predefinedRoles/no-cost-data - # predefinedRoles/no-revenue-data - # - # For users, if an empty list of roles is set, this AccessBinding will be - # deleted. - class AccessBinding - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A link between a Google Analytics property and BigQuery project. - # @!attribute [r] name - # @return [::String] - # Output only. Resource name of this BigQuery link. - # Format: 'properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id}' - # Format: 'properties/1234/bigQueryLinks/abc567' - # @!attribute [rw] project - # @return [::String] - # Immutable. The linked Google Cloud project. When creating a BigQueryLink, - # you may provide this resource name using either a project number or project - # ID. Once this resource has been created, the returned project will always - # have a project that contains a project number. - # Format: 'projects/\\{project number}' - # Example: 'projects/1234' - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Time when the link was created. - # @!attribute [rw] daily_export_enabled - # @return [::Boolean] - # If set true, enables daily data export to the linked Google Cloud project. - # @!attribute [rw] streaming_export_enabled - # @return [::Boolean] - # If set true, enables streaming export to the linked Google Cloud project. - # @!attribute [rw] fresh_daily_export_enabled - # @return [::Boolean] - # If set true, enables fresh daily export to the linked Google Cloud project. - # @!attribute [rw] include_advertising_id - # @return [::Boolean] - # If set true, exported data will include advertising identifiers for mobile - # app streams. - # @!attribute [rw] export_streams - # @return [::Array<::String>] - # The list of streams under the parent property for which data will be - # exported. - # Format: properties/\\{property_id}/dataStreams/\\{stream_id} - # Example: ['properties/1000/dataStreams/2000'] - # @!attribute [rw] excluded_events - # @return [::Array<::String>] - # The list of event names that will be excluded from exports. - # @!attribute [rw] dataset_location - # @return [::String] - # Required. Immutable. The geographic location where the created BigQuery - # dataset should reside. See https://cloud.google.com/bigquery/docs/locations - # for supported locations. - class BigQueryLink - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Singleton resource under a web DataStream, configuring measurement of - # additional site interactions and content. - # @!attribute [r] name - # @return [::String] - # Output only. Resource name of the Enhanced Measurement Settings. - # Format: - # properties/\\{property_id}/dataStreams/\\{data_stream}/enhancedMeasurementSettings - # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" - # @!attribute [rw] stream_enabled - # @return [::Boolean] - # Indicates whether Enhanced Measurement Settings will be used to - # automatically measure interactions and content on this web stream. - # - # Changing this value does not affect the settings themselves, but determines - # whether they are respected. - # @!attribute [rw] scrolls_enabled - # @return [::Boolean] - # If enabled, capture scroll events each time a visitor gets to the bottom of - # a page. - # @!attribute [rw] outbound_clicks_enabled - # @return [::Boolean] - # If enabled, capture an outbound click event each time a visitor clicks a - # link that leads them away from your domain. - # @!attribute [rw] site_search_enabled - # @return [::Boolean] - # If enabled, capture a view search results event each time a visitor - # performs a search on your site (based on a query parameter). - # @!attribute [rw] video_engagement_enabled - # @return [::Boolean] - # If enabled, capture video play, progress, and complete events as visitors - # view embedded videos on your site. - # @!attribute [rw] file_downloads_enabled - # @return [::Boolean] - # If enabled, capture a file download event each time a link is clicked with - # a common document, compressed file, application, video, or audio extension. - # @!attribute [rw] page_changes_enabled - # @return [::Boolean] - # If enabled, capture a page view event each time the website changes the - # browser history state. - # @!attribute [rw] form_interactions_enabled - # @return [::Boolean] - # If enabled, capture a form interaction event each time a visitor interacts - # with a form on your website. - # False by default. - # @!attribute [rw] search_query_parameter - # @return [::String] - # Required. URL query parameters to interpret as site search parameters. - # Max length is 1024 characters. Must not be empty. - # @!attribute [rw] uri_query_parameter - # @return [::String] - # Additional URL query parameters. - # Max length is 1024 characters. - class EnhancedMeasurementSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for client-side data redaction. Singleton resource under a Web - # Stream. - # @!attribute [r] name - # @return [::String] - # Output only. Name of this Data Redaction Settings resource. - # Format: - # properties/\\{property_id}/dataStreams/\\{data_stream}/dataRedactionSettings - # Example: "properties/1000/dataStreams/2000/dataRedactionSettings" - # @!attribute [rw] email_redaction_enabled - # @return [::Boolean] - # If enabled, any event parameter or user property values that look like an - # email will be redacted. - # @!attribute [rw] query_parameter_redaction_enabled - # @return [::Boolean] - # Query Parameter redaction removes the key and value portions of a - # query parameter if it is in the configured set of query parameters. - # - # If enabled, URL query replacement logic will be run for the Stream. Any - # query parameters defined in query_parameter_keys will be redacted. - # @!attribute [rw] query_parameter_keys - # @return [::Array<::String>] - # The query parameter keys to apply redaction logic to if present in the URL. - # Query parameter matching is case-insensitive. - # - # Must contain at least one element if query_parameter_replacement_enabled - # is true. Keys cannot contain commas. - class DataRedactionSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A link between a Google Analytics property and an AdSense for Content ad - # client. - # @!attribute [r] name - # @return [::String] - # Output only. The resource name for this AdSense Link resource. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/6789 - # @!attribute [rw] ad_client_code - # @return [::String] - # Immutable. The AdSense ad client code that the Google Analytics property is - # linked to. Example format: "ca-pub-1234567890" - class AdSenseLink - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A link that references a source property under the parent rollup property. - # @!attribute [r] name - # @return [::String] - # Output only. Resource name of this RollupPropertySourceLink. - # Format: - # 'properties/\\{property_id}/rollupPropertySourceLinks/\\{rollup_property_source_link}' - # Format: 'properties/123/rollupPropertySourceLinks/456' - # @!attribute [rw] source_property - # @return [::String] - # Immutable. Resource name of the source property. - # Format: properties/\\{property_id} - # Example: "properties/789" - class RollupPropertySourceLink - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A Reporting Data Annotation is a comment connected to certain dates for - # reporting data. - # @!attribute [rw] annotation_date - # @return [::Google::Type::Date] - # If set, the Reporting Data Annotation is for a specific date represented - # by this field. The date must be a valid date with year, month and day - # set. The date may be in the past, present, or future. - # - # Note: The following fields are mutually exclusive: `annotation_date`, `annotation_date_range`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] annotation_date_range - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation::DateRange] - # If set, the Reporting Data Annotation is for a range of dates represented - # by this field. - # - # Note: The following fields are mutually exclusive: `annotation_date_range`, `annotation_date`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] name - # @return [::String] - # Required. Identifier. Resource name of this Reporting Data Annotation. - # Format: - # 'properties/\\{property_id}/reportingDataAnnotations/\\{reporting_data_annotation}' - # Format: 'properties/123/reportingDataAnnotations/456' - # @!attribute [rw] title - # @return [::String] - # Required. Human-readable title for this Reporting Data Annotation. - # @!attribute [rw] description - # @return [::String] - # Optional. Description for this Reporting Data Annotation. - # @!attribute [rw] color - # @return [::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation::Color] - # Required. The color used for display of this Reporting Data Annotation. - # @!attribute [r] system_generated - # @return [::Boolean] - # Output only. If true, this annotation was generated by the Google Analytics - # system. System-generated annotations cannot be updated or deleted. - class ReportingDataAnnotation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Represents a Reporting Data Annotation's date range, both start and end - # dates are inclusive. Time zones are based on the parent property. - # @!attribute [rw] start_date - # @return [::Google::Type::Date] - # Required. The start date for this range. Must be a valid date with - # year, month, and day set. The date may be in the past, present, or - # future. - # @!attribute [rw] end_date - # @return [::Google::Type::Date] - # Required. The end date for this range. Must be a valid date with - # year, month, and day set. This date must be greater than or equal to - # the start date. - class DateRange - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Colors that may be used for this Reporting Data Annotation - module Color - # Color unknown or not specified. - COLOR_UNSPECIFIED = 0 - - # Purple color. - PURPLE = 1 - - # Brown color. - BROWN = 2 - - # Blue color. - BLUE = 3 - - # Green color. - GREEN = 4 - - # Red color. - RED = 5 - - # Cyan color. - CYAN = 6 - - # Orange color. (Only used for system-generated annotations) - ORANGE = 7 - end - end - - # Subproperty synchronization configuration controls how ordinary property - # configurations are synchronized to subproperties. This resource is - # provisioned automatically for each subproperty. - # @!attribute [r] name - # @return [::String] - # Output only. Identifier. Format: - # properties/\\{ordinary_property_id}/subpropertySyncConfigs/\\{subproperty_id} - # Example: properties/1234/subpropertySyncConfigs/5678 - # @!attribute [r] apply_to_property - # @return [::String] - # Output only. Immutable. Resource name of the subproperty that these - # settings apply to. - # @!attribute [rw] custom_dimension_and_metric_sync_mode - # @return [::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig::SynchronizationMode] - # Required. Specifies the Custom Dimension / Metric synchronization mode for - # the subproperty. - # - # If set to ALL, Custom Dimension / Metric synchronization will be - # immediately enabled. Local configuration of Custom Dimensions / Metrics - # will not be allowed on the subproperty so long as the synchronization mode - # is set to ALL. - # - # If set to NONE, Custom Dimensions / Metric synchronization is disabled. - # Custom Dimensions / Metrics must be configured explicitly on the - # Subproperty. - class SubpropertySyncConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Synchronization modes for a subproperty - module SynchronizationMode - # Synchronization mode unknown or not specified. - SYNCHRONIZATION_MODE_UNSPECIFIED = 0 - - # Entities are not synchronized. - # Local edits are allowed on the subproperty. - NONE = 1 - - # Entities are synchronized from parent property. - # Local mutations are not allowed on the subproperty (Create / Update / - # Delete) - ALL = 2 - end - end - - # A resource containing settings related to reporting identity. - # @!attribute [r] name - # @return [::String] - # Output only. Identifier. Resource name for this reporting identity settings - # singleton resource. Format: - # properties/\\{property_id}/reportingIdentitySettings Example: - # "properties/1234/reportingIdentitySettings" - # @!attribute [rw] reporting_identity - # @return [::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings::ReportingIdentity] - # The strategy used for identifying user identities in reports. - class ReportingIdentitySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Various strategies for identifying user identities in reports. - module ReportingIdentity - # Unspecified blending strategy. - IDENTITY_BLENDING_STRATEGY_UNSPECIFIED = 0 - - # Blended reporting identity strategy. - BLENDED = 1 - - # Observed reporting identity strategy. - OBSERVED = 2 - - # Device-based reporting identity strategy. - DEVICE_BASED = 3 - end - end - - # Configuration for user-provided data collection. This is a singleton resource - # for a Google Analytics property. - # @!attribute [rw] name - # @return [::String] - # Identifier. Resource name of this setting. - # Format: properties/\\{property}/userProvidedDataSettings - # Example: "properties/1000/userProvidedDataSettings" - # @!attribute [rw] user_provided_data_collection_enabled - # @return [::Boolean] - # Optional. Whether this property accepts user-provided data sent to it. - # @!attribute [rw] automatically_detected_data_collection_enabled - # @return [::Boolean] - # Optional. Whether this property allows a Google Tag to automatically - # collect user-provided data from your website. This setting only takes - # effect if `user_provided_data_collection_enabled` is also true. - class UserProvidedDataSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The category selected for this property, used for industry benchmarking. - module IndustryCategory - # Industry category unspecified - INDUSTRY_CATEGORY_UNSPECIFIED = 0 - - # Automotive - AUTOMOTIVE = 1 - - # Business and industrial markets - BUSINESS_AND_INDUSTRIAL_MARKETS = 2 - - # Finance - FINANCE = 3 - - # Healthcare - HEALTHCARE = 4 - - # Technology - TECHNOLOGY = 5 - - # Travel - TRAVEL = 6 - - # Other - OTHER = 7 - - # Arts and entertainment - ARTS_AND_ENTERTAINMENT = 8 - - # Beauty and fitness - BEAUTY_AND_FITNESS = 9 - - # Books and literature - BOOKS_AND_LITERATURE = 10 - - # Food and drink - FOOD_AND_DRINK = 11 - - # Games - GAMES = 12 - - # Hobbies and leisure - HOBBIES_AND_LEISURE = 13 - - # Home and garden - HOME_AND_GARDEN = 14 - - # Internet and telecom - INTERNET_AND_TELECOM = 15 - - # Law and government - LAW_AND_GOVERNMENT = 16 - - # News - NEWS = 17 - - # Online communities - ONLINE_COMMUNITIES = 18 - - # People and society - PEOPLE_AND_SOCIETY = 19 - - # Pets and animals - PETS_AND_ANIMALS = 20 - - # Real estate - REAL_ESTATE = 21 - - # Reference - REFERENCE = 22 - - # Science - SCIENCE = 23 - - # Sports - SPORTS = 24 - - # Jobs and education - JOBS_AND_EDUCATION = 25 - - # Shopping - SHOPPING = 26 - end - - # Various levels of service for Google Analytics. - module ServiceLevel - # Service level not specified or invalid. - SERVICE_LEVEL_UNSPECIFIED = 0 - - # The standard version of Google Analytics. - GOOGLE_ANALYTICS_STANDARD = 1 - - # The paid, premium version of Google Analytics. - GOOGLE_ANALYTICS_360 = 2 - end - - # Different kinds of actors that can make changes to Google Analytics - # resources. - module ActorType - # Unknown or unspecified actor type. - ACTOR_TYPE_UNSPECIFIED = 0 - - # Changes made by the user specified in actor_email. - USER = 1 - - # Changes made by the Google Analytics system. - SYSTEM = 2 - - # Changes made by Google Analytics support team staff. - SUPPORT = 3 - end - - # Types of actions that may change a resource. - module ActionType - # Action type unknown or not specified. - ACTION_TYPE_UNSPECIFIED = 0 - - # Resource was created in this change. - CREATED = 1 - - # Resource was updated in this change. - UPDATED = 2 - - # Resource was deleted in this change. - DELETED = 3 - end - - # Types of resources whose changes may be returned from change history. - module ChangeHistoryResourceType - # Resource type unknown or not specified. - CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0 - - # Account resource - ACCOUNT = 1 - - # Property resource - PROPERTY = 2 - - # FirebaseLink resource - FIREBASE_LINK = 6 - - # GoogleAdsLink resource - GOOGLE_ADS_LINK = 7 - - # GoogleSignalsSettings resource - GOOGLE_SIGNALS_SETTINGS = 8 - - # ConversionEvent resource - CONVERSION_EVENT = 9 - - # MeasurementProtocolSecret resource - MEASUREMENT_PROTOCOL_SECRET = 10 - - # CustomDimension resource - CUSTOM_DIMENSION = 11 - - # CustomMetric resource - CUSTOM_METRIC = 12 - - # DataRetentionSettings resource - DATA_RETENTION_SETTINGS = 13 - - # DisplayVideo360AdvertiserLink resource - DISPLAY_VIDEO_360_ADVERTISER_LINK = 14 - - # DisplayVideo360AdvertiserLinkProposal resource - DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15 - - # SearchAds360Link resource - SEARCH_ADS_360_LINK = 16 - - # DataStream resource - DATA_STREAM = 18 - - # AttributionSettings resource - ATTRIBUTION_SETTINGS = 20 - - # ExpandedDataSet resource - EXPANDED_DATA_SET = 21 - - # ChannelGroup resource - CHANNEL_GROUP = 22 - - # BigQuery link resource - BIGQUERY_LINK = 23 - - # EnhancedMeasurementSettings resource - ENHANCED_MEASUREMENT_SETTINGS = 24 - - # DataRedactionSettings resource - DATA_REDACTION_SETTINGS = 25 - - # SKAdNetworkConversionValueSchema resource - SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26 - - # AdSenseLink resource - ADSENSE_LINK = 27 - - # Audience resource - AUDIENCE = 28 - - # EventCreateRule resource - EVENT_CREATE_RULE = 29 - - # KeyEvent resource - KEY_EVENT = 30 - - # CalculatedMetric resource - CALCULATED_METRIC = 31 - - # ReportingDataAnnotation resource - REPORTING_DATA_ANNOTATION = 32 - - # SubpropertySyncConfig resource - SUBPROPERTY_SYNC_CONFIG = 33 - - # ReportingIdentitySettings resource - REPORTING_IDENTITY_SETTINGS = 34 - - # UserProvidedDataSettings resource - USER_PROVIDED_DATA_SETTINGS = 35 - end - - # Status of the Google Signals settings. - module GoogleSignalsState - # Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to - # represent that the user has not made an explicit choice. - GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0 - - # Google Signals is enabled. - GOOGLE_SIGNALS_ENABLED = 1 - - # Google Signals is disabled. - GOOGLE_SIGNALS_DISABLED = 2 - end - - # Consent field of the Google Signals settings. - module GoogleSignalsConsent - # Google Signals consent value defaults to - # GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as - # GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED. - GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0 - - # Terms of service have been accepted - GOOGLE_SIGNALS_CONSENT_CONSENTED = 2 - - # Terms of service have not been accepted - GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1 - end - - # An indication of which product the user initiated a link proposal from. - module LinkProposalInitiatingProduct - # Unspecified product. - LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0 - - # This proposal was created by a user from Google Analytics. - GOOGLE_ANALYTICS = 1 - - # This proposal was created by a user from a linked product (not Google - # Analytics). - LINKED_PRODUCT = 2 - end - - # The state of a link proposal resource. - module LinkProposalState - # Unspecified state - LINK_PROPOSAL_STATE_UNSPECIFIED = 0 - - # This proposal is awaiting review from a Google Analytics user. This - # proposal will automatically expire after some time. - AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1 - - # This proposal is awaiting review from a user of a linked product. This - # proposal will automatically expire after some time. - AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2 - - # This proposal has been withdrawn by an admin on the initiating product. - # This proposal will be automatically deleted after some time. - WITHDRAWN = 3 - - # This proposal has been declined by an admin on the receiving product. This - # proposal will be automatically deleted after some time. - DECLINED = 4 - - # This proposal expired due to lack of response from an admin on the - # receiving product. This proposal will be automatically deleted after some - # time. - EXPIRED = 5 - - # This proposal has become obsolete because a link was directly created to - # the same external product resource that this proposal specifies. This - # proposal will be automatically deleted after some time. - OBSOLETE = 6 - end - - # Types of `Property` resources. - module PropertyType - # Unknown or unspecified property type - PROPERTY_TYPE_UNSPECIFIED = 0 - - # Ordinary Google Analytics property - PROPERTY_TYPE_ORDINARY = 1 - - # Google Analytics subproperty - PROPERTY_TYPE_SUBPROPERTY = 2 - - # Google Analytics rollup property - PROPERTY_TYPE_ROLLUP = 3 - end - - # The coarse conversion value set on the updatePostbackConversionValue SDK call - # when a ConversionValues.event_mappings conditions are satisfied. For - # more information, see - # [SKAdNetwork.CoarseConversionValue](https://developer.apple.com/documentation/storekit/skadnetwork/coarseconversionvalue). - module CoarseValue - # Coarse value not specified. - COARSE_VALUE_UNSPECIFIED = 0 - - # Coarse value of low. - COARSE_VALUE_LOW = 1 - - # Coarse value of medium. - COARSE_VALUE_MEDIUM = 2 - - # Coarse value of high. - COARSE_VALUE_HIGH = 3 - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/subproperty_event_filter.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/subproperty_event_filter.rb deleted file mode 100644 index f0af8ec11750..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/subproperty_event_filter.rb +++ /dev/null @@ -1,167 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Analytics - module Admin - module V1alpha - # A specific filter expression - # @!attribute [rw] null_filter - # @return [::Boolean] - # A filter for null values. - # - # Note: The following fields are mutually exclusive: `null_filter`, `string_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] string_filter - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterCondition::StringFilter] - # A filter for a string-type dimension that matches a particular pattern. - # - # Note: The following fields are mutually exclusive: `string_filter`, `null_filter`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] field_name - # @return [::String] - # Required. The field that is being filtered. - class SubpropertyEventFilterCondition - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A filter for a string-type dimension that matches a particular pattern. - # @!attribute [rw] match_type - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterCondition::StringFilter::MatchType] - # Required. The match type for the string filter. - # @!attribute [rw] value - # @return [::String] - # Required. The string value used for the matching. - # @!attribute [rw] case_sensitive - # @return [::Boolean] - # Optional. If true, the string value is case sensitive. If false, the - # match is case-insensitive. - class StringFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # How the filter will be used to determine a match. - module MatchType - # Match type unknown or not specified. - MATCH_TYPE_UNSPECIFIED = 0 - - # Exact match of the string value. - EXACT = 1 - - # Begins with the string value. - BEGINS_WITH = 2 - - # Ends with the string value. - ENDS_WITH = 3 - - # Contains the string value. - CONTAINS = 4 - - # Full regular expression matches with the string value. - FULL_REGEXP = 5 - - # Partial regular expression matches with the string value. - PARTIAL_REGEXP = 6 - end - end - end - - # A logical expression of Subproperty event filters. - # @!attribute [rw] or_group - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterExpressionList] - # A list of expressions to OR’ed together. Must only contain - # not_expression or filter_condition expressions. - # - # Note: The following fields are mutually exclusive: `or_group`, `not_expression`, `filter_condition`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] not_expression - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterExpression] - # A filter expression to be NOT'ed (inverted, complemented). It can only - # include a filter. This cannot be set on the top level - # SubpropertyEventFilterExpression. - # - # Note: The following fields are mutually exclusive: `not_expression`, `or_group`, `filter_condition`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] filter_condition - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterCondition] - # Creates a filter that matches a specific event. This cannot be set on the - # top level SubpropertyEventFilterExpression. - # - # Note: The following fields are mutually exclusive: `filter_condition`, `or_group`, `not_expression`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class SubpropertyEventFilterExpression - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A list of Subproperty event filter expressions. - # @!attribute [rw] filter_expressions - # @return [::Array<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterExpression>] - # Required. Unordered list. A list of Subproperty event filter expressions - class SubpropertyEventFilterExpressionList - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A clause for defining a filter. A filter may be inclusive (events satisfying - # the filter clause are included in the subproperty's data) or exclusive - # (events satisfying the filter clause are excluded from the subproperty's - # data). - # @!attribute [rw] filter_clause_type - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterClause::FilterClauseType] - # Required. The type for the filter clause. - # @!attribute [rw] filter_expression - # @return [::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterExpression] - # Required. The logical expression for what events are sent to the - # subproperty. - class SubpropertyEventFilterClause - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Specifies whether this is an include or exclude filter clause. - module FilterClauseType - # Filter clause type unknown or not specified. - FILTER_CLAUSE_TYPE_UNSPECIFIED = 0 - - # Events will be included in the Sub property if the filter clause is met. - INCLUDE = 1 - - # Events will be excluded from the Sub property if the filter clause is - # met. - EXCLUDE = 2 - end - end - - # A resource message representing a Google Analytics subproperty event filter. - # @!attribute [r] name - # @return [::String] - # Output only. Format: - # properties/\\{ordinary_property_id}/subpropertyEventFilters/\\{sub_property_event_filter} - # Example: properties/1234/subpropertyEventFilters/5678 - # @!attribute [rw] apply_to_property - # @return [::String] - # Immutable. Resource name of the Subproperty that uses this filter. - # @!attribute [rw] filter_clauses - # @return [::Array<::Google::Analytics::Admin::V1alpha::SubpropertyEventFilterClause>] - # Required. Unordered list. Filter clauses that define the - # SubpropertyEventFilter. All clauses are AND'ed together to determine what - # data is sent to the subproperty. - class SubpropertyEventFilter - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/client.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/client.rb deleted file mode 100644 index 3ab0b096d445..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/client.rb +++ /dev/null @@ -1,593 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - # - # Note: This field should not be used in most cases. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Php. Clobbers the php_namespace option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.php.package_name" field - # in gapic.yaml. API teams should use the protobuf php_namespace option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # php_settings: - # library_package: Google\Cloud\PubSub\V1 - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # Example: - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - # @!attribute [rw] batching - # @return [::Google::Api::BatchingConfigProto] - # Batching configuration for an API method in client libraries. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.BatchCreateExample - # batching: - # element_count_threshold: 1000 - # request_byte_threshold: 100000000 - # delay_threshold_millis: 10 - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # - # Note: This feature should not be used in most cases. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingConfigProto` defines the batching configuration for an API method. - # @!attribute [rw] thresholds - # @return [::Google::Api::BatchingSettingsProto] - # The thresholds which trigger a batched request to be sent. - # @!attribute [rw] batch_descriptor - # @return [::Google::Api::BatchingDescriptorProto] - # The request and response fields used in batching. - class BatchingConfigProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingSettingsProto` specifies a set of batching thresholds, each of - # which acts as a trigger to send a batch of messages as a request. At least - # one threshold must be positive nonzero. - # @!attribute [rw] element_count_threshold - # @return [::Integer] - # The number of elements of a field collected into a batch which, if - # exceeded, causes the batch to be sent. - # @!attribute [rw] request_byte_threshold - # @return [::Integer] - # The aggregated size of the batched field which, if exceeded, causes the - # batch to be sent. This size is computed by aggregating the sizes of the - # request field to be batched, not of the entire request message. - # @!attribute [rw] delay_threshold - # @return [::Google::Protobuf::Duration] - # The duration after which a batch should be sent, starting from the addition - # of the first message to that batch. - # @!attribute [rw] element_count_limit - # @return [::Integer] - # The maximum number of elements collected in a batch that could be accepted - # by server. - # @!attribute [rw] request_byte_limit - # @return [::Integer] - # The maximum size of the request that could be accepted by server. - # @!attribute [rw] flow_control_element_limit - # @return [::Integer] - # The maximum number of elements allowed by flow control. - # @!attribute [rw] flow_control_byte_limit - # @return [::Integer] - # The maximum size of data allowed by flow control. - # @!attribute [rw] flow_control_limit_exceeded_behavior - # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] - # The behavior to take when the flow control limit is exceeded. - class BatchingSettingsProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingDescriptorProto` specifies the fields of the request message to be - # used for batching, and, optionally, the fields of the response message to be - # used for demultiplexing. - # @!attribute [rw] batched_field - # @return [::String] - # The repeated field in the request message to be aggregated by batching. - # @!attribute [rw] discriminator_fields - # @return [::Array<::String>] - # A list of the fields in the request message. Two requests will be batched - # together only if the values of every field specified in - # `request_discriminator_fields` is equal between the two requests. - # @!attribute [rw] subresponse_field - # @return [::String] - # Optional. When present, indicates the field in the response message to be - # used to demultiplex the response into multiple response messages, in - # correspondence with the multiple request messages originally batched - # together. - class BatchingDescriptorProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - - # The behavior to take when the flow control limit is exceeded. - module FlowControlLimitExceededBehaviorProto - # Default behavior, system-defined. - UNSET_BEHAVIOR = 0 - - # Stop operation, raise error. - THROW_EXCEPTION = 1 - - # Pause operation until limit clears. - BLOCK = 2 - - # Continue operation, disregard limit. - IGNORE = 3 - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/resource.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/empty.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A generic empty message that you can re-use to avoid defining duplicated - # empty messages in your APIs. A typical example is to use it as the request - # or the response type of an API method. For instance: - # - # service Foo { - # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - # } - class Empty - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/wrappers.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/wrappers.rb deleted file mode 100644 index 9a7c0269fa42..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/protobuf/wrappers.rb +++ /dev/null @@ -1,148 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # Wrapper message for `double`. - # - # The JSON representation for `DoubleValue` is JSON number. - # - # Not recommended for use in new APIs, but still useful for legacy APIs and - # has no plan to be removed. - # @!attribute [rw] value - # @return [::Float] - # The double value. - class DoubleValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `float`. - # - # The JSON representation for `FloatValue` is JSON number. - # - # Not recommended for use in new APIs, but still useful for legacy APIs and - # has no plan to be removed. - # @!attribute [rw] value - # @return [::Float] - # The float value. - class FloatValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `int64`. - # - # The JSON representation for `Int64Value` is JSON string. - # - # Not recommended for use in new APIs, but still useful for legacy APIs and - # has no plan to be removed. - # @!attribute [rw] value - # @return [::Integer] - # The int64 value. - class Int64Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `uint64`. - # - # The JSON representation for `UInt64Value` is JSON string. - # - # Not recommended for use in new APIs, but still useful for legacy APIs and - # has no plan to be removed. - # @!attribute [rw] value - # @return [::Integer] - # The uint64 value. - class UInt64Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `int32`. - # - # The JSON representation for `Int32Value` is JSON number. - # - # Not recommended for use in new APIs, but still useful for legacy APIs and - # has no plan to be removed. - # @!attribute [rw] value - # @return [::Integer] - # The int32 value. - class Int32Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `uint32`. - # - # The JSON representation for `UInt32Value` is JSON number. - # - # Not recommended for use in new APIs, but still useful for legacy APIs and - # has no plan to be removed. - # @!attribute [rw] value - # @return [::Integer] - # The uint32 value. - class UInt32Value - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `bool`. - # - # The JSON representation for `BoolValue` is JSON `true` and `false`. - # - # Not recommended for use in new APIs, but still useful for legacy APIs and - # has no plan to be removed. - # @!attribute [rw] value - # @return [::Boolean] - # The bool value. - class BoolValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `string`. - # - # The JSON representation for `StringValue` is JSON string. - # - # Not recommended for use in new APIs, but still useful for legacy APIs and - # has no plan to be removed. - # @!attribute [rw] value - # @return [::String] - # The string value. - class StringValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Wrapper message for `bytes`. - # - # The JSON representation for `BytesValue` is JSON string. - # - # Not recommended for use in new APIs, but still useful for legacy APIs and - # has no plan to be removed. - # @!attribute [rw] value - # @return [::String] - # The bytes value. - class BytesValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/type/date.rb b/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/type/date.rb deleted file mode 100644 index a52275cebf89..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/proto_docs/google/type/date.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a whole or partial calendar date, such as a birthday. The time of - # day and time zone are either specified elsewhere or are insignificant. The - # date is relative to the Gregorian Calendar. This can represent one of the - # following: - # - # * A full date, with non-zero year, month, and day values. - # * A month and day, with a zero year (for example, an anniversary). - # * A year on its own, with a zero month and a zero day. - # * A year and month, with a zero day (for example, a credit card expiration - # date). - # - # Related types: - # - # * [google.type.TimeOfDay][google.type.TimeOfDay] - # * [google.type.DateTime][google.type.DateTime] - # * {::Google::Protobuf::Timestamp google.protobuf.Timestamp} - # @!attribute [rw] year - # @return [::Integer] - # Year of the date. Must be from 1 to 9999, or 0 to specify a date without - # a year. - # @!attribute [rw] month - # @return [::Integer] - # Month of a year. Must be from 1 to 12, or 0 to specify a year without a - # month and day. - # @!attribute [rw] day - # @return [::Integer] - # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 - # to specify a year by itself or a year and month where the day isn't - # significant. - class Date - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/Gemfile b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/Gemfile deleted file mode 100644 index 4a679dff2d5b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-analytics-admin-v1alpha", path: "../" -else - gem "google-analytics-admin-v1alpha" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/acknowledge_user_data_collection.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/acknowledge_user_data_collection.rb deleted file mode 100644 index 1cace4b29fea..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/acknowledge_user_data_collection.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the acknowledge_user_data_collection call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#acknowledge_user_data_collection. -# -def acknowledge_user_data_collection - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new - - # Call the acknowledge_user_data_collection method. - result = client.acknowledge_user_data_collection request - - # The returned object is of type Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/approve_display_video360_advertiser_link_proposal.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/approve_display_video360_advertiser_link_proposal.rb deleted file mode 100644 index 8bc2abf2448c..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/approve_display_video360_advertiser_link_proposal.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the approve_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#approve_display_video360_advertiser_link_proposal. -# -def approve_display_video360_advertiser_link_proposal - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new - - # Call the approve_display_video360_advertiser_link_proposal method. - result = client.approve_display_video360_advertiser_link_proposal request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_audience.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_audience.rb deleted file mode 100644 index ef426db4b474..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_audience.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the archive_audience call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_audience. -# -def archive_audience - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new - - # Call the archive_audience method. - result = client.archive_audience request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_dimension.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_dimension.rb deleted file mode 100644 index 04b27e174cf3..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_dimension.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the archive_custom_dimension call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_dimension. -# -def archive_custom_dimension - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new - - # Call the archive_custom_dimension method. - result = client.archive_custom_dimension request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_metric.rb deleted file mode 100644 index 32a3d977fc02..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/archive_custom_metric.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the archive_custom_metric call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_metric. -# -def archive_custom_metric - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new - - # Call the archive_custom_metric method. - result = client.archive_custom_metric request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_create_access_bindings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_create_access_bindings.rb deleted file mode 100644 index 9bb1f9d05a2b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_create_access_bindings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the batch_create_access_bindings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_create_access_bindings. -# -def batch_create_access_bindings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new - - # Call the batch_create_access_bindings method. - result = client.batch_create_access_bindings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_delete_access_bindings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_delete_access_bindings.rb deleted file mode 100644 index 6ae804d5056e..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_delete_access_bindings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the batch_delete_access_bindings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_delete_access_bindings. -# -def batch_delete_access_bindings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new - - # Call the batch_delete_access_bindings method. - result = client.batch_delete_access_bindings request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_get_access_bindings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_get_access_bindings.rb deleted file mode 100644 index 073a9549ebd7..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_get_access_bindings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the batch_get_access_bindings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_get_access_bindings. -# -def batch_get_access_bindings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new - - # Call the batch_get_access_bindings method. - result = client.batch_get_access_bindings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_update_access_bindings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_update_access_bindings.rb deleted file mode 100644 index ea5d5f182d60..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/batch_update_access_bindings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the batch_update_access_bindings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_update_access_bindings. -# -def batch_update_access_bindings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new - - # Call the batch_update_access_bindings method. - result = client.batch_update_access_bindings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/cancel_display_video360_advertiser_link_proposal.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/cancel_display_video360_advertiser_link_proposal.rb deleted file mode 100644 index 4eec0792c913..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/cancel_display_video360_advertiser_link_proposal.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the cancel_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#cancel_display_video360_advertiser_link_proposal. -# -def cancel_display_video360_advertiser_link_proposal - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new - - # Call the cancel_display_video360_advertiser_link_proposal method. - result = client.cancel_display_video360_advertiser_link_proposal request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_access_binding.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_access_binding.rb deleted file mode 100644 index 6d93106c1a53..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_access_binding.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_access_binding call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_access_binding. -# -def create_access_binding - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new - - # Call the create_access_binding method. - result = client.create_access_binding request - - # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_ad_sense_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_ad_sense_link.rb deleted file mode 100644 index a765725a9ffd..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_ad_sense_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_ad_sense_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_ad_sense_link. -# -def create_ad_sense_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new - - # Call the create_ad_sense_link method. - result = client.create_ad_sense_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_audience.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_audience.rb deleted file mode 100644 index 0831a9090929..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_audience.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_audience call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_audience. -# -def create_audience - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new - - # Call the create_audience method. - result = client.create_audience request - - # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb deleted file mode 100644 index f0f7fa58a8f5..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateBigQueryLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_big_query_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_big_query_link. -# -def create_big_query_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new - - # Call the create_big_query_link method. - result = client.create_big_query_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateBigQueryLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_calculated_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_calculated_metric.rb deleted file mode 100644 index 4adb224dcdee..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_calculated_metric.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCalculatedMetric_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_calculated_metric call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_calculated_metric. -# -def create_calculated_metric - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new - - # Call the create_calculated_metric method. - result = client.create_calculated_metric request - - # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCalculatedMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_channel_group.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_channel_group.rb deleted file mode 100644 index c6c9de9dca4b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_channel_group.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateChannelGroup_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_channel_group call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_channel_group. -# -def create_channel_group - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new - - # Call the create_channel_group method. - result = client.create_channel_group request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateChannelGroup_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_conversion_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_conversion_event.rb deleted file mode 100644 index 6ac06ca6ef64..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_conversion_event.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_conversion_event call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_conversion_event. -# -def create_conversion_event - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new - - # Call the create_conversion_event method. - result = client.create_conversion_event request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_dimension.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_dimension.rb deleted file mode 100644 index 716b532ea1c5..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_dimension.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_custom_dimension call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_dimension. -# -def create_custom_dimension - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new - - # Call the create_custom_dimension method. - result = client.create_custom_dimension request - - # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_metric.rb deleted file mode 100644 index f8ff0b0bbb2f..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_custom_metric.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_custom_metric call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_metric. -# -def create_custom_metric - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new - - # Call the create_custom_metric method. - result = client.create_custom_metric request - - # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_data_stream.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_data_stream.rb deleted file mode 100644 index d4b81a5d635f..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_data_stream.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_data_stream call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_data_stream. -# -def create_data_stream - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new - - # Call the create_data_stream method. - result = client.create_data_stream request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link.rb deleted file mode 100644 index 0f0c164f778f..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_display_video360_advertiser_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link. -# -def create_display_video360_advertiser_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new - - # Call the create_display_video360_advertiser_link method. - result = client.create_display_video360_advertiser_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link_proposal.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link_proposal.rb deleted file mode 100644 index 1deca67fa136..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_display_video360_advertiser_link_proposal.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link_proposal. -# -def create_display_video360_advertiser_link_proposal - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new - - # Call the create_display_video360_advertiser_link_proposal method. - result = client.create_display_video360_advertiser_link_proposal request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_create_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_create_rule.rb deleted file mode 100644 index 91da2659bc99..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_create_rule.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_event_create_rule call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_create_rule. -# -def create_event_create_rule - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new - - # Call the create_event_create_rule method. - result = client.create_event_create_rule request - - # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb deleted file mode 100644 index 4aa5c25103a6..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventEditRule_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_event_edit_rule call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_edit_rule. -# -def create_event_edit_rule - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new - - # Call the create_event_edit_rule method. - result = client.create_event_edit_rule request - - # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventEditRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_expanded_data_set.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_expanded_data_set.rb deleted file mode 100644 index 0960e77017e3..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_expanded_data_set.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_expanded_data_set call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_expanded_data_set. -# -def create_expanded_data_set - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new - - # Call the create_expanded_data_set method. - result = client.create_expanded_data_set request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_firebase_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_firebase_link.rb deleted file mode 100644 index 5ad3217081f5..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_firebase_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_firebase_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_firebase_link. -# -def create_firebase_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new - - # Call the create_firebase_link method. - result = client.create_firebase_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::FirebaseLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_google_ads_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_google_ads_link.rb deleted file mode 100644 index 21e392635228..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_google_ads_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_google_ads_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_google_ads_link. -# -def create_google_ads_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new - - # Call the create_google_ads_link method. - result = client.create_google_ads_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb deleted file mode 100644 index b1aabc54e3ec..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_key_event call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_key_event. -# -def create_key_event - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new - - # Call the create_key_event method. - result = client.create_key_event request - - # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_measurement_protocol_secret.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_measurement_protocol_secret.rb deleted file mode 100644 index cd9380db92a9..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_measurement_protocol_secret.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_measurement_protocol_secret call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_measurement_protocol_secret. -# -def create_measurement_protocol_secret - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new - - # Call the create_measurement_protocol_secret method. - result = client.create_measurement_protocol_secret request - - # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_property.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_property.rb deleted file mode 100644 index 690579b5d190..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_property.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_property call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_property. -# -def create_property - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new - - # Call the create_property method. - result = client.create_property request - - # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_reporting_data_annotation.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_reporting_data_annotation.rb deleted file mode 100644 index 3c6cb8d2b1d1..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_reporting_data_annotation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateReportingDataAnnotation_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_reporting_data_annotation call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_reporting_data_annotation. -# -def create_reporting_data_annotation - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new - - # Call the create_reporting_data_annotation method. - result = client.create_reporting_data_annotation request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateReportingDataAnnotation_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property.rb deleted file mode 100644 index 95335db94b2b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_rollup_property call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property. -# -def create_rollup_property - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new - - # Call the create_rollup_property method. - result = client.create_rollup_property request - - # The returned object is of type Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property_source_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property_source_link.rb deleted file mode 100644 index 120d11a5fe39..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_rollup_property_source_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_rollup_property_source_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property_source_link. -# -def create_rollup_property_source_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new - - # Call the create_rollup_property_source_link method. - result = client.create_rollup_property_source_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_search_ads360_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_search_ads360_link.rb deleted file mode 100644 index d0fd4d3337a6..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_search_ads360_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_search_ads360_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_search_ads360_link. -# -def create_search_ads360_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new - - # Call the create_search_ads360_link method. - result = client.create_search_ads360_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb deleted file mode 100644 index e43364c088a4..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSKAdNetworkConversionValueSchema_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_sk_ad_network_conversion_value_schema. -# -def create_sk_ad_network_conversion_value_schema - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new - - # Call the create_sk_ad_network_conversion_value_schema method. - result = client.create_sk_ad_network_conversion_value_schema request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty_event_filter.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty_event_filter.rb deleted file mode 100644 index b49bda256192..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty_event_filter.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the create_subproperty_event_filter call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_subproperty_event_filter. -# -def create_subproperty_event_filter - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new - - # Call the create_subproperty_event_filter method. - result = client.create_subproperty_event_filter request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_access_binding.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_access_binding.rb deleted file mode 100644 index 4e5d79f9cc5b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_access_binding.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_access_binding call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_access_binding. -# -def delete_access_binding - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new - - # Call the delete_access_binding method. - result = client.delete_access_binding request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_account.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_account.rb deleted file mode 100644 index a7a9b31f46a4..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_account.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_account call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_account. -# -def delete_account - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new - - # Call the delete_account method. - result = client.delete_account request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_ad_sense_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_ad_sense_link.rb deleted file mode 100644 index f856159f4254..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_ad_sense_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_ad_sense_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_ad_sense_link. -# -def delete_ad_sense_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new - - # Call the delete_ad_sense_link method. - result = client.delete_ad_sense_link request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb deleted file mode 100644 index c77534c28b36..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteBigQueryLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_big_query_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_big_query_link. -# -def delete_big_query_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new - - # Call the delete_big_query_link method. - result = client.delete_big_query_link request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteBigQueryLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_calculated_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_calculated_metric.rb deleted file mode 100644 index 2ddc15c80c2a..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_calculated_metric.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteCalculatedMetric_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_calculated_metric call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_calculated_metric. -# -def delete_calculated_metric - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new - - # Call the delete_calculated_metric method. - result = client.delete_calculated_metric request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteCalculatedMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_channel_group.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_channel_group.rb deleted file mode 100644 index b8ec703e7af5..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_channel_group.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteChannelGroup_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_channel_group call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_channel_group. -# -def delete_channel_group - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new - - # Call the delete_channel_group method. - result = client.delete_channel_group request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteChannelGroup_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_conversion_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_conversion_event.rb deleted file mode 100644 index cc4578e3d724..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_conversion_event.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_conversion_event call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_conversion_event. -# -def delete_conversion_event - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new - - # Call the delete_conversion_event method. - result = client.delete_conversion_event request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_data_stream.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_data_stream.rb deleted file mode 100644 index a3199ec51340..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_data_stream.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_data_stream call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_data_stream. -# -def delete_data_stream - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new - - # Call the delete_data_stream method. - result = client.delete_data_stream request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link.rb deleted file mode 100644 index 9bb594f394a6..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_display_video360_advertiser_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link. -# -def delete_display_video360_advertiser_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new - - # Call the delete_display_video360_advertiser_link method. - result = client.delete_display_video360_advertiser_link request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb deleted file mode 100644 index 95556e53db71..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link_proposal. -# -def delete_display_video360_advertiser_link_proposal - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new - - # Call the delete_display_video360_advertiser_link_proposal method. - result = client.delete_display_video360_advertiser_link_proposal request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_create_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_create_rule.rb deleted file mode 100644 index 06fdb8ad97a0..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_create_rule.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_event_create_rule call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_create_rule. -# -def delete_event_create_rule - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new - - # Call the delete_event_create_rule method. - result = client.delete_event_create_rule request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb deleted file mode 100644 index 3d909ca75deb..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventEditRule_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_event_edit_rule call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_edit_rule. -# -def delete_event_edit_rule - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new - - # Call the delete_event_edit_rule method. - result = client.delete_event_edit_rule request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventEditRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_expanded_data_set.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_expanded_data_set.rb deleted file mode 100644 index b4281d4e9243..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_expanded_data_set.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_expanded_data_set call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_expanded_data_set. -# -def delete_expanded_data_set - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new - - # Call the delete_expanded_data_set method. - result = client.delete_expanded_data_set request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_firebase_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_firebase_link.rb deleted file mode 100644 index fddbd58695f0..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_firebase_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_firebase_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_firebase_link. -# -def delete_firebase_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new - - # Call the delete_firebase_link method. - result = client.delete_firebase_link request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_google_ads_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_google_ads_link.rb deleted file mode 100644 index 85a6fde08425..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_google_ads_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_google_ads_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_google_ads_link. -# -def delete_google_ads_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new - - # Call the delete_google_ads_link method. - result = client.delete_google_ads_link request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb deleted file mode 100644 index c29d8a677777..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteKeyEvent_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_key_event call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_key_event. -# -def delete_key_event - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new - - # Call the delete_key_event method. - result = client.delete_key_event request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteKeyEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_measurement_protocol_secret.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_measurement_protocol_secret.rb deleted file mode 100644 index d0f3d9a85658..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_measurement_protocol_secret.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_measurement_protocol_secret call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_measurement_protocol_secret. -# -def delete_measurement_protocol_secret - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new - - # Call the delete_measurement_protocol_secret method. - result = client.delete_measurement_protocol_secret request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_property.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_property.rb deleted file mode 100644 index 4d88afe10f97..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_property.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_property call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_property. -# -def delete_property - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new - - # Call the delete_property method. - result = client.delete_property request - - # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_reporting_data_annotation.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_reporting_data_annotation.rb deleted file mode 100644 index 861c6e1923b4..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_reporting_data_annotation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteReportingDataAnnotation_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_reporting_data_annotation call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_reporting_data_annotation. -# -def delete_reporting_data_annotation - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new - - # Call the delete_reporting_data_annotation method. - result = client.delete_reporting_data_annotation request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteReportingDataAnnotation_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_rollup_property_source_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_rollup_property_source_link.rb deleted file mode 100644 index f8fd171a0fde..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_rollup_property_source_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_rollup_property_source_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_rollup_property_source_link. -# -def delete_rollup_property_source_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new - - # Call the delete_rollup_property_source_link method. - result = client.delete_rollup_property_source_link request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_search_ads360_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_search_ads360_link.rb deleted file mode 100644 index b95e9d8d2382..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_search_ads360_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_search_ads360_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_search_ads360_link. -# -def delete_search_ads360_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new - - # Call the delete_search_ads360_link method. - result = client.delete_search_ads360_link request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_sk_ad_network_conversion_value_schema.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_sk_ad_network_conversion_value_schema.rb deleted file mode 100644 index 1cf3997e0115..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_sk_ad_network_conversion_value_schema.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSKAdNetworkConversionValueSchema_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_sk_ad_network_conversion_value_schema. -# -def delete_sk_ad_network_conversion_value_schema - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new - - # Call the delete_sk_ad_network_conversion_value_schema method. - result = client.delete_sk_ad_network_conversion_value_schema request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_subproperty_event_filter.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_subproperty_event_filter.rb deleted file mode 100644 index c926990089c5..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_subproperty_event_filter.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the delete_subproperty_event_filter call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_subproperty_event_filter. -# -def delete_subproperty_event_filter - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new - - # Call the delete_subproperty_event_filter method. - result = client.delete_subproperty_event_filter request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_access_binding.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_access_binding.rb deleted file mode 100644 index 7486e550fef5..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_access_binding.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_access_binding call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_access_binding. -# -def get_access_binding - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new - - # Call the get_access_binding method. - result = client.get_access_binding request - - # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_account.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_account.rb deleted file mode 100644 index 258f7eee23b7..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_account.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_account call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_account. -# -def get_account - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetAccountRequest.new - - # Call the get_account method. - result = client.get_account request - - # The returned object is of type Google::Analytics::Admin::V1alpha::Account. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_ad_sense_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_ad_sense_link.rb deleted file mode 100644 index c607f4e89e4e..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_ad_sense_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_ad_sense_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_ad_sense_link. -# -def get_ad_sense_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new - - # Call the get_ad_sense_link method. - result = client.get_ad_sense_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_attribution_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_attribution_settings.rb deleted file mode 100644 index dab2f3e261ee..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_attribution_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_attribution_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_attribution_settings. -# -def get_attribution_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new - - # Call the get_attribution_settings method. - result = client.get_attribution_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_audience.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_audience.rb deleted file mode 100644 index 30f2675b63c0..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_audience.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_audience call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_audience. -# -def get_audience - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetAudienceRequest.new - - # Call the get_audience method. - result = client.get_audience request - - # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_big_query_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_big_query_link.rb deleted file mode 100644 index 4d2343485da1..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_big_query_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_big_query_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_big_query_link. -# -def get_big_query_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new - - # Call the get_big_query_link method. - result = client.get_big_query_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_calculated_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_calculated_metric.rb deleted file mode 100644 index 2630aad693e6..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_calculated_metric.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCalculatedMetric_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_calculated_metric call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_calculated_metric. -# -def get_calculated_metric - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new - - # Call the get_calculated_metric method. - result = client.get_calculated_metric request - - # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCalculatedMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_channel_group.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_channel_group.rb deleted file mode 100644 index 8a6a15fad8f1..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_channel_group.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetChannelGroup_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_channel_group call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_channel_group. -# -def get_channel_group - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new - - # Call the get_channel_group method. - result = client.get_channel_group request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetChannelGroup_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_conversion_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_conversion_event.rb deleted file mode 100644 index 87cc0e8e4c2b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_conversion_event.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_conversion_event call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_conversion_event. -# -def get_conversion_event - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new - - # Call the get_conversion_event method. - result = client.get_conversion_event request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_dimension.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_dimension.rb deleted file mode 100644 index 661c601e47ac..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_dimension.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_custom_dimension call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_dimension. -# -def get_custom_dimension - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new - - # Call the get_custom_dimension method. - result = client.get_custom_dimension request - - # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_metric.rb deleted file mode 100644 index acdc35f0a613..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_custom_metric.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_custom_metric call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_metric. -# -def get_custom_metric - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new - - # Call the get_custom_metric method. - result = client.get_custom_metric request - - # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_redaction_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_redaction_settings.rb deleted file mode 100644 index 90784d322ed5..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_redaction_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_data_redaction_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_redaction_settings. -# -def get_data_redaction_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new - - # Call the get_data_redaction_settings method. - result = client.get_data_redaction_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_retention_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_retention_settings.rb deleted file mode 100644 index 924097c39f8c..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_retention_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_data_retention_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_retention_settings. -# -def get_data_retention_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new - - # Call the get_data_retention_settings method. - result = client.get_data_retention_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_sharing_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_sharing_settings.rb deleted file mode 100644 index 031c5d7144d1..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_sharing_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_data_sharing_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_sharing_settings. -# -def get_data_sharing_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new - - # Call the get_data_sharing_settings method. - result = client.get_data_sharing_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DataSharingSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_stream.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_stream.rb deleted file mode 100644 index 2bcbb3152533..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_data_stream.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_data_stream call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_stream. -# -def get_data_stream - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new - - # Call the get_data_stream method. - result = client.get_data_stream request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link.rb deleted file mode 100644 index 29fd01c2c774..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_display_video360_advertiser_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link. -# -def get_display_video360_advertiser_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new - - # Call the get_display_video360_advertiser_link method. - result = client.get_display_video360_advertiser_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link_proposal.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link_proposal.rb deleted file mode 100644 index b3eeb334c328..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_display_video360_advertiser_link_proposal.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link_proposal. -# -def get_display_video360_advertiser_link_proposal - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new - - # Call the get_display_video360_advertiser_link_proposal method. - result = client.get_display_video360_advertiser_link_proposal request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_enhanced_measurement_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_enhanced_measurement_settings.rb deleted file mode 100644 index 3663ae9e7300..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_enhanced_measurement_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_enhanced_measurement_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_enhanced_measurement_settings. -# -def get_enhanced_measurement_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new - - # Call the get_enhanced_measurement_settings method. - result = client.get_enhanced_measurement_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_create_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_create_rule.rb deleted file mode 100644 index 95cd99d6ff95..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_create_rule.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_event_create_rule call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_create_rule. -# -def get_event_create_rule - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new - - # Call the get_event_create_rule method. - result = client.get_event_create_rule request - - # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb deleted file mode 100644 index 5d7acb27371b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventEditRule_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_event_edit_rule call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_edit_rule. -# -def get_event_edit_rule - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new - - # Call the get_event_edit_rule method. - result = client.get_event_edit_rule request - - # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventEditRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_expanded_data_set.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_expanded_data_set.rb deleted file mode 100644 index 9aa415ff8af7..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_expanded_data_set.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_expanded_data_set call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_expanded_data_set. -# -def get_expanded_data_set - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new - - # Call the get_expanded_data_set method. - result = client.get_expanded_data_set request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_global_site_tag.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_global_site_tag.rb deleted file mode 100644 index 21f37430cf34..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_global_site_tag.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_global_site_tag call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_global_site_tag. -# -def get_global_site_tag - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new - - # Call the get_global_site_tag method. - result = client.get_global_site_tag request - - # The returned object is of type Google::Analytics::Admin::V1alpha::GlobalSiteTag. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_google_signals_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_google_signals_settings.rb deleted file mode 100644 index 61cb640f6651..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_google_signals_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_google_signals_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_google_signals_settings. -# -def get_google_signals_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new - - # Call the get_google_signals_settings method. - result = client.get_google_signals_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb deleted file mode 100644 index 2da18239b6b0..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetKeyEvent_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_key_event call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_key_event. -# -def get_key_event - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new - - # Call the get_key_event method. - result = client.get_key_event request - - # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetKeyEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_measurement_protocol_secret.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_measurement_protocol_secret.rb deleted file mode 100644 index 9149ffe694a9..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_measurement_protocol_secret.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_measurement_protocol_secret call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_measurement_protocol_secret. -# -def get_measurement_protocol_secret - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new - - # Call the get_measurement_protocol_secret method. - result = client.get_measurement_protocol_secret request - - # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_property.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_property.rb deleted file mode 100644 index ceef8bfc6c45..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_property.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_property call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_property. -# -def get_property - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetPropertyRequest.new - - # Call the get_property method. - result = client.get_property request - - # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_data_annotation.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_data_annotation.rb deleted file mode 100644 index f3aa0d2f2d0c..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_data_annotation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingDataAnnotation_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_reporting_data_annotation call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_data_annotation. -# -def get_reporting_data_annotation - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new - - # Call the get_reporting_data_annotation method. - result = client.get_reporting_data_annotation request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingDataAnnotation_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_identity_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_identity_settings.rb deleted file mode 100644 index db686c584aea..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_reporting_identity_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingIdentitySettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_reporting_identity_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_identity_settings. -# -def get_reporting_identity_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new - - # Call the get_reporting_identity_settings method. - result = client.get_reporting_identity_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingIdentitySettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingIdentitySettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_rollup_property_source_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_rollup_property_source_link.rb deleted file mode 100644 index c3bbfbbe1b2e..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_rollup_property_source_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_rollup_property_source_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_rollup_property_source_link. -# -def get_rollup_property_source_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new - - # Call the get_rollup_property_source_link method. - result = client.get_rollup_property_source_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_search_ads360_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_search_ads360_link.rb deleted file mode 100644 index e26c6c6da26e..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_search_ads360_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_search_ads360_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_search_ads360_link. -# -def get_search_ads360_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new - - # Call the get_search_ads360_link method. - result = client.get_search_ads360_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_sk_ad_network_conversion_value_schema.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_sk_ad_network_conversion_value_schema.rb deleted file mode 100644 index 3708426d28f1..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_sk_ad_network_conversion_value_schema.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSKAdNetworkConversionValueSchema_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_sk_ad_network_conversion_value_schema. -# -def get_sk_ad_network_conversion_value_schema - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new - - # Call the get_sk_ad_network_conversion_value_schema method. - result = client.get_sk_ad_network_conversion_value_schema request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_event_filter.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_event_filter.rb deleted file mode 100644 index c232130cd63b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_event_filter.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_subproperty_event_filter call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_event_filter. -# -def get_subproperty_event_filter - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new - - # Call the get_subproperty_event_filter method. - result = client.get_subproperty_event_filter request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_sync_config.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_sync_config.rb deleted file mode 100644 index 7f36ca5e58b7..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_subproperty_sync_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertySyncConfig_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_subproperty_sync_config call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_sync_config. -# -def get_subproperty_sync_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new - - # Call the get_subproperty_sync_config method. - result = client.get_subproperty_sync_config request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertySyncConfig_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_user_provided_data_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_user_provided_data_settings.rb deleted file mode 100644 index cb89591c08de..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_user_provided_data_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the get_user_provided_data_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_user_provided_data_settings. -# -def get_user_provided_data_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new - - # Call the get_user_provided_data_settings method. - result = client.get_user_provided_data_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::UserProvidedDataSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_access_bindings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_access_bindings.rb deleted file mode 100644 index 244efb4100e8..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_access_bindings.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_access_bindings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_access_bindings. -# -def list_access_bindings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new - - # Call the list_access_bindings method. - result = client.list_access_bindings request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::AccessBinding. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_account_summaries.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_account_summaries.rb deleted file mode 100644 index 76ce12a7eacf..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_account_summaries.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_account_summaries call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_account_summaries. -# -def list_account_summaries - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new - - # Call the list_account_summaries method. - result = client.list_account_summaries request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::AccountSummary. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_accounts.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_accounts.rb deleted file mode 100644 index 25f0f6533cf0..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_accounts.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_accounts call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_accounts. -# -def list_accounts - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListAccountsRequest.new - - # Call the list_accounts method. - result = client.list_accounts request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::Account. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_ad_sense_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_ad_sense_links.rb deleted file mode 100644 index ec40d9f36286..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_ad_sense_links.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_ad_sense_links call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_ad_sense_links. -# -def list_ad_sense_links - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new - - # Call the list_ad_sense_links method. - result = client.list_ad_sense_links request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::AdSenseLink. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_audiences.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_audiences.rb deleted file mode 100644 index d892adf5145b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_audiences.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_audiences call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_audiences. -# -def list_audiences - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new - - # Call the list_audiences method. - result = client.list_audiences request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::Audience. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_big_query_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_big_query_links.rb deleted file mode 100644 index 76ac25a3205a..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_big_query_links.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_big_query_links call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_big_query_links. -# -def list_big_query_links - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new - - # Call the list_big_query_links method. - result = client.list_big_query_links request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::BigQueryLink. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_calculated_metrics.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_calculated_metrics.rb deleted file mode 100644 index 1acd317598bf..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_calculated_metrics.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCalculatedMetrics_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_calculated_metrics call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_calculated_metrics. -# -def list_calculated_metrics - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new - - # Call the list_calculated_metrics method. - result = client.list_calculated_metrics request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::CalculatedMetric. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCalculatedMetrics_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_channel_groups.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_channel_groups.rb deleted file mode 100644 index 6a6aa83244d0..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_channel_groups.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_channel_groups call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_channel_groups. -# -def list_channel_groups - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new - - # Call the list_channel_groups method. - result = client.list_channel_groups request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::ChannelGroup. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_conversion_events.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_conversion_events.rb deleted file mode 100644 index 633665ad39f0..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_conversion_events.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_conversion_events call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_conversion_events. -# -def list_conversion_events - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new - - # Call the list_conversion_events method. - result = client.list_conversion_events request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::ConversionEvent. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_dimensions.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_dimensions.rb deleted file mode 100644 index d1a314682cad..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_dimensions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_custom_dimensions call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_dimensions. -# -def list_custom_dimensions - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new - - # Call the list_custom_dimensions method. - result = client.list_custom_dimensions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_metrics.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_metrics.rb deleted file mode 100644 index 85b5d4d13f82..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_custom_metrics.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_custom_metrics call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_metrics. -# -def list_custom_metrics - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new - - # Call the list_custom_metrics method. - result = client.list_custom_metrics request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomMetric. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_data_streams.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_data_streams.rb deleted file mode 100644 index bac32867335c..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_data_streams.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_data_streams call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_data_streams. -# -def list_data_streams - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new - - # Call the list_data_streams method. - result = client.list_data_streams request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::DataStream. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_link_proposals.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_link_proposals.rb deleted file mode 100644 index 801e8a890714..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_link_proposals.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_display_video360_advertiser_link_proposals call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_link_proposals. -# -def list_display_video360_advertiser_link_proposals - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new - - # Call the list_display_video360_advertiser_link_proposals method. - result = client.list_display_video360_advertiser_link_proposals request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_links.rb deleted file mode 100644 index 356b1eb6a82d..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_display_video360_advertiser_links.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_display_video360_advertiser_links call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_links. -# -def list_display_video360_advertiser_links - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new - - # Call the list_display_video360_advertiser_links method. - result = client.list_display_video360_advertiser_links request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_create_rules.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_create_rules.rb deleted file mode 100644 index 0064f609dd4a..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_create_rules.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_event_create_rules call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_create_rules. -# -def list_event_create_rules - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new - - # Call the list_event_create_rules method. - result = client.list_event_create_rules request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::EventCreateRule. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb deleted file mode 100644 index e14fdbfbeb9e..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventEditRules_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_event_edit_rules call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_edit_rules. -# -def list_event_edit_rules - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new - - # Call the list_event_edit_rules method. - result = client.list_event_edit_rules request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::EventEditRule. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventEditRules_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_expanded_data_sets.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_expanded_data_sets.rb deleted file mode 100644 index bd7a678e74f7..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_expanded_data_sets.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_expanded_data_sets call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_expanded_data_sets. -# -def list_expanded_data_sets - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new - - # Call the list_expanded_data_sets method. - result = client.list_expanded_data_sets request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::ExpandedDataSet. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_firebase_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_firebase_links.rb deleted file mode 100644 index ae529c5a1621..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_firebase_links.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_firebase_links call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_firebase_links. -# -def list_firebase_links - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new - - # Call the list_firebase_links method. - result = client.list_firebase_links request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::FirebaseLink. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_google_ads_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_google_ads_links.rb deleted file mode 100644 index 311765ab3708..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_google_ads_links.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_google_ads_links call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_google_ads_links. -# -def list_google_ads_links - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new - - # Call the list_google_ads_links method. - result = client.list_google_ads_links request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::GoogleAdsLink. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb deleted file mode 100644 index feacbf6fa026..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListKeyEvents_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_key_events call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_key_events. -# -def list_key_events - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new - - # Call the list_key_events method. - result = client.list_key_events request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::KeyEvent. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListKeyEvents_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_measurement_protocol_secrets.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_measurement_protocol_secrets.rb deleted file mode 100644 index ab2f9d25b9e3..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_measurement_protocol_secrets.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_measurement_protocol_secrets call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_measurement_protocol_secrets. -# -def list_measurement_protocol_secrets - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new - - # Call the list_measurement_protocol_secrets method. - result = client.list_measurement_protocol_secrets request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_properties.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_properties.rb deleted file mode 100644 index 8d08c4dbc34f..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_properties.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_properties call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_properties. -# -def list_properties - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new - - # Call the list_properties method. - result = client.list_properties request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::Property. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_reporting_data_annotations.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_reporting_data_annotations.rb deleted file mode 100644 index c6e86ecf0a0e..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_reporting_data_annotations.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListReportingDataAnnotations_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_reporting_data_annotations call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_reporting_data_annotations. -# -def list_reporting_data_annotations - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new - - # Call the list_reporting_data_annotations method. - result = client.list_reporting_data_annotations request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListReportingDataAnnotations_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_rollup_property_source_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_rollup_property_source_links.rb deleted file mode 100644 index f4c0ab06e80a..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_rollup_property_source_links.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_rollup_property_source_links call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_rollup_property_source_links. -# -def list_rollup_property_source_links - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new - - # Call the list_rollup_property_source_links method. - result = client.list_rollup_property_source_links request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_search_ads360_links.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_search_ads360_links.rb deleted file mode 100644 index 80f8a62106ba..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_search_ads360_links.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_search_ads360_links call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_search_ads360_links. -# -def list_search_ads360_links - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new - - # Call the list_search_ads360_links method. - result = client.list_search_ads360_links request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::SearchAds360Link. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb deleted file mode 100644 index 92ad9a85c50b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSKAdNetworkConversionValueSchemas_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_sk_ad_network_conversion_value_schemas call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_sk_ad_network_conversion_value_schemas. -# -def list_sk_ad_network_conversion_value_schemas - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new - - # Call the list_sk_ad_network_conversion_value_schemas method. - result = client.list_sk_ad_network_conversion_value_schemas request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSKAdNetworkConversionValueSchemas_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_event_filters.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_event_filters.rb deleted file mode 100644 index 5129969d1753..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_event_filters.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_subproperty_event_filters call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_event_filters. -# -def list_subproperty_event_filters - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new - - # Call the list_subproperty_event_filters method. - result = client.list_subproperty_event_filters request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_sync_configs.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_sync_configs.rb deleted file mode 100644 index 50a84027f652..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_subproperty_sync_configs.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertySyncConfigs_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the list_subproperty_sync_configs call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_sync_configs. -# -def list_subproperty_sync_configs - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new - - # Call the list_subproperty_sync_configs method. - result = client.list_subproperty_sync_configs request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertySyncConfigs_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_account_ticket.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_account_ticket.rb deleted file mode 100644 index 64fea397419b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_account_ticket.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the provision_account_ticket call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_account_ticket. -# -def provision_account_ticket - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new - - # Call the provision_account_ticket method. - result = client.provision_account_ticket request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb deleted file mode 100644 index f5f6b7858114..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionSubproperty_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the provision_subproperty call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_subproperty. -# -def provision_subproperty - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new - - # Call the provision_subproperty method. - result = client.provision_subproperty request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionSubproperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb deleted file mode 100644 index 7f2c5f3ef6f0..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ReorderEventEditRules_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the reorder_event_edit_rules call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#reorder_event_edit_rules. -# -def reorder_event_edit_rules - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new - - # Call the reorder_event_edit_rules method. - result = client.reorder_event_edit_rules request - - # The returned object is of type Google::Protobuf::Empty. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ReorderEventEditRules_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/run_access_report.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/run_access_report.rb deleted file mode 100644 index 09b5c1d1c9c2..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/run_access_report.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the run_access_report call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#run_access_report. -# -def run_access_report - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new - - # Call the run_access_report method. - result = client.run_access_report request - - # The returned object is of type Google::Analytics::Admin::V1alpha::RunAccessReportResponse. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/search_change_history_events.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/search_change_history_events.rb deleted file mode 100644 index ed9d86d4bad2..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/search_change_history_events.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the search_change_history_events call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#search_change_history_events. -# -def search_change_history_events - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new - - # Call the search_change_history_events method. - result = client.search_change_history_events request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Analytics::Admin::V1alpha::ChangeHistoryEvent. - p item - end -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/submit_user_deletion.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/submit_user_deletion.rb deleted file mode 100644 index 2d793d2b2a72..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/submit_user_deletion.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_SubmitUserDeletion_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the submit_user_deletion call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#submit_user_deletion. -# -def submit_user_deletion - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new - - # Call the submit_user_deletion method. - result = client.submit_user_deletion request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_SubmitUserDeletion_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_access_binding.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_access_binding.rb deleted file mode 100644 index 0815edc0078b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_access_binding.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_access_binding call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_access_binding. -# -def update_access_binding - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new - - # Call the update_access_binding method. - result = client.update_access_binding request - - # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_account.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_account.rb deleted file mode 100644 index 110e43484e5a..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_account.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_account call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_account. -# -def update_account - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new - - # Call the update_account method. - result = client.update_account request - - # The returned object is of type Google::Analytics::Admin::V1alpha::Account. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_attribution_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_attribution_settings.rb deleted file mode 100644 index 0bd6bf1364f8..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_attribution_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_attribution_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_attribution_settings. -# -def update_attribution_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new - - # Call the update_attribution_settings method. - result = client.update_attribution_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_audience.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_audience.rb deleted file mode 100644 index 7623ce389891..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_audience.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_audience call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_audience. -# -def update_audience - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new - - # Call the update_audience method. - result = client.update_audience request - - # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb deleted file mode 100644 index 2bc3ee2a91a7..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateBigQueryLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_big_query_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_big_query_link. -# -def update_big_query_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new - - # Call the update_big_query_link method. - result = client.update_big_query_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateBigQueryLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_calculated_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_calculated_metric.rb deleted file mode 100644 index 62d9cfa64541..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_calculated_metric.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCalculatedMetric_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_calculated_metric call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_calculated_metric. -# -def update_calculated_metric - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new - - # Call the update_calculated_metric method. - result = client.update_calculated_metric request - - # The returned object is of type Google::Analytics::Admin::V1alpha::CalculatedMetric. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCalculatedMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_channel_group.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_channel_group.rb deleted file mode 100644 index 29801d90dc3c..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_channel_group.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateChannelGroup_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_channel_group call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_channel_group. -# -def update_channel_group - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new - - # Call the update_channel_group method. - result = client.update_channel_group request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateChannelGroup_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_conversion_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_conversion_event.rb deleted file mode 100644 index 7854d9e2467e..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_conversion_event.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateConversionEvent_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_conversion_event call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_conversion_event. -# -def update_conversion_event - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new - - # Call the update_conversion_event method. - result = client.update_conversion_event request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ConversionEvent. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateConversionEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_dimension.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_dimension.rb deleted file mode 100644 index 8ac165074392..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_dimension.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_custom_dimension call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_dimension. -# -def update_custom_dimension - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new - - # Call the update_custom_dimension method. - result = client.update_custom_dimension request - - # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_metric.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_metric.rb deleted file mode 100644 index 713603f31919..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_custom_metric.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_custom_metric call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_metric. -# -def update_custom_metric - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new - - # Call the update_custom_metric method. - result = client.update_custom_metric request - - # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_redaction_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_redaction_settings.rb deleted file mode 100644 index 774884deb39b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_redaction_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_data_redaction_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_redaction_settings. -# -def update_data_redaction_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new - - # Call the update_data_redaction_settings method. - result = client.update_data_redaction_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DataRedactionSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_retention_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_retention_settings.rb deleted file mode 100644 index 141dd24dbf92..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_retention_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_data_retention_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_retention_settings. -# -def update_data_retention_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new - - # Call the update_data_retention_settings method. - result = client.update_data_retention_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_stream.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_stream.rb deleted file mode 100644 index e3e7eb6d4af2..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_data_stream.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_data_stream call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_stream. -# -def update_data_stream - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new - - # Call the update_data_stream method. - result = client.update_data_stream request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_display_video360_advertiser_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_display_video360_advertiser_link.rb deleted file mode 100644 index 8e782d337c83..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_display_video360_advertiser_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_display_video360_advertiser_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_display_video360_advertiser_link. -# -def update_display_video360_advertiser_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new - - # Call the update_display_video360_advertiser_link method. - result = client.update_display_video360_advertiser_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_enhanced_measurement_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_enhanced_measurement_settings.rb deleted file mode 100644 index d425515caa06..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_enhanced_measurement_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_enhanced_measurement_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_enhanced_measurement_settings. -# -def update_enhanced_measurement_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new - - # Call the update_enhanced_measurement_settings method. - result = client.update_enhanced_measurement_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_create_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_create_rule.rb deleted file mode 100644 index 20bedc24606d..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_create_rule.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_event_create_rule call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_create_rule. -# -def update_event_create_rule - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new - - # Call the update_event_create_rule method. - result = client.update_event_create_rule request - - # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb deleted file mode 100644 index ab15886b9d85..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventEditRule_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_event_edit_rule call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_edit_rule. -# -def update_event_edit_rule - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new - - # Call the update_event_edit_rule method. - result = client.update_event_edit_rule request - - # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventEditRule_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_expanded_data_set.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_expanded_data_set.rb deleted file mode 100644 index 81717bfb48a5..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_expanded_data_set.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_expanded_data_set call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_expanded_data_set. -# -def update_expanded_data_set - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new - - # Call the update_expanded_data_set method. - result = client.update_expanded_data_set request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_ads_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_ads_link.rb deleted file mode 100644 index fdc0828a1ae6..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_ads_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_google_ads_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_ads_link. -# -def update_google_ads_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new - - # Call the update_google_ads_link method. - result = client.update_google_ads_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleAdsLink. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_signals_settings.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_signals_settings.rb deleted file mode 100644 index b6e2070d7e5f..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_google_signals_settings.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_google_signals_settings call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_signals_settings. -# -def update_google_signals_settings - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new - - # Call the update_google_signals_settings method. - result = client.update_google_signals_settings request - - # The returned object is of type Google::Analytics::Admin::V1alpha::GoogleSignalsSettings. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb deleted file mode 100644 index aa1b33f46ef0..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateKeyEvent_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_key_event call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_key_event. -# -def update_key_event - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new - - # Call the update_key_event method. - result = client.update_key_event request - - # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateKeyEvent_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_measurement_protocol_secret.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_measurement_protocol_secret.rb deleted file mode 100644 index 5d9b751ef77e..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_measurement_protocol_secret.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_measurement_protocol_secret call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_measurement_protocol_secret. -# -def update_measurement_protocol_secret - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new - - # Call the update_measurement_protocol_secret method. - result = client.update_measurement_protocol_secret request - - # The returned object is of type Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_property.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_property.rb deleted file mode 100644 index 111203eee46b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_property.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_property call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_property. -# -def update_property - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new - - # Call the update_property method. - result = client.update_property request - - # The returned object is of type Google::Analytics::Admin::V1alpha::Property. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_data_annotation.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_data_annotation.rb deleted file mode 100644 index 20adc8a26da9..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_reporting_data_annotation.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingDataAnnotation_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_reporting_data_annotation call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_data_annotation. -# -def update_reporting_data_annotation - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new - - # Call the update_reporting_data_annotation method. - result = client.update_reporting_data_annotation request - - # The returned object is of type Google::Analytics::Admin::V1alpha::ReportingDataAnnotation. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingDataAnnotation_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_search_ads360_link.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_search_ads360_link.rb deleted file mode 100644 index 9a746ffc13da..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_search_ads360_link.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_search_ads360_link call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_search_ads360_link. -# -def update_search_ads360_link - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new - - # Call the update_search_ads360_link method. - result = client.update_search_ads360_link request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb deleted file mode 100644 index 35e0b798388b..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSKAdNetworkConversionValueSchema_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_sk_ad_network_conversion_value_schema. -# -def update_sk_ad_network_conversion_value_schema - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new - - # Call the update_sk_ad_network_conversion_value_schema method. - result = client.update_sk_ad_network_conversion_value_schema request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSKAdNetworkConversionValueSchema_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_event_filter.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_event_filter.rb deleted file mode 100644 index f1687c9cb6c1..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_event_filter.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_subproperty_event_filter call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_event_filter. -# -def update_subproperty_event_filter - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new - - # Call the update_subproperty_event_filter method. - result = client.update_subproperty_event_filter request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertyEventFilter. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_sync_config.rb b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_sync_config.rb deleted file mode 100644 index 2380b33171ef..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_subproperty_sync_config.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertySyncConfig_sync] -require "google/analytics/admin/v1alpha" - -## -# Snippet for the update_subproperty_sync_config call in the AnalyticsAdminService service -# -# This snippet has been automatically generated and should be regarded as a code -# template only. It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in https://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_sync_config. -# -def update_subproperty_sync_config - # Create a client object. The client can be reused for multiple calls. - client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new - - # Call the update_subproperty_sync_config method. - result = client.update_subproperty_sync_config request - - # The returned object is of type Google::Analytics::Admin::V1alpha::SubpropertySyncConfig. - p result -end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertySyncConfig_sync] diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json b/owl-bot-staging/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json deleted file mode 100644 index 277fa313d341..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/snippets/snippet_metadata_google.analytics.admin.v1alpha.json +++ /dev/null @@ -1,6255 +0,0 @@ -{ - "client_library": { - "name": "google-analytics-admin-v1alpha", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.analytics.admin.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_sync", - "title": "Snippet for the get_account call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_account.", - "file": "analytics_admin_service/get_account.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_account", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_account", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetAccountRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::Account", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetAccount", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_sync", - "title": "Snippet for the list_accounts call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_accounts.", - "file": "analytics_admin_service/list_accounts.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_accounts", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_accounts", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListAccountsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListAccountsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListAccounts", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_sync", - "title": "Snippet for the delete_account call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_account.", - "file": "analytics_admin_service/delete_account.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_account", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_account", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteAccountRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteAccount", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccount", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_sync", - "title": "Snippet for the update_account call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_account.", - "file": "analytics_admin_service/update_account.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_account", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_account", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateAccountRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::Account", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateAccount", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccount", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_sync", - "title": "Snippet for the provision_account_ticket call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_account_ticket.", - "file": "analytics_admin_service/provision_account_ticket.rb", - "language": "RUBY", - "client_method": { - "short_name": "provision_account_ticket", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_account_ticket", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ProvisionAccountTicket", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicket", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_sync", - "title": "Snippet for the list_account_summaries call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_account_summaries.", - "file": "analytics_admin_service/list_account_summaries.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_account_summaries", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_account_summaries", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListAccountSummaries", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_sync", - "title": "Snippet for the get_property call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_property.", - "file": "analytics_admin_service/get_property.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_property", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_property", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetPropertyRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::Property", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetProperty", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_sync", - "title": "Snippet for the list_properties call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_properties.", - "file": "analytics_admin_service/list_properties.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_properties", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_properties", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListPropertiesRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListPropertiesResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListProperties", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_sync", - "title": "Snippet for the create_property call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_property.", - "file": "analytics_admin_service/create_property.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_property", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_property", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreatePropertyRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::Property", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateProperty", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateProperty", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_sync", - "title": "Snippet for the delete_property call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_property.", - "file": "analytics_admin_service/delete_property.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_property", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_property", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeletePropertyRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::Property", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteProperty", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteProperty", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_sync", - "title": "Snippet for the update_property call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_property.", - "file": "analytics_admin_service/update_property.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_property", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_property", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::Property", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateProperty", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateProperty", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_sync", - "title": "Snippet for the create_firebase_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_firebase_link.", - "file": "analytics_admin_service/create_firebase_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_firebase_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_firebase_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::FirebaseLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateFirebaseLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_sync", - "title": "Snippet for the delete_firebase_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_firebase_link.", - "file": "analytics_admin_service/delete_firebase_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_firebase_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_firebase_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteFirebaseLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_sync", - "title": "Snippet for the list_firebase_links call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_firebase_links.", - "file": "analytics_admin_service/list_firebase_links.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_firebase_links", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_firebase_links", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListFirebaseLinks", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_sync", - "title": "Snippet for the get_global_site_tag call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_global_site_tag.", - "file": "analytics_admin_service/get_global_site_tag.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_global_site_tag", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_global_site_tag", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::GlobalSiteTag", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetGlobalSiteTag", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_sync", - "title": "Snippet for the create_google_ads_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_google_ads_link.", - "file": "analytics_admin_service/create_google_ads_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_google_ads_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_google_ads_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::GoogleAdsLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateGoogleAdsLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_sync", - "title": "Snippet for the update_google_ads_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_ads_link.", - "file": "analytics_admin_service/update_google_ads_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_google_ads_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_ads_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::GoogleAdsLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateGoogleAdsLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_sync", - "title": "Snippet for the delete_google_ads_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_google_ads_link.", - "file": "analytics_admin_service/delete_google_ads_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_google_ads_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_google_ads_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteGoogleAdsLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_sync", - "title": "Snippet for the list_google_ads_links call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_google_ads_links.", - "file": "analytics_admin_service/list_google_ads_links.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_google_ads_links", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_google_ads_links", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListGoogleAdsLinks", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_sync", - "title": "Snippet for the get_data_sharing_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_sharing_settings.", - "file": "analytics_admin_service/get_data_sharing_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_data_sharing_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_sharing_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DataSharingSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetDataSharingSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_sync", - "title": "Snippet for the get_measurement_protocol_secret call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_measurement_protocol_secret.", - "file": "analytics_admin_service/get_measurement_protocol_secret.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_measurement_protocol_secret", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_measurement_protocol_secret", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetMeasurementProtocolSecret", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecret", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_sync", - "title": "Snippet for the list_measurement_protocol_secrets call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_measurement_protocol_secrets.", - "file": "analytics_admin_service/list_measurement_protocol_secrets.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_measurement_protocol_secrets", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_measurement_protocol_secrets", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListMeasurementProtocolSecrets", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecrets", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_sync", - "title": "Snippet for the create_measurement_protocol_secret call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_measurement_protocol_secret.", - "file": "analytics_admin_service/create_measurement_protocol_secret.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_measurement_protocol_secret", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_measurement_protocol_secret", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateMeasurementProtocolSecret", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecret", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_sync", - "title": "Snippet for the delete_measurement_protocol_secret call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_measurement_protocol_secret.", - "file": "analytics_admin_service/delete_measurement_protocol_secret.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_measurement_protocol_secret", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_measurement_protocol_secret", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteMeasurementProtocolSecret", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecret", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_sync", - "title": "Snippet for the update_measurement_protocol_secret call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_measurement_protocol_secret.", - "file": "analytics_admin_service/update_measurement_protocol_secret.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_measurement_protocol_secret", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_measurement_protocol_secret", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateMeasurementProtocolSecret", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecret", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_sync", - "title": "Snippet for the acknowledge_user_data_collection call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#acknowledge_user_data_collection.", - "file": "analytics_admin_service/acknowledge_user_data_collection.rb", - "language": "RUBY", - "client_method": { - "short_name": "acknowledge_user_data_collection", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#acknowledge_user_data_collection", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "AcknowledgeUserDataCollection", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollection", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSKAdNetworkConversionValueSchema_sync", - "title": "Snippet for the get_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_sk_ad_network_conversion_value_schema.", - "file": "analytics_admin_service/get_sk_ad_network_conversion_value_schema.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_sk_ad_network_conversion_value_schema", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_sk_ad_network_conversion_value_schema", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetSKAdNetworkConversionValueSchema", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSKAdNetworkConversionValueSchema", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSKAdNetworkConversionValueSchema_sync", - "title": "Snippet for the create_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_sk_ad_network_conversion_value_schema.", - "file": "analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_sk_ad_network_conversion_value_schema", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_sk_ad_network_conversion_value_schema", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateSKAdNetworkConversionValueSchema", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSKAdNetworkConversionValueSchema", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSKAdNetworkConversionValueSchema_sync", - "title": "Snippet for the delete_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_sk_ad_network_conversion_value_schema.", - "file": "analytics_admin_service/delete_sk_ad_network_conversion_value_schema.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_sk_ad_network_conversion_value_schema", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_sk_ad_network_conversion_value_schema", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteSKAdNetworkConversionValueSchema", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSKAdNetworkConversionValueSchema", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSKAdNetworkConversionValueSchema_sync", - "title": "Snippet for the update_sk_ad_network_conversion_value_schema call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_sk_ad_network_conversion_value_schema.", - "file": "analytics_admin_service/update_sk_ad_network_conversion_value_schema.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_sk_ad_network_conversion_value_schema", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_sk_ad_network_conversion_value_schema", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateSKAdNetworkConversionValueSchema", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSKAdNetworkConversionValueSchema", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSKAdNetworkConversionValueSchemas_sync", - "title": "Snippet for the list_sk_ad_network_conversion_value_schemas call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_sk_ad_network_conversion_value_schemas.", - "file": "analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_sk_ad_network_conversion_value_schemas", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_sk_ad_network_conversion_value_schemas", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListSKAdNetworkConversionValueSchemas", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSKAdNetworkConversionValueSchemas", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_sync", - "title": "Snippet for the search_change_history_events call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#search_change_history_events.", - "file": "analytics_admin_service/search_change_history_events.rb", - "language": "RUBY", - "client_method": { - "short_name": "search_change_history_events", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#search_change_history_events", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "SearchChangeHistoryEvents", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEvents", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_sync", - "title": "Snippet for the get_google_signals_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_google_signals_settings.", - "file": "analytics_admin_service/get_google_signals_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_google_signals_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_google_signals_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetGoogleSignalsSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_sync", - "title": "Snippet for the update_google_signals_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_signals_settings.", - "file": "analytics_admin_service/update_google_signals_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_google_signals_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_google_signals_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateGoogleSignalsSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_sync", - "title": "Snippet for the create_conversion_event call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_conversion_event.", - "file": "analytics_admin_service/create_conversion_event.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_conversion_event", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_conversion_event", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ConversionEvent", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateConversionEvent", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEvent", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateConversionEvent_sync", - "title": "Snippet for the update_conversion_event call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_conversion_event.", - "file": "analytics_admin_service/update_conversion_event.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_conversion_event", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_conversion_event", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ConversionEvent", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateConversionEvent", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateConversionEvent", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_sync", - "title": "Snippet for the get_conversion_event call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_conversion_event.", - "file": "analytics_admin_service/get_conversion_event.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_conversion_event", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_conversion_event", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetConversionEventRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ConversionEvent", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetConversionEvent", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEvent", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_sync", - "title": "Snippet for the delete_conversion_event call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_conversion_event.", - "file": "analytics_admin_service/delete_conversion_event.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_conversion_event", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_conversion_event", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteConversionEvent", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEvent", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_sync", - "title": "Snippet for the list_conversion_events call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_conversion_events.", - "file": "analytics_admin_service/list_conversion_events.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_conversion_events", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_conversion_events", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListConversionEvents", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEvents", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_sync", - "title": "Snippet for the create_key_event call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_key_event.", - "file": "analytics_admin_service/create_key_event.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_key_event", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_key_event", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::KeyEvent", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateKeyEvent", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateKeyEvent", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateKeyEvent_sync", - "title": "Snippet for the update_key_event call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_key_event.", - "file": "analytics_admin_service/update_key_event.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_key_event", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_key_event", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::KeyEvent", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateKeyEvent", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateKeyEvent", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetKeyEvent_sync", - "title": "Snippet for the get_key_event call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_key_event.", - "file": "analytics_admin_service/get_key_event.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_key_event", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_key_event", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetKeyEventRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::KeyEvent", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetKeyEvent", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetKeyEvent", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteKeyEvent_sync", - "title": "Snippet for the delete_key_event call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_key_event.", - "file": "analytics_admin_service/delete_key_event.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_key_event", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_key_event", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteKeyEvent", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteKeyEvent", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListKeyEvents_sync", - "title": "Snippet for the list_key_events call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_key_events.", - "file": "analytics_admin_service/list_key_events.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_key_events", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_key_events", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListKeyEvents", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListKeyEvents", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_sync", - "title": "Snippet for the get_display_video360_advertiser_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link.", - "file": "analytics_admin_service/get_display_video360_advertiser_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_display_video360_advertiser_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetDisplayVideo360AdvertiserLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_sync", - "title": "Snippet for the list_display_video360_advertiser_links call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_links.", - "file": "analytics_admin_service/list_display_video360_advertiser_links.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_display_video360_advertiser_links", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_links", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListDisplayVideo360AdvertiserLinks", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinks", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_sync", - "title": "Snippet for the create_display_video360_advertiser_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link.", - "file": "analytics_admin_service/create_display_video360_advertiser_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_display_video360_advertiser_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateDisplayVideo360AdvertiserLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_sync", - "title": "Snippet for the delete_display_video360_advertiser_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link.", - "file": "analytics_admin_service/delete_display_video360_advertiser_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_display_video360_advertiser_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteDisplayVideo360AdvertiserLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_sync", - "title": "Snippet for the update_display_video360_advertiser_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_display_video360_advertiser_link.", - "file": "analytics_admin_service/update_display_video360_advertiser_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_display_video360_advertiser_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_display_video360_advertiser_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateDisplayVideo360AdvertiserLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_sync", - "title": "Snippet for the get_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link_proposal.", - "file": "analytics_admin_service/get_display_video360_advertiser_link_proposal.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_display_video360_advertiser_link_proposal", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_display_video360_advertiser_link_proposal", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetDisplayVideo360AdvertiserLinkProposal", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposal", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_sync", - "title": "Snippet for the list_display_video360_advertiser_link_proposals call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_link_proposals.", - "file": "analytics_admin_service/list_display_video360_advertiser_link_proposals.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_display_video360_advertiser_link_proposals", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_display_video360_advertiser_link_proposals", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListDisplayVideo360AdvertiserLinkProposals", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposals", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_sync", - "title": "Snippet for the create_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link_proposal.", - "file": "analytics_admin_service/create_display_video360_advertiser_link_proposal.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_display_video360_advertiser_link_proposal", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_display_video360_advertiser_link_proposal", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateDisplayVideo360AdvertiserLinkProposal", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposal", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_sync", - "title": "Snippet for the delete_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link_proposal.", - "file": "analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_display_video360_advertiser_link_proposal", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_display_video360_advertiser_link_proposal", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteDisplayVideo360AdvertiserLinkProposal", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposal", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_sync", - "title": "Snippet for the approve_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#approve_display_video360_advertiser_link_proposal.", - "file": "analytics_admin_service/approve_display_video360_advertiser_link_proposal.rb", - "language": "RUBY", - "client_method": { - "short_name": "approve_display_video360_advertiser_link_proposal", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#approve_display_video360_advertiser_link_proposal", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ApproveDisplayVideo360AdvertiserLinkProposal", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposal", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_sync", - "title": "Snippet for the cancel_display_video360_advertiser_link_proposal call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#cancel_display_video360_advertiser_link_proposal.", - "file": "analytics_admin_service/cancel_display_video360_advertiser_link_proposal.rb", - "language": "RUBY", - "client_method": { - "short_name": "cancel_display_video360_advertiser_link_proposal", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#cancel_display_video360_advertiser_link_proposal", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CancelDisplayVideo360AdvertiserLinkProposal", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposal", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_sync", - "title": "Snippet for the create_custom_dimension call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_dimension.", - "file": "analytics_admin_service/create_custom_dimension.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_custom_dimension", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_dimension", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::CustomDimension", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateCustomDimension", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimension", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_sync", - "title": "Snippet for the update_custom_dimension call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_dimension.", - "file": "analytics_admin_service/update_custom_dimension.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_custom_dimension", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_dimension", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::CustomDimension", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateCustomDimension", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimension", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_sync", - "title": "Snippet for the list_custom_dimensions call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_dimensions.", - "file": "analytics_admin_service/list_custom_dimensions.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_custom_dimensions", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_dimensions", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListCustomDimensions", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensions", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_sync", - "title": "Snippet for the archive_custom_dimension call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_dimension.", - "file": "analytics_admin_service/archive_custom_dimension.rb", - "language": "RUBY", - "client_method": { - "short_name": "archive_custom_dimension", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_dimension", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ArchiveCustomDimension", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimension", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_sync", - "title": "Snippet for the get_custom_dimension call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_dimension.", - "file": "analytics_admin_service/get_custom_dimension.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_custom_dimension", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_dimension", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::CustomDimension", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetCustomDimension", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimension", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_sync", - "title": "Snippet for the create_custom_metric call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_metric.", - "file": "analytics_admin_service/create_custom_metric.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_custom_metric", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_custom_metric", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::CustomMetric", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateCustomMetric", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetric", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_sync", - "title": "Snippet for the update_custom_metric call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_metric.", - "file": "analytics_admin_service/update_custom_metric.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_custom_metric", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_custom_metric", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::CustomMetric", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateCustomMetric", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetric", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_sync", - "title": "Snippet for the list_custom_metrics call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_metrics.", - "file": "analytics_admin_service/list_custom_metrics.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_custom_metrics", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_custom_metrics", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListCustomMetrics", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetrics", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_sync", - "title": "Snippet for the archive_custom_metric call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_metric.", - "file": "analytics_admin_service/archive_custom_metric.rb", - "language": "RUBY", - "client_method": { - "short_name": "archive_custom_metric", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_custom_metric", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ArchiveCustomMetric", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetric", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_sync", - "title": "Snippet for the get_custom_metric call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_metric.", - "file": "analytics_admin_service/get_custom_metric.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_custom_metric", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_custom_metric", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::CustomMetric", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetCustomMetric", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetric", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_sync", - "title": "Snippet for the get_data_retention_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_retention_settings.", - "file": "analytics_admin_service/get_data_retention_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_data_retention_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_retention_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DataRetentionSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetDataRetentionSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_sync", - "title": "Snippet for the update_data_retention_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_retention_settings.", - "file": "analytics_admin_service/update_data_retention_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_data_retention_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_retention_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DataRetentionSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateDataRetentionSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_sync", - "title": "Snippet for the create_data_stream call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_data_stream.", - "file": "analytics_admin_service/create_data_stream.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_data_stream", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_data_stream", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DataStream", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateDataStream", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStream", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_sync", - "title": "Snippet for the delete_data_stream call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_data_stream.", - "file": "analytics_admin_service/delete_data_stream.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_data_stream", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_data_stream", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteDataStream", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStream", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_sync", - "title": "Snippet for the update_data_stream call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_stream.", - "file": "analytics_admin_service/update_data_stream.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_data_stream", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_stream", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DataStream", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateDataStream", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStream", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_sync", - "title": "Snippet for the list_data_streams call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_data_streams.", - "file": "analytics_admin_service/list_data_streams.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_data_streams", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_data_streams", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListDataStreams", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreams", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_sync", - "title": "Snippet for the get_data_stream call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_stream.", - "file": "analytics_admin_service/get_data_stream.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_data_stream", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_stream", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetDataStreamRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DataStream", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetDataStream", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStream", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_sync", - "title": "Snippet for the get_audience call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_audience.", - "file": "analytics_admin_service/get_audience.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_audience", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_audience", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetAudienceRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::Audience", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetAudience", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAudience", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_sync", - "title": "Snippet for the list_audiences call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_audiences.", - "file": "analytics_admin_service/list_audiences.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_audiences", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_audiences", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListAudiencesRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListAudiencesResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListAudiences", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAudiences", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_sync", - "title": "Snippet for the create_audience call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_audience.", - "file": "analytics_admin_service/create_audience.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_audience", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_audience", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateAudienceRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::Audience", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateAudience", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAudience", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_sync", - "title": "Snippet for the update_audience call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_audience.", - "file": "analytics_admin_service/update_audience.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_audience", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_audience", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::Audience", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateAudience", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAudience", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_sync", - "title": "Snippet for the archive_audience call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_audience.", - "file": "analytics_admin_service/archive_audience.rb", - "language": "RUBY", - "client_method": { - "short_name": "archive_audience", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#archive_audience", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ArchiveAudience", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveAudience", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_sync", - "title": "Snippet for the get_search_ads360_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_search_ads360_link.", - "file": "analytics_admin_service/get_search_ads360_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_search_ads360_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_search_ads360_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SearchAds360Link", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetSearchAds360Link", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSearchAds360Link", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_sync", - "title": "Snippet for the list_search_ads360_links call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_search_ads360_links.", - "file": "analytics_admin_service/list_search_ads360_links.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_search_ads360_links", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_search_ads360_links", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListSearchAds360Links", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSearchAds360Links", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_sync", - "title": "Snippet for the create_search_ads360_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_search_ads360_link.", - "file": "analytics_admin_service/create_search_ads360_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_search_ads360_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_search_ads360_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SearchAds360Link", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateSearchAds360Link", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSearchAds360Link", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_sync", - "title": "Snippet for the delete_search_ads360_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_search_ads360_link.", - "file": "analytics_admin_service/delete_search_ads360_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_search_ads360_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_search_ads360_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteSearchAds360Link", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSearchAds360Link", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_sync", - "title": "Snippet for the update_search_ads360_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_search_ads360_link.", - "file": "analytics_admin_service/update_search_ads360_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_search_ads360_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_search_ads360_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SearchAds360Link", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateSearchAds360Link", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSearchAds360Link", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_sync", - "title": "Snippet for the get_attribution_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_attribution_settings.", - "file": "analytics_admin_service/get_attribution_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_attribution_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_attribution_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::AttributionSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetAttributionSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAttributionSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_sync", - "title": "Snippet for the update_attribution_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_attribution_settings.", - "file": "analytics_admin_service/update_attribution_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_attribution_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_attribution_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::AttributionSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateAttributionSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAttributionSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_sync", - "title": "Snippet for the run_access_report call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#run_access_report.", - "file": "analytics_admin_service/run_access_report.rb", - "language": "RUBY", - "client_method": { - "short_name": "run_access_report", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#run_access_report", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::RunAccessReportRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::RunAccessReportResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "RunAccessReport", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.RunAccessReport", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_sync", - "title": "Snippet for the create_access_binding call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_access_binding.", - "file": "analytics_admin_service/create_access_binding.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_access_binding", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_access_binding", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::AccessBinding", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateAccessBinding", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAccessBinding", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_sync", - "title": "Snippet for the get_access_binding call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_access_binding.", - "file": "analytics_admin_service/get_access_binding.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_access_binding", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_access_binding", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::AccessBinding", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetAccessBinding", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccessBinding", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_sync", - "title": "Snippet for the update_access_binding call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_access_binding.", - "file": "analytics_admin_service/update_access_binding.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_access_binding", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_access_binding", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::AccessBinding", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateAccessBinding", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccessBinding", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_sync", - "title": "Snippet for the delete_access_binding call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_access_binding.", - "file": "analytics_admin_service/delete_access_binding.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_access_binding", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_access_binding", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteAccessBinding", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccessBinding", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_sync", - "title": "Snippet for the list_access_bindings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_access_bindings.", - "file": "analytics_admin_service/list_access_bindings.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_access_bindings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_access_bindings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListAccessBindings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccessBindings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_sync", - "title": "Snippet for the batch_create_access_bindings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_create_access_bindings.", - "file": "analytics_admin_service/batch_create_access_bindings.rb", - "language": "RUBY", - "client_method": { - "short_name": "batch_create_access_bindings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_create_access_bindings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "BatchCreateAccessBindings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateAccessBindings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_sync", - "title": "Snippet for the batch_get_access_bindings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_get_access_bindings.", - "file": "analytics_admin_service/batch_get_access_bindings.rb", - "language": "RUBY", - "client_method": { - "short_name": "batch_get_access_bindings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_get_access_bindings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "BatchGetAccessBindings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetAccessBindings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_sync", - "title": "Snippet for the batch_update_access_bindings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_update_access_bindings.", - "file": "analytics_admin_service/batch_update_access_bindings.rb", - "language": "RUBY", - "client_method": { - "short_name": "batch_update_access_bindings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_update_access_bindings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "BatchUpdateAccessBindings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateAccessBindings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_sync", - "title": "Snippet for the batch_delete_access_bindings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_delete_access_bindings.", - "file": "analytics_admin_service/batch_delete_access_bindings.rb", - "language": "RUBY", - "client_method": { - "short_name": "batch_delete_access_bindings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#batch_delete_access_bindings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "BatchDeleteAccessBindings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteAccessBindings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_sync", - "title": "Snippet for the get_expanded_data_set call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_expanded_data_set.", - "file": "analytics_admin_service/get_expanded_data_set.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_expanded_data_set", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_expanded_data_set", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ExpandedDataSet", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetExpandedDataSet", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetExpandedDataSet", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_sync", - "title": "Snippet for the list_expanded_data_sets call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_expanded_data_sets.", - "file": "analytics_admin_service/list_expanded_data_sets.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_expanded_data_sets", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_expanded_data_sets", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListExpandedDataSets", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListExpandedDataSets", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_sync", - "title": "Snippet for the create_expanded_data_set call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_expanded_data_set.", - "file": "analytics_admin_service/create_expanded_data_set.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_expanded_data_set", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_expanded_data_set", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ExpandedDataSet", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateExpandedDataSet", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateExpandedDataSet", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_sync", - "title": "Snippet for the update_expanded_data_set call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_expanded_data_set.", - "file": "analytics_admin_service/update_expanded_data_set.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_expanded_data_set", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_expanded_data_set", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ExpandedDataSet", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateExpandedDataSet", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateExpandedDataSet", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_sync", - "title": "Snippet for the delete_expanded_data_set call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_expanded_data_set.", - "file": "analytics_admin_service/delete_expanded_data_set.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_expanded_data_set", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_expanded_data_set", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteExpandedDataSet", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteExpandedDataSet", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetChannelGroup_sync", - "title": "Snippet for the get_channel_group call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_channel_group.", - "file": "analytics_admin_service/get_channel_group.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_channel_group", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_channel_group", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ChannelGroup", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetChannelGroup", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetChannelGroup", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_sync", - "title": "Snippet for the list_channel_groups call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_channel_groups.", - "file": "analytics_admin_service/list_channel_groups.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_channel_groups", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_channel_groups", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListChannelGroups", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListChannelGroups", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateChannelGroup_sync", - "title": "Snippet for the create_channel_group call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_channel_group.", - "file": "analytics_admin_service/create_channel_group.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_channel_group", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_channel_group", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ChannelGroup", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateChannelGroup", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateChannelGroup", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateChannelGroup_sync", - "title": "Snippet for the update_channel_group call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_channel_group.", - "file": "analytics_admin_service/update_channel_group.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_channel_group", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_channel_group", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ChannelGroup", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateChannelGroup", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateChannelGroup", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteChannelGroup_sync", - "title": "Snippet for the delete_channel_group call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_channel_group.", - "file": "analytics_admin_service/delete_channel_group.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_channel_group", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_channel_group", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteChannelGroup", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteChannelGroup", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateBigQueryLink_sync", - "title": "Snippet for the create_big_query_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_big_query_link.", - "file": "analytics_admin_service/create_big_query_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_big_query_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_big_query_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::BigQueryLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateBigQueryLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateBigQueryLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_sync", - "title": "Snippet for the get_big_query_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_big_query_link.", - "file": "analytics_admin_service/get_big_query_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_big_query_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_big_query_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::BigQueryLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetBigQueryLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetBigQueryLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_sync", - "title": "Snippet for the list_big_query_links call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_big_query_links.", - "file": "analytics_admin_service/list_big_query_links.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_big_query_links", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_big_query_links", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListBigQueryLinks", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListBigQueryLinks", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteBigQueryLink_sync", - "title": "Snippet for the delete_big_query_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_big_query_link.", - "file": "analytics_admin_service/delete_big_query_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_big_query_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_big_query_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteBigQueryLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteBigQueryLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateBigQueryLink_sync", - "title": "Snippet for the update_big_query_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_big_query_link.", - "file": "analytics_admin_service/update_big_query_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_big_query_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_big_query_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::BigQueryLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateBigQueryLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateBigQueryLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_sync", - "title": "Snippet for the get_enhanced_measurement_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_enhanced_measurement_settings.", - "file": "analytics_admin_service/get_enhanced_measurement_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_enhanced_measurement_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_enhanced_measurement_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetEnhancedMeasurementSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEnhancedMeasurementSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_sync", - "title": "Snippet for the update_enhanced_measurement_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_enhanced_measurement_settings.", - "file": "analytics_admin_service/update_enhanced_measurement_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_enhanced_measurement_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_enhanced_measurement_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateEnhancedMeasurementSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEnhancedMeasurementSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_sync", - "title": "Snippet for the get_ad_sense_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_ad_sense_link.", - "file": "analytics_admin_service/get_ad_sense_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_ad_sense_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_ad_sense_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::AdSenseLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetAdSenseLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAdSenseLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_sync", - "title": "Snippet for the create_ad_sense_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_ad_sense_link.", - "file": "analytics_admin_service/create_ad_sense_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_ad_sense_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_ad_sense_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::AdSenseLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateAdSenseLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAdSenseLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_sync", - "title": "Snippet for the delete_ad_sense_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_ad_sense_link.", - "file": "analytics_admin_service/delete_ad_sense_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_ad_sense_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_ad_sense_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteAdSenseLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAdSenseLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_sync", - "title": "Snippet for the list_ad_sense_links call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_ad_sense_links.", - "file": "analytics_admin_service/list_ad_sense_links.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_ad_sense_links", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_ad_sense_links", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListAdSenseLinks", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAdSenseLinks", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_sync", - "title": "Snippet for the get_event_create_rule call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_create_rule.", - "file": "analytics_admin_service/get_event_create_rule.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_event_create_rule", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_create_rule", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::EventCreateRule", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetEventCreateRule", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventCreateRule", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_sync", - "title": "Snippet for the list_event_create_rules call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_create_rules.", - "file": "analytics_admin_service/list_event_create_rules.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_event_create_rules", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_create_rules", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListEventCreateRules", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventCreateRules", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_sync", - "title": "Snippet for the create_event_create_rule call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_create_rule.", - "file": "analytics_admin_service/create_event_create_rule.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_event_create_rule", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_create_rule", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::EventCreateRule", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateEventCreateRule", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventCreateRule", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_sync", - "title": "Snippet for the update_event_create_rule call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_create_rule.", - "file": "analytics_admin_service/update_event_create_rule.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_event_create_rule", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_create_rule", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::EventCreateRule", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateEventCreateRule", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventCreateRule", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_sync", - "title": "Snippet for the delete_event_create_rule call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_create_rule.", - "file": "analytics_admin_service/delete_event_create_rule.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_event_create_rule", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_create_rule", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteEventCreateRule", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventCreateRule", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventEditRule_sync", - "title": "Snippet for the get_event_edit_rule call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_edit_rule.", - "file": "analytics_admin_service/get_event_edit_rule.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_event_edit_rule", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_event_edit_rule", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::EventEditRule", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetEventEditRule", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventEditRule", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventEditRules_sync", - "title": "Snippet for the list_event_edit_rules call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_edit_rules.", - "file": "analytics_admin_service/list_event_edit_rules.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_event_edit_rules", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_event_edit_rules", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListEventEditRules", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventEditRules", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventEditRule_sync", - "title": "Snippet for the create_event_edit_rule call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_edit_rule.", - "file": "analytics_admin_service/create_event_edit_rule.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_event_edit_rule", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_event_edit_rule", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::EventEditRule", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateEventEditRule", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventEditRule", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventEditRule_sync", - "title": "Snippet for the update_event_edit_rule call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_edit_rule.", - "file": "analytics_admin_service/update_event_edit_rule.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_event_edit_rule", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_event_edit_rule", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::EventEditRule", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateEventEditRule", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventEditRule", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventEditRule_sync", - "title": "Snippet for the delete_event_edit_rule call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_edit_rule.", - "file": "analytics_admin_service/delete_event_edit_rule.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_event_edit_rule", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_event_edit_rule", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteEventEditRule", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventEditRule", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ReorderEventEditRules_sync", - "title": "Snippet for the reorder_event_edit_rules call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#reorder_event_edit_rules.", - "file": "analytics_admin_service/reorder_event_edit_rules.rb", - "language": "RUBY", - "client_method": { - "short_name": "reorder_event_edit_rules", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#reorder_event_edit_rules", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ReorderEventEditRules", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ReorderEventEditRules", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync", - "title": "Snippet for the update_data_redaction_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_redaction_settings.", - "file": "analytics_admin_service/update_data_redaction_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_data_redaction_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_data_redaction_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DataRedactionSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateDataRedactionSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRedactionSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync", - "title": "Snippet for the get_data_redaction_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_redaction_settings.", - "file": "analytics_admin_service/get_data_redaction_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_data_redaction_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_data_redaction_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::DataRedactionSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetDataRedactionSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRedactionSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCalculatedMetric_sync", - "title": "Snippet for the get_calculated_metric call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_calculated_metric.", - "file": "analytics_admin_service/get_calculated_metric.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_calculated_metric", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_calculated_metric", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::CalculatedMetric", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetCalculatedMetric", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCalculatedMetric", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCalculatedMetric_sync", - "title": "Snippet for the create_calculated_metric call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_calculated_metric.", - "file": "analytics_admin_service/create_calculated_metric.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_calculated_metric", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_calculated_metric", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::CalculatedMetric", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateCalculatedMetric", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCalculatedMetric", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCalculatedMetrics_sync", - "title": "Snippet for the list_calculated_metrics call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_calculated_metrics.", - "file": "analytics_admin_service/list_calculated_metrics.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_calculated_metrics", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_calculated_metrics", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListCalculatedMetrics", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCalculatedMetrics", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCalculatedMetric_sync", - "title": "Snippet for the update_calculated_metric call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_calculated_metric.", - "file": "analytics_admin_service/update_calculated_metric.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_calculated_metric", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_calculated_metric", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::CalculatedMetric", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateCalculatedMetric", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCalculatedMetric", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteCalculatedMetric_sync", - "title": "Snippet for the delete_calculated_metric call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_calculated_metric.", - "file": "analytics_admin_service/delete_calculated_metric.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_calculated_metric", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_calculated_metric", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteCalculatedMetric", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteCalculatedMetric", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync", - "title": "Snippet for the create_rollup_property call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property.", - "file": "analytics_admin_service/create_rollup_property.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_rollup_property", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateRollupProperty", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateRollupProperty", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync", - "title": "Snippet for the get_rollup_property_source_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_rollup_property_source_link.", - "file": "analytics_admin_service/get_rollup_property_source_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_rollup_property_source_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_rollup_property_source_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetRollupPropertySourceLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetRollupPropertySourceLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync", - "title": "Snippet for the list_rollup_property_source_links call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_rollup_property_source_links.", - "file": "analytics_admin_service/list_rollup_property_source_links.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_rollup_property_source_links", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_rollup_property_source_links", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListRollupPropertySourceLinks", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListRollupPropertySourceLinks", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync", - "title": "Snippet for the create_rollup_property_source_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property_source_link.", - "file": "analytics_admin_service/create_rollup_property_source_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_rollup_property_source_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_rollup_property_source_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateRollupPropertySourceLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateRollupPropertySourceLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync", - "title": "Snippet for the delete_rollup_property_source_link call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_rollup_property_source_link.", - "file": "analytics_admin_service/delete_rollup_property_source_link.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_rollup_property_source_link", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_rollup_property_source_link", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteRollupPropertySourceLink", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteRollupPropertySourceLink", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionSubproperty_sync", - "title": "Snippet for the provision_subproperty call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_subproperty.", - "file": "analytics_admin_service/provision_subproperty.rb", - "language": "RUBY", - "client_method": { - "short_name": "provision_subproperty", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_subproperty", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ProvisionSubproperty", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionSubproperty", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync", - "title": "Snippet for the create_subproperty_event_filter call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_subproperty_event_filter.", - "file": "analytics_admin_service/create_subproperty_event_filter.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_subproperty_event_filter", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_subproperty_event_filter", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateSubpropertyEventFilter", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSubpropertyEventFilter", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_sync", - "title": "Snippet for the get_subproperty_event_filter call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_event_filter.", - "file": "analytics_admin_service/get_subproperty_event_filter.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_subproperty_event_filter", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_event_filter", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetSubpropertyEventFilter", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSubpropertyEventFilter", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_sync", - "title": "Snippet for the list_subproperty_event_filters call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_event_filters.", - "file": "analytics_admin_service/list_subproperty_event_filters.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_subproperty_event_filters", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_event_filters", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListSubpropertyEventFilters", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSubpropertyEventFilters", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_sync", - "title": "Snippet for the update_subproperty_event_filter call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_event_filter.", - "file": "analytics_admin_service/update_subproperty_event_filter.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_subproperty_event_filter", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_event_filter", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateSubpropertyEventFilter", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSubpropertyEventFilter", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync", - "title": "Snippet for the delete_subproperty_event_filter call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_subproperty_event_filter.", - "file": "analytics_admin_service/delete_subproperty_event_filter.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_subproperty_event_filter", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_subproperty_event_filter", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteSubpropertyEventFilter", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSubpropertyEventFilter", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateReportingDataAnnotation_sync", - "title": "Snippet for the create_reporting_data_annotation call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_reporting_data_annotation.", - "file": "analytics_admin_service/create_reporting_data_annotation.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_reporting_data_annotation", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_reporting_data_annotation", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "CreateReportingDataAnnotation", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateReportingDataAnnotation", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingDataAnnotation_sync", - "title": "Snippet for the get_reporting_data_annotation call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_data_annotation.", - "file": "analytics_admin_service/get_reporting_data_annotation.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_reporting_data_annotation", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_data_annotation", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetReportingDataAnnotation", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetReportingDataAnnotation", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListReportingDataAnnotations_sync", - "title": "Snippet for the list_reporting_data_annotations call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_reporting_data_annotations.", - "file": "analytics_admin_service/list_reporting_data_annotations.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_reporting_data_annotations", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_reporting_data_annotations", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListReportingDataAnnotations", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListReportingDataAnnotations", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingDataAnnotation_sync", - "title": "Snippet for the update_reporting_data_annotation call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_data_annotation.", - "file": "analytics_admin_service/update_reporting_data_annotation.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_reporting_data_annotation", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_data_annotation", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateReportingDataAnnotation", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateReportingDataAnnotation", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteReportingDataAnnotation_sync", - "title": "Snippet for the delete_reporting_data_annotation call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_reporting_data_annotation.", - "file": "analytics_admin_service/delete_reporting_data_annotation.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_reporting_data_annotation", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#delete_reporting_data_annotation", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest", - "name": "request" - } - ], - "result_type": "::Google::Protobuf::Empty", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "DeleteReportingDataAnnotation", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteReportingDataAnnotation", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_SubmitUserDeletion_sync", - "title": "Snippet for the submit_user_deletion call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#submit_user_deletion.", - "file": "analytics_admin_service/submit_user_deletion.rb", - "language": "RUBY", - "client_method": { - "short_name": "submit_user_deletion", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#submit_user_deletion", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "SubmitUserDeletion", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.SubmitUserDeletion", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertySyncConfigs_sync", - "title": "Snippet for the list_subproperty_sync_configs call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_sync_configs.", - "file": "analytics_admin_service/list_subproperty_sync_configs.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_subproperty_sync_configs", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#list_subproperty_sync_configs", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "ListSubpropertySyncConfigs", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSubpropertySyncConfigs", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertySyncConfig_sync", - "title": "Snippet for the update_subproperty_sync_config call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_sync_config.", - "file": "analytics_admin_service/update_subproperty_sync_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_subproperty_sync_config", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_subproperty_sync_config", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateSubpropertySyncConfig", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSubpropertySyncConfig", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertySyncConfig_sync", - "title": "Snippet for the get_subproperty_sync_config call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_sync_config.", - "file": "analytics_admin_service/get_subproperty_sync_config.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_subproperty_sync_config", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_subproperty_sync_config", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetSubpropertySyncConfig", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSubpropertySyncConfig", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingIdentitySettings_sync", - "title": "Snippet for the get_reporting_identity_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_identity_settings.", - "file": "analytics_admin_service/get_reporting_identity_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_reporting_identity_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_reporting_identity_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetReportingIdentitySettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetReportingIdentitySettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_sync", - "title": "Snippet for the update_reporting_identity_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_identity_settings.", - "file": "analytics_admin_service/update_reporting_identity_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_reporting_identity_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#update_reporting_identity_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "UpdateReportingIdentitySettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateReportingIdentitySettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync", - "title": "Snippet for the get_user_provided_data_settings call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_user_provided_data_settings.", - "file": "analytics_admin_service/get_user_provided_data_settings.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_user_provided_data_settings", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#get_user_provided_data_settings", - "async": false, - "parameters": [ - { - "type": "::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest", - "name": "request" - } - ], - "result_type": "::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings", - "client": { - "short_name": "AnalyticsAdminService::Client", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" - }, - "method": { - "short_name": "GetUserProvidedDataSettings", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserProvidedDataSettings", - "service": { - "short_name": "AnalyticsAdminService", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb b/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb deleted file mode 100644 index a1bde679507c..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb +++ /dev/null @@ -1,490 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/analytics/admin/v1alpha/analytics_admin_service" - -class ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_access_binding_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.access_binding_path account: "value0", access_binding: "value1" - assert_equal "accounts/value0/accessBindings/value1", path - - path = client.access_binding_path property: "value0", access_binding: "value1" - assert_equal "properties/value0/accessBindings/value1", path - end - end - - def test_account_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.account_path account: "value0" - assert_equal "accounts/value0", path - end - end - - def test_ad_sense_link_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.ad_sense_link_path property: "value0", adsense_link: "value1" - assert_equal "properties/value0/adSenseLinks/value1", path - end - end - - def test_attribution_settings_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.attribution_settings_path property: "value0" - assert_equal "properties/value0/attributionSettings", path - end - end - - def test_audience_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.audience_path property: "value0", audience: "value1" - assert_equal "properties/value0/audiences/value1", path - end - end - - def test_big_query_link_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.big_query_link_path property: "value0", bigquery_link: "value1" - assert_equal "properties/value0/bigQueryLinks/value1", path - end - end - - def test_calculated_metric_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.calculated_metric_path property: "value0", calculated_metric: "value1" - assert_equal "properties/value0/calculatedMetrics/value1", path - end - end - - def test_channel_group_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.channel_group_path property: "value0", channel_group: "value1" - assert_equal "properties/value0/channelGroups/value1", path - end - end - - def test_conversion_event_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.conversion_event_path property: "value0", conversion_event: "value1" - assert_equal "properties/value0/conversionEvents/value1", path - end - end - - def test_custom_dimension_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.custom_dimension_path property: "value0", custom_dimension: "value1" - assert_equal "properties/value0/customDimensions/value1", path - end - end - - def test_custom_metric_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.custom_metric_path property: "value0", custom_metric: "value1" - assert_equal "properties/value0/customMetrics/value1", path - end - end - - def test_data_redaction_settings_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.data_redaction_settings_path property: "value0", data_stream: "value1" - assert_equal "properties/value0/dataStreams/value1/dataRedactionSettings", path - end - end - - def test_data_retention_settings_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.data_retention_settings_path property: "value0" - assert_equal "properties/value0/dataRetentionSettings", path - end - end - - def test_data_sharing_settings_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.data_sharing_settings_path account: "value0" - assert_equal "accounts/value0/dataSharingSettings", path - end - end - - def test_data_stream_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.data_stream_path property: "value0", data_stream: "value1" - assert_equal "properties/value0/dataStreams/value1", path - end - end - - def test_display_video360_advertiser_link_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.display_video360_advertiser_link_path property: "value0", display_video_360_advertiser_link: "value1" - assert_equal "properties/value0/displayVideo360AdvertiserLinks/value1", path - end - end - - def test_display_video360_advertiser_link_proposal_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.display_video360_advertiser_link_proposal_path property: "value0", display_video_360_advertiser_link_proposal: "value1" - assert_equal "properties/value0/displayVideo360AdvertiserLinkProposals/value1", path - end - end - - def test_enhanced_measurement_settings_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.enhanced_measurement_settings_path property: "value0", data_stream: "value1" - assert_equal "properties/value0/dataStreams/value1/enhancedMeasurementSettings", path - end - end - - def test_event_create_rule_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.event_create_rule_path property: "value0", data_stream: "value1", event_create_rule: "value2" - assert_equal "properties/value0/dataStreams/value1/eventCreateRules/value2", path - end - end - - def test_event_edit_rule_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.event_edit_rule_path property: "value0", data_stream: "value1", event_edit_rule: "value2" - assert_equal "properties/value0/dataStreams/value1/eventEditRules/value2", path - end - end - - def test_expanded_data_set_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.expanded_data_set_path property: "value0", expanded_data_set: "value1" - assert_equal "properties/value0/expandedDataSets/value1", path - end - end - - def test_firebase_link_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.firebase_link_path property: "value0", firebase_link: "value1" - assert_equal "properties/value0/firebaseLinks/value1", path - end - end - - def test_global_site_tag_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.global_site_tag_path property: "value0", data_stream: "value1" - assert_equal "properties/value0/dataStreams/value1/globalSiteTag", path - end - end - - def test_google_ads_link_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.google_ads_link_path property: "value0", google_ads_link: "value1" - assert_equal "properties/value0/googleAdsLinks/value1", path - end - end - - def test_google_signals_settings_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.google_signals_settings_path property: "value0" - assert_equal "properties/value0/googleSignalsSettings", path - end - end - - def test_key_event_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.key_event_path property: "value0", key_event: "value1" - assert_equal "properties/value0/keyEvents/value1", path - end - end - - def test_measurement_protocol_secret_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.measurement_protocol_secret_path property: "value0", data_stream: "value1", measurement_protocol_secret: "value2" - assert_equal "properties/value0/dataStreams/value1/measurementProtocolSecrets/value2", path - end - end - - def test_organization_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.organization_path organization: "value0" - assert_equal "organizations/value0", path - end - end - - def test_property_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.property_path property: "value0" - assert_equal "properties/value0", path - end - end - - def test_reporting_data_annotation_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.reporting_data_annotation_path property: "value0", reporting_data_annotation: "value1" - assert_equal "properties/value0/reportingDataAnnotations/value1", path - end - end - - def test_reporting_identity_settings_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.reporting_identity_settings_path property: "value0" - assert_equal "properties/value0/reportingIdentitySettings", path - end - end - - def test_rollup_property_source_link_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.rollup_property_source_link_path property: "value0", rollup_property_source_link: "value1" - assert_equal "properties/value0/rollupPropertySourceLinks/value1", path - end - end - - def test_sk_ad_network_conversion_value_schema_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.sk_ad_network_conversion_value_schema_path property: "value0", data_stream: "value1", skadnetwork_conversion_value_schema: "value2" - assert_equal "properties/value0/dataStreams/value1/sKAdNetworkConversionValueSchema/value2", path - end - end - - def test_search_ads360_link_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.search_ads360_link_path property: "value0", search_ads_360_link: "value1" - assert_equal "properties/value0/searchAds360Links/value1", path - end - end - - def test_subproperty_event_filter_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.subproperty_event_filter_path property: "value0", sub_property_event_filter: "value1" - assert_equal "properties/value0/subpropertyEventFilters/value1", path - end - end - - def test_subproperty_sync_config_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.subproperty_sync_config_path property: "value0", subproperty_sync_config: "value1" - assert_equal "properties/value0/subpropertySyncConfigs/value1", path - end - end - - def test_user_provided_data_settings_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.user_provided_data_settings_path property: "value0" - assert_equal "properties/value0/userProvidedDataSettings", path - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb b/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb deleted file mode 100644 index 2f362e2eb9be..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_rest_test.rb +++ /dev/null @@ -1,8664 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/analytics/admin/v1alpha/analytics_admin_pb" -require "google/analytics/admin/v1alpha/analytics_admin_service/rest" - - -class ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_account - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::Account.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_account_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_account_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_account_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_account({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_account name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_account ::Google::Analytics::Admin::V1alpha::GetAccountRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_account({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_account(::Google::Analytics::Admin::V1alpha::GetAccountRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_account_client_stub.call_count - end - end - end - - def test_list_accounts - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListAccountsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - page_size = 42 - page_token = "hello world" - show_deleted = true - - list_accounts_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_accounts_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_accounts_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_accounts({ page_size: page_size, page_token: page_token, show_deleted: show_deleted }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_accounts page_size: page_size, page_token: page_token, show_deleted: show_deleted do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_accounts ::Google::Analytics::Admin::V1alpha::ListAccountsRequest.new(page_size: page_size, page_token: page_token, show_deleted: show_deleted) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_accounts({ page_size: page_size, page_token: page_token, show_deleted: show_deleted }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_accounts(::Google::Analytics::Admin::V1alpha::ListAccountsRequest.new(page_size: page_size, page_token: page_token, show_deleted: show_deleted), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_accounts_client_stub.call_count - end - end - end - - def test_delete_account - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_account_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_account_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_account_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_account({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_account name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_account ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_account({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_account(::Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_account_client_stub.call_count - end - end - end - - def test_update_account - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::Account.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - account = {} - update_mask = {} - - update_account_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_account_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_account_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_account({ account: account, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_account account: account, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_account ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new(account: account, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_account({ account: account, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_account(::Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new(account: account, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_account_client_stub.call_count - end - end - end - - def test_provision_account_ticket - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - account = {} - redirect_uri = "hello world" - - provision_account_ticket_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_provision_account_ticket_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, provision_account_ticket_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.provision_account_ticket({ account: account, redirect_uri: redirect_uri }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.provision_account_ticket account: account, redirect_uri: redirect_uri do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.provision_account_ticket ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new(account: account, redirect_uri: redirect_uri) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.provision_account_ticket({ account: account, redirect_uri: redirect_uri }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.provision_account_ticket(::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new(account: account, redirect_uri: redirect_uri), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, provision_account_ticket_client_stub.call_count - end - end - end - - def test_list_account_summaries - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - page_size = 42 - page_token = "hello world" - - list_account_summaries_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_account_summaries_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_account_summaries_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_account_summaries({ page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_account_summaries page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_account_summaries ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new(page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_account_summaries({ page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_account_summaries(::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new(page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_account_summaries_client_stub.call_count - end - end - end - - def test_get_property - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::Property.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_property_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_property_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_property_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_property({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_property name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_property ::Google::Analytics::Admin::V1alpha::GetPropertyRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_property({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_property(::Google::Analytics::Admin::V1alpha::GetPropertyRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_property_client_stub.call_count - end - end - end - - def test_list_properties - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListPropertiesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - filter = "hello world" - page_size = 42 - page_token = "hello world" - show_deleted = true - - list_properties_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_properties_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_properties_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_properties({ filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_properties filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_properties ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new(filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_properties({ filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_properties(::Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new(filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_properties_client_stub.call_count - end - end - end - - def test_create_property - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::Property.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - property = {} - - create_property_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_property_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_property_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_property({ property: property }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_property property: property do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_property ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new(property: property) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_property({ property: property }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_property(::Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new(property: property), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_property_client_stub.call_count - end - end - end - - def test_delete_property - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::Property.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_property_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_property_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_property_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_property({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_property name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_property ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_property({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_property(::Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_property_client_stub.call_count - end - end - end - - def test_update_property - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::Property.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - property = {} - update_mask = {} - - update_property_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_property_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_property_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_property({ property: property, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_property property: property, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_property ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new(property: property, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_property({ property: property, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_property(::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new(property: property, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_property_client_stub.call_count - end - end - end - - def test_create_firebase_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::FirebaseLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - firebase_link = {} - - create_firebase_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_firebase_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_firebase_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_firebase_link({ parent: parent, firebase_link: firebase_link }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_firebase_link parent: parent, firebase_link: firebase_link do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_firebase_link ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new(parent: parent, firebase_link: firebase_link) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_firebase_link({ parent: parent, firebase_link: firebase_link }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_firebase_link(::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new(parent: parent, firebase_link: firebase_link), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_firebase_link_client_stub.call_count - end - end - end - - def test_delete_firebase_link - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_firebase_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_firebase_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_firebase_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_firebase_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_firebase_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_firebase_link ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_firebase_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_firebase_link(::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_firebase_link_client_stub.call_count - end - end - end - - def test_list_firebase_links - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_firebase_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_firebase_links_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_firebase_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_firebase_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_firebase_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_firebase_links ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_firebase_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_firebase_links(::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_firebase_links_client_stub.call_count - end - end - end - - def test_get_global_site_tag - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::GlobalSiteTag.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_global_site_tag_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_global_site_tag_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_global_site_tag_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_global_site_tag({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_global_site_tag name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_global_site_tag ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_global_site_tag({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_global_site_tag(::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_global_site_tag_client_stub.call_count - end - end - end - - def test_create_google_ads_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - google_ads_link = {} - - create_google_ads_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_google_ads_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_google_ads_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_google_ads_link({ parent: parent, google_ads_link: google_ads_link }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_google_ads_link parent: parent, google_ads_link: google_ads_link do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_google_ads_link ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new(parent: parent, google_ads_link: google_ads_link) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_google_ads_link({ parent: parent, google_ads_link: google_ads_link }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_google_ads_link(::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new(parent: parent, google_ads_link: google_ads_link), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_google_ads_link_client_stub.call_count - end - end - end - - def test_update_google_ads_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - google_ads_link = {} - update_mask = {} - - update_google_ads_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_google_ads_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_google_ads_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_google_ads_link({ google_ads_link: google_ads_link, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_google_ads_link google_ads_link: google_ads_link, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_google_ads_link ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new(google_ads_link: google_ads_link, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_google_ads_link({ google_ads_link: google_ads_link, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_google_ads_link(::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new(google_ads_link: google_ads_link, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_google_ads_link_client_stub.call_count - end - end - end - - def test_delete_google_ads_link - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_google_ads_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_google_ads_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_google_ads_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_google_ads_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_google_ads_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_google_ads_link ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_google_ads_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_google_ads_link(::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_google_ads_link_client_stub.call_count - end - end - end - - def test_list_google_ads_links - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_google_ads_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_google_ads_links_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_google_ads_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_google_ads_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_google_ads_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_google_ads_links ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_google_ads_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_google_ads_links(::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_google_ads_links_client_stub.call_count - end - end - end - - def test_get_data_sharing_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DataSharingSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_data_sharing_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_data_sharing_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_data_sharing_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_data_sharing_settings({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_data_sharing_settings name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_data_sharing_settings ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_data_sharing_settings({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_data_sharing_settings(::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_data_sharing_settings_client_stub.call_count - end - end - end - - def test_get_measurement_protocol_secret - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_measurement_protocol_secret_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_measurement_protocol_secret_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_measurement_protocol_secret_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_measurement_protocol_secret({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_measurement_protocol_secret name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_measurement_protocol_secret({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_measurement_protocol_secret_client_stub.call_count - end - end - end - - def test_list_measurement_protocol_secrets - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_measurement_protocol_secrets_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_measurement_protocol_secrets_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_measurement_protocol_secrets_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_measurement_protocol_secrets({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_measurement_protocol_secrets parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_measurement_protocol_secrets ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_measurement_protocol_secrets({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_measurement_protocol_secrets(::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_measurement_protocol_secrets_client_stub.call_count - end - end - end - - def test_create_measurement_protocol_secret - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - measurement_protocol_secret = {} - - create_measurement_protocol_secret_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_measurement_protocol_secret_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_measurement_protocol_secret_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_measurement_protocol_secret({ parent: parent, measurement_protocol_secret: measurement_protocol_secret }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_measurement_protocol_secret parent: parent, measurement_protocol_secret: measurement_protocol_secret do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new(parent: parent, measurement_protocol_secret: measurement_protocol_secret) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_measurement_protocol_secret({ parent: parent, measurement_protocol_secret: measurement_protocol_secret }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new(parent: parent, measurement_protocol_secret: measurement_protocol_secret), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_measurement_protocol_secret_client_stub.call_count - end - end - end - - def test_delete_measurement_protocol_secret - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_measurement_protocol_secret_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_measurement_protocol_secret_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_measurement_protocol_secret_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_measurement_protocol_secret({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_measurement_protocol_secret name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_measurement_protocol_secret({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_measurement_protocol_secret_client_stub.call_count - end - end - end - - def test_update_measurement_protocol_secret - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - measurement_protocol_secret = {} - update_mask = {} - - update_measurement_protocol_secret_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_measurement_protocol_secret_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_measurement_protocol_secret_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_measurement_protocol_secret({ measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_measurement_protocol_secret measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new(measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_measurement_protocol_secret({ measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new(measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_measurement_protocol_secret_client_stub.call_count - end - end - end - - def test_acknowledge_user_data_collection - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - property = "hello world" - acknowledgement = "hello world" - - acknowledge_user_data_collection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_acknowledge_user_data_collection_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, acknowledge_user_data_collection_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.acknowledge_user_data_collection({ property: property, acknowledgement: acknowledgement }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.acknowledge_user_data_collection property: property, acknowledgement: acknowledgement do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.acknowledge_user_data_collection ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new(property: property, acknowledgement: acknowledgement) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.acknowledge_user_data_collection({ property: property, acknowledgement: acknowledgement }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.acknowledge_user_data_collection(::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new(property: property, acknowledgement: acknowledgement), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, acknowledge_user_data_collection_client_stub.call_count - end - end - end - - def test_get_sk_ad_network_conversion_value_schema - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_sk_ad_network_conversion_value_schema_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_sk_ad_network_conversion_value_schema_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_sk_ad_network_conversion_value_schema({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_sk_ad_network_conversion_value_schema name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_sk_ad_network_conversion_value_schema({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_sk_ad_network_conversion_value_schema_client_stub.call_count - end - end - end - - def test_create_sk_ad_network_conversion_value_schema - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - skadnetwork_conversion_value_schema = {} - - create_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_sk_ad_network_conversion_value_schema_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_sk_ad_network_conversion_value_schema_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_sk_ad_network_conversion_value_schema({ parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_sk_ad_network_conversion_value_schema parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new(parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_sk_ad_network_conversion_value_schema({ parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new(parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_sk_ad_network_conversion_value_schema_client_stub.call_count - end - end - end - - def test_delete_sk_ad_network_conversion_value_schema - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_sk_ad_network_conversion_value_schema_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_sk_ad_network_conversion_value_schema_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_sk_ad_network_conversion_value_schema({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_sk_ad_network_conversion_value_schema name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_sk_ad_network_conversion_value_schema({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_sk_ad_network_conversion_value_schema_client_stub.call_count - end - end - end - - def test_update_sk_ad_network_conversion_value_schema - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - skadnetwork_conversion_value_schema = {} - update_mask = {} - - update_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_sk_ad_network_conversion_value_schema_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_sk_ad_network_conversion_value_schema_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_sk_ad_network_conversion_value_schema({ skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_sk_ad_network_conversion_value_schema skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new(skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_sk_ad_network_conversion_value_schema({ skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new(skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_sk_ad_network_conversion_value_schema_client_stub.call_count - end - end - end - - def test_list_sk_ad_network_conversion_value_schemas - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_sk_ad_network_conversion_value_schemas_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_sk_ad_network_conversion_value_schemas_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_sk_ad_network_conversion_value_schemas_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_sk_ad_network_conversion_value_schemas({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_sk_ad_network_conversion_value_schemas parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_sk_ad_network_conversion_value_schemas ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_sk_ad_network_conversion_value_schemas({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_sk_ad_network_conversion_value_schemas(::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_sk_ad_network_conversion_value_schemas_client_stub.call_count - end - end - end - - def test_search_change_history_events - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - account = "hello world" - property = "hello world" - resource_type = [:CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED] - action = [:ACTION_TYPE_UNSPECIFIED] - actor_email = ["hello world"] - earliest_change_time = {} - latest_change_time = {} - page_size = 42 - page_token = "hello world" - - search_change_history_events_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_search_change_history_events_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, search_change_history_events_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.search_change_history_events({ account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.search_change_history_events account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.search_change_history_events ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new(account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.search_change_history_events({ account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.search_change_history_events(::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new(account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, search_change_history_events_client_stub.call_count - end - end - end - - def test_get_google_signals_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_google_signals_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_google_signals_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_google_signals_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_google_signals_settings({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_google_signals_settings name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_google_signals_settings ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_google_signals_settings({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_google_signals_settings(::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_google_signals_settings_client_stub.call_count - end - end - end - - def test_update_google_signals_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - google_signals_settings = {} - update_mask = {} - - update_google_signals_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_google_signals_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_google_signals_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_google_signals_settings({ google_signals_settings: google_signals_settings, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_google_signals_settings google_signals_settings: google_signals_settings, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_google_signals_settings ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new(google_signals_settings: google_signals_settings, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_google_signals_settings({ google_signals_settings: google_signals_settings, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_google_signals_settings(::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new(google_signals_settings: google_signals_settings, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_google_signals_settings_client_stub.call_count - end - end - end - - def test_create_conversion_event - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - conversion_event = {} - parent = "hello world" - - create_conversion_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_conversion_event_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_conversion_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_conversion_event({ conversion_event: conversion_event, parent: parent }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_conversion_event conversion_event: conversion_event, parent: parent do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_conversion_event ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new(conversion_event: conversion_event, parent: parent) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_conversion_event({ conversion_event: conversion_event, parent: parent }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_conversion_event(::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new(conversion_event: conversion_event, parent: parent), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_conversion_event_client_stub.call_count - end - end - end - - def test_update_conversion_event - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - conversion_event = {} - update_mask = {} - - update_conversion_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_conversion_event_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_conversion_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_conversion_event({ conversion_event: conversion_event, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_conversion_event conversion_event: conversion_event, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_conversion_event ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new(conversion_event: conversion_event, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_conversion_event({ conversion_event: conversion_event, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_conversion_event(::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new(conversion_event: conversion_event, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_conversion_event_client_stub.call_count - end - end - end - - def test_get_conversion_event - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_conversion_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_conversion_event_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_conversion_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_conversion_event({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_conversion_event name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_conversion_event ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_conversion_event({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_conversion_event(::Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_conversion_event_client_stub.call_count - end - end - end - - def test_delete_conversion_event - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_conversion_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_conversion_event_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_conversion_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_conversion_event({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_conversion_event name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_conversion_event ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_conversion_event({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_conversion_event(::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_conversion_event_client_stub.call_count - end - end - end - - def test_list_conversion_events - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_conversion_events_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_conversion_events_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_conversion_events_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_conversion_events({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_conversion_events parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_conversion_events ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_conversion_events({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_conversion_events(::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_conversion_events_client_stub.call_count - end - end - end - - def test_create_key_event - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::KeyEvent.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - key_event = {} - parent = "hello world" - - create_key_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_key_event_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_key_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_key_event({ key_event: key_event, parent: parent }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_key_event key_event: key_event, parent: parent do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_key_event ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new(key_event: key_event, parent: parent) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_key_event({ key_event: key_event, parent: parent }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_key_event(::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new(key_event: key_event, parent: parent), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_key_event_client_stub.call_count - end - end - end - - def test_update_key_event - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::KeyEvent.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - key_event = {} - update_mask = {} - - update_key_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_key_event_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_key_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_key_event({ key_event: key_event, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_key_event key_event: key_event, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_key_event ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new(key_event: key_event, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_key_event({ key_event: key_event, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_key_event(::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new(key_event: key_event, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_key_event_client_stub.call_count - end - end - end - - def test_get_key_event - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::KeyEvent.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_key_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_key_event_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_key_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_key_event({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_key_event name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_key_event ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_key_event({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_key_event(::Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_key_event_client_stub.call_count - end - end - end - - def test_delete_key_event - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_key_event_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_key_event_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_key_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_key_event({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_key_event name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_key_event ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_key_event({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_key_event(::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_key_event_client_stub.call_count - end - end - end - - def test_list_key_events - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_key_events_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_key_events_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_key_events_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_key_events({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_key_events parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_key_events ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_key_events({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_key_events(::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_key_events_client_stub.call_count - end - end - end - - def test_get_display_video360_advertiser_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_display_video360_advertiser_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_display_video360_advertiser_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_display_video360_advertiser_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_display_video360_advertiser_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_display_video360_advertiser_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_display_video360_advertiser_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_display_video360_advertiser_link_client_stub.call_count - end - end - end - - def test_list_display_video360_advertiser_links - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_display_video360_advertiser_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_display_video360_advertiser_links_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_display_video360_advertiser_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_display_video360_advertiser_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_display_video360_advertiser_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_display_video360_advertiser_links ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_display_video360_advertiser_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_display_video360_advertiser_links(::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_display_video360_advertiser_links_client_stub.call_count - end - end - end - - def test_create_display_video360_advertiser_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - display_video_360_advertiser_link = {} - - create_display_video360_advertiser_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_display_video360_advertiser_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_display_video360_advertiser_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_display_video360_advertiser_link({ parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_display_video360_advertiser_link parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new(parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_display_video360_advertiser_link({ parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new(parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_display_video360_advertiser_link_client_stub.call_count - end - end - end - - def test_delete_display_video360_advertiser_link - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_display_video360_advertiser_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_display_video360_advertiser_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_display_video360_advertiser_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_display_video360_advertiser_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_display_video360_advertiser_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_display_video360_advertiser_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_display_video360_advertiser_link_client_stub.call_count - end - end - end - - def test_update_display_video360_advertiser_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - display_video_360_advertiser_link = {} - update_mask = {} - - update_display_video360_advertiser_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_display_video360_advertiser_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_display_video360_advertiser_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_display_video360_advertiser_link({ display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_display_video360_advertiser_link display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new(display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_display_video360_advertiser_link({ display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new(display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_display_video360_advertiser_link_client_stub.call_count - end - end - end - - def test_get_display_video360_advertiser_link_proposal - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_display_video360_advertiser_link_proposal_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_display_video360_advertiser_link_proposal_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_display_video360_advertiser_link_proposal_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_display_video360_advertiser_link_proposal({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_display_video360_advertiser_link_proposal name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_display_video360_advertiser_link_proposal({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_display_video360_advertiser_link_proposal_client_stub.call_count - end - end - end - - def test_list_display_video360_advertiser_link_proposals - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_display_video360_advertiser_link_proposals_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_display_video360_advertiser_link_proposals_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_display_video360_advertiser_link_proposals_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_display_video360_advertiser_link_proposals({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_display_video360_advertiser_link_proposals parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_display_video360_advertiser_link_proposals ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_display_video360_advertiser_link_proposals({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_display_video360_advertiser_link_proposals(::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_display_video360_advertiser_link_proposals_client_stub.call_count - end - end - end - - def test_create_display_video360_advertiser_link_proposal - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - display_video_360_advertiser_link_proposal = {} - - create_display_video360_advertiser_link_proposal_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_display_video360_advertiser_link_proposal_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_display_video360_advertiser_link_proposal_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_display_video360_advertiser_link_proposal({ parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_display_video360_advertiser_link_proposal parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new(parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_display_video360_advertiser_link_proposal({ parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new(parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_display_video360_advertiser_link_proposal_client_stub.call_count - end - end - end - - def test_delete_display_video360_advertiser_link_proposal - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_display_video360_advertiser_link_proposal_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_display_video360_advertiser_link_proposal_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_display_video360_advertiser_link_proposal_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_display_video360_advertiser_link_proposal({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_display_video360_advertiser_link_proposal name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_display_video360_advertiser_link_proposal({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_display_video360_advertiser_link_proposal_client_stub.call_count - end - end - end - - def test_approve_display_video360_advertiser_link_proposal - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - approve_display_video360_advertiser_link_proposal_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_approve_display_video360_advertiser_link_proposal_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, approve_display_video360_advertiser_link_proposal_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.approve_display_video360_advertiser_link_proposal({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.approve_display_video360_advertiser_link_proposal name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.approve_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.approve_display_video360_advertiser_link_proposal({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.approve_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, approve_display_video360_advertiser_link_proposal_client_stub.call_count - end - end - end - - def test_cancel_display_video360_advertiser_link_proposal - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_display_video360_advertiser_link_proposal_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_cancel_display_video360_advertiser_link_proposal_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, cancel_display_video360_advertiser_link_proposal_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.cancel_display_video360_advertiser_link_proposal({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.cancel_display_video360_advertiser_link_proposal name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.cancel_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.cancel_display_video360_advertiser_link_proposal({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.cancel_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, cancel_display_video360_advertiser_link_proposal_client_stub.call_count - end - end - end - - def test_create_custom_dimension - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CustomDimension.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - custom_dimension = {} - - create_custom_dimension_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_custom_dimension_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_custom_dimension_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_custom_dimension({ parent: parent, custom_dimension: custom_dimension }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_custom_dimension parent: parent, custom_dimension: custom_dimension do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_custom_dimension ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new(parent: parent, custom_dimension: custom_dimension) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_custom_dimension({ parent: parent, custom_dimension: custom_dimension }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_custom_dimension(::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new(parent: parent, custom_dimension: custom_dimension), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_custom_dimension_client_stub.call_count - end - end - end - - def test_update_custom_dimension - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CustomDimension.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - custom_dimension = {} - update_mask = {} - - update_custom_dimension_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_custom_dimension_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_custom_dimension_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_custom_dimension({ custom_dimension: custom_dimension, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_custom_dimension custom_dimension: custom_dimension, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_custom_dimension ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new(custom_dimension: custom_dimension, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_custom_dimension({ custom_dimension: custom_dimension, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_custom_dimension(::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new(custom_dimension: custom_dimension, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_custom_dimension_client_stub.call_count - end - end - end - - def test_list_custom_dimensions - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_custom_dimensions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_custom_dimensions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_custom_dimensions_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_custom_dimensions({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_custom_dimensions parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_custom_dimensions ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_custom_dimensions({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_custom_dimensions(::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_custom_dimensions_client_stub.call_count - end - end - end - - def test_archive_custom_dimension - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - archive_custom_dimension_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_archive_custom_dimension_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, archive_custom_dimension_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.archive_custom_dimension({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.archive_custom_dimension name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.archive_custom_dimension ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.archive_custom_dimension({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.archive_custom_dimension(::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, archive_custom_dimension_client_stub.call_count - end - end - end - - def test_get_custom_dimension - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CustomDimension.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_custom_dimension_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_custom_dimension_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_custom_dimension_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_custom_dimension({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_custom_dimension name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_custom_dimension ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_custom_dimension({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_custom_dimension(::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_custom_dimension_client_stub.call_count - end - end - end - - def test_create_custom_metric - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CustomMetric.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - custom_metric = {} - - create_custom_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_custom_metric_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_custom_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_custom_metric({ parent: parent, custom_metric: custom_metric }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_custom_metric parent: parent, custom_metric: custom_metric do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_custom_metric ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new(parent: parent, custom_metric: custom_metric) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_custom_metric({ parent: parent, custom_metric: custom_metric }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_custom_metric(::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new(parent: parent, custom_metric: custom_metric), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_custom_metric_client_stub.call_count - end - end - end - - def test_update_custom_metric - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CustomMetric.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - custom_metric = {} - update_mask = {} - - update_custom_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_custom_metric_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_custom_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_custom_metric({ custom_metric: custom_metric, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_custom_metric custom_metric: custom_metric, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_custom_metric ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new(custom_metric: custom_metric, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_custom_metric({ custom_metric: custom_metric, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_custom_metric(::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new(custom_metric: custom_metric, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_custom_metric_client_stub.call_count - end - end - end - - def test_list_custom_metrics - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_custom_metrics_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_custom_metrics_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_custom_metrics_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_custom_metrics({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_custom_metrics parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_custom_metrics ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_custom_metrics({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_custom_metrics(::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_custom_metrics_client_stub.call_count - end - end - end - - def test_archive_custom_metric - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - archive_custom_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_archive_custom_metric_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, archive_custom_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.archive_custom_metric({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.archive_custom_metric name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.archive_custom_metric ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.archive_custom_metric({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.archive_custom_metric(::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, archive_custom_metric_client_stub.call_count - end - end - end - - def test_get_custom_metric - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CustomMetric.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_custom_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_custom_metric_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_custom_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_custom_metric({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_custom_metric name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_custom_metric ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_custom_metric({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_custom_metric(::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_custom_metric_client_stub.call_count - end - end - end - - def test_get_data_retention_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_data_retention_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_data_retention_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_data_retention_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_data_retention_settings({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_data_retention_settings name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_data_retention_settings ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_data_retention_settings({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_data_retention_settings(::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_data_retention_settings_client_stub.call_count - end - end - end - - def test_update_data_retention_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - data_retention_settings = {} - update_mask = {} - - update_data_retention_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_data_retention_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_data_retention_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_data_retention_settings({ data_retention_settings: data_retention_settings, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_data_retention_settings data_retention_settings: data_retention_settings, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_data_retention_settings ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new(data_retention_settings: data_retention_settings, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_data_retention_settings({ data_retention_settings: data_retention_settings, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_data_retention_settings(::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new(data_retention_settings: data_retention_settings, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_data_retention_settings_client_stub.call_count - end - end - end - - def test_create_data_stream - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DataStream.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - data_stream = {} - - create_data_stream_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_data_stream_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_data_stream_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_data_stream({ parent: parent, data_stream: data_stream }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_data_stream parent: parent, data_stream: data_stream do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_data_stream ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new(parent: parent, data_stream: data_stream) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_data_stream({ parent: parent, data_stream: data_stream }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_data_stream(::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new(parent: parent, data_stream: data_stream), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_data_stream_client_stub.call_count - end - end - end - - def test_delete_data_stream - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_data_stream_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_data_stream_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_data_stream_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_data_stream({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_data_stream name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_data_stream ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_data_stream({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_data_stream(::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_data_stream_client_stub.call_count - end - end - end - - def test_update_data_stream - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DataStream.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - data_stream = {} - update_mask = {} - - update_data_stream_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_data_stream_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_data_stream_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_data_stream({ data_stream: data_stream, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_data_stream data_stream: data_stream, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_data_stream ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new(data_stream: data_stream, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_data_stream({ data_stream: data_stream, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_data_stream(::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new(data_stream: data_stream, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_data_stream_client_stub.call_count - end - end - end - - def test_list_data_streams - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_data_streams_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_data_streams_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_data_streams_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_data_streams({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_data_streams parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_data_streams ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_data_streams({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_data_streams(::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_data_streams_client_stub.call_count - end - end - end - - def test_get_data_stream - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DataStream.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_data_stream_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_data_stream_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_data_stream_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_data_stream({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_data_stream name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_data_stream ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_data_stream({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_data_stream(::Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_data_stream_client_stub.call_count - end - end - end - - def test_get_audience - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::Audience.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_audience_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_audience_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_audience_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_audience({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_audience name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_audience ::Google::Analytics::Admin::V1alpha::GetAudienceRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_audience({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_audience(::Google::Analytics::Admin::V1alpha::GetAudienceRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_audience_client_stub.call_count - end - end - end - - def test_list_audiences - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListAudiencesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_audiences_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_audiences_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_audiences_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_audiences({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_audiences parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_audiences ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_audiences({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_audiences(::Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_audiences_client_stub.call_count - end - end - end - - def test_create_audience - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::Audience.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - audience = {} - - create_audience_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_audience_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_audience_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_audience({ parent: parent, audience: audience }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_audience parent: parent, audience: audience do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_audience ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new(parent: parent, audience: audience) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_audience({ parent: parent, audience: audience }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_audience(::Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new(parent: parent, audience: audience), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_audience_client_stub.call_count - end - end - end - - def test_update_audience - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::Audience.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - audience = {} - update_mask = {} - - update_audience_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_audience_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_audience_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_audience({ audience: audience, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_audience audience: audience, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_audience ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new(audience: audience, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_audience({ audience: audience, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_audience(::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new(audience: audience, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_audience_client_stub.call_count - end - end - end - - def test_archive_audience - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - archive_audience_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_archive_audience_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, archive_audience_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.archive_audience({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.archive_audience name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.archive_audience ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.archive_audience({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.archive_audience(::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, archive_audience_client_stub.call_count - end - end - end - - def test_get_search_ads360_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_search_ads360_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_search_ads360_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_search_ads360_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_search_ads360_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_search_ads360_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_search_ads360_link ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_search_ads360_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_search_ads360_link(::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_search_ads360_link_client_stub.call_count - end - end - end - - def test_list_search_ads360_links - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_search_ads360_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_search_ads360_links_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_search_ads360_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_search_ads360_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_search_ads360_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_search_ads360_links ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_search_ads360_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_search_ads360_links(::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_search_ads360_links_client_stub.call_count - end - end - end - - def test_create_search_ads360_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - search_ads_360_link = {} - - create_search_ads360_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_search_ads360_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_search_ads360_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_search_ads360_link({ parent: parent, search_ads_360_link: search_ads_360_link }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_search_ads360_link parent: parent, search_ads_360_link: search_ads_360_link do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_search_ads360_link ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new(parent: parent, search_ads_360_link: search_ads_360_link) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_search_ads360_link({ parent: parent, search_ads_360_link: search_ads_360_link }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_search_ads360_link(::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new(parent: parent, search_ads_360_link: search_ads_360_link), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_search_ads360_link_client_stub.call_count - end - end - end - - def test_delete_search_ads360_link - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_search_ads360_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_search_ads360_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_search_ads360_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_search_ads360_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_search_ads360_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_search_ads360_link ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_search_ads360_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_search_ads360_link(::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_search_ads360_link_client_stub.call_count - end - end - end - - def test_update_search_ads360_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - search_ads_360_link = {} - update_mask = {} - - update_search_ads360_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_search_ads360_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_search_ads360_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_search_ads360_link({ search_ads_360_link: search_ads_360_link, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_search_ads360_link search_ads_360_link: search_ads_360_link, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_search_ads360_link ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new(search_ads_360_link: search_ads_360_link, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_search_ads360_link({ search_ads_360_link: search_ads_360_link, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_search_ads360_link(::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new(search_ads_360_link: search_ads_360_link, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_search_ads360_link_client_stub.call_count - end - end - end - - def test_get_attribution_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::AttributionSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_attribution_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_attribution_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_attribution_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_attribution_settings({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_attribution_settings name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_attribution_settings ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_attribution_settings({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_attribution_settings(::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_attribution_settings_client_stub.call_count - end - end - end - - def test_update_attribution_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::AttributionSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - attribution_settings = {} - update_mask = {} - - update_attribution_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_attribution_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_attribution_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_attribution_settings({ attribution_settings: attribution_settings, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_attribution_settings attribution_settings: attribution_settings, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_attribution_settings ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new(attribution_settings: attribution_settings, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_attribution_settings({ attribution_settings: attribution_settings, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_attribution_settings(::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new(attribution_settings: attribution_settings, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_attribution_settings_client_stub.call_count - end - end - end - - def test_run_access_report - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::RunAccessReportResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - entity = "hello world" - dimensions = [{}] - metrics = [{}] - date_ranges = [{}] - dimension_filter = {} - metric_filter = {} - offset = 42 - limit = 42 - time_zone = "hello world" - order_bys = [{}] - return_entity_quota = true - include_all_users = true - expand_groups = true - - run_access_report_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_run_access_report_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, run_access_report_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.run_access_report({ entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.run_access_report entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.run_access_report ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new(entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.run_access_report({ entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.run_access_report(::Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new(entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, run_access_report_client_stub.call_count - end - end - end - - def test_create_access_binding - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::AccessBinding.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - access_binding = {} - - create_access_binding_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_access_binding_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_access_binding_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_access_binding({ parent: parent, access_binding: access_binding }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_access_binding parent: parent, access_binding: access_binding do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_access_binding ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new(parent: parent, access_binding: access_binding) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_access_binding({ parent: parent, access_binding: access_binding }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_access_binding(::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new(parent: parent, access_binding: access_binding), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_access_binding_client_stub.call_count - end - end - end - - def test_get_access_binding - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::AccessBinding.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_access_binding_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_access_binding_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_access_binding_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_access_binding({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_access_binding name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_access_binding ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_access_binding({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_access_binding(::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_access_binding_client_stub.call_count - end - end - end - - def test_update_access_binding - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::AccessBinding.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - access_binding = {} - - update_access_binding_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_access_binding_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_access_binding_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_access_binding({ access_binding: access_binding }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_access_binding access_binding: access_binding do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_access_binding ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new(access_binding: access_binding) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_access_binding({ access_binding: access_binding }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_access_binding(::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new(access_binding: access_binding), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_access_binding_client_stub.call_count - end - end - end - - def test_delete_access_binding - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_access_binding_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_access_binding_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_access_binding_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_access_binding({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_access_binding name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_access_binding ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_access_binding({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_access_binding(::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_access_binding_client_stub.call_count - end - end - end - - def test_list_access_bindings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_access_bindings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_access_bindings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_access_bindings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_access_bindings({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_access_bindings parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_access_bindings ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_access_bindings({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_access_bindings(::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_access_bindings_client_stub.call_count - end - end - end - - def test_batch_create_access_bindings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - requests = [{}] - - batch_create_access_bindings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_batch_create_access_bindings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, batch_create_access_bindings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.batch_create_access_bindings({ parent: parent, requests: requests }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.batch_create_access_bindings parent: parent, requests: requests do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.batch_create_access_bindings ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new(parent: parent, requests: requests) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.batch_create_access_bindings({ parent: parent, requests: requests }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.batch_create_access_bindings(::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new(parent: parent, requests: requests), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, batch_create_access_bindings_client_stub.call_count - end - end - end - - def test_batch_get_access_bindings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - names = ["hello world"] - - batch_get_access_bindings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_batch_get_access_bindings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, batch_get_access_bindings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.batch_get_access_bindings({ parent: parent, names: names }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.batch_get_access_bindings parent: parent, names: names do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.batch_get_access_bindings ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new(parent: parent, names: names) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.batch_get_access_bindings({ parent: parent, names: names }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.batch_get_access_bindings(::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new(parent: parent, names: names), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, batch_get_access_bindings_client_stub.call_count - end - end - end - - def test_batch_update_access_bindings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - requests = [{}] - - batch_update_access_bindings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_batch_update_access_bindings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, batch_update_access_bindings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.batch_update_access_bindings({ parent: parent, requests: requests }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.batch_update_access_bindings parent: parent, requests: requests do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.batch_update_access_bindings ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new(parent: parent, requests: requests) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.batch_update_access_bindings({ parent: parent, requests: requests }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.batch_update_access_bindings(::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new(parent: parent, requests: requests), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, batch_update_access_bindings_client_stub.call_count - end - end - end - - def test_batch_delete_access_bindings - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - requests = [{}] - - batch_delete_access_bindings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_batch_delete_access_bindings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, batch_delete_access_bindings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.batch_delete_access_bindings({ parent: parent, requests: requests }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.batch_delete_access_bindings parent: parent, requests: requests do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.batch_delete_access_bindings ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new(parent: parent, requests: requests) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.batch_delete_access_bindings({ parent: parent, requests: requests }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.batch_delete_access_bindings(::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new(parent: parent, requests: requests), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, batch_delete_access_bindings_client_stub.call_count - end - end - end - - def test_get_expanded_data_set - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_expanded_data_set_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_expanded_data_set_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_expanded_data_set_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_expanded_data_set({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_expanded_data_set name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_expanded_data_set ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_expanded_data_set({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_expanded_data_set(::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_expanded_data_set_client_stub.call_count - end - end - end - - def test_list_expanded_data_sets - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_expanded_data_sets_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_expanded_data_sets_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_expanded_data_sets_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_expanded_data_sets({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_expanded_data_sets parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_expanded_data_sets ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_expanded_data_sets({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_expanded_data_sets(::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_expanded_data_sets_client_stub.call_count - end - end - end - - def test_create_expanded_data_set - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - expanded_data_set = {} - - create_expanded_data_set_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_expanded_data_set_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_expanded_data_set_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_expanded_data_set({ parent: parent, expanded_data_set: expanded_data_set }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_expanded_data_set parent: parent, expanded_data_set: expanded_data_set do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_expanded_data_set ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new(parent: parent, expanded_data_set: expanded_data_set) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_expanded_data_set({ parent: parent, expanded_data_set: expanded_data_set }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_expanded_data_set(::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new(parent: parent, expanded_data_set: expanded_data_set), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_expanded_data_set_client_stub.call_count - end - end - end - - def test_update_expanded_data_set - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - expanded_data_set = {} - update_mask = {} - - update_expanded_data_set_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_expanded_data_set_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_expanded_data_set_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_expanded_data_set({ expanded_data_set: expanded_data_set, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_expanded_data_set expanded_data_set: expanded_data_set, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_expanded_data_set ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new(expanded_data_set: expanded_data_set, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_expanded_data_set({ expanded_data_set: expanded_data_set, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_expanded_data_set(::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new(expanded_data_set: expanded_data_set, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_expanded_data_set_client_stub.call_count - end - end - end - - def test_delete_expanded_data_set - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_expanded_data_set_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_expanded_data_set_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_expanded_data_set_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_expanded_data_set({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_expanded_data_set name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_expanded_data_set ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_expanded_data_set({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_expanded_data_set(::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_expanded_data_set_client_stub.call_count - end - end - end - - def test_get_channel_group - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_channel_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_channel_group_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_channel_group_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_channel_group({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_channel_group name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_channel_group ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_channel_group({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_channel_group(::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_channel_group_client_stub.call_count - end - end - end - - def test_list_channel_groups - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_channel_groups_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_channel_groups_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_channel_groups_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_channel_groups({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_channel_groups parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_channel_groups ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_channel_groups({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_channel_groups(::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_channel_groups_client_stub.call_count - end - end - end - - def test_create_channel_group - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - channel_group = {} - - create_channel_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_channel_group_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_channel_group_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_channel_group({ parent: parent, channel_group: channel_group }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_channel_group parent: parent, channel_group: channel_group do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_channel_group ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new(parent: parent, channel_group: channel_group) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_channel_group({ parent: parent, channel_group: channel_group }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_channel_group(::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new(parent: parent, channel_group: channel_group), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_channel_group_client_stub.call_count - end - end - end - - def test_update_channel_group - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - channel_group = {} - update_mask = {} - - update_channel_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_channel_group_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_channel_group_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_channel_group({ channel_group: channel_group, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_channel_group channel_group: channel_group, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_channel_group ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new(channel_group: channel_group, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_channel_group({ channel_group: channel_group, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_channel_group(::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new(channel_group: channel_group, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_channel_group_client_stub.call_count - end - end - end - - def test_delete_channel_group - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_channel_group_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_channel_group_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_channel_group_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_channel_group({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_channel_group name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_channel_group ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_channel_group({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_channel_group(::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_channel_group_client_stub.call_count - end - end - end - - def test_create_big_query_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - bigquery_link = {} - - create_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_big_query_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_big_query_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_big_query_link({ parent: parent, bigquery_link: bigquery_link }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_big_query_link parent: parent, bigquery_link: bigquery_link do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_big_query_link ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new(parent: parent, bigquery_link: bigquery_link) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_big_query_link({ parent: parent, bigquery_link: bigquery_link }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_big_query_link(::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new(parent: parent, bigquery_link: bigquery_link), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_big_query_link_client_stub.call_count - end - end - end - - def test_get_big_query_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_big_query_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_big_query_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_big_query_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_big_query_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_big_query_link ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_big_query_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_big_query_link(::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_big_query_link_client_stub.call_count - end - end - end - - def test_list_big_query_links - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_big_query_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_big_query_links_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_big_query_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_big_query_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_big_query_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_big_query_links ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_big_query_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_big_query_links(::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_big_query_links_client_stub.call_count - end - end - end - - def test_delete_big_query_link - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_big_query_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_big_query_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_big_query_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_big_query_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_big_query_link ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_big_query_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_big_query_link(::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_big_query_link_client_stub.call_count - end - end - end - - def test_update_big_query_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - bigquery_link = {} - update_mask = {} - - update_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_big_query_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_big_query_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_big_query_link({ bigquery_link: bigquery_link, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_big_query_link bigquery_link: bigquery_link, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_big_query_link ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new(bigquery_link: bigquery_link, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_big_query_link({ bigquery_link: bigquery_link, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_big_query_link(::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new(bigquery_link: bigquery_link, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_big_query_link_client_stub.call_count - end - end - end - - def test_get_enhanced_measurement_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_enhanced_measurement_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_enhanced_measurement_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_enhanced_measurement_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_enhanced_measurement_settings({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_enhanced_measurement_settings name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_enhanced_measurement_settings ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_enhanced_measurement_settings({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_enhanced_measurement_settings(::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_enhanced_measurement_settings_client_stub.call_count - end - end - end - - def test_update_enhanced_measurement_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - enhanced_measurement_settings = {} - update_mask = {} - - update_enhanced_measurement_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_enhanced_measurement_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_enhanced_measurement_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_enhanced_measurement_settings({ enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_enhanced_measurement_settings enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_enhanced_measurement_settings ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new(enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_enhanced_measurement_settings({ enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_enhanced_measurement_settings(::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new(enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_enhanced_measurement_settings_client_stub.call_count - end - end - end - - def test_get_ad_sense_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::AdSenseLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_ad_sense_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_ad_sense_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_ad_sense_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_ad_sense_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_ad_sense_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_ad_sense_link ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_ad_sense_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_ad_sense_link(::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_ad_sense_link_client_stub.call_count - end - end - end - - def test_create_ad_sense_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::AdSenseLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - adsense_link = {} - - create_ad_sense_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_ad_sense_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_ad_sense_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_ad_sense_link({ parent: parent, adsense_link: adsense_link }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_ad_sense_link parent: parent, adsense_link: adsense_link do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_ad_sense_link ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new(parent: parent, adsense_link: adsense_link) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_ad_sense_link({ parent: parent, adsense_link: adsense_link }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_ad_sense_link(::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new(parent: parent, adsense_link: adsense_link), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_ad_sense_link_client_stub.call_count - end - end - end - - def test_delete_ad_sense_link - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_ad_sense_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_ad_sense_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_ad_sense_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_ad_sense_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_ad_sense_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_ad_sense_link ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_ad_sense_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_ad_sense_link(::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_ad_sense_link_client_stub.call_count - end - end - end - - def test_list_ad_sense_links - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_ad_sense_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_ad_sense_links_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_ad_sense_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_ad_sense_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_ad_sense_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_ad_sense_links ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_ad_sense_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_ad_sense_links(::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_ad_sense_links_client_stub.call_count - end - end - end - - def test_get_event_create_rule - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_event_create_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_event_create_rule_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_event_create_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_event_create_rule({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_event_create_rule name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_event_create_rule ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_event_create_rule({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_event_create_rule(::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_event_create_rule_client_stub.call_count - end - end - end - - def test_list_event_create_rules - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_event_create_rules_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_event_create_rules_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_event_create_rules_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_event_create_rules({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_event_create_rules parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_event_create_rules ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_event_create_rules({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_event_create_rules(::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_event_create_rules_client_stub.call_count - end - end - end - - def test_create_event_create_rule - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - event_create_rule = {} - - create_event_create_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_event_create_rule_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_event_create_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_event_create_rule({ parent: parent, event_create_rule: event_create_rule }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_event_create_rule parent: parent, event_create_rule: event_create_rule do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_event_create_rule ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new(parent: parent, event_create_rule: event_create_rule) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_event_create_rule({ parent: parent, event_create_rule: event_create_rule }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_event_create_rule(::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new(parent: parent, event_create_rule: event_create_rule), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_event_create_rule_client_stub.call_count - end - end - end - - def test_update_event_create_rule - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - event_create_rule = {} - update_mask = {} - - update_event_create_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_event_create_rule_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_event_create_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_event_create_rule({ event_create_rule: event_create_rule, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_event_create_rule event_create_rule: event_create_rule, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_event_create_rule ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new(event_create_rule: event_create_rule, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_event_create_rule({ event_create_rule: event_create_rule, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_event_create_rule(::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new(event_create_rule: event_create_rule, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_event_create_rule_client_stub.call_count - end - end - end - - def test_delete_event_create_rule - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_event_create_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_event_create_rule_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_event_create_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_event_create_rule({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_event_create_rule name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_event_create_rule ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_event_create_rule({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_event_create_rule(::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_event_create_rule_client_stub.call_count - end - end - end - - def test_get_event_edit_rule - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::EventEditRule.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_event_edit_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_event_edit_rule_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_event_edit_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_event_edit_rule({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_event_edit_rule name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_event_edit_rule ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_event_edit_rule({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_event_edit_rule(::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_event_edit_rule_client_stub.call_count - end - end - end - - def test_list_event_edit_rules - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_event_edit_rules_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_event_edit_rules_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_event_edit_rules_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_event_edit_rules({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_event_edit_rules parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_event_edit_rules ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_event_edit_rules({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_event_edit_rules(::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_event_edit_rules_client_stub.call_count - end - end - end - - def test_create_event_edit_rule - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::EventEditRule.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - event_edit_rule = {} - - create_event_edit_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_event_edit_rule_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_event_edit_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_event_edit_rule({ parent: parent, event_edit_rule: event_edit_rule }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_event_edit_rule parent: parent, event_edit_rule: event_edit_rule do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_event_edit_rule ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new(parent: parent, event_edit_rule: event_edit_rule) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_event_edit_rule({ parent: parent, event_edit_rule: event_edit_rule }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_event_edit_rule(::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new(parent: parent, event_edit_rule: event_edit_rule), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_event_edit_rule_client_stub.call_count - end - end - end - - def test_update_event_edit_rule - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::EventEditRule.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - event_edit_rule = {} - update_mask = {} - - update_event_edit_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_event_edit_rule_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_event_edit_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_event_edit_rule({ event_edit_rule: event_edit_rule, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_event_edit_rule event_edit_rule: event_edit_rule, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_event_edit_rule ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new(event_edit_rule: event_edit_rule, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_event_edit_rule({ event_edit_rule: event_edit_rule, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_event_edit_rule(::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new(event_edit_rule: event_edit_rule, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_event_edit_rule_client_stub.call_count - end - end - end - - def test_delete_event_edit_rule - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_event_edit_rule_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_event_edit_rule_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_event_edit_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_event_edit_rule({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_event_edit_rule name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_event_edit_rule ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_event_edit_rule({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_event_edit_rule(::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_event_edit_rule_client_stub.call_count - end - end - end - - def test_reorder_event_edit_rules - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - event_edit_rules = ["hello world"] - - reorder_event_edit_rules_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_reorder_event_edit_rules_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, reorder_event_edit_rules_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.reorder_event_edit_rules({ parent: parent, event_edit_rules: event_edit_rules }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.reorder_event_edit_rules parent: parent, event_edit_rules: event_edit_rules do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.reorder_event_edit_rules ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new(parent: parent, event_edit_rules: event_edit_rules) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.reorder_event_edit_rules({ parent: parent, event_edit_rules: event_edit_rules }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.reorder_event_edit_rules(::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new(parent: parent, event_edit_rules: event_edit_rules), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, reorder_event_edit_rules_client_stub.call_count - end - end - end - - def test_update_data_redaction_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - data_redaction_settings = {} - update_mask = {} - - update_data_redaction_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_data_redaction_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_data_redaction_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_data_redaction_settings({ data_redaction_settings: data_redaction_settings, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_data_redaction_settings data_redaction_settings: data_redaction_settings, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_data_redaction_settings ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new(data_redaction_settings: data_redaction_settings, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_data_redaction_settings({ data_redaction_settings: data_redaction_settings, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_data_redaction_settings(::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new(data_redaction_settings: data_redaction_settings, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_data_redaction_settings_client_stub.call_count - end - end - end - - def test_get_data_redaction_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_data_redaction_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_data_redaction_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_data_redaction_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_data_redaction_settings({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_data_redaction_settings name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_data_redaction_settings ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_data_redaction_settings({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_data_redaction_settings(::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_data_redaction_settings_client_stub.call_count - end - end - end - - def test_get_calculated_metric - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_calculated_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_calculated_metric_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_calculated_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_calculated_metric({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_calculated_metric name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_calculated_metric ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_calculated_metric({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_calculated_metric(::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_calculated_metric_client_stub.call_count - end - end - end - - def test_create_calculated_metric - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - calculated_metric_id = "hello world" - calculated_metric = {} - - create_calculated_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_calculated_metric_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_calculated_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_calculated_metric({ parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_calculated_metric parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_calculated_metric ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new(parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_calculated_metric({ parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_calculated_metric(::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new(parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_calculated_metric_client_stub.call_count - end - end - end - - def test_list_calculated_metrics - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_calculated_metrics_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_calculated_metrics_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_calculated_metrics_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_calculated_metrics({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_calculated_metrics parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_calculated_metrics ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_calculated_metrics({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_calculated_metrics(::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_calculated_metrics_client_stub.call_count - end - end - end - - def test_update_calculated_metric - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - calculated_metric = {} - update_mask = {} - - update_calculated_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_calculated_metric_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_calculated_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_calculated_metric({ calculated_metric: calculated_metric, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_calculated_metric calculated_metric: calculated_metric, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_calculated_metric ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new(calculated_metric: calculated_metric, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_calculated_metric({ calculated_metric: calculated_metric, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_calculated_metric(::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new(calculated_metric: calculated_metric, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_calculated_metric_client_stub.call_count - end - end - end - - def test_delete_calculated_metric - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_calculated_metric_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_calculated_metric_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_calculated_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_calculated_metric({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_calculated_metric name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_calculated_metric ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_calculated_metric({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_calculated_metric(::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_calculated_metric_client_stub.call_count - end - end - end - - def test_create_rollup_property - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - rollup_property = {} - source_properties = ["hello world"] - - create_rollup_property_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_rollup_property_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_rollup_property_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_rollup_property({ rollup_property: rollup_property, source_properties: source_properties }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_rollup_property rollup_property: rollup_property, source_properties: source_properties do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_rollup_property ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new(rollup_property: rollup_property, source_properties: source_properties) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_rollup_property({ rollup_property: rollup_property, source_properties: source_properties }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_rollup_property(::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new(rollup_property: rollup_property, source_properties: source_properties), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_rollup_property_client_stub.call_count - end - end - end - - def test_get_rollup_property_source_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_rollup_property_source_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_rollup_property_source_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_rollup_property_source_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_rollup_property_source_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_rollup_property_source_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_rollup_property_source_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_rollup_property_source_link_client_stub.call_count - end - end - end - - def test_list_rollup_property_source_links - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_rollup_property_source_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_rollup_property_source_links_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_rollup_property_source_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_rollup_property_source_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_rollup_property_source_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_rollup_property_source_links ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_rollup_property_source_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_rollup_property_source_links(::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_rollup_property_source_links_client_stub.call_count - end - end - end - - def test_create_rollup_property_source_link - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - rollup_property_source_link = {} - - create_rollup_property_source_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_rollup_property_source_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_rollup_property_source_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_rollup_property_source_link({ parent: parent, rollup_property_source_link: rollup_property_source_link }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_rollup_property_source_link parent: parent, rollup_property_source_link: rollup_property_source_link do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new(parent: parent, rollup_property_source_link: rollup_property_source_link) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_rollup_property_source_link({ parent: parent, rollup_property_source_link: rollup_property_source_link }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new(parent: parent, rollup_property_source_link: rollup_property_source_link), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_rollup_property_source_link_client_stub.call_count - end - end - end - - def test_delete_rollup_property_source_link - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_rollup_property_source_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_rollup_property_source_link_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_rollup_property_source_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_rollup_property_source_link({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_rollup_property_source_link name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_rollup_property_source_link({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_rollup_property_source_link_client_stub.call_count - end - end - end - - def test_provision_subproperty - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - subproperty = {} - subproperty_event_filter = {} - custom_dimension_and_metric_synchronization_mode = :SYNCHRONIZATION_MODE_UNSPECIFIED - - provision_subproperty_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_provision_subproperty_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, provision_subproperty_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.provision_subproperty subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.provision_subproperty ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.provision_subproperty(::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, provision_subproperty_client_stub.call_count - end - end - end - - def test_create_subproperty_event_filter - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - subproperty_event_filter = {} - - create_subproperty_event_filter_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_subproperty_event_filter_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_subproperty_event_filter_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_subproperty_event_filter({ parent: parent, subproperty_event_filter: subproperty_event_filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_subproperty_event_filter parent: parent, subproperty_event_filter: subproperty_event_filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new(parent: parent, subproperty_event_filter: subproperty_event_filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_subproperty_event_filter({ parent: parent, subproperty_event_filter: subproperty_event_filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new(parent: parent, subproperty_event_filter: subproperty_event_filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_subproperty_event_filter_client_stub.call_count - end - end - end - - def test_get_subproperty_event_filter - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_subproperty_event_filter_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_subproperty_event_filter_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_subproperty_event_filter_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_subproperty_event_filter({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_subproperty_event_filter name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_subproperty_event_filter({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_subproperty_event_filter_client_stub.call_count - end - end - end - - def test_list_subproperty_event_filters - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_subproperty_event_filters_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_subproperty_event_filters_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_subproperty_event_filters_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_subproperty_event_filters({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_subproperty_event_filters parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_subproperty_event_filters ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_subproperty_event_filters({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_subproperty_event_filters(::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_subproperty_event_filters_client_stub.call_count - end - end - end - - def test_update_subproperty_event_filter - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - subproperty_event_filter = {} - update_mask = {} - - update_subproperty_event_filter_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_subproperty_event_filter_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_subproperty_event_filter_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_subproperty_event_filter({ subproperty_event_filter: subproperty_event_filter, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_subproperty_event_filter subproperty_event_filter: subproperty_event_filter, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new(subproperty_event_filter: subproperty_event_filter, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_subproperty_event_filter({ subproperty_event_filter: subproperty_event_filter, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new(subproperty_event_filter: subproperty_event_filter, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_subproperty_event_filter_client_stub.call_count - end - end - end - - def test_delete_subproperty_event_filter - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_subproperty_event_filter_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_subproperty_event_filter_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_subproperty_event_filter_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_subproperty_event_filter({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_subproperty_event_filter name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_subproperty_event_filter({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_subproperty_event_filter_client_stub.call_count - end - end - end - - def test_create_reporting_data_annotation - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - reporting_data_annotation = {} - - create_reporting_data_annotation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_create_reporting_data_annotation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_reporting_data_annotation_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.create_reporting_data_annotation({ parent: parent, reporting_data_annotation: reporting_data_annotation }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.create_reporting_data_annotation parent: parent, reporting_data_annotation: reporting_data_annotation do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.create_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new(parent: parent, reporting_data_annotation: reporting_data_annotation) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.create_reporting_data_annotation({ parent: parent, reporting_data_annotation: reporting_data_annotation }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.create_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new(parent: parent, reporting_data_annotation: reporting_data_annotation), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_reporting_data_annotation_client_stub.call_count - end - end - end - - def test_get_reporting_data_annotation - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_reporting_data_annotation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_reporting_data_annotation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_reporting_data_annotation_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_reporting_data_annotation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_reporting_data_annotation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_reporting_data_annotation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_reporting_data_annotation_client_stub.call_count - end - end - end - - def test_list_reporting_data_annotations - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - - list_reporting_data_annotations_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_reporting_data_annotations_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_reporting_data_annotations_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_reporting_data_annotations({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_reporting_data_annotations parent: parent, filter: filter, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_reporting_data_annotations ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_reporting_data_annotations({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_reporting_data_annotations(::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_reporting_data_annotations_client_stub.call_count - end - end - end - - def test_update_reporting_data_annotation - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - reporting_data_annotation = {} - update_mask = {} - - update_reporting_data_annotation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_reporting_data_annotation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_reporting_data_annotation_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_reporting_data_annotation({ reporting_data_annotation: reporting_data_annotation, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_reporting_data_annotation reporting_data_annotation: reporting_data_annotation, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new(reporting_data_annotation: reporting_data_annotation, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_reporting_data_annotation({ reporting_data_annotation: reporting_data_annotation, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new(reporting_data_annotation: reporting_data_annotation, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_reporting_data_annotation_client_stub.call_count - end - end - end - - def test_delete_reporting_data_annotation - # Create test objects. - client_result = ::Google::Protobuf::Empty.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_reporting_data_annotation_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_delete_reporting_data_annotation_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_reporting_data_annotation_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.delete_reporting_data_annotation({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.delete_reporting_data_annotation name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.delete_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.delete_reporting_data_annotation({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.delete_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_reporting_data_annotation_client_stub.call_count - end - end - end - - def test_submit_user_deletion - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - user_id = "hello world" - name = "hello world" - - submit_user_deletion_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_submit_user_deletion_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, submit_user_deletion_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.submit_user_deletion({ user_id: user_id, name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.submit_user_deletion user_id: user_id, name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.submit_user_deletion ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new(user_id: user_id, name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.submit_user_deletion({ user_id: user_id, name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.submit_user_deletion(::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new(user_id: user_id, name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, submit_user_deletion_client_stub.call_count - end - end - end - - def test_list_subproperty_sync_configs - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_subproperty_sync_configs_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_list_subproperty_sync_configs_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_subproperty_sync_configs_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.list_subproperty_sync_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.list_subproperty_sync_configs parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.list_subproperty_sync_configs ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.list_subproperty_sync_configs({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.list_subproperty_sync_configs(::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_subproperty_sync_configs_client_stub.call_count - end - end - end - - def test_update_subproperty_sync_config - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - subproperty_sync_config = {} - update_mask = {} - - update_subproperty_sync_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_subproperty_sync_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_subproperty_sync_config_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_subproperty_sync_config({ subproperty_sync_config: subproperty_sync_config, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_subproperty_sync_config subproperty_sync_config: subproperty_sync_config, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_subproperty_sync_config ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new(subproperty_sync_config: subproperty_sync_config, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_subproperty_sync_config({ subproperty_sync_config: subproperty_sync_config, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_subproperty_sync_config(::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new(subproperty_sync_config: subproperty_sync_config, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_subproperty_sync_config_client_stub.call_count - end - end - end - - def test_get_subproperty_sync_config - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_subproperty_sync_config_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_subproperty_sync_config_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_subproperty_sync_config_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_subproperty_sync_config({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_subproperty_sync_config name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_subproperty_sync_config ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_subproperty_sync_config({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_subproperty_sync_config(::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_subproperty_sync_config_client_stub.call_count - end - end - end - - def test_get_reporting_identity_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_reporting_identity_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_reporting_identity_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_reporting_identity_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_reporting_identity_settings({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_reporting_identity_settings name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_reporting_identity_settings ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_reporting_identity_settings({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_reporting_identity_settings(::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_reporting_identity_settings_client_stub.call_count - end - end - end - - def test_update_reporting_identity_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - reporting_identity_settings = {} - update_mask = {} - - update_reporting_identity_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_update_reporting_identity_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_reporting_identity_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.update_reporting_identity_settings reporting_identity_settings: reporting_identity_settings, update_mask: update_mask do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.update_reporting_identity_settings ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.update_reporting_identity_settings(::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_reporting_identity_settings_client_stub.call_count - end - end - end - - def test_get_user_provided_data_settings - # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_user_provided_data_settings_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::ServiceStub.stub :transcode_get_user_provided_data_settings_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_user_provided_data_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - c.get_user_provided_data_settings({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - c.get_user_provided_data_settings name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - c.get_user_provided_data_settings ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - c.get_user_provided_data_settings({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - c.get_user_provided_data_settings(::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_user_provided_data_settings_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb b/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb deleted file mode 100644 index b837f0b7e63d..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_test.rb +++ /dev/null @@ -1,9580 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/analytics/admin/v1alpha/analytics_admin_pb" -require "google/analytics/admin/v1alpha/analytics_admin_service" - -class ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_get_account - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::Account.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_account_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_account, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetAccountRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_account_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_account({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_account name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_account ::Google::Analytics::Admin::V1alpha::GetAccountRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_account({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_account(::Google::Analytics::Admin::V1alpha::GetAccountRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_account_client_stub.call_rpc_count - end - end - - def test_list_accounts - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListAccountsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - page_size = 42 - page_token = "hello world" - show_deleted = true - - list_accounts_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_accounts, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListAccountsRequest, request - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["show_deleted"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_accounts_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_accounts({ page_size: page_size, page_token: page_token, show_deleted: show_deleted }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_accounts page_size: page_size, page_token: page_token, show_deleted: show_deleted do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_accounts ::Google::Analytics::Admin::V1alpha::ListAccountsRequest.new(page_size: page_size, page_token: page_token, show_deleted: show_deleted) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_accounts({ page_size: page_size, page_token: page_token, show_deleted: show_deleted }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_accounts(::Google::Analytics::Admin::V1alpha::ListAccountsRequest.new(page_size: page_size, page_token: page_token, show_deleted: show_deleted), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_accounts_client_stub.call_rpc_count - end - end - - def test_delete_account - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_account_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_account, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_account_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_account({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_account name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_account ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_account({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_account(::Google::Analytics::Admin::V1alpha::DeleteAccountRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_account_client_stub.call_rpc_count - end - end - - def test_update_account - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::Account.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - account = {} - update_mask = {} - - update_account_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_account, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Account), request["account"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_account_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_account({ account: account, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_account account: account, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_account ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new(account: account, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_account({ account: account, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_account(::Google::Analytics::Admin::V1alpha::UpdateAccountRequest.new(account: account, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_account_client_stub.call_rpc_count - end - end - - def test_provision_account_ticket - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - account = {} - redirect_uri = "hello world" - - provision_account_ticket_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :provision_account_ticket, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Account), request["account"] - assert_equal "hello world", request["redirect_uri"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, provision_account_ticket_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.provision_account_ticket({ account: account, redirect_uri: redirect_uri }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.provision_account_ticket account: account, redirect_uri: redirect_uri do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.provision_account_ticket ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new(account: account, redirect_uri: redirect_uri) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.provision_account_ticket({ account: account, redirect_uri: redirect_uri }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.provision_account_ticket(::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest.new(account: account, redirect_uri: redirect_uri), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, provision_account_ticket_client_stub.call_rpc_count - end - end - - def test_list_account_summaries - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - page_size = 42 - page_token = "hello world" - - list_account_summaries_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_account_summaries, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, request - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_account_summaries_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_account_summaries({ page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_account_summaries page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_account_summaries ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new(page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_account_summaries({ page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_account_summaries(::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest.new(page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_account_summaries_client_stub.call_rpc_count - end - end - - def test_get_property - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::Property.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_property_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_property, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetPropertyRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_property_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_property({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_property name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_property ::Google::Analytics::Admin::V1alpha::GetPropertyRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_property({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_property(::Google::Analytics::Admin::V1alpha::GetPropertyRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_property_client_stub.call_rpc_count - end - end - - def test_list_properties - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListPropertiesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - filter = "hello world" - page_size = 42 - page_token = "hello world" - show_deleted = true - - list_properties_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_properties, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, request - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["show_deleted"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_properties_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_properties({ filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_properties filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_properties ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new(filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_properties({ filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_properties(::Google::Analytics::Admin::V1alpha::ListPropertiesRequest.new(filter: filter, page_size: page_size, page_token: page_token, show_deleted: show_deleted), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_properties_client_stub.call_rpc_count - end - end - - def test_create_property - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::Property.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - property = {} - - create_property_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_property, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Property), request["property"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_property_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_property({ property: property }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_property property: property do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_property ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new(property: property) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_property({ property: property }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_property(::Google::Analytics::Admin::V1alpha::CreatePropertyRequest.new(property: property), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_property_client_stub.call_rpc_count - end - end - - def test_delete_property - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::Property.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_property_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_property, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_property_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_property({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_property name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_property ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_property({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_property(::Google::Analytics::Admin::V1alpha::DeletePropertyRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_property_client_stub.call_rpc_count - end - end - - def test_update_property - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::Property.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - property = {} - update_mask = {} - - update_property_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_property, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Property), request["property"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_property_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_property({ property: property, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_property property: property, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_property ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new(property: property, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_property({ property: property, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_property(::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest.new(property: property, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_property_client_stub.call_rpc_count - end - end - - def test_create_firebase_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::FirebaseLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - firebase_link = {} - - create_firebase_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_firebase_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::FirebaseLink), request["firebase_link"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_firebase_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_firebase_link({ parent: parent, firebase_link: firebase_link }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_firebase_link parent: parent, firebase_link: firebase_link do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_firebase_link ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new(parent: parent, firebase_link: firebase_link) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_firebase_link({ parent: parent, firebase_link: firebase_link }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_firebase_link(::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest.new(parent: parent, firebase_link: firebase_link), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_firebase_link_client_stub.call_rpc_count - end - end - - def test_delete_firebase_link - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_firebase_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_firebase_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_firebase_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_firebase_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_firebase_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_firebase_link ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_firebase_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_firebase_link(::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_firebase_link_client_stub.call_rpc_count - end - end - - def test_list_firebase_links - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_firebase_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_firebase_links, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_firebase_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_firebase_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_firebase_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_firebase_links ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_firebase_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_firebase_links(::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_firebase_links_client_stub.call_rpc_count - end - end - - def test_get_global_site_tag - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::GlobalSiteTag.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_global_site_tag_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_global_site_tag, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_global_site_tag_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_global_site_tag({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_global_site_tag name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_global_site_tag ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_global_site_tag({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_global_site_tag(::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_global_site_tag_client_stub.call_rpc_count - end - end - - def test_create_google_ads_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - google_ads_link = {} - - create_google_ads_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_google_ads_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::GoogleAdsLink), request["google_ads_link"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_google_ads_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_google_ads_link({ parent: parent, google_ads_link: google_ads_link }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_google_ads_link parent: parent, google_ads_link: google_ads_link do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_google_ads_link ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new(parent: parent, google_ads_link: google_ads_link) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_google_ads_link({ parent: parent, google_ads_link: google_ads_link }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_google_ads_link(::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest.new(parent: parent, google_ads_link: google_ads_link), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_google_ads_link_client_stub.call_rpc_count - end - end - - def test_update_google_ads_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - google_ads_link = {} - update_mask = {} - - update_google_ads_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_google_ads_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::GoogleAdsLink), request["google_ads_link"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_google_ads_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_google_ads_link({ google_ads_link: google_ads_link, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_google_ads_link google_ads_link: google_ads_link, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_google_ads_link ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new(google_ads_link: google_ads_link, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_google_ads_link({ google_ads_link: google_ads_link, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_google_ads_link(::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest.new(google_ads_link: google_ads_link, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_google_ads_link_client_stub.call_rpc_count - end - end - - def test_delete_google_ads_link - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_google_ads_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_google_ads_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_google_ads_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_google_ads_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_google_ads_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_google_ads_link ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_google_ads_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_google_ads_link(::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_google_ads_link_client_stub.call_rpc_count - end - end - - def test_list_google_ads_links - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_google_ads_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_google_ads_links, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_google_ads_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_google_ads_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_google_ads_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_google_ads_links ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_google_ads_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_google_ads_links(::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_google_ads_links_client_stub.call_rpc_count - end - end - - def test_get_data_sharing_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DataSharingSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_data_sharing_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_data_sharing_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_data_sharing_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_data_sharing_settings({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_data_sharing_settings name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_data_sharing_settings ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_data_sharing_settings({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_data_sharing_settings(::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_data_sharing_settings_client_stub.call_rpc_count - end - end - - def test_get_measurement_protocol_secret - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_measurement_protocol_secret_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_measurement_protocol_secret, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_measurement_protocol_secret_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_measurement_protocol_secret({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_measurement_protocol_secret name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_measurement_protocol_secret({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_measurement_protocol_secret_client_stub.call_rpc_count - end - end - - def test_list_measurement_protocol_secrets - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_measurement_protocol_secrets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_measurement_protocol_secrets, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_measurement_protocol_secrets_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_measurement_protocol_secrets({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_measurement_protocol_secrets parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_measurement_protocol_secrets ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_measurement_protocol_secrets({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_measurement_protocol_secrets(::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_measurement_protocol_secrets_client_stub.call_rpc_count - end - end - - def test_create_measurement_protocol_secret - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - measurement_protocol_secret = {} - - create_measurement_protocol_secret_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_measurement_protocol_secret, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret), request["measurement_protocol_secret"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_measurement_protocol_secret_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_measurement_protocol_secret({ parent: parent, measurement_protocol_secret: measurement_protocol_secret }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_measurement_protocol_secret parent: parent, measurement_protocol_secret: measurement_protocol_secret do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new(parent: parent, measurement_protocol_secret: measurement_protocol_secret) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_measurement_protocol_secret({ parent: parent, measurement_protocol_secret: measurement_protocol_secret }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest.new(parent: parent, measurement_protocol_secret: measurement_protocol_secret), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_measurement_protocol_secret_client_stub.call_rpc_count - end - end - - def test_delete_measurement_protocol_secret - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_measurement_protocol_secret_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_measurement_protocol_secret, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_measurement_protocol_secret_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_measurement_protocol_secret({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_measurement_protocol_secret name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_measurement_protocol_secret({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_measurement_protocol_secret_client_stub.call_rpc_count - end - end - - def test_update_measurement_protocol_secret - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - measurement_protocol_secret = {} - update_mask = {} - - update_measurement_protocol_secret_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_measurement_protocol_secret, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret), request["measurement_protocol_secret"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_measurement_protocol_secret_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_measurement_protocol_secret({ measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_measurement_protocol_secret measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_measurement_protocol_secret ::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new(measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_measurement_protocol_secret({ measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_measurement_protocol_secret(::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest.new(measurement_protocol_secret: measurement_protocol_secret, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_measurement_protocol_secret_client_stub.call_rpc_count - end - end - - def test_acknowledge_user_data_collection - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - property = "hello world" - acknowledgement = "hello world" - - acknowledge_user_data_collection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :acknowledge_user_data_collection, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest, request - assert_equal "hello world", request["property"] - assert_equal "hello world", request["acknowledgement"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, acknowledge_user_data_collection_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.acknowledge_user_data_collection({ property: property, acknowledgement: acknowledgement }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.acknowledge_user_data_collection property: property, acknowledgement: acknowledgement do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.acknowledge_user_data_collection ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new(property: property, acknowledgement: acknowledgement) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.acknowledge_user_data_collection({ property: property, acknowledgement: acknowledgement }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.acknowledge_user_data_collection(::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest.new(property: property, acknowledgement: acknowledgement), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, acknowledge_user_data_collection_client_stub.call_rpc_count - end - end - - def test_get_sk_ad_network_conversion_value_schema - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_sk_ad_network_conversion_value_schema, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_sk_ad_network_conversion_value_schema_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_sk_ad_network_conversion_value_schema({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_sk_ad_network_conversion_value_schema name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_sk_ad_network_conversion_value_schema({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::GetSKAdNetworkConversionValueSchemaRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_sk_ad_network_conversion_value_schema_client_stub.call_rpc_count - end - end - - def test_create_sk_ad_network_conversion_value_schema - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - skadnetwork_conversion_value_schema = {} - - create_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_sk_ad_network_conversion_value_schema, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema), request["skadnetwork_conversion_value_schema"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_sk_ad_network_conversion_value_schema_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_sk_ad_network_conversion_value_schema({ parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_sk_ad_network_conversion_value_schema parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new(parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_sk_ad_network_conversion_value_schema({ parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::CreateSKAdNetworkConversionValueSchemaRequest.new(parent: parent, skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_sk_ad_network_conversion_value_schema_client_stub.call_rpc_count - end - end - - def test_delete_sk_ad_network_conversion_value_schema - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_sk_ad_network_conversion_value_schema, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_sk_ad_network_conversion_value_schema_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_sk_ad_network_conversion_value_schema({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_sk_ad_network_conversion_value_schema name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_sk_ad_network_conversion_value_schema({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::DeleteSKAdNetworkConversionValueSchemaRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_sk_ad_network_conversion_value_schema_client_stub.call_rpc_count - end - end - - def test_update_sk_ad_network_conversion_value_schema - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - skadnetwork_conversion_value_schema = {} - update_mask = {} - - update_sk_ad_network_conversion_value_schema_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_sk_ad_network_conversion_value_schema, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SKAdNetworkConversionValueSchema), request["skadnetwork_conversion_value_schema"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_sk_ad_network_conversion_value_schema_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_sk_ad_network_conversion_value_schema({ skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_sk_ad_network_conversion_value_schema skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_sk_ad_network_conversion_value_schema ::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new(skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_sk_ad_network_conversion_value_schema({ skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_sk_ad_network_conversion_value_schema(::Google::Analytics::Admin::V1alpha::UpdateSKAdNetworkConversionValueSchemaRequest.new(skadnetwork_conversion_value_schema: skadnetwork_conversion_value_schema, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_sk_ad_network_conversion_value_schema_client_stub.call_rpc_count - end - end - - def test_list_sk_ad_network_conversion_value_schemas - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_sk_ad_network_conversion_value_schemas_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_sk_ad_network_conversion_value_schemas, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_sk_ad_network_conversion_value_schemas_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_sk_ad_network_conversion_value_schemas({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_sk_ad_network_conversion_value_schemas parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_sk_ad_network_conversion_value_schemas ::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_sk_ad_network_conversion_value_schemas({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_sk_ad_network_conversion_value_schemas(::Google::Analytics::Admin::V1alpha::ListSKAdNetworkConversionValueSchemasRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_sk_ad_network_conversion_value_schemas_client_stub.call_rpc_count - end - end - - def test_search_change_history_events - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - account = "hello world" - property = "hello world" - resource_type = [:CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED] - action = [:ACTION_TYPE_UNSPECIFIED] - actor_email = ["hello world"] - earliest_change_time = {} - latest_change_time = {} - page_size = 42 - page_token = "hello world" - - search_change_history_events_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :search_change_history_events, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest, request - assert_equal "hello world", request["account"] - assert_equal "hello world", request["property"] - assert_equal [:CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED], request["resource_type"] - assert_equal [:ACTION_TYPE_UNSPECIFIED], request["action"] - assert_equal ["hello world"], request["actor_email"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["earliest_change_time"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["latest_change_time"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, search_change_history_events_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.search_change_history_events({ account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.search_change_history_events account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.search_change_history_events ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new(account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.search_change_history_events({ account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.search_change_history_events(::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest.new(account: account, property: property, resource_type: resource_type, action: action, actor_email: actor_email, earliest_change_time: earliest_change_time, latest_change_time: latest_change_time, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, search_change_history_events_client_stub.call_rpc_count - end - end - - def test_get_google_signals_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_google_signals_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_google_signals_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_google_signals_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_google_signals_settings({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_google_signals_settings name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_google_signals_settings ::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_google_signals_settings({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_google_signals_settings(::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_google_signals_settings_client_stub.call_rpc_count - end - end - - def test_update_google_signals_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - google_signals_settings = {} - update_mask = {} - - update_google_signals_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_google_signals_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings), request["google_signals_settings"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_google_signals_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_google_signals_settings({ google_signals_settings: google_signals_settings, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_google_signals_settings google_signals_settings: google_signals_settings, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_google_signals_settings ::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new(google_signals_settings: google_signals_settings, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_google_signals_settings({ google_signals_settings: google_signals_settings, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_google_signals_settings(::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest.new(google_signals_settings: google_signals_settings, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_google_signals_settings_client_stub.call_rpc_count - end - end - - def test_create_conversion_event - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - conversion_event = {} - parent = "hello world" - - create_conversion_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_conversion_event, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ConversionEvent), request["conversion_event"] - assert_equal "hello world", request["parent"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_conversion_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_conversion_event({ conversion_event: conversion_event, parent: parent }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_conversion_event conversion_event: conversion_event, parent: parent do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_conversion_event ::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new(conversion_event: conversion_event, parent: parent) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_conversion_event({ conversion_event: conversion_event, parent: parent }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_conversion_event(::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest.new(conversion_event: conversion_event, parent: parent), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_conversion_event_client_stub.call_rpc_count - end - end - - def test_update_conversion_event - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - conversion_event = {} - update_mask = {} - - update_conversion_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_conversion_event, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ConversionEvent), request["conversion_event"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_conversion_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_conversion_event({ conversion_event: conversion_event, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_conversion_event conversion_event: conversion_event, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_conversion_event ::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new(conversion_event: conversion_event, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_conversion_event({ conversion_event: conversion_event, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_conversion_event(::Google::Analytics::Admin::V1alpha::UpdateConversionEventRequest.new(conversion_event: conversion_event, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_conversion_event_client_stub.call_rpc_count - end - end - - def test_get_conversion_event - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ConversionEvent.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_conversion_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_conversion_event, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_conversion_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_conversion_event({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_conversion_event name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_conversion_event ::Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_conversion_event({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_conversion_event(::Google::Analytics::Admin::V1alpha::GetConversionEventRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_conversion_event_client_stub.call_rpc_count - end - end - - def test_delete_conversion_event - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_conversion_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_conversion_event, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_conversion_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_conversion_event({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_conversion_event name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_conversion_event ::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_conversion_event({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_conversion_event(::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_conversion_event_client_stub.call_rpc_count - end - end - - def test_list_conversion_events - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_conversion_events_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_conversion_events, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_conversion_events_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_conversion_events({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_conversion_events parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_conversion_events ::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_conversion_events({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_conversion_events(::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_conversion_events_client_stub.call_rpc_count - end - end - - def test_create_key_event - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::KeyEvent.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - key_event = {} - parent = "hello world" - - create_key_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_key_event, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::KeyEvent), request["key_event"] - assert_equal "hello world", request["parent"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_key_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_key_event({ key_event: key_event, parent: parent }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_key_event key_event: key_event, parent: parent do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_key_event ::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new(key_event: key_event, parent: parent) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_key_event({ key_event: key_event, parent: parent }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_key_event(::Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new(key_event: key_event, parent: parent), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_key_event_client_stub.call_rpc_count - end - end - - def test_update_key_event - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::KeyEvent.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - key_event = {} - update_mask = {} - - update_key_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_key_event, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::KeyEvent), request["key_event"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_key_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_key_event({ key_event: key_event, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_key_event key_event: key_event, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_key_event ::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new(key_event: key_event, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_key_event({ key_event: key_event, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_key_event(::Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new(key_event: key_event, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_key_event_client_stub.call_rpc_count - end - end - - def test_get_key_event - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::KeyEvent.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_key_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_key_event, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_key_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_key_event({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_key_event name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_key_event ::Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_key_event({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_key_event(::Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_key_event_client_stub.call_rpc_count - end - end - - def test_delete_key_event - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_key_event_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_key_event, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_key_event_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_key_event({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_key_event name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_key_event ::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_key_event({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_key_event(::Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_key_event_client_stub.call_rpc_count - end - end - - def test_list_key_events - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_key_events_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_key_events, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_key_events_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_key_events({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_key_events parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_key_events ::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_key_events({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_key_events(::Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_key_events_client_stub.call_rpc_count - end - end - - def test_get_display_video360_advertiser_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_display_video360_advertiser_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_display_video360_advertiser_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_display_video360_advertiser_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_display_video360_advertiser_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_display_video360_advertiser_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_display_video360_advertiser_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_display_video360_advertiser_link_client_stub.call_rpc_count - end - end - - def test_list_display_video360_advertiser_links - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_display_video360_advertiser_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_display_video360_advertiser_links, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_display_video360_advertiser_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_display_video360_advertiser_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_display_video360_advertiser_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_display_video360_advertiser_links ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_display_video360_advertiser_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_display_video360_advertiser_links(::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_display_video360_advertiser_links_client_stub.call_rpc_count - end - end - - def test_create_display_video360_advertiser_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - display_video_360_advertiser_link = {} - - create_display_video360_advertiser_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_display_video360_advertiser_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink), request["display_video_360_advertiser_link"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_display_video360_advertiser_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_display_video360_advertiser_link({ parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_display_video360_advertiser_link parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new(parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_display_video360_advertiser_link({ parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new(parent: parent, display_video_360_advertiser_link: display_video_360_advertiser_link), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_display_video360_advertiser_link_client_stub.call_rpc_count - end - end - - def test_delete_display_video360_advertiser_link - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_display_video360_advertiser_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_display_video360_advertiser_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_display_video360_advertiser_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_display_video360_advertiser_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_display_video360_advertiser_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_display_video360_advertiser_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_display_video360_advertiser_link_client_stub.call_rpc_count - end - end - - def test_update_display_video360_advertiser_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - display_video_360_advertiser_link = {} - update_mask = {} - - update_display_video360_advertiser_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_display_video360_advertiser_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink), request["display_video_360_advertiser_link"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_display_video360_advertiser_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_display_video360_advertiser_link({ display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_display_video360_advertiser_link display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_display_video360_advertiser_link ::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new(display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_display_video360_advertiser_link({ display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_display_video360_advertiser_link(::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new(display_video_360_advertiser_link: display_video_360_advertiser_link, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_display_video360_advertiser_link_client_stub.call_rpc_count - end - end - - def test_get_display_video360_advertiser_link_proposal - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_display_video360_advertiser_link_proposal_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_display_video360_advertiser_link_proposal, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_display_video360_advertiser_link_proposal_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_display_video360_advertiser_link_proposal({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_display_video360_advertiser_link_proposal name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_display_video360_advertiser_link_proposal({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_display_video360_advertiser_link_proposal_client_stub.call_rpc_count - end - end - - def test_list_display_video360_advertiser_link_proposals - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_display_video360_advertiser_link_proposals_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_display_video360_advertiser_link_proposals, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_display_video360_advertiser_link_proposals_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_display_video360_advertiser_link_proposals({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_display_video360_advertiser_link_proposals parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_display_video360_advertiser_link_proposals ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_display_video360_advertiser_link_proposals({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_display_video360_advertiser_link_proposals(::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_display_video360_advertiser_link_proposals_client_stub.call_rpc_count - end - end - - def test_create_display_video360_advertiser_link_proposal - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - display_video_360_advertiser_link_proposal = {} - - create_display_video360_advertiser_link_proposal_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_display_video360_advertiser_link_proposal, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal), request["display_video_360_advertiser_link_proposal"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_display_video360_advertiser_link_proposal_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_display_video360_advertiser_link_proposal({ parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_display_video360_advertiser_link_proposal parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new(parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_display_video360_advertiser_link_proposal({ parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new(parent: parent, display_video_360_advertiser_link_proposal: display_video_360_advertiser_link_proposal), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_display_video360_advertiser_link_proposal_client_stub.call_rpc_count - end - end - - def test_delete_display_video360_advertiser_link_proposal - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_display_video360_advertiser_link_proposal_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_display_video360_advertiser_link_proposal, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_display_video360_advertiser_link_proposal_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_display_video360_advertiser_link_proposal({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_display_video360_advertiser_link_proposal name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_display_video360_advertiser_link_proposal({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_display_video360_advertiser_link_proposal_client_stub.call_rpc_count - end - end - - def test_approve_display_video360_advertiser_link_proposal - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - approve_display_video360_advertiser_link_proposal_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :approve_display_video360_advertiser_link_proposal, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, approve_display_video360_advertiser_link_proposal_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.approve_display_video360_advertiser_link_proposal({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.approve_display_video360_advertiser_link_proposal name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.approve_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.approve_display_video360_advertiser_link_proposal({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.approve_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, approve_display_video360_advertiser_link_proposal_client_stub.call_rpc_count - end - end - - def test_cancel_display_video360_advertiser_link_proposal - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_display_video360_advertiser_link_proposal_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_display_video360_advertiser_link_proposal, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_display_video360_advertiser_link_proposal_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.cancel_display_video360_advertiser_link_proposal({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.cancel_display_video360_advertiser_link_proposal name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.cancel_display_video360_advertiser_link_proposal ::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.cancel_display_video360_advertiser_link_proposal({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.cancel_display_video360_advertiser_link_proposal(::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_display_video360_advertiser_link_proposal_client_stub.call_rpc_count - end - end - - def test_create_custom_dimension - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CustomDimension.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - custom_dimension = {} - - create_custom_dimension_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_custom_dimension, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CustomDimension), request["custom_dimension"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_custom_dimension_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_custom_dimension({ parent: parent, custom_dimension: custom_dimension }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_custom_dimension parent: parent, custom_dimension: custom_dimension do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_custom_dimension ::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new(parent: parent, custom_dimension: custom_dimension) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_custom_dimension({ parent: parent, custom_dimension: custom_dimension }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_custom_dimension(::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new(parent: parent, custom_dimension: custom_dimension), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_custom_dimension_client_stub.call_rpc_count - end - end - - def test_update_custom_dimension - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CustomDimension.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - custom_dimension = {} - update_mask = {} - - update_custom_dimension_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_custom_dimension, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CustomDimension), request["custom_dimension"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_custom_dimension_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_custom_dimension({ custom_dimension: custom_dimension, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_custom_dimension custom_dimension: custom_dimension, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_custom_dimension ::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new(custom_dimension: custom_dimension, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_custom_dimension({ custom_dimension: custom_dimension, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_custom_dimension(::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new(custom_dimension: custom_dimension, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_custom_dimension_client_stub.call_rpc_count - end - end - - def test_list_custom_dimensions - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_custom_dimensions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_custom_dimensions, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_custom_dimensions_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_custom_dimensions({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_custom_dimensions parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_custom_dimensions ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_custom_dimensions({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_custom_dimensions(::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_custom_dimensions_client_stub.call_rpc_count - end - end - - def test_archive_custom_dimension - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - archive_custom_dimension_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :archive_custom_dimension, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, archive_custom_dimension_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.archive_custom_dimension({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.archive_custom_dimension name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.archive_custom_dimension ::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.archive_custom_dimension({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.archive_custom_dimension(::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, archive_custom_dimension_client_stub.call_rpc_count - end - end - - def test_get_custom_dimension - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CustomDimension.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_custom_dimension_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_custom_dimension, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_custom_dimension_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_custom_dimension({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_custom_dimension name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_custom_dimension ::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_custom_dimension({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_custom_dimension(::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_custom_dimension_client_stub.call_rpc_count - end - end - - def test_create_custom_metric - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CustomMetric.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - custom_metric = {} - - create_custom_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_custom_metric, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CustomMetric), request["custom_metric"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_custom_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_custom_metric({ parent: parent, custom_metric: custom_metric }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_custom_metric parent: parent, custom_metric: custom_metric do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_custom_metric ::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new(parent: parent, custom_metric: custom_metric) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_custom_metric({ parent: parent, custom_metric: custom_metric }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_custom_metric(::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new(parent: parent, custom_metric: custom_metric), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_custom_metric_client_stub.call_rpc_count - end - end - - def test_update_custom_metric - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CustomMetric.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - custom_metric = {} - update_mask = {} - - update_custom_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_custom_metric, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CustomMetric), request["custom_metric"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_custom_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_custom_metric({ custom_metric: custom_metric, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_custom_metric custom_metric: custom_metric, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_custom_metric ::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new(custom_metric: custom_metric, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_custom_metric({ custom_metric: custom_metric, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_custom_metric(::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new(custom_metric: custom_metric, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_custom_metric_client_stub.call_rpc_count - end - end - - def test_list_custom_metrics - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_custom_metrics_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_custom_metrics, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_custom_metrics_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_custom_metrics({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_custom_metrics parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_custom_metrics ::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_custom_metrics({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_custom_metrics(::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_custom_metrics_client_stub.call_rpc_count - end - end - - def test_archive_custom_metric - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - archive_custom_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :archive_custom_metric, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, archive_custom_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.archive_custom_metric({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.archive_custom_metric name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.archive_custom_metric ::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.archive_custom_metric({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.archive_custom_metric(::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, archive_custom_metric_client_stub.call_rpc_count - end - end - - def test_get_custom_metric - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CustomMetric.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_custom_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_custom_metric, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_custom_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_custom_metric({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_custom_metric name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_custom_metric ::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_custom_metric({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_custom_metric(::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_custom_metric_client_stub.call_rpc_count - end - end - - def test_get_data_retention_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_data_retention_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_data_retention_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_data_retention_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_data_retention_settings({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_data_retention_settings name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_data_retention_settings ::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_data_retention_settings({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_data_retention_settings(::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_data_retention_settings_client_stub.call_rpc_count - end - end - - def test_update_data_retention_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - data_retention_settings = {} - update_mask = {} - - update_data_retention_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_data_retention_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DataRetentionSettings), request["data_retention_settings"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_data_retention_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_data_retention_settings({ data_retention_settings: data_retention_settings, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_data_retention_settings data_retention_settings: data_retention_settings, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_data_retention_settings ::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new(data_retention_settings: data_retention_settings, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_data_retention_settings({ data_retention_settings: data_retention_settings, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_data_retention_settings(::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new(data_retention_settings: data_retention_settings, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_data_retention_settings_client_stub.call_rpc_count - end - end - - def test_create_data_stream - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DataStream.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - data_stream = {} - - create_data_stream_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_data_stream, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DataStream), request["data_stream"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_data_stream_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_data_stream({ parent: parent, data_stream: data_stream }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_data_stream parent: parent, data_stream: data_stream do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_data_stream ::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new(parent: parent, data_stream: data_stream) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_data_stream({ parent: parent, data_stream: data_stream }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_data_stream(::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new(parent: parent, data_stream: data_stream), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_data_stream_client_stub.call_rpc_count - end - end - - def test_delete_data_stream - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_data_stream_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_data_stream, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_data_stream_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_data_stream({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_data_stream name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_data_stream ::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_data_stream({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_data_stream(::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_data_stream_client_stub.call_rpc_count - end - end - - def test_update_data_stream - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DataStream.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - data_stream = {} - update_mask = {} - - update_data_stream_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_data_stream, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DataStream), request["data_stream"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_data_stream_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_data_stream({ data_stream: data_stream, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_data_stream data_stream: data_stream, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_data_stream ::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new(data_stream: data_stream, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_data_stream({ data_stream: data_stream, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_data_stream(::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new(data_stream: data_stream, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_data_stream_client_stub.call_rpc_count - end - end - - def test_list_data_streams - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_data_streams_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_data_streams, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_data_streams_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_data_streams({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_data_streams parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_data_streams ::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_data_streams({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_data_streams(::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_data_streams_client_stub.call_rpc_count - end - end - - def test_get_data_stream - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DataStream.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_data_stream_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_data_stream, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_data_stream_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_data_stream({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_data_stream name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_data_stream ::Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_data_stream({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_data_stream(::Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_data_stream_client_stub.call_rpc_count - end - end - - def test_get_audience - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::Audience.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_audience_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_audience, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetAudienceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_audience_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_audience({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_audience name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_audience ::Google::Analytics::Admin::V1alpha::GetAudienceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_audience({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_audience(::Google::Analytics::Admin::V1alpha::GetAudienceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_audience_client_stub.call_rpc_count - end - end - - def test_list_audiences - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListAudiencesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_audiences_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_audiences, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_audiences_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_audiences({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_audiences parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_audiences ::Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_audiences({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_audiences(::Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_audiences_client_stub.call_rpc_count - end - end - - def test_create_audience - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::Audience.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - audience = {} - - create_audience_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_audience, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Audience), request["audience"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_audience_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_audience({ parent: parent, audience: audience }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_audience parent: parent, audience: audience do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_audience ::Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new(parent: parent, audience: audience) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_audience({ parent: parent, audience: audience }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_audience(::Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new(parent: parent, audience: audience), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_audience_client_stub.call_rpc_count - end - end - - def test_update_audience - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::Audience.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - audience = {} - update_mask = {} - - update_audience_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_audience, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Audience), request["audience"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_audience_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_audience({ audience: audience, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_audience audience: audience, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_audience ::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new(audience: audience, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_audience({ audience: audience, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_audience(::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new(audience: audience, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_audience_client_stub.call_rpc_count - end - end - - def test_archive_audience - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - archive_audience_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :archive_audience, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, archive_audience_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.archive_audience({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.archive_audience name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.archive_audience ::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.archive_audience({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.archive_audience(::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, archive_audience_client_stub.call_rpc_count - end - end - - def test_get_search_ads360_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_search_ads360_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_search_ads360_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_search_ads360_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_search_ads360_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_search_ads360_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_search_ads360_link ::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_search_ads360_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_search_ads360_link(::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_search_ads360_link_client_stub.call_rpc_count - end - end - - def test_list_search_ads360_links - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_search_ads360_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_search_ads360_links, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_search_ads360_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_search_ads360_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_search_ads360_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_search_ads360_links ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_search_ads360_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_search_ads360_links(::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_search_ads360_links_client_stub.call_rpc_count - end - end - - def test_create_search_ads360_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - search_ads_360_link = {} - - create_search_ads360_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_search_ads360_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SearchAds360Link), request["search_ads_360_link"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_search_ads360_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_search_ads360_link({ parent: parent, search_ads_360_link: search_ads_360_link }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_search_ads360_link parent: parent, search_ads_360_link: search_ads_360_link do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_search_ads360_link ::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new(parent: parent, search_ads_360_link: search_ads_360_link) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_search_ads360_link({ parent: parent, search_ads_360_link: search_ads_360_link }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_search_ads360_link(::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new(parent: parent, search_ads_360_link: search_ads_360_link), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_search_ads360_link_client_stub.call_rpc_count - end - end - - def test_delete_search_ads360_link - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_search_ads360_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_search_ads360_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_search_ads360_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_search_ads360_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_search_ads360_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_search_ads360_link ::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_search_ads360_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_search_ads360_link(::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_search_ads360_link_client_stub.call_rpc_count - end - end - - def test_update_search_ads360_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - search_ads_360_link = {} - update_mask = {} - - update_search_ads360_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_search_ads360_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SearchAds360Link), request["search_ads_360_link"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_search_ads360_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_search_ads360_link({ search_ads_360_link: search_ads_360_link, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_search_ads360_link search_ads_360_link: search_ads_360_link, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_search_ads360_link ::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new(search_ads_360_link: search_ads_360_link, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_search_ads360_link({ search_ads_360_link: search_ads_360_link, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_search_ads360_link(::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest.new(search_ads_360_link: search_ads_360_link, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_search_ads360_link_client_stub.call_rpc_count - end - end - - def test_get_attribution_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::AttributionSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_attribution_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_attribution_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_attribution_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_attribution_settings({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_attribution_settings name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_attribution_settings ::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_attribution_settings({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_attribution_settings(::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_attribution_settings_client_stub.call_rpc_count - end - end - - def test_update_attribution_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::AttributionSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - attribution_settings = {} - update_mask = {} - - update_attribution_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_attribution_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AttributionSettings), request["attribution_settings"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_attribution_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_attribution_settings({ attribution_settings: attribution_settings, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_attribution_settings attribution_settings: attribution_settings, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_attribution_settings ::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new(attribution_settings: attribution_settings, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_attribution_settings({ attribution_settings: attribution_settings, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_attribution_settings(::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest.new(attribution_settings: attribution_settings, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_attribution_settings_client_stub.call_rpc_count - end - end - - def test_run_access_report - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::RunAccessReportResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - entity = "hello world" - dimensions = [{}] - metrics = [{}] - date_ranges = [{}] - dimension_filter = {} - metric_filter = {} - offset = 42 - limit = 42 - time_zone = "hello world" - order_bys = [{}] - return_entity_quota = true - include_all_users = true - expand_groups = true - - run_access_report_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :run_access_report, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest, request - assert_equal "hello world", request["entity"] - assert_kind_of ::Google::Analytics::Admin::V1alpha::AccessDimension, request["dimensions"].first - assert_kind_of ::Google::Analytics::Admin::V1alpha::AccessMetric, request["metrics"].first - assert_kind_of ::Google::Analytics::Admin::V1alpha::AccessDateRange, request["date_ranges"].first - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AccessFilterExpression), request["dimension_filter"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AccessFilterExpression), request["metric_filter"] - assert_equal 42, request["offset"] - assert_equal 42, request["limit"] - assert_equal "hello world", request["time_zone"] - assert_kind_of ::Google::Analytics::Admin::V1alpha::AccessOrderBy, request["order_bys"].first - assert_equal true, request["return_entity_quota"] - assert_equal true, request["include_all_users"] - assert_equal true, request["expand_groups"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, run_access_report_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.run_access_report({ entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.run_access_report entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.run_access_report ::Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new(entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.run_access_report({ entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.run_access_report(::Google::Analytics::Admin::V1alpha::RunAccessReportRequest.new(entity: entity, dimensions: dimensions, metrics: metrics, date_ranges: date_ranges, dimension_filter: dimension_filter, metric_filter: metric_filter, offset: offset, limit: limit, time_zone: time_zone, order_bys: order_bys, return_entity_quota: return_entity_quota, include_all_users: include_all_users, expand_groups: expand_groups), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, run_access_report_client_stub.call_rpc_count - end - end - - def test_create_access_binding - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::AccessBinding.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - access_binding = {} - - create_access_binding_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_access_binding, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AccessBinding), request["access_binding"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_access_binding_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_access_binding({ parent: parent, access_binding: access_binding }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_access_binding parent: parent, access_binding: access_binding do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_access_binding ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new(parent: parent, access_binding: access_binding) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_access_binding({ parent: parent, access_binding: access_binding }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_access_binding(::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest.new(parent: parent, access_binding: access_binding), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_access_binding_client_stub.call_rpc_count - end - end - - def test_get_access_binding - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::AccessBinding.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_access_binding_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_access_binding, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_access_binding_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_access_binding({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_access_binding name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_access_binding ::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_access_binding({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_access_binding(::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_access_binding_client_stub.call_rpc_count - end - end - - def test_update_access_binding - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::AccessBinding.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - access_binding = {} - - update_access_binding_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_access_binding, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AccessBinding), request["access_binding"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_access_binding_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_access_binding({ access_binding: access_binding }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_access_binding access_binding: access_binding do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_access_binding ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new(access_binding: access_binding) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_access_binding({ access_binding: access_binding }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_access_binding(::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest.new(access_binding: access_binding), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_access_binding_client_stub.call_rpc_count - end - end - - def test_delete_access_binding - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_access_binding_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_access_binding, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_access_binding_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_access_binding({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_access_binding name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_access_binding ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_access_binding({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_access_binding(::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_access_binding_client_stub.call_rpc_count - end - end - - def test_list_access_bindings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_access_bindings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_access_bindings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_access_bindings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_access_bindings({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_access_bindings parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_access_bindings ::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_access_bindings({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_access_bindings(::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_access_bindings_client_stub.call_rpc_count - end - end - - def test_batch_create_access_bindings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - requests = [{}] - - batch_create_access_bindings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :batch_create_access_bindings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest, request - assert_equal "hello world", request["parent"] - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest, request["requests"].first - refute_nil options - end - - Gapic::ServiceStub.stub :new, batch_create_access_bindings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.batch_create_access_bindings({ parent: parent, requests: requests }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.batch_create_access_bindings parent: parent, requests: requests do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.batch_create_access_bindings ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new(parent: parent, requests: requests) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.batch_create_access_bindings({ parent: parent, requests: requests }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.batch_create_access_bindings(::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new(parent: parent, requests: requests), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, batch_create_access_bindings_client_stub.call_rpc_count - end - end - - def test_batch_get_access_bindings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - names = ["hello world"] - - batch_get_access_bindings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :batch_get_access_bindings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest, request - assert_equal "hello world", request["parent"] - assert_equal ["hello world"], request["names"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, batch_get_access_bindings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.batch_get_access_bindings({ parent: parent, names: names }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.batch_get_access_bindings parent: parent, names: names do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.batch_get_access_bindings ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new(parent: parent, names: names) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.batch_get_access_bindings({ parent: parent, names: names }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.batch_get_access_bindings(::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest.new(parent: parent, names: names), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, batch_get_access_bindings_client_stub.call_rpc_count - end - end - - def test_batch_update_access_bindings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - requests = [{}] - - batch_update_access_bindings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :batch_update_access_bindings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest, request - assert_equal "hello world", request["parent"] - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest, request["requests"].first - refute_nil options - end - - Gapic::ServiceStub.stub :new, batch_update_access_bindings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.batch_update_access_bindings({ parent: parent, requests: requests }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.batch_update_access_bindings parent: parent, requests: requests do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.batch_update_access_bindings ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new(parent: parent, requests: requests) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.batch_update_access_bindings({ parent: parent, requests: requests }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.batch_update_access_bindings(::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest.new(parent: parent, requests: requests), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, batch_update_access_bindings_client_stub.call_rpc_count - end - end - - def test_batch_delete_access_bindings - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - requests = [{}] - - batch_delete_access_bindings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :batch_delete_access_bindings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest, request - assert_equal "hello world", request["parent"] - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest, request["requests"].first - refute_nil options - end - - Gapic::ServiceStub.stub :new, batch_delete_access_bindings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.batch_delete_access_bindings({ parent: parent, requests: requests }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.batch_delete_access_bindings parent: parent, requests: requests do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.batch_delete_access_bindings ::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new(parent: parent, requests: requests) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.batch_delete_access_bindings({ parent: parent, requests: requests }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.batch_delete_access_bindings(::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new(parent: parent, requests: requests), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, batch_delete_access_bindings_client_stub.call_rpc_count - end - end - - def test_get_expanded_data_set - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_expanded_data_set_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_expanded_data_set, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_expanded_data_set_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_expanded_data_set({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_expanded_data_set name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_expanded_data_set ::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_expanded_data_set({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_expanded_data_set(::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_expanded_data_set_client_stub.call_rpc_count - end - end - - def test_list_expanded_data_sets - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_expanded_data_sets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_expanded_data_sets, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_expanded_data_sets_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_expanded_data_sets({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_expanded_data_sets parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_expanded_data_sets ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_expanded_data_sets({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_expanded_data_sets(::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_expanded_data_sets_client_stub.call_rpc_count - end - end - - def test_create_expanded_data_set - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - expanded_data_set = {} - - create_expanded_data_set_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_expanded_data_set, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ExpandedDataSet), request["expanded_data_set"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_expanded_data_set_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_expanded_data_set({ parent: parent, expanded_data_set: expanded_data_set }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_expanded_data_set parent: parent, expanded_data_set: expanded_data_set do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_expanded_data_set ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new(parent: parent, expanded_data_set: expanded_data_set) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_expanded_data_set({ parent: parent, expanded_data_set: expanded_data_set }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_expanded_data_set(::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new(parent: parent, expanded_data_set: expanded_data_set), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_expanded_data_set_client_stub.call_rpc_count - end - end - - def test_update_expanded_data_set - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - expanded_data_set = {} - update_mask = {} - - update_expanded_data_set_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_expanded_data_set, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ExpandedDataSet), request["expanded_data_set"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_expanded_data_set_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_expanded_data_set({ expanded_data_set: expanded_data_set, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_expanded_data_set expanded_data_set: expanded_data_set, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_expanded_data_set ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new(expanded_data_set: expanded_data_set, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_expanded_data_set({ expanded_data_set: expanded_data_set, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_expanded_data_set(::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new(expanded_data_set: expanded_data_set, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_expanded_data_set_client_stub.call_rpc_count - end - end - - def test_delete_expanded_data_set - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_expanded_data_set_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_expanded_data_set, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_expanded_data_set_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_expanded_data_set({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_expanded_data_set name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_expanded_data_set ::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_expanded_data_set({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_expanded_data_set(::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_expanded_data_set_client_stub.call_rpc_count - end - end - - def test_get_channel_group - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_channel_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_channel_group, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_channel_group_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_channel_group({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_channel_group name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_channel_group ::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_channel_group({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_channel_group(::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_channel_group_client_stub.call_rpc_count - end - end - - def test_list_channel_groups - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_channel_groups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_channel_groups, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_channel_groups_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_channel_groups({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_channel_groups parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_channel_groups ::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_channel_groups({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_channel_groups(::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_channel_groups_client_stub.call_rpc_count - end - end - - def test_create_channel_group - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - channel_group = {} - - create_channel_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_channel_group, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ChannelGroup), request["channel_group"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_channel_group_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_channel_group({ parent: parent, channel_group: channel_group }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_channel_group parent: parent, channel_group: channel_group do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_channel_group ::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new(parent: parent, channel_group: channel_group) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_channel_group({ parent: parent, channel_group: channel_group }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_channel_group(::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new(parent: parent, channel_group: channel_group), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_channel_group_client_stub.call_rpc_count - end - end - - def test_update_channel_group - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ChannelGroup.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - channel_group = {} - update_mask = {} - - update_channel_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_channel_group, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ChannelGroup), request["channel_group"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_channel_group_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_channel_group({ channel_group: channel_group, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_channel_group channel_group: channel_group, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_channel_group ::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new(channel_group: channel_group, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_channel_group({ channel_group: channel_group, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_channel_group(::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new(channel_group: channel_group, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_channel_group_client_stub.call_rpc_count - end - end - - def test_delete_channel_group - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_channel_group_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_channel_group, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_channel_group_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_channel_group({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_channel_group name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_channel_group ::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_channel_group({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_channel_group(::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_channel_group_client_stub.call_rpc_count - end - end - - def test_create_big_query_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - bigquery_link = {} - - create_big_query_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_big_query_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::BigQueryLink), request["bigquery_link"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_big_query_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_big_query_link({ parent: parent, bigquery_link: bigquery_link }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_big_query_link parent: parent, bigquery_link: bigquery_link do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_big_query_link ::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new(parent: parent, bigquery_link: bigquery_link) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_big_query_link({ parent: parent, bigquery_link: bigquery_link }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_big_query_link(::Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new(parent: parent, bigquery_link: bigquery_link), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_big_query_link_client_stub.call_rpc_count - end - end - - def test_get_big_query_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_big_query_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_big_query_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_big_query_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_big_query_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_big_query_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_big_query_link ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_big_query_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_big_query_link(::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_big_query_link_client_stub.call_rpc_count - end - end - - def test_list_big_query_links - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_big_query_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_big_query_links, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_big_query_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_big_query_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_big_query_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_big_query_links ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_big_query_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_big_query_links(::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_big_query_links_client_stub.call_rpc_count - end - end - - def test_delete_big_query_link - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_big_query_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_big_query_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_big_query_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_big_query_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_big_query_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_big_query_link ::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_big_query_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_big_query_link(::Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_big_query_link_client_stub.call_rpc_count - end - end - - def test_update_big_query_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - bigquery_link = {} - update_mask = {} - - update_big_query_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_big_query_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::BigQueryLink), request["bigquery_link"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_big_query_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_big_query_link({ bigquery_link: bigquery_link, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_big_query_link bigquery_link: bigquery_link, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_big_query_link ::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new(bigquery_link: bigquery_link, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_big_query_link({ bigquery_link: bigquery_link, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_big_query_link(::Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new(bigquery_link: bigquery_link, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_big_query_link_client_stub.call_rpc_count - end - end - - def test_get_enhanced_measurement_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_enhanced_measurement_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_enhanced_measurement_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_enhanced_measurement_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_enhanced_measurement_settings({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_enhanced_measurement_settings name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_enhanced_measurement_settings ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_enhanced_measurement_settings({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_enhanced_measurement_settings(::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_enhanced_measurement_settings_client_stub.call_rpc_count - end - end - - def test_update_enhanced_measurement_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - enhanced_measurement_settings = {} - update_mask = {} - - update_enhanced_measurement_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_enhanced_measurement_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings), request["enhanced_measurement_settings"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_enhanced_measurement_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_enhanced_measurement_settings({ enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_enhanced_measurement_settings enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_enhanced_measurement_settings ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new(enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_enhanced_measurement_settings({ enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_enhanced_measurement_settings(::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new(enhanced_measurement_settings: enhanced_measurement_settings, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_enhanced_measurement_settings_client_stub.call_rpc_count - end - end - - def test_get_ad_sense_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::AdSenseLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_ad_sense_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_ad_sense_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_ad_sense_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_ad_sense_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_ad_sense_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_ad_sense_link ::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_ad_sense_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_ad_sense_link(::Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_ad_sense_link_client_stub.call_rpc_count - end - end - - def test_create_ad_sense_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::AdSenseLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - adsense_link = {} - - create_ad_sense_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_ad_sense_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::AdSenseLink), request["adsense_link"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_ad_sense_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_ad_sense_link({ parent: parent, adsense_link: adsense_link }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_ad_sense_link parent: parent, adsense_link: adsense_link do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_ad_sense_link ::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new(parent: parent, adsense_link: adsense_link) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_ad_sense_link({ parent: parent, adsense_link: adsense_link }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_ad_sense_link(::Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new(parent: parent, adsense_link: adsense_link), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_ad_sense_link_client_stub.call_rpc_count - end - end - - def test_delete_ad_sense_link - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_ad_sense_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_ad_sense_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_ad_sense_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_ad_sense_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_ad_sense_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_ad_sense_link ::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_ad_sense_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_ad_sense_link(::Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_ad_sense_link_client_stub.call_rpc_count - end - end - - def test_list_ad_sense_links - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_ad_sense_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_ad_sense_links, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_ad_sense_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_ad_sense_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_ad_sense_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_ad_sense_links ::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_ad_sense_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_ad_sense_links(::Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_ad_sense_links_client_stub.call_rpc_count - end - end - - def test_get_event_create_rule - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_event_create_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_event_create_rule, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_event_create_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_event_create_rule({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_event_create_rule name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_event_create_rule ::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_event_create_rule({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_event_create_rule(::Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_event_create_rule_client_stub.call_rpc_count - end - end - - def test_list_event_create_rules - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_event_create_rules_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_event_create_rules, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_event_create_rules_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_event_create_rules({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_event_create_rules parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_event_create_rules ::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_event_create_rules({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_event_create_rules(::Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_event_create_rules_client_stub.call_rpc_count - end - end - - def test_create_event_create_rule - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - event_create_rule = {} - - create_event_create_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_event_create_rule, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::EventCreateRule), request["event_create_rule"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_event_create_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_event_create_rule({ parent: parent, event_create_rule: event_create_rule }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_event_create_rule parent: parent, event_create_rule: event_create_rule do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_event_create_rule ::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new(parent: parent, event_create_rule: event_create_rule) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_event_create_rule({ parent: parent, event_create_rule: event_create_rule }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_event_create_rule(::Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new(parent: parent, event_create_rule: event_create_rule), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_event_create_rule_client_stub.call_rpc_count - end - end - - def test_update_event_create_rule - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::EventCreateRule.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - event_create_rule = {} - update_mask = {} - - update_event_create_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_event_create_rule, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::EventCreateRule), request["event_create_rule"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_event_create_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_event_create_rule({ event_create_rule: event_create_rule, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_event_create_rule event_create_rule: event_create_rule, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_event_create_rule ::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new(event_create_rule: event_create_rule, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_event_create_rule({ event_create_rule: event_create_rule, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_event_create_rule(::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new(event_create_rule: event_create_rule, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_event_create_rule_client_stub.call_rpc_count - end - end - - def test_delete_event_create_rule - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_event_create_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_event_create_rule, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_event_create_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_event_create_rule({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_event_create_rule name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_event_create_rule ::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_event_create_rule({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_event_create_rule(::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_event_create_rule_client_stub.call_rpc_count - end - end - - def test_get_event_edit_rule - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::EventEditRule.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_event_edit_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_event_edit_rule, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_event_edit_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_event_edit_rule({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_event_edit_rule name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_event_edit_rule ::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_event_edit_rule({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_event_edit_rule(::Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_event_edit_rule_client_stub.call_rpc_count - end - end - - def test_list_event_edit_rules - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_event_edit_rules_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_event_edit_rules, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_event_edit_rules_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_event_edit_rules({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_event_edit_rules parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_event_edit_rules ::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_event_edit_rules({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_event_edit_rules(::Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_event_edit_rules_client_stub.call_rpc_count - end - end - - def test_create_event_edit_rule - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::EventEditRule.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - event_edit_rule = {} - - create_event_edit_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_event_edit_rule, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::EventEditRule), request["event_edit_rule"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_event_edit_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_event_edit_rule({ parent: parent, event_edit_rule: event_edit_rule }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_event_edit_rule parent: parent, event_edit_rule: event_edit_rule do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_event_edit_rule ::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new(parent: parent, event_edit_rule: event_edit_rule) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_event_edit_rule({ parent: parent, event_edit_rule: event_edit_rule }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_event_edit_rule(::Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new(parent: parent, event_edit_rule: event_edit_rule), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_event_edit_rule_client_stub.call_rpc_count - end - end - - def test_update_event_edit_rule - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::EventEditRule.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - event_edit_rule = {} - update_mask = {} - - update_event_edit_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_event_edit_rule, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::EventEditRule), request["event_edit_rule"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_event_edit_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_event_edit_rule({ event_edit_rule: event_edit_rule, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_event_edit_rule event_edit_rule: event_edit_rule, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_event_edit_rule ::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new(event_edit_rule: event_edit_rule, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_event_edit_rule({ event_edit_rule: event_edit_rule, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_event_edit_rule(::Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new(event_edit_rule: event_edit_rule, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_event_edit_rule_client_stub.call_rpc_count - end - end - - def test_delete_event_edit_rule - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_event_edit_rule_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_event_edit_rule, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_event_edit_rule_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_event_edit_rule({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_event_edit_rule name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_event_edit_rule ::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_event_edit_rule({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_event_edit_rule(::Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_event_edit_rule_client_stub.call_rpc_count - end - end - - def test_reorder_event_edit_rules - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - event_edit_rules = ["hello world"] - - reorder_event_edit_rules_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :reorder_event_edit_rules, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest, request - assert_equal "hello world", request["parent"] - assert_equal ["hello world"], request["event_edit_rules"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, reorder_event_edit_rules_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.reorder_event_edit_rules({ parent: parent, event_edit_rules: event_edit_rules }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.reorder_event_edit_rules parent: parent, event_edit_rules: event_edit_rules do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.reorder_event_edit_rules ::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new(parent: parent, event_edit_rules: event_edit_rules) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.reorder_event_edit_rules({ parent: parent, event_edit_rules: event_edit_rules }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.reorder_event_edit_rules(::Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new(parent: parent, event_edit_rules: event_edit_rules), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, reorder_event_edit_rules_client_stub.call_rpc_count - end - end - - def test_update_data_redaction_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - data_redaction_settings = {} - update_mask = {} - - update_data_redaction_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_data_redaction_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::DataRedactionSettings), request["data_redaction_settings"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_data_redaction_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_data_redaction_settings({ data_redaction_settings: data_redaction_settings, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_data_redaction_settings data_redaction_settings: data_redaction_settings, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_data_redaction_settings ::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new(data_redaction_settings: data_redaction_settings, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_data_redaction_settings({ data_redaction_settings: data_redaction_settings, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_data_redaction_settings(::Google::Analytics::Admin::V1alpha::UpdateDataRedactionSettingsRequest.new(data_redaction_settings: data_redaction_settings, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_data_redaction_settings_client_stub.call_rpc_count - end - end - - def test_get_data_redaction_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::DataRedactionSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_data_redaction_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_data_redaction_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_data_redaction_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_data_redaction_settings({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_data_redaction_settings name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_data_redaction_settings ::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_data_redaction_settings({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_data_redaction_settings(::Google::Analytics::Admin::V1alpha::GetDataRedactionSettingsRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_data_redaction_settings_client_stub.call_rpc_count - end - end - - def test_get_calculated_metric - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_calculated_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_calculated_metric, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_calculated_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_calculated_metric({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_calculated_metric name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_calculated_metric ::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_calculated_metric({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_calculated_metric(::Google::Analytics::Admin::V1alpha::GetCalculatedMetricRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_calculated_metric_client_stub.call_rpc_count - end - end - - def test_create_calculated_metric - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - calculated_metric_id = "hello world" - calculated_metric = {} - - create_calculated_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_calculated_metric, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["calculated_metric_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CalculatedMetric), request["calculated_metric"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_calculated_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_calculated_metric({ parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_calculated_metric parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_calculated_metric ::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new(parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_calculated_metric({ parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_calculated_metric(::Google::Analytics::Admin::V1alpha::CreateCalculatedMetricRequest.new(parent: parent, calculated_metric_id: calculated_metric_id, calculated_metric: calculated_metric), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_calculated_metric_client_stub.call_rpc_count - end - end - - def test_list_calculated_metrics - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_calculated_metrics_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_calculated_metrics, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_calculated_metrics_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_calculated_metrics({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_calculated_metrics parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_calculated_metrics ::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_calculated_metrics({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_calculated_metrics(::Google::Analytics::Admin::V1alpha::ListCalculatedMetricsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_calculated_metrics_client_stub.call_rpc_count - end - end - - def test_update_calculated_metric - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CalculatedMetric.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - calculated_metric = {} - update_mask = {} - - update_calculated_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_calculated_metric, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::CalculatedMetric), request["calculated_metric"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_calculated_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_calculated_metric({ calculated_metric: calculated_metric, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_calculated_metric calculated_metric: calculated_metric, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_calculated_metric ::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new(calculated_metric: calculated_metric, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_calculated_metric({ calculated_metric: calculated_metric, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_calculated_metric(::Google::Analytics::Admin::V1alpha::UpdateCalculatedMetricRequest.new(calculated_metric: calculated_metric, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_calculated_metric_client_stub.call_rpc_count - end - end - - def test_delete_calculated_metric - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_calculated_metric_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_calculated_metric, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_calculated_metric_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_calculated_metric({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_calculated_metric name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_calculated_metric ::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_calculated_metric({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_calculated_metric(::Google::Analytics::Admin::V1alpha::DeleteCalculatedMetricRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_calculated_metric_client_stub.call_rpc_count - end - end - - def test_create_rollup_property - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - rollup_property = {} - source_properties = ["hello world"] - - create_rollup_property_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_rollup_property, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Property), request["rollup_property"] - assert_equal ["hello world"], request["source_properties"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_rollup_property_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_rollup_property({ rollup_property: rollup_property, source_properties: source_properties }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_rollup_property rollup_property: rollup_property, source_properties: source_properties do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_rollup_property ::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new(rollup_property: rollup_property, source_properties: source_properties) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_rollup_property({ rollup_property: rollup_property, source_properties: source_properties }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_rollup_property(::Google::Analytics::Admin::V1alpha::CreateRollupPropertyRequest.new(rollup_property: rollup_property, source_properties: source_properties), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_rollup_property_client_stub.call_rpc_count - end - end - - def test_get_rollup_property_source_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_rollup_property_source_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_rollup_property_source_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_rollup_property_source_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_rollup_property_source_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_rollup_property_source_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_rollup_property_source_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::GetRollupPropertySourceLinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_rollup_property_source_link_client_stub.call_rpc_count - end - end - - def test_list_rollup_property_source_links - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_rollup_property_source_links_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_rollup_property_source_links, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_rollup_property_source_links_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_rollup_property_source_links({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_rollup_property_source_links parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_rollup_property_source_links ::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_rollup_property_source_links({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_rollup_property_source_links(::Google::Analytics::Admin::V1alpha::ListRollupPropertySourceLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_rollup_property_source_links_client_stub.call_rpc_count - end - end - - def test_create_rollup_property_source_link - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - rollup_property_source_link = {} - - create_rollup_property_source_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_rollup_property_source_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::RollupPropertySourceLink), request["rollup_property_source_link"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_rollup_property_source_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_rollup_property_source_link({ parent: parent, rollup_property_source_link: rollup_property_source_link }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_rollup_property_source_link parent: parent, rollup_property_source_link: rollup_property_source_link do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new(parent: parent, rollup_property_source_link: rollup_property_source_link) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_rollup_property_source_link({ parent: parent, rollup_property_source_link: rollup_property_source_link }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::CreateRollupPropertySourceLinkRequest.new(parent: parent, rollup_property_source_link: rollup_property_source_link), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_rollup_property_source_link_client_stub.call_rpc_count - end - end - - def test_delete_rollup_property_source_link - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_rollup_property_source_link_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_rollup_property_source_link, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_rollup_property_source_link_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_rollup_property_source_link({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_rollup_property_source_link name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_rollup_property_source_link ::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_rollup_property_source_link({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_rollup_property_source_link(::Google::Analytics::Admin::V1alpha::DeleteRollupPropertySourceLinkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_rollup_property_source_link_client_stub.call_rpc_count - end - end - - def test_provision_subproperty - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - subproperty = {} - subproperty_event_filter = {} - custom_dimension_and_metric_synchronization_mode = :SYNCHRONIZATION_MODE_UNSPECIFIED - - provision_subproperty_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :provision_subproperty, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::Property), request["subproperty"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter), request["subproperty_event_filter"] - assert_equal :SYNCHRONIZATION_MODE_UNSPECIFIED, request["custom_dimension_and_metric_synchronization_mode"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, provision_subproperty_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.provision_subproperty subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.provision_subproperty ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.provision_subproperty(::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, subproperty_event_filter: subproperty_event_filter, custom_dimension_and_metric_synchronization_mode: custom_dimension_and_metric_synchronization_mode), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, provision_subproperty_client_stub.call_rpc_count - end - end - - def test_create_subproperty_event_filter - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - subproperty_event_filter = {} - - create_subproperty_event_filter_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_subproperty_event_filter, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter), request["subproperty_event_filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_subproperty_event_filter_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_subproperty_event_filter({ parent: parent, subproperty_event_filter: subproperty_event_filter }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_subproperty_event_filter parent: parent, subproperty_event_filter: subproperty_event_filter do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new(parent: parent, subproperty_event_filter: subproperty_event_filter) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_subproperty_event_filter({ parent: parent, subproperty_event_filter: subproperty_event_filter }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::CreateSubpropertyEventFilterRequest.new(parent: parent, subproperty_event_filter: subproperty_event_filter), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_subproperty_event_filter_client_stub.call_rpc_count - end - end - - def test_get_subproperty_event_filter - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_subproperty_event_filter_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_subproperty_event_filter, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_subproperty_event_filter_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_subproperty_event_filter({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_subproperty_event_filter name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_subproperty_event_filter({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::GetSubpropertyEventFilterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_subproperty_event_filter_client_stub.call_rpc_count - end - end - - def test_list_subproperty_event_filters - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_subproperty_event_filters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_subproperty_event_filters, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_subproperty_event_filters_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_subproperty_event_filters({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_subproperty_event_filters parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_subproperty_event_filters ::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_subproperty_event_filters({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_subproperty_event_filters(::Google::Analytics::Admin::V1alpha::ListSubpropertyEventFiltersRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_subproperty_event_filters_client_stub.call_rpc_count - end - end - - def test_update_subproperty_event_filter - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - subproperty_event_filter = {} - update_mask = {} - - update_subproperty_event_filter_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_subproperty_event_filter, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SubpropertyEventFilter), request["subproperty_event_filter"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_subproperty_event_filter_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_subproperty_event_filter({ subproperty_event_filter: subproperty_event_filter, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_subproperty_event_filter subproperty_event_filter: subproperty_event_filter, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new(subproperty_event_filter: subproperty_event_filter, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_subproperty_event_filter({ subproperty_event_filter: subproperty_event_filter, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::UpdateSubpropertyEventFilterRequest.new(subproperty_event_filter: subproperty_event_filter, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_subproperty_event_filter_client_stub.call_rpc_count - end - end - - def test_delete_subproperty_event_filter - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_subproperty_event_filter_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_subproperty_event_filter, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_subproperty_event_filter_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_subproperty_event_filter({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_subproperty_event_filter name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_subproperty_event_filter ::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_subproperty_event_filter({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_subproperty_event_filter(::Google::Analytics::Admin::V1alpha::DeleteSubpropertyEventFilterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_subproperty_event_filter_client_stub.call_rpc_count - end - end - - def test_create_reporting_data_annotation - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - reporting_data_annotation = {} - - create_reporting_data_annotation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_reporting_data_annotation, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest, request - assert_equal "hello world", request["parent"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation), request["reporting_data_annotation"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_reporting_data_annotation_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.create_reporting_data_annotation({ parent: parent, reporting_data_annotation: reporting_data_annotation }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.create_reporting_data_annotation parent: parent, reporting_data_annotation: reporting_data_annotation do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.create_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new(parent: parent, reporting_data_annotation: reporting_data_annotation) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.create_reporting_data_annotation({ parent: parent, reporting_data_annotation: reporting_data_annotation }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.create_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::CreateReportingDataAnnotationRequest.new(parent: parent, reporting_data_annotation: reporting_data_annotation), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_reporting_data_annotation_client_stub.call_rpc_count - end - end - - def test_get_reporting_data_annotation - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_reporting_data_annotation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_reporting_data_annotation, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_reporting_data_annotation_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_reporting_data_annotation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_reporting_data_annotation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_reporting_data_annotation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::GetReportingDataAnnotationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_reporting_data_annotation_client_stub.call_rpc_count - end - end - - def test_list_reporting_data_annotations - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - - list_reporting_data_annotations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_reporting_data_annotations, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_reporting_data_annotations_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_reporting_data_annotations({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_reporting_data_annotations parent: parent, filter: filter, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_reporting_data_annotations ::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_reporting_data_annotations({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_reporting_data_annotations(::Google::Analytics::Admin::V1alpha::ListReportingDataAnnotationsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_reporting_data_annotations_client_stub.call_rpc_count - end - end - - def test_update_reporting_data_annotation - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - reporting_data_annotation = {} - update_mask = {} - - update_reporting_data_annotation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_reporting_data_annotation, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ReportingDataAnnotation), request["reporting_data_annotation"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_reporting_data_annotation_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_reporting_data_annotation({ reporting_data_annotation: reporting_data_annotation, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_reporting_data_annotation reporting_data_annotation: reporting_data_annotation, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new(reporting_data_annotation: reporting_data_annotation, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_reporting_data_annotation({ reporting_data_annotation: reporting_data_annotation, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::UpdateReportingDataAnnotationRequest.new(reporting_data_annotation: reporting_data_annotation, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_reporting_data_annotation_client_stub.call_rpc_count - end - end - - def test_delete_reporting_data_annotation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_reporting_data_annotation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_reporting_data_annotation, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_reporting_data_annotation_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.delete_reporting_data_annotation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.delete_reporting_data_annotation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.delete_reporting_data_annotation ::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.delete_reporting_data_annotation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.delete_reporting_data_annotation(::Google::Analytics::Admin::V1alpha::DeleteReportingDataAnnotationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_reporting_data_annotation_client_stub.call_rpc_count - end - end - - def test_submit_user_deletion - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - user_id = "hello world" - name = "hello world" - - submit_user_deletion_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :submit_user_deletion, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest, request - assert_equal "hello world", request["user_id"] - assert_equal :user_id, request.user - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, submit_user_deletion_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.submit_user_deletion({ user_id: user_id, name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.submit_user_deletion user_id: user_id, name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.submit_user_deletion ::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new(user_id: user_id, name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.submit_user_deletion({ user_id: user_id, name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.submit_user_deletion(::Google::Analytics::Admin::V1alpha::SubmitUserDeletionRequest.new(user_id: user_id, name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, submit_user_deletion_client_stub.call_rpc_count - end - end - - def test_list_subproperty_sync_configs - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_subproperty_sync_configs_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_subproperty_sync_configs, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_subproperty_sync_configs_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.list_subproperty_sync_configs({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.list_subproperty_sync_configs parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.list_subproperty_sync_configs ::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.list_subproperty_sync_configs({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.list_subproperty_sync_configs(::Google::Analytics::Admin::V1alpha::ListSubpropertySyncConfigsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_subproperty_sync_configs_client_stub.call_rpc_count - end - end - - def test_update_subproperty_sync_config - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - subproperty_sync_config = {} - update_mask = {} - - update_subproperty_sync_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_subproperty_sync_config, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig), request["subproperty_sync_config"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_subproperty_sync_config_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_subproperty_sync_config({ subproperty_sync_config: subproperty_sync_config, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_subproperty_sync_config subproperty_sync_config: subproperty_sync_config, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_subproperty_sync_config ::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new(subproperty_sync_config: subproperty_sync_config, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_subproperty_sync_config({ subproperty_sync_config: subproperty_sync_config, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_subproperty_sync_config(::Google::Analytics::Admin::V1alpha::UpdateSubpropertySyncConfigRequest.new(subproperty_sync_config: subproperty_sync_config, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_subproperty_sync_config_client_stub.call_rpc_count - end - end - - def test_get_subproperty_sync_config - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::SubpropertySyncConfig.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_subproperty_sync_config_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_subproperty_sync_config, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_subproperty_sync_config_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_subproperty_sync_config({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_subproperty_sync_config name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_subproperty_sync_config ::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_subproperty_sync_config({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_subproperty_sync_config(::Google::Analytics::Admin::V1alpha::GetSubpropertySyncConfigRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_subproperty_sync_config_client_stub.call_rpc_count - end - end - - def test_get_reporting_identity_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_reporting_identity_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_reporting_identity_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_reporting_identity_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_reporting_identity_settings({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_reporting_identity_settings name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_reporting_identity_settings ::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_reporting_identity_settings({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_reporting_identity_settings(::Google::Analytics::Admin::V1alpha::GetReportingIdentitySettingsRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_reporting_identity_settings_client_stub.call_rpc_count - end - end - - def test_update_reporting_identity_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - reporting_identity_settings = {} - update_mask = {} - - update_reporting_identity_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_reporting_identity_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Analytics::Admin::V1alpha::ReportingIdentitySettings), request["reporting_identity_settings"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_reporting_identity_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.update_reporting_identity_settings reporting_identity_settings: reporting_identity_settings, update_mask: update_mask do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.update_reporting_identity_settings ::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.update_reporting_identity_settings({ reporting_identity_settings: reporting_identity_settings, update_mask: update_mask }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.update_reporting_identity_settings(::Google::Analytics::Admin::V1alpha::UpdateReportingIdentitySettingsRequest.new(reporting_identity_settings: reporting_identity_settings, update_mask: update_mask), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_reporting_identity_settings_client_stub.call_rpc_count - end - end - - def test_get_user_provided_data_settings - # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::UserProvidedDataSettings.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_user_provided_data_settings_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_user_provided_data_settings, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_user_provided_data_settings_client_stub do - # Create client - c = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - c.get_user_provided_data_settings({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - c.get_user_provided_data_settings name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - c.get_user_provided_data_settings ::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - c.get_user_provided_data_settings({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - c.get_user_provided_data_settings(::Google::Analytics::Admin::V1alpha::GetUserProvidedDataSettingsRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_user_provided_data_settings_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client, client - assert_equal creds, client.configure.credentials - end - end -end diff --git a/owl-bot-staging/google-analytics-admin-v1alpha/test/helper.rb b/owl-bot-staging/google-analytics-admin-v1alpha/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-analytics-admin-v1alpha/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct"