From 1ff97501ca4573a1520abae11f7658e5e11be020 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 15:39:24 -0700 Subject: [PATCH] feat(analytics-admin-v1alpha): Support KeyEvent resource management calls feat(analytics-admin-v1alpha): Support EventEditRule resource management calls feat(analytics-admin-v1alpha): Support create_big_query_link, delete_big_query_link, and update_big_query_link fix!(analytics-admin-v1alpha): Renamed create_subproperty to provision_subproperty docs(analytics-admin-v1alpha): Deprecated calls related to ConversionEvent resources feat(analytics-admin-v1alpha): Support for several additional resource fields --- .../.owlbot-manifest.json | 16 +- .../gapic_metadata.json | 74 +- .../admin/v1alpha/analytics_admin_pb.rb | 22 +- .../v1alpha/analytics_admin_service/client.rb | 5812 ++++++++++------- .../v1alpha/analytics_admin_service/paths.rb | 50 + .../analytics_admin_service/rest/client.rb | 5532 ++++++++++------ .../rest/service_stub.rb | 885 ++- .../v1alpha/analytics_admin_services_pb.rb | 36 +- .../analytics/admin/v1alpha/audience_pb.rb | 4 +- .../admin/v1alpha/channel_group_pb.rb | 2 +- .../admin/v1alpha/event_create_and_edit_pb.rb | 3 +- .../analytics/admin/v1alpha/resources_pb.rb | 5 +- .../admin/v1alpha/analytics_admin.rb | 253 +- .../analytics/admin/v1alpha/audience.rb | 3 + .../analytics/admin/v1alpha/channel_group.rb | 8 + .../admin/v1alpha/event_create_and_edit.rb | 39 + .../analytics/admin/v1alpha/resources.rb | 80 + .../create_big_query_link.rb | 47 + .../create_event_edit_rule.rb | 47 + ...ate_subproperty.rb => create_key_event.rb} | 20 +- .../delete_big_query_link.rb | 47 + .../delete_event_edit_rule.rb | 47 + .../delete_key_event.rb | 47 + .../get_event_edit_rule.rb | 47 + .../analytics_admin_service/get_key_event.rb | 47 + .../list_event_edit_rules.rb | 51 + .../list_key_events.rb | 51 + .../provision_subproperty.rb | 47 + .../reorder_event_edit_rules.rb | 47 + .../update_big_query_link.rb | 47 + .../update_event_edit_rule.rb | 47 + .../update_key_event.rb | 47 + ...tadata_google.analytics.admin.v1alpha.json | 580 +- .../analytics_admin_service_paths_test.rb | 36 + .../analytics_admin_service_rest_test.rb | 840 ++- .../v1alpha/analytics_admin_service_test.rb | 898 ++- 36 files changed, 11389 insertions(+), 4475 deletions(-) create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb rename google-analytics-admin-v1alpha/snippets/analytics_admin_service/{create_subproperty.rb => create_key_event.rb} (80%) create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb create mode 100644 google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb diff --git a/google-analytics-admin-v1alpha/.owlbot-manifest.json b/google-analytics-admin-v1alpha/.owlbot-manifest.json index d23a3bf646fa..75a59e601202 100644 --- a/google-analytics-admin-v1alpha/.owlbot-manifest.json +++ b/google-analytics-admin-v1alpha/.owlbot-manifest.json @@ -65,6 +65,7 @@ "snippets/analytics_admin_service/create_access_binding.rb", "snippets/analytics_admin_service/create_ad_sense_link.rb", "snippets/analytics_admin_service/create_audience.rb", + "snippets/analytics_admin_service/create_big_query_link.rb", "snippets/analytics_admin_service/create_calculated_metric.rb", "snippets/analytics_admin_service/create_channel_group.rb", "snippets/analytics_admin_service/create_connected_site_tag.rb", @@ -75,20 +76,22 @@ "snippets/analytics_admin_service/create_display_video360_advertiser_link.rb", "snippets/analytics_admin_service/create_display_video360_advertiser_link_proposal.rb", "snippets/analytics_admin_service/create_event_create_rule.rb", + "snippets/analytics_admin_service/create_event_edit_rule.rb", "snippets/analytics_admin_service/create_expanded_data_set.rb", "snippets/analytics_admin_service/create_firebase_link.rb", "snippets/analytics_admin_service/create_google_ads_link.rb", + "snippets/analytics_admin_service/create_key_event.rb", "snippets/analytics_admin_service/create_measurement_protocol_secret.rb", "snippets/analytics_admin_service/create_property.rb", "snippets/analytics_admin_service/create_rollup_property.rb", "snippets/analytics_admin_service/create_rollup_property_source_link.rb", "snippets/analytics_admin_service/create_search_ads360_link.rb", "snippets/analytics_admin_service/create_sk_ad_network_conversion_value_schema.rb", - "snippets/analytics_admin_service/create_subproperty.rb", "snippets/analytics_admin_service/create_subproperty_event_filter.rb", "snippets/analytics_admin_service/delete_access_binding.rb", "snippets/analytics_admin_service/delete_account.rb", "snippets/analytics_admin_service/delete_ad_sense_link.rb", + "snippets/analytics_admin_service/delete_big_query_link.rb", "snippets/analytics_admin_service/delete_calculated_metric.rb", "snippets/analytics_admin_service/delete_channel_group.rb", "snippets/analytics_admin_service/delete_connected_site_tag.rb", @@ -97,9 +100,11 @@ "snippets/analytics_admin_service/delete_display_video360_advertiser_link.rb", "snippets/analytics_admin_service/delete_display_video360_advertiser_link_proposal.rb", "snippets/analytics_admin_service/delete_event_create_rule.rb", + "snippets/analytics_admin_service/delete_event_edit_rule.rb", "snippets/analytics_admin_service/delete_expanded_data_set.rb", "snippets/analytics_admin_service/delete_firebase_link.rb", "snippets/analytics_admin_service/delete_google_ads_link.rb", + "snippets/analytics_admin_service/delete_key_event.rb", "snippets/analytics_admin_service/delete_measurement_protocol_secret.rb", "snippets/analytics_admin_service/delete_property.rb", "snippets/analytics_admin_service/delete_rollup_property_source_link.rb", @@ -127,9 +132,11 @@ "snippets/analytics_admin_service/get_display_video360_advertiser_link_proposal.rb", "snippets/analytics_admin_service/get_enhanced_measurement_settings.rb", "snippets/analytics_admin_service/get_event_create_rule.rb", + "snippets/analytics_admin_service/get_event_edit_rule.rb", "snippets/analytics_admin_service/get_expanded_data_set.rb", "snippets/analytics_admin_service/get_global_site_tag.rb", "snippets/analytics_admin_service/get_google_signals_settings.rb", + "snippets/analytics_admin_service/get_key_event.rb", "snippets/analytics_admin_service/get_measurement_protocol_secret.rb", "snippets/analytics_admin_service/get_property.rb", "snippets/analytics_admin_service/get_rollup_property_source_link.rb", @@ -152,9 +159,11 @@ "snippets/analytics_admin_service/list_display_video360_advertiser_link_proposals.rb", "snippets/analytics_admin_service/list_display_video360_advertiser_links.rb", "snippets/analytics_admin_service/list_event_create_rules.rb", + "snippets/analytics_admin_service/list_event_edit_rules.rb", "snippets/analytics_admin_service/list_expanded_data_sets.rb", "snippets/analytics_admin_service/list_firebase_links.rb", "snippets/analytics_admin_service/list_google_ads_links.rb", + "snippets/analytics_admin_service/list_key_events.rb", "snippets/analytics_admin_service/list_measurement_protocol_secrets.rb", "snippets/analytics_admin_service/list_properties.rb", "snippets/analytics_admin_service/list_rollup_property_source_links.rb", @@ -162,6 +171,8 @@ "snippets/analytics_admin_service/list_sk_ad_network_conversion_value_schemas.rb", "snippets/analytics_admin_service/list_subproperty_event_filters.rb", "snippets/analytics_admin_service/provision_account_ticket.rb", + "snippets/analytics_admin_service/provision_subproperty.rb", + "snippets/analytics_admin_service/reorder_event_edit_rules.rb", "snippets/analytics_admin_service/run_access_report.rb", "snippets/analytics_admin_service/search_change_history_events.rb", "snippets/analytics_admin_service/set_automated_ga4_configuration_opt_out.rb", @@ -169,6 +180,7 @@ "snippets/analytics_admin_service/update_account.rb", "snippets/analytics_admin_service/update_attribution_settings.rb", "snippets/analytics_admin_service/update_audience.rb", + "snippets/analytics_admin_service/update_big_query_link.rb", "snippets/analytics_admin_service/update_calculated_metric.rb", "snippets/analytics_admin_service/update_channel_group.rb", "snippets/analytics_admin_service/update_conversion_event.rb", @@ -180,9 +192,11 @@ "snippets/analytics_admin_service/update_display_video360_advertiser_link.rb", "snippets/analytics_admin_service/update_enhanced_measurement_settings.rb", "snippets/analytics_admin_service/update_event_create_rule.rb", + "snippets/analytics_admin_service/update_event_edit_rule.rb", "snippets/analytics_admin_service/update_expanded_data_set.rb", "snippets/analytics_admin_service/update_google_ads_link.rb", "snippets/analytics_admin_service/update_google_signals_settings.rb", + "snippets/analytics_admin_service/update_key_event.rb", "snippets/analytics_admin_service/update_measurement_protocol_secret.rb", "snippets/analytics_admin_service/update_property.rb", "snippets/analytics_admin_service/update_search_ads360_link.rb", diff --git a/google-analytics-admin-v1alpha/gapic_metadata.json b/google-analytics-admin-v1alpha/gapic_metadata.json index 92e9c8ed641a..2c94793dc75d 100644 --- a/google-analytics-admin-v1alpha/gapic_metadata.json +++ b/google-analytics-admin-v1alpha/gapic_metadata.json @@ -205,6 +205,31 @@ "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" @@ -515,6 +540,11 @@ "fetch_automated_ga4_configuration_opt_out" ] }, + "CreateBigQueryLink": { + "methods": [ + "create_big_query_link" + ] + }, "GetBigQueryLink": { "methods": [ "get_big_query_link" @@ -525,6 +555,16 @@ "list_big_query_links" ] }, + "DeleteBigQueryLink": { + "methods": [ + "delete_big_query_link" + ] + }, + "UpdateBigQueryLink": { + "methods": [ + "update_big_query_link" + ] + }, "GetEnhancedMeasurementSettings": { "methods": [ "get_enhanced_measurement_settings" @@ -600,6 +640,36 @@ "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" @@ -660,9 +730,9 @@ "delete_rollup_property_source_link" ] }, - "CreateSubproperty": { + "ProvisionSubproperty": { "methods": [ - "create_subproperty" + "provision_subproperty" ] }, "CreateSubpropertyEventFilter": { 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 211403784bee..b59a5c92e138 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\"R\n\x13ListAccountsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\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\"i\n\x15ListPropertiesRequest\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\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\"\x85\x01\n\x18ListFirebaseLinksRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/FirebaseLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"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\"\x87\x01\n\x19ListGoogleAdsLinksRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"~\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\"D\n\x1bListAccountSummariesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\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\"\x9f\x01\n%ListMeasurementProtocolSecretsRequest\x12O\n\x06parent\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37\x61nalyticsadmin.googleapis.com/MeasurementProtocolSecret\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\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\"\xad\x01\n,ListSKAdNetworkConversionValueSchemasRequest\x12V\n\x06parent\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\x12>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\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\"\x8b\x01\n\x1bListConversionEventsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ConversionEvent\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\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\"|\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\"\x8b\x01\n\x1bListCustomDimensionsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/CustomDimension\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\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\"S\n)SetAutomatedGa4ConfigurationOptOutRequest\x12\x15\n\x08property\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07opt_out\x18\x02 \x01(\x08\",\n*SetAutomatedGa4ConfigurationOptOutResponse\"D\n+FetchAutomatedGa4ConfigurationOptOutRequest\x12\x15\n\x08property\x18\x01 \x01(\tB\x03\xe0\x41\x02\"?\n,FetchAutomatedGa4ConfigurationOptOutResponse\x12\x0f\n\x07opt_out\x18\x01 \x01(\x08\"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\"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\"\x84\x01\n\x1d\x43reateConnectedSiteTagRequest\x12\x10\n\x08property\x18\x01 \x01(\t\x12Q\n\x12\x63onnected_site_tag\x18\x02 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.ConnectedSiteTagB\x03\xe0\x41\x02\" \n\x1e\x43reateConnectedSiteTagResponse\"A\n\x1d\x44\x65leteConnectedSiteTagRequest\x12\x10\n\x08property\x18\x01 \x01(\t\x12\x0e\n\x06tag_id\x18\x02 \x01(\t\"0\n\x1cListConnectedSiteTagsRequest\x12\x10\n\x08property\x18\x01 \x01(\t\"n\n\x1dListConnectedSiteTagsResponse\x12M\n\x13\x63onnected_site_tags\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.ConnectedSiteTag\"\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\"d\n FetchConnectedGa4PropertyRequest\x12@\n\x08property\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"b\n!FetchConnectedGa4PropertyResponse\x12=\n\x08property\x18\x01 \x01(\tB+\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"\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\"\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\"\xfd\x01\n\x18\x43reateSubpropertyRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\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\"\xb4\x01\n\x19\x43reateSubpropertyResponse\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/SubpropertyEventFilter2\xe3\xf7\x01\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\xeb\x01\n\x15\x43reateConversionEvent\x12<.google.analytics.admin.v1alpha.CreateConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"c\xda\x41\x17parent,conversion_event\x82\xd3\xe4\x93\x02\x43\"//v1alpha/{parent=properties/*}/conversionEvents:\x10\x63onversion_event\x12\x81\x02\n\x15UpdateConversionEvent\x12<.google.analytics.admin.v1alpha.UpdateConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\"y\xda\x41\x1c\x63onversion_event,update_mask\x82\xd3\xe4\x93\x02T2@/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}:\x10\x63onversion_event\x12\xc0\x01\n\x12GetConversionEvent\x12\x39.google.analytics.admin.v1alpha.GetConversionEventRequest\x1a/.google.analytics.admin.v1alpha.ConversionEvent\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{name=properties/*/conversionEvents/*}\x12\xad\x01\n\x15\x44\x65leteConversionEvent\x12<.google.analytics.admin.v1alpha.DeleteConversionEventRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1alpha/{name=properties/*/conversionEvents/*}\x12\xd3\x01\n\x14ListConversionEvents\x12;.google.analytics.admin.v1alpha.ListConversionEventsRequest\x1a<.google.analytics.admin.v1alpha.ListConversionEventsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1alpha/{parent=properties/*}/conversionEvents\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\xfe\x01\n\"SetAutomatedGa4ConfigurationOptOut\x12I.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest\x1aJ.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse\"A\x82\xd3\xe4\x93\x02;\"6/v1alpha/properties:setAutomatedGa4ConfigurationOptOut:\x01*\x12\x86\x02\n$FetchAutomatedGa4ConfigurationOptOut\x12K.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest\x1aL.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse\"C\x82\xd3\xe4\x93\x02=\"8/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut:\x01*\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\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\xce\x01\n\x16\x43reateConnectedSiteTag\x12=.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest\x1a>.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse\"5\x82\xd3\xe4\x93\x02/\"*/v1alpha/properties:createConnectedSiteTag:\x01*\x12\xa6\x01\n\x16\x44\x65leteConnectedSiteTag\x12=.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02/\"*/v1alpha/properties:deleteConnectedSiteTag:\x01*\x12\xca\x01\n\x15ListConnectedSiteTags\x12<.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest\x1a=.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse\"4\x82\xd3\xe4\x93\x02.\")/v1alpha/properties:listConnectedSiteTags:\x01*\x12\xd7\x01\n\x19\x46\x65tchConnectedGa4Property\x12@.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest\x1a\x41.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1alpha/properties:fetchConnectedGa4Property\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\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\xba\x01\n\x11\x43reateSubproperty\x12\x38.google.analytics.admin.v1alpha.CreateSubpropertyRequest\x1a\x39.google.analytics.admin.v1alpha.CreateSubpropertyResponse\"0\x82\xd3\xe4\x93\x02*\"%/v1alpha/properties:createSubproperty:\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/*}\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\"R\n\x13ListAccountsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\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\"i\n\x15ListPropertiesRequest\x12\x13\n\x06\x66ilter\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\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\"\x85\x01\n\x18ListFirebaseLinksRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*analyticsadmin.googleapis.com/FirebaseLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"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\"\x87\x01\n\x19ListGoogleAdsLinksRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"~\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\"D\n\x1bListAccountSummariesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"\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\"\x9f\x01\n%ListMeasurementProtocolSecretsRequest\x12O\n\x06parent\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\x12\x37\x61nalyticsadmin.googleapis.com/MeasurementProtocolSecret\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\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\"\xad\x01\n,ListSKAdNetworkConversionValueSchemasRequest\x12V\n\x06parent\x18\x01 \x01(\tBF\xe0\x41\x02\xfa\x41@\x12>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\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\"\x8b\x01\n\x1bListConversionEventsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/ConversionEvent\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\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\"}\n\x14ListKeyEventsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&analyticsadmin.googleapis.com/KeyEvent\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"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\"\x8b\x01\n\x1bListCustomDimensionsRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-analyticsadmin.googleapis.com/CustomDimension\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\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\"S\n)SetAutomatedGa4ConfigurationOptOutRequest\x12\x15\n\x08property\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07opt_out\x18\x02 \x01(\x08\",\n*SetAutomatedGa4ConfigurationOptOutResponse\"D\n+FetchAutomatedGa4ConfigurationOptOutRequest\x12\x15\n\x08property\x18\x01 \x01(\tB\x03\xe0\x41\x02\"?\n,FetchAutomatedGa4ConfigurationOptOutResponse\x12\x0f\n\x07opt_out\x18\x01 \x01(\x08\"\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\"\x84\x01\n\x1d\x43reateConnectedSiteTagRequest\x12\x10\n\x08property\x18\x01 \x01(\t\x12Q\n\x12\x63onnected_site_tag\x18\x02 \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.ConnectedSiteTagB\x03\xe0\x41\x02\" \n\x1e\x43reateConnectedSiteTagResponse\"A\n\x1d\x44\x65leteConnectedSiteTagRequest\x12\x10\n\x08property\x18\x01 \x01(\t\x12\x0e\n\x06tag_id\x18\x02 \x01(\t\"0\n\x1cListConnectedSiteTagsRequest\x12\x10\n\x08property\x18\x01 \x01(\t\"n\n\x1dListConnectedSiteTagsResponse\x12M\n\x13\x63onnected_site_tags\x18\x01 \x03(\x0b\x32\x30.google.analytics.admin.v1alpha.ConnectedSiteTag\"\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\"d\n FetchConnectedGa4PropertyRequest\x12@\n\x08property\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"b\n!FetchConnectedGa4PropertyResponse\x12=\n\x08property\x18\x01 \x01(\tB+\xfa\x41(\n&analyticsadmin.googleapis.com/Property\"\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\"\xc0\x01\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\"\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/SubpropertyEventFilter2\x9a\x8e\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\xfe\x01\n\"SetAutomatedGa4ConfigurationOptOut\x12I.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest\x1aJ.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse\"A\x82\xd3\xe4\x93\x02;\"6/v1alpha/properties:setAutomatedGa4ConfigurationOptOut:\x01*\x12\x86\x02\n$FetchAutomatedGa4ConfigurationOptOut\x12K.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest\x1aL.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse\"C\x82\xd3\xe4\x93\x02=\"8/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut:\x01*\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\xce\x01\n\x16\x43reateConnectedSiteTag\x12=.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest\x1a>.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse\"5\x82\xd3\xe4\x93\x02/\"*/v1alpha/properties:createConnectedSiteTag:\x01*\x12\xa6\x01\n\x16\x44\x65leteConnectedSiteTag\x12=.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02/\"*/v1alpha/properties:deleteConnectedSiteTag:\x01*\x12\xca\x01\n\x15ListConnectedSiteTags\x12<.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest\x1a=.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse\"4\x82\xd3\xe4\x93\x02.\")/v1alpha/properties:listConnectedSiteTags:\x01*\x12\xd7\x01\n\x19\x46\x65tchConnectedGa4Property\x12@.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest\x1a\x41.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1alpha/properties:fetchConnectedGa4Property\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/*}\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 @@ -111,6 +111,12 @@ module V1alpha 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 @@ -194,9 +200,12 @@ module V1alpha SetAutomatedGa4ConfigurationOptOutResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse").msgclass FetchAutomatedGa4ConfigurationOptOutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest").msgclass FetchAutomatedGa4ConfigurationOptOutResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse").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 @@ -219,6 +228,13 @@ module V1alpha 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 @@ -226,8 +242,8 @@ module V1alpha 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 - CreateSubpropertyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateSubpropertyRequest").msgclass - CreateSubpropertyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.CreateSubpropertyResponse").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 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 ae6f7ddf066c..cdbed4002860 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 @@ -1254,7 +1254,8 @@ def update_property request, options = nil # # @param parent [::String] # Required. Format: properties/\\{property_id} - # Example: properties/1234 + # + # Example: `properties/1234` # @param firebase_link [::Google::Analytics::Admin::V1alpha::FirebaseLink, ::Hash] # Required. The Firebase link to create. # @@ -1343,7 +1344,8 @@ def create_firebase_link request, options = nil # # @param name [::String] # Required. Format: properties/\\{property_id}/firebaseLinks/\\{firebase_link_id} - # Example: properties/1234/firebaseLinks/5678 + # + # Example: `properties/1234/firebaseLinks/5678` # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Google::Protobuf::Empty] @@ -1431,7 +1433,8 @@ def delete_firebase_link request, options = nil # # @param parent [::String] # Required. Format: properties/\\{property_id} - # Example: properties/1234 + # + # 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. @@ -1536,7 +1539,8 @@ def list_firebase_links request, options = nil # 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" + # + # Example: `properties/123/dataStreams/456/globalSiteTag` # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] @@ -1991,7 +1995,8 @@ def list_google_ads_links request, options = nil # @param name [::String] # Required. The name of the settings to lookup. # Format: accounts/\\{account}/dataSharingSettings - # Example: "accounts/1000/dataSharingSettings" + # + # Example: `accounts/1000/dataSharingSettings` # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataSharingSettings] @@ -3095,12 +3100,15 @@ def list_sk_ad_network_conversion_value_schemas request, options = nil # # @param account [::String] # Required. The account resource for which to return change history - # resources. Format: accounts/\\{account} Example: "accounts/100" + # 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" + # + # 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. @@ -3376,8 +3384,11 @@ def update_google_signals_settings request, options = nil 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. @@ -3465,8 +3476,11 @@ def create_conversion_event request, options = nil 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. @@ -3557,8 +3571,11 @@ def update_conversion_event request, options = nil 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. @@ -3645,8 +3662,11 @@ def get_conversion_event request, options = nil 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. @@ -3733,10 +3753,13 @@ def delete_conversion_event request, options = nil 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. @@ -3836,32 +3859,34 @@ def list_conversion_events request, options = nil end ## - # Look up a single DisplayVideo360AdvertiserLink + # Creates a Key Event. # - # @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. + # @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::GetDisplayVideo360AdvertiserLinkRequest, ::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 get_display_video360_advertiser_link(name: nil) - # Pass arguments to `get_display_video360_advertiser_link` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the DisplayVideo360AdvertiserLink to get. - # Example format: properties/1234/displayVideo360AdvertiserLink/5678 + # @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::DisplayVideo360AdvertiserLink] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::KeyEvent] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -3872,24 +3897,24 @@ def list_conversion_events request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new # - # # Call the get_display_video360_advertiser_link method. - # result = client.get_display_video360_advertiser_link request + # # Call the create_key_event method. + # result = client.create_key_event request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. # p result # - def get_display_video360_advertiser_link request, options = nil + 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::GetDisplayVideo360AdvertiserLinkRequest + 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.get_display_video360_advertiser_link.metadata.to_h + 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 \ @@ -3899,22 +3924,22 @@ def get_display_video360_advertiser_link request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.get_display_video360_advertiser_link.timeout, + options.apply_defaults timeout: @config.rpcs.create_key_event.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_display_video360_advertiser_link.retry_policy + 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 :get_display_video360_advertiser_link, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_key_event, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -3923,42 +3948,37 @@ def get_display_video360_advertiser_link request, options = nil end ## - # Lists all DisplayVideo360AdvertiserLinks on a property. + # Updates a Key Event. # - # @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. + # @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::ListDisplayVideo360AdvertiserLinksRequest, ::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 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 + # @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 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. + # @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 [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::KeyEvent] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -3969,28 +3989,24 @@ def get_display_video360_advertiser_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new # - # # Call the list_display_video360_advertiser_links method. - # result = client.list_display_video360_advertiser_links request + # # Call the update_key_event method. + # result = client.update_key_event 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 + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + # p result # - def list_display_video360_advertiser_links request, options = nil + 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::ListDisplayVideo360AdvertiserLinksRequest + 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.list_display_video360_advertiser_links.metadata.to_h + 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 \ @@ -4000,23 +4016,22 @@ def list_display_video360_advertiser_links request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.list_display_video360_advertiser_links.timeout, + options.apply_defaults timeout: @config.rpcs.update_key_event.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_display_video360_advertiser_links.retry_policy + 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 :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 + @analytics_admin_service_stub.call_rpc :update_key_event, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -4025,37 +4040,33 @@ def list_display_video360_advertiser_links request, options = nil 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. + # Retrieve a single Key Event. # - # @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. + # @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::CreateDisplayVideo360AdvertiserLinkRequest, ::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 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 + # @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 parent [::String] - # Required. Example format: properties/1234 - # @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash] - # Required. The DisplayVideo360AdvertiserLink to create. + # @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::DisplayVideo360AdvertiserLink] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::KeyEvent] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -4066,24 +4077,24 @@ def list_display_video360_advertiser_links request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new # - # # Call the create_display_video360_advertiser_link method. - # result = client.create_display_video360_advertiser_link request + # # Call the get_key_event method. + # result = client.get_key_event request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. # p result # - def create_display_video360_advertiser_link request, options = nil + 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::CreateDisplayVideo360AdvertiserLinkRequest + 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.create_display_video360_advertiser_link.metadata.to_h + 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 \ @@ -4093,22 +4104,22 @@ def create_display_video360_advertiser_link request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.create_display_video360_advertiser_link.timeout, + options.apply_defaults timeout: @config.rpcs.get_key_event.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_display_video360_advertiser_link.retry_policy + 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 :create_display_video360_advertiser_link, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_key_event, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -4117,26 +4128,27 @@ def create_display_video360_advertiser_link request, options = nil end ## - # Deletes a DisplayVideo360AdvertiserLink on a property. + # Deletes a Key Event. # - # @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. + # @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::DeleteDisplayVideo360AdvertiserLinkRequest, ::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_display_video360_advertiser_link(name: nil) - # Pass arguments to `delete_display_video360_advertiser_link` via keyword arguments. Note that at + # @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 name of the DisplayVideo360AdvertiserLink to delete. - # Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + # 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] @@ -4153,24 +4165,24 @@ def create_display_video360_advertiser_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new # - # # Call the delete_display_video360_advertiser_link method. - # result = client.delete_display_video360_advertiser_link request + # # 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_display_video360_advertiser_link request, options = nil + 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::DeleteDisplayVideo360AdvertiserLinkRequest + 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_display_video360_advertiser_link.metadata.to_h + 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 \ @@ -4187,15 +4199,15 @@ def delete_display_video360_advertiser_link request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.delete_key_event.timeout, metadata: metadata, - retry_policy: @config.rpcs.delete_display_video360_advertiser_link.retry_policy + 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_display_video360_advertiser_link, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :delete_key_event, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -4204,35 +4216,42 @@ def delete_display_video360_advertiser_link request, options = nil end ## - # Updates a DisplayVideo360AdvertiserLink on a property. + # Returns a list of Key Events in the specified parent property. + # Returns an empty list if no Key Events are found. # - # @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. + # @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::UpdateDisplayVideo360AdvertiserLinkRequest, ::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 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 + # @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 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. + # @param parent [::String] + # Required. The resource name of the parent property. + # Example: 'properties/123' + # @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 `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 [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -4243,24 +4262,28 @@ def delete_display_video360_advertiser_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new # - # # Call the update_display_video360_advertiser_link method. - # result = client.update_display_video360_advertiser_link request + # # Call the list_key_events method. + # result = client.list_key_events request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - # p result + # # 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 update_display_video360_advertiser_link request, options = nil + 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::UpdateDisplayVideo360AdvertiserLinkRequest + 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.update_display_video360_advertiser_link.metadata.to_h + 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 \ @@ -4270,22 +4293,23 @@ def update_display_video360_advertiser_link request, options = nil 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 + 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.update_display_video360_advertiser_link.timeout, + options.apply_defaults timeout: @config.rpcs.list_key_events.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_display_video360_advertiser_link.retry_policy + 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 :update_display_video360_advertiser_link, request, options: options do |response, operation| + @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? return response end @@ -4294,32 +4318,32 @@ def update_display_video360_advertiser_link request, options = nil end ## - # Lookup for a single DisplayVideo360AdvertiserLinkProposal. + # Look up a single DisplayVideo360AdvertiserLink # - # @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. + # @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::GetDisplayVideo360AdvertiserLinkProposalRequest, ::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_proposal(name: nil) - # Pass arguments to `get_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # @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 DisplayVideo360AdvertiserLinkProposal to get. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # 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::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -4330,24 +4354,24 @@ def update_display_video360_advertiser_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new # - # # Call the get_display_video360_advertiser_link_proposal method. - # result = client.get_display_video360_advertiser_link_proposal request + # # 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::DisplayVideo360AdvertiserLinkProposal. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. # p result # - def get_display_video360_advertiser_link_proposal request, options = nil + 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::GetDisplayVideo360AdvertiserLinkProposalRequest + 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_proposal.metadata.to_h + 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 \ @@ -4364,15 +4388,15 @@ def get_display_video360_advertiser_link_proposal request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_display_video360_advertiser_link_proposal.retry_policy + 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_proposal, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -4381,20 +4405,20 @@ def get_display_video360_advertiser_link_proposal request, options = nil end ## - # Lists DisplayVideo360AdvertiserLinkProposals on a property. + # Lists all DisplayVideo360AdvertiserLinks 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. + # @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::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::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_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 + # @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). # @@ -4405,19 +4429,18 @@ def get_display_video360_advertiser_link_proposal request, options = nil # 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. + # A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + # 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. + # `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::DisplayVideo360AdvertiserLinkProposal>] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -4428,28 +4451,28 @@ def get_display_video360_advertiser_link_proposal request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new # - # # Call the list_display_video360_advertiser_link_proposals method. - # result = client.list_display_video360_advertiser_link_proposals request + # # 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::DisplayVideo360AdvertiserLinkProposal. + # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. # p item # end # - def list_display_video360_advertiser_link_proposals request, options = nil + 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::ListDisplayVideo360AdvertiserLinkProposalsRequest + 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_link_proposals.metadata.to_h + 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 \ @@ -4466,16 +4489,16 @@ def list_display_video360_advertiser_link_proposals request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_links.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_display_video360_advertiser_link_proposals.retry_policy + 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_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 + @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? return response end @@ -4484,33 +4507,37 @@ def list_display_video360_advertiser_link_proposals request, options = nil end ## - # Creates a DisplayVideo360AdvertiserLinkProposal. + # 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_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. + # @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::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::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_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 + # @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_proposal [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal, ::Hash] - # Required. The DisplayVideo360AdvertiserLinkProposal to create. + # @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::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -4521,24 +4548,24 @@ def list_display_video360_advertiser_link_proposals request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new # - # # Call the create_display_video360_advertiser_link_proposal method. - # result = client.create_display_video360_advertiser_link_proposal request + # # 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::DisplayVideo360AdvertiserLinkProposal. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. # p result # - def create_display_video360_advertiser_link_proposal request, options = nil + 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::CreateDisplayVideo360AdvertiserLinkProposalRequest + 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_proposal.metadata.to_h + 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 \ @@ -4555,15 +4582,15 @@ def create_display_video360_advertiser_link_proposal request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_display_video360_advertiser_link_proposal.retry_policy + 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_proposal, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -4572,27 +4599,26 @@ def create_display_video360_advertiser_link_proposal request, options = nil end ## - # Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - # This can only be used on cancelled proposals. + # Deletes a DisplayVideo360AdvertiserLink on a property. # - # @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. + # @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::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::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_proposal(name: nil) - # Pass arguments to `delete_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # @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 DisplayVideo360AdvertiserLinkProposal to delete. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # 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] @@ -4609,24 +4635,24 @@ def create_display_video360_advertiser_link_proposal request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new # - # # Call the delete_display_video360_advertiser_link_proposal method. - # result = client.delete_display_video360_advertiser_link_proposal request + # # 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_proposal request, options = nil + 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::DeleteDisplayVideo360AdvertiserLinkProposalRequest + 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_proposal.metadata.to_h + 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 \ @@ -4643,15 +4669,15 @@ def delete_display_video360_advertiser_link_proposal request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link.timeout, metadata: metadata, - retry_policy: @config.rpcs.delete_display_video360_advertiser_link_proposal.retry_policy + 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_proposal, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -4660,34 +4686,35 @@ def delete_display_video360_advertiser_link_proposal request, options = nil end ## - # Approves a DisplayVideo360AdvertiserLinkProposal. - # The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - # DisplayVideo360AdvertiserLink will be created. + # Updates a DisplayVideo360AdvertiserLink on a property. # - # @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. + # @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::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::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 approve_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `approve_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # @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::ApproveDisplayVideo360AdvertiserLinkProposalResponse] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -4698,24 +4725,24 @@ def delete_display_video360_advertiser_link_proposal request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new # - # # Call the approve_display_video360_advertiser_link_proposal method. - # result = client.approve_display_video360_advertiser_link_proposal request + # # 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::ApproveDisplayVideo360AdvertiserLinkProposalResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. # p result # - def approve_display_video360_advertiser_link_proposal request, options = nil + 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::ApproveDisplayVideo360AdvertiserLinkProposalRequest + 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.approve_display_video360_advertiser_link_proposal.metadata.to_h + 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 \ @@ -4725,22 +4752,22 @@ def approve_display_video360_advertiser_link_proposal request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.approve_display_video360_advertiser_link_proposal.timeout, + options.apply_defaults timeout: @config.rpcs.update_display_video360_advertiser_link.timeout, metadata: metadata, - retry_policy: @config.rpcs.approve_display_video360_advertiser_link_proposal.retry_policy + 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 :approve_display_video360_advertiser_link_proposal, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_display_video360_advertiser_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -4749,29 +4776,25 @@ def approve_display_video360_advertiser_link_proposal request, options = nil 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. + # Lookup for a single DisplayVideo360AdvertiserLinkProposal. # - # @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. + # @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::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::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 cancel_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `cancel_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # @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 cancel. + # 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 @@ -4789,24 +4812,24 @@ def approve_display_video360_advertiser_link_proposal request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new # - # # Call the cancel_display_video360_advertiser_link_proposal method. - # result = client.cancel_display_video360_advertiser_link_proposal request + # # 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 cancel_display_video360_advertiser_link_proposal request, options = nil + 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::CancelDisplayVideo360AdvertiserLinkProposalRequest + 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.cancel_display_video360_advertiser_link_proposal.metadata.to_h + 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 \ @@ -4823,15 +4846,15 @@ def cancel_display_video360_advertiser_link_proposal request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link_proposal.timeout, metadata: metadata, - retry_policy: @config.rpcs.cancel_display_video360_advertiser_link_proposal.retry_policy + 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 :cancel_display_video360_advertiser_link_proposal, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_display_video360_advertiser_link_proposal, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -4840,33 +4863,43 @@ def cancel_display_video360_advertiser_link_proposal request, options = nil end ## - # Creates a CustomDimension. + # Lists DisplayVideo360AdvertiserLinkProposals on a property. # - # @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. + # @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::CreateCustomDimensionRequest, ::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 create_custom_dimension(parent: nil, custom_dimension: nil) - # Pass arguments to `create_custom_dimension` via keyword arguments. Note that at + # @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 custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash] - # Required. The CustomDimension to create. + # @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 [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -4877,24 +4910,28 @@ def cancel_display_video360_advertiser_link_proposal request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new # - # # Call the create_custom_dimension method. - # result = client.create_custom_dimension request + # # Call the list_display_video360_advertiser_link_proposals method. + # result = client.list_display_video360_advertiser_link_proposals request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - # p result + # # 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 create_custom_dimension request, options = nil + 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::CreateCustomDimensionRequest + 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.create_custom_dimension.metadata.to_h + 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 \ @@ -4911,15 +4948,16 @@ def create_custom_dimension request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_link_proposals.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_custom_dimension.retry_policy + 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 :create_custom_dimension, request, options: options do |response, operation| + @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? return response end @@ -4928,35 +4966,33 @@ def create_custom_dimension request, options = nil end ## - # Updates a CustomDimension on a property. + # Creates a DisplayVideo360AdvertiserLinkProposal. # - # @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. + # @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::UpdateCustomDimensionRequest, ::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 update_custom_dimension(custom_dimension: nil, update_mask: nil) - # Pass arguments to `update_custom_dimension` via keyword arguments. Note that at + # @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 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. + # @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::CustomDimension] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -4967,24 +5003,24 @@ def create_custom_dimension request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new # - # # Call the update_custom_dimension method. - # result = client.update_custom_dimension request + # # 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::CustomDimension. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. # p result # - def update_custom_dimension request, options = nil + 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::UpdateCustomDimensionRequest + 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.update_custom_dimension.metadata.to_h + 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 \ @@ -4994,22 +5030,22 @@ def update_custom_dimension request, options = nil 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 + 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.update_custom_dimension.timeout, + options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link_proposal.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_custom_dimension.retry_policy + 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 :update_custom_dimension, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_display_video360_advertiser_link_proposal, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -5018,41 +5054,33 @@ def update_custom_dimension request, options = nil end ## - # Lists CustomDimensions on a property. + # Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + # This can only be used on cancelled proposals. # - # @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. + # @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::ListCustomDimensionsRequest, ::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 list_custom_dimensions(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_custom_dimensions` via keyword arguments. Note that at + # @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 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 `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. + # @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 [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] + # @yieldparam response [::Google::Protobuf::Empty] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -5063,28 +5091,24 @@ def update_custom_dimension request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new # - # # Call the list_custom_dimensions method. - # result = client.list_custom_dimensions request + # # Call the delete_display_video360_advertiser_link_proposal method. + # result = client.delete_display_video360_advertiser_link_proposal 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 + # # The returned object is of type Google::Protobuf::Empty. + # p result # - def list_custom_dimensions request, options = nil + 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::ListCustomDimensionsRequest + 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.list_custom_dimensions.metadata.to_h + 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 \ @@ -5094,23 +5118,22 @@ def list_custom_dimensions request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.list_custom_dimensions.timeout, + options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link_proposal.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_custom_dimensions.retry_policy + 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 :list_custom_dimensions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_dimensions, request, response, operation, options + @analytics_admin_service_stub.call_rpc :delete_display_video360_advertiser_link_proposal, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -5119,32 +5142,34 @@ def list_custom_dimensions request, options = nil end ## - # Archives a CustomDimension on a property. + # Approves a DisplayVideo360AdvertiserLinkProposal. + # The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + # DisplayVideo360AdvertiserLink will be created. # - # @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. + # @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::ArchiveCustomDimensionRequest, ::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 archive_custom_dimension(name: nil) - # Pass arguments to `archive_custom_dimension` via keyword arguments. Note that at + # @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 CustomDimension to archive. - # Example format: properties/1234/customDimensions/5678 + # 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::Protobuf::Empty] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -5155,24 +5180,24 @@ def list_custom_dimensions request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new # - # # Call the archive_custom_dimension method. - # result = client.archive_custom_dimension request + # # 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::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse. # p result # - def archive_custom_dimension request, options = nil + 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::ArchiveCustomDimensionRequest + 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.archive_custom_dimension.metadata.to_h + 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 \ @@ -5189,15 +5214,15 @@ def archive_custom_dimension request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.approve_display_video360_advertiser_link_proposal.timeout, metadata: metadata, - retry_policy: @config.rpcs.archive_custom_dimension.retry_policy + 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 :archive_custom_dimension, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :approve_display_video360_advertiser_link_proposal, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -5206,32 +5231,36 @@ def archive_custom_dimension request, options = nil end ## - # Lookup for a single CustomDimension. + # 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 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. + # @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::GetCustomDimensionRequest, ::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 get_custom_dimension(name: nil) - # Pass arguments to `get_custom_dimension` via keyword arguments. Note that at + # @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 CustomDimension to get. - # Example format: properties/1234/customDimensions/5678 + # 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::CustomDimension] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -5242,24 +5271,24 @@ def archive_custom_dimension request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new # - # # Call the get_custom_dimension method. - # result = client.get_custom_dimension request + # # 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::CustomDimension. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. # p result # - def get_custom_dimension request, options = nil + 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::GetCustomDimensionRequest + 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.get_custom_dimension.metadata.to_h + 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 \ @@ -5276,15 +5305,15 @@ def get_custom_dimension request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.cancel_display_video360_advertiser_link_proposal.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_custom_dimension.retry_policy + 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 :get_custom_dimension, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :cancel_display_video360_advertiser_link_proposal, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -5293,33 +5322,33 @@ def get_custom_dimension request, options = nil end ## - # Creates a CustomMetric. + # Creates a CustomDimension. # - # @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. + # @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::CreateCustomMetricRequest, ::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_metric(parent: nil, custom_metric: nil) - # Pass arguments to `create_custom_metric` via keyword arguments. Note that at + # @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_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] - # Required. The CustomMetric to create. + # @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::CustomMetric] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -5330,24 +5359,24 @@ def get_custom_dimension request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new # - # # Call the create_custom_metric method. - # result = client.create_custom_metric request + # # Call the create_custom_dimension method. + # result = client.create_custom_dimension request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. # p result # - def create_custom_metric request, options = nil + 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::CreateCustomMetricRequest + 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_metric.metadata.to_h + 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 \ @@ -5364,15 +5393,15 @@ def create_custom_metric request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.create_custom_dimension.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_custom_metric.retry_policy + 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_metric, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_custom_dimension, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -5381,35 +5410,35 @@ def create_custom_metric request, options = nil end ## - # Updates a CustomMetric on a property. + # Updates a CustomDimension 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. + # @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::UpdateCustomMetricRequest, ::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_metric(custom_metric: nil, update_mask: nil) - # Pass arguments to `update_custom_metric` via keyword arguments. Note that at + # @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_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] - # The CustomMetric to update + # @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::CustomMetric] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -5420,24 +5449,24 @@ def create_custom_metric request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new # - # # Call the update_custom_metric method. - # result = client.update_custom_metric request + # # Call the update_custom_dimension method. + # result = client.update_custom_dimension request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. # p result # - def update_custom_metric request, options = nil + 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::UpdateCustomMetricRequest + 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_metric.metadata.to_h + 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 \ @@ -5447,22 +5476,22 @@ def update_custom_metric request, options = nil 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 + 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_metric.timeout, + options.apply_defaults timeout: @config.rpcs.update_custom_dimension.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_custom_metric.retry_policy + 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_metric, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_custom_dimension, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -5471,20 +5500,20 @@ def update_custom_metric request, options = nil end ## - # Lists CustomMetrics on a property. + # Lists CustomDimensions 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. + # @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::ListCustomMetricsRequest, ::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_metrics(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_custom_metrics` via keyword arguments. Note that at + # @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). # @@ -5495,17 +5524,17 @@ def update_custom_metric request, options = nil # 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. + # A page token, received from a previous `ListCustomDimensions` 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. + # 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::CustomMetric>] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -5516,28 +5545,28 @@ def update_custom_metric request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new # - # # Call the list_custom_metrics method. - # result = client.list_custom_metrics request + # # 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::CustomMetric. + # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension. # p item # end # - def list_custom_metrics request, options = nil + 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::ListCustomMetricsRequest + 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_metrics.metadata.to_h + 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 \ @@ -5554,16 +5583,16 @@ def list_custom_metrics request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.list_custom_dimensions.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_custom_metrics.retry_policy + 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_metrics, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_metrics, request, response, operation, options + @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? return response end @@ -5572,26 +5601,26 @@ def list_custom_metrics request, options = nil end ## - # Archives a CustomMetric on a property. + # Archives a CustomDimension 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. + # @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::ArchiveCustomMetricRequest, ::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_metric(name: nil) - # Pass arguments to `archive_custom_metric` via keyword arguments. Note that at + # @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 CustomMetric to archive. - # Example format: properties/1234/customMetrics/5678 + # 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] @@ -5608,24 +5637,24 @@ def list_custom_metrics request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new # - # # Call the archive_custom_metric method. - # result = client.archive_custom_metric request + # # 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_metric request, options = nil + 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::ArchiveCustomMetricRequest + 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_metric.metadata.to_h + 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 \ @@ -5642,15 +5671,15 @@ def archive_custom_metric request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.archive_custom_dimension.timeout, metadata: metadata, - retry_policy: @config.rpcs.archive_custom_metric.retry_policy + 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_metric, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :archive_custom_dimension, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -5659,32 +5688,32 @@ def archive_custom_metric request, options = nil end ## - # Lookup for a single CustomMetric. + # Lookup for a single CustomDimension. # - # @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. + # @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::GetCustomMetricRequest, ::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_metric(name: nil) - # Pass arguments to `get_custom_metric` via keyword arguments. Note that at + # @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 CustomMetric to get. - # Example format: properties/1234/customMetrics/5678 + # 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::CustomMetric] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomDimension] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -5695,24 +5724,24 @@ def archive_custom_metric request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new # - # # Call the get_custom_metric method. - # result = client.get_custom_metric request + # # Call the get_custom_dimension method. + # result = client.get_custom_dimension request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. # p result # - def get_custom_metric request, options = nil + 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::GetCustomMetricRequest + 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_metric.metadata.to_h + 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 \ @@ -5729,15 +5758,15 @@ def get_custom_metric request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.get_custom_dimension.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_custom_metric.retry_policy + 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_metric, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_custom_dimension, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -5746,34 +5775,33 @@ def get_custom_metric request, options = nil end ## - # Returns the singleton data retention settings for this property. + # Creates a CustomMetric. # - # @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. + # @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::GetDataRetentionSettingsRequest, ::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 get_data_retention_settings(name: nil) - # Pass arguments to `get_data_retention_settings` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataRetentionSettings - # Example: "properties/1000/dataRetentionSettings" + # @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::DataRetentionSettings] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -5784,24 +5812,24 @@ def get_custom_metric request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new # - # # Call the get_data_retention_settings method. - # result = client.get_data_retention_settings request + # # Call the create_custom_metric method. + # result = client.create_custom_metric request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. # p result # - def get_data_retention_settings request, options = nil + 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::GetDataRetentionSettingsRequest + 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.get_data_retention_settings.metadata.to_h + 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 \ @@ -5811,22 +5839,22 @@ def get_data_retention_settings request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.get_data_retention_settings.timeout, + options.apply_defaults timeout: @config.rpcs.create_custom_metric.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_data_retention_settings.retry_policy + 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 :get_data_retention_settings, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_custom_metric, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -5835,37 +5863,35 @@ def get_data_retention_settings request, options = nil end ## - # Updates the singleton data retention settings for this property. + # Updates a CustomMetric on a 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. + # @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::UpdateDataRetentionSettingsRequest, ::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_data_retention_settings(data_retention_settings: nil, update_mask: nil) - # Pass arguments to `update_data_retention_settings` via keyword arguments. Note that at + # @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 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 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. 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. + # 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::DataRetentionSettings] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -5876,24 +5902,24 @@ def get_data_retention_settings request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new # - # # Call the update_data_retention_settings method. - # result = client.update_data_retention_settings request + # # Call the update_custom_metric method. + # result = client.update_custom_metric request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. # p result # - def update_data_retention_settings request, options = nil + 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::UpdateDataRetentionSettingsRequest + 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_data_retention_settings.metadata.to_h + 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 \ @@ -5903,22 +5929,22 @@ def update_data_retention_settings request, options = nil 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 + 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_data_retention_settings.timeout, + options.apply_defaults timeout: @config.rpcs.update_custom_metric.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_data_retention_settings.retry_policy + 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_data_retention_settings, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_custom_metric, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -5927,33 +5953,41 @@ def update_data_retention_settings request, options = nil end ## - # Creates a DataStream. + # Lists CustomMetrics on a property. # - # @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. + # @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::CreateDataStreamRequest, ::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 create_data_stream(parent: nil, data_stream: nil) - # Pass arguments to `create_data_stream` via keyword arguments. Note that at + # @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 data_stream [::Google::Analytics::Admin::V1alpha::DataStream, ::Hash] - # Required. The DataStream to create. + # @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 [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -5964,24 +5998,28 @@ def update_data_retention_settings request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new # - # # Call the create_data_stream method. - # result = client.create_data_stream request + # # Call the list_custom_metrics method. + # result = client.list_custom_metrics request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - # p result + # # 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 create_data_stream request, options = nil + 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::CreateDataStreamRequest + 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.create_data_stream.metadata.to_h + 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 \ @@ -5998,15 +6036,16 @@ def create_data_stream request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.list_custom_metrics.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_data_stream.retry_policy + 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 :create_data_stream, request, options: options do |response, operation| + @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? return response end @@ -6015,26 +6054,26 @@ def create_data_stream request, options = nil end ## - # Deletes a DataStream on a property. + # Archives a CustomMetric 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. + # @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::DeleteDataStreamRequest, ::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 delete_data_stream(name: nil) - # Pass arguments to `delete_data_stream` via keyword arguments. Note that at + # @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 DataStream to delete. - # Example format: properties/1234/dataStreams/5678 + # 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] @@ -6051,24 +6090,24 @@ def create_data_stream request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new # - # # Call the delete_data_stream method. - # result = client.delete_data_stream request + # # Call the archive_custom_metric method. + # result = client.archive_custom_metric request # # # The returned object is of type Google::Protobuf::Empty. # p result # - def delete_data_stream request, options = nil + 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::DeleteDataStreamRequest + 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.delete_data_stream.metadata.to_h + 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 \ @@ -6085,15 +6124,15 @@ def delete_data_stream request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.archive_custom_metric.timeout, metadata: metadata, - retry_policy: @config.rpcs.delete_data_stream.retry_policy + 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 :delete_data_stream, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :archive_custom_metric, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -6102,35 +6141,32 @@ def delete_data_stream request, options = nil end ## - # Updates a DataStream on a property. + # Lookup for a single CustomMetric. # - # @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. + # @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::UpdateDataStreamRequest, ::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 update_data_stream(data_stream: nil, update_mask: nil) - # Pass arguments to `update_data_stream` via keyword arguments. Note that at + # @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 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. + # @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::DataStream] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CustomMetric] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6141,24 +6177,24 @@ def delete_data_stream request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new # - # # Call the update_data_stream method. - # result = client.update_data_stream request + # # Call the get_custom_metric method. + # result = client.get_custom_metric request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. # p result # - def update_data_stream request, options = nil + 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::UpdateDataStreamRequest + 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.update_data_stream.metadata.to_h + 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 \ @@ -6168,22 +6204,22 @@ def update_data_stream request, options = nil 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 + 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.update_data_stream.timeout, + options.apply_defaults timeout: @config.rpcs.get_custom_metric.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_data_stream.retry_policy + 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 :update_data_stream, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_custom_metric, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -6192,41 +6228,34 @@ def update_data_stream request, options = nil end ## - # Lists DataStreams on a property. + # Returns the singleton data retention settings for this 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. + # @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::ListDataStreamsRequest, ::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 list_data_streams(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_data_streams` via keyword arguments. Note that at + # @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 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. + # @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 [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6237,28 +6266,24 @@ def update_data_stream request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new # - # # Call the list_data_streams method. - # result = client.list_data_streams request + # # Call the get_data_retention_settings method. + # result = client.get_data_retention_settings 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 + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + # p result # - def list_data_streams request, options = nil + 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::ListDataStreamsRequest + 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.list_data_streams.metadata.to_h + 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 \ @@ -6268,23 +6293,22 @@ def list_data_streams request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.list_data_streams.timeout, + options.apply_defaults timeout: @config.rpcs.get_data_retention_settings.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_data_streams.retry_policy + 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 :list_data_streams, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_data_streams, request, response, operation, options + @analytics_admin_service_stub.call_rpc :get_data_retention_settings, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -6293,32 +6317,37 @@ def list_data_streams request, options = nil end ## - # Lookup for a single DataStream. + # Updates the singleton data retention settings for this property. # - # @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. + # @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::GetDataStreamRequest, ::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 get_data_stream(name: nil) - # Pass arguments to `get_data_stream` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the DataStream to get. - # Example format: properties/1234/dataStreams/5678 + # @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::DataStream] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6329,24 +6358,24 @@ def list_data_streams request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new # - # # Call the get_data_stream method. - # result = client.get_data_stream request + # # Call the update_data_retention_settings method. + # result = client.update_data_retention_settings request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. # p result # - def get_data_stream request, options = nil + 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::GetDataStreamRequest + 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.get_data_stream.metadata.to_h + 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 \ @@ -6356,22 +6385,22 @@ def get_data_stream request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.get_data_stream.timeout, + options.apply_defaults timeout: @config.rpcs.update_data_retention_settings.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_data_stream.retry_policy + 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 :get_data_stream, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_data_retention_settings, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -6380,34 +6409,33 @@ def get_data_stream request, options = nil end ## - # Lookup for a single Audience. - # Audiences created before 2020 may not be supported. - # Default audiences will not show filter definitions. + # Creates a DataStream. # - # @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. + # @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::GetAudienceRequest, ::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 get_audience(name: nil) - # Pass arguments to `get_audience` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the Audience to get. - # Example format: properties/1234/audiences/5678 + # @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::Audience] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataStream] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::Audience] + # @return [::Google::Analytics::Admin::V1alpha::DataStream] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6418,24 +6446,24 @@ def get_data_stream request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new # - # # Call the get_audience method. - # result = client.get_audience request + # # Call the create_data_stream method. + # result = client.create_data_stream request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. # p result # - def get_audience request, options = nil + 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::GetAudienceRequest + 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.get_audience.metadata.to_h + 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 \ @@ -6445,22 +6473,22 @@ def get_audience request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.get_audience.timeout, + options.apply_defaults timeout: @config.rpcs.create_data_stream.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_audience.retry_policy + 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 :get_audience, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_data_stream, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -6469,43 +6497,32 @@ def get_audience request, options = nil end ## - # Lists Audiences on a property. - # Audiences created before 2020 may not be supported. - # Default audiences will not show filter definitions. + # Deletes a DataStream on a property. # - # @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. + # @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::ListAudiencesRequest, ::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 list_audiences(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_audiences` via keyword arguments. Note that at + # @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 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. + # @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 [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] + # @yieldparam response [::Google::Protobuf::Empty] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6516,28 +6533,24 @@ def get_audience request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new # - # # Call the list_audiences method. - # result = client.list_audiences request + # # Call the delete_data_stream method. + # result = client.delete_data_stream 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 + # # The returned object is of type Google::Protobuf::Empty. + # p result # - def list_audiences request, options = nil + 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::ListAudiencesRequest + 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.list_audiences.metadata.to_h + 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 \ @@ -6547,23 +6560,22 @@ def list_audiences request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.list_audiences.timeout, + options.apply_defaults timeout: @config.rpcs.delete_data_stream.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_audiences.retry_policy + 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 :list_audiences, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_audiences, request, response, operation, options + @analytics_admin_service_stub.call_rpc :delete_data_stream, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -6572,33 +6584,35 @@ def list_audiences request, options = nil end ## - # Creates an Audience. + # Updates a DataStream on a property. # - # @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. + # @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::CreateAudienceRequest, ::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 create_audience(parent: nil, audience: nil) - # Pass arguments to `create_audience` via keyword arguments. Note that at + # @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 parent [::String] - # Required. Example format: properties/1234 - # @param audience [::Google::Analytics::Admin::V1alpha::Audience, ::Hash] - # Required. The audience to create. + # @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::Audience] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataStream] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::Audience] + # @return [::Google::Analytics::Admin::V1alpha::DataStream] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6609,24 +6623,24 @@ def list_audiences request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new # - # # Call the create_audience method. - # result = client.create_audience request + # # Call the update_data_stream method. + # result = client.update_data_stream request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. # p result # - def create_audience request, options = nil + 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::CreateAudienceRequest + 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.create_audience.metadata.to_h + 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 \ @@ -6636,22 +6650,22 @@ def create_audience request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.create_audience.timeout, + options.apply_defaults timeout: @config.rpcs.update_data_stream.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_audience.retry_policy + 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 :create_audience, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_data_stream, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -6660,37 +6674,41 @@ def create_audience request, options = nil end ## - # Updates an Audience on a property. + # Lists DataStreams 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. + # @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::UpdateAudienceRequest, ::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 update_audience(audience: nil, update_mask: nil) - # Pass arguments to `update_audience` via keyword arguments. Note that at + # @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 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. + # @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 [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::Audience] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6701,24 +6719,28 @@ def create_audience request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new # - # # Call the update_audience method. - # result = client.update_audience request + # # Call the list_data_streams method. + # result = client.list_data_streams request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - # p result + # # 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 update_audience request, options = nil + 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::UpdateAudienceRequest + 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.update_audience.metadata.to_h + 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 \ @@ -6728,22 +6750,23 @@ def update_audience request, options = nil 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 + 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.update_audience.timeout, + options.apply_defaults timeout: @config.rpcs.list_data_streams.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_audience.retry_policy + 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 :update_audience, request, options: options do |response, operation| + @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? return response end @@ -6752,31 +6775,32 @@ def update_audience request, options = nil end ## - # Archives an Audience on a property. + # Lookup for a single DataStream. # - # @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. + # @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::ArchiveAudienceRequest, ::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 archive_audience(name: nil) - # Pass arguments to `archive_audience` via keyword arguments. Note that at + # @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. Example format: properties/1234/audiences/5678 + # 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::Protobuf::Empty] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::DataStream] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::DataStream] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6787,24 +6811,24 @@ def update_audience request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new # - # # Call the archive_audience method. - # result = client.archive_audience request + # # Call the get_data_stream method. + # result = client.get_data_stream request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. # p result # - def archive_audience request, options = nil + 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::ArchiveAudienceRequest + 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.archive_audience.metadata.to_h + 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 \ @@ -6821,15 +6845,15 @@ def archive_audience request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.get_data_stream.timeout, metadata: metadata, - retry_policy: @config.rpcs.archive_audience.retry_policy + 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 :archive_audience, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_data_stream, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -6838,32 +6862,34 @@ def archive_audience request, options = nil end ## - # Look up a single SearchAds360Link + # Lookup for a single Audience. + # Audiences created before 2020 may not be supported. + # Default audiences will not show filter definitions. # - # @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. + # @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::GetSearchAds360LinkRequest, ::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_search_ads360_link(name: nil) - # Pass arguments to `get_search_ads360_link` via keyword arguments. Note that at + # @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 SearchAds360Link to get. - # Example format: properties/1234/SearchAds360Link/5678 + # 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::SearchAds360Link] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Audience] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @return [::Google::Analytics::Admin::V1alpha::Audience] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6874,24 +6900,24 @@ def archive_audience request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetAudienceRequest.new # - # # Call the get_search_ads360_link method. - # result = client.get_search_ads360_link request + # # Call the get_audience method. + # result = client.get_audience request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. # p result # - def get_search_ads360_link request, options = nil + 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::GetSearchAds360LinkRequest + 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_search_ads360_link.metadata.to_h + 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 \ @@ -6908,15 +6934,15 @@ def get_search_ads360_link request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.get_audience.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_search_ads360_link.retry_policy + 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_search_ads360_link, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_audience, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -6925,20 +6951,22 @@ def get_search_ads360_link request, options = nil end ## - # Lists all SearchAds360Links on a property. + # Lists Audiences on a property. + # Audiences created before 2020 may not be supported. + # Default audiences will not show filter definitions. # - # @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. + # @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::ListSearchAds360LinksRequest, ::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_search_ads360_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_search_ads360_links` via keyword arguments. Note that at + # @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). # @@ -6949,18 +6977,17 @@ def get_search_ads360_link request, options = nil # 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. + # A page token, received from a previous `ListAudiences` 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. + # 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::SearchAds360Link>] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6971,28 +6998,28 @@ def get_search_ads360_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new # - # # Call the list_search_ads360_links method. - # result = client.list_search_ads360_links request + # # 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::SearchAds360Link. + # # Each element is of type ::Google::Analytics::Admin::V1alpha::Audience. # p item # end # - def list_search_ads360_links request, options = nil + 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::ListSearchAds360LinksRequest + 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_search_ads360_links.metadata.to_h + 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 \ @@ -7009,16 +7036,16 @@ def list_search_ads360_links request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.list_audiences.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_search_ads360_links.retry_policy + 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_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 + @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? return response end @@ -7027,33 +7054,33 @@ def list_search_ads360_links request, options = nil end ## - # Creates a SearchAds360Link. + # Creates an Audience. # - # @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. + # @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::CreateSearchAds360LinkRequest, ::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_search_ads360_link(parent: nil, search_ads_360_link: nil) - # Pass arguments to `create_search_ads360_link` via keyword arguments. Note that at + # @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 search_ads_360_link [::Google::Analytics::Admin::V1alpha::SearchAds360Link, ::Hash] - # Required. The SearchAds360Link to create. + # @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::SearchAds360Link] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Audience] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @return [::Google::Analytics::Admin::V1alpha::Audience] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -7064,24 +7091,24 @@ def list_search_ads360_links request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new # - # # Call the create_search_ads360_link method. - # result = client.create_search_ads360_link request + # # Call the create_audience method. + # result = client.create_audience request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. # p result # - def create_search_ads360_link request, options = nil + 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::CreateSearchAds360LinkRequest + 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_search_ads360_link.metadata.to_h + 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 \ @@ -7098,15 +7125,15 @@ def create_search_ads360_link request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.create_audience.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_search_ads360_link.retry_policy + 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_search_ads360_link, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_audience, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -7115,32 +7142,37 @@ def create_search_ads360_link request, options = nil end ## - # Deletes a SearchAds360Link on a property. + # Updates an Audience 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. + # @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::DeleteSearchAds360LinkRequest, ::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 delete_search_ads360_link(name: nil) - # Pass arguments to `delete_search_ads360_link` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the SearchAds360Link to delete. - # Example format: properties/1234/SearchAds360Links/5678 + # @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::Protobuf::Empty] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::Audience] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::Audience] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -7151,24 +7183,24 @@ def create_search_ads360_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new # - # # Call the delete_search_ads360_link method. - # result = client.delete_search_ads360_link request + # # Call the update_audience method. + # result = client.update_audience request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. # p result # - def delete_search_ads360_link request, options = nil + 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::DeleteSearchAds360LinkRequest + 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.delete_search_ads360_link.metadata.to_h + 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 \ @@ -7178,22 +7210,22 @@ def delete_search_ads360_link request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.delete_search_ads360_link.timeout, + options.apply_defaults timeout: @config.rpcs.update_audience.timeout, metadata: metadata, - retry_policy: @config.rpcs.delete_search_ads360_link.retry_policy + 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 :delete_search_ads360_link, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_audience, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -7202,35 +7234,31 @@ def delete_search_ads360_link request, options = nil end ## - # Updates a SearchAds360Link on a property. + # Archives an Audience 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. + # @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::UpdateSearchAds360LinkRequest, ::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 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 + # @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 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. + # @param name [::String] + # Required. Example format: properties/1234/audiences/5678 # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam response [::Google::Protobuf::Empty] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -7241,24 +7269,24 @@ def delete_search_ads360_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new # - # # Call the update_search_ads360_link method. - # result = client.update_search_ads360_link request + # # Call the archive_audience method. + # result = client.archive_audience request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def update_search_ads360_link request, options = nil + 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::UpdateSearchAds360LinkRequest + 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.update_search_ads360_link.metadata.to_h + 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 \ @@ -7268,22 +7296,22 @@ def update_search_ads360_link request, options = nil 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 + 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.update_search_ads360_link.timeout, + options.apply_defaults timeout: @config.rpcs.archive_audience.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_search_ads360_link.retry_policy + 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 :update_search_ads360_link, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :archive_audience, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -7292,32 +7320,32 @@ def update_search_ads360_link request, options = nil end ## - # Lookup for a AttributionSettings singleton. + # Look up a single SearchAds360Link # - # @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. + # @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::GetAttributionSettingsRequest, ::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_attribution_settings(name: nil) - # Pass arguments to `get_attribution_settings` via keyword arguments. Note that at + # @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 attribution settings to retrieve. - # Format: properties/\\{property}/attributionSettings + # 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::AttributionSettings] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -7328,24 +7356,24 @@ def update_search_ads360_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new # - # # Call the get_attribution_settings method. - # result = client.get_attribution_settings request + # # Call the get_search_ads360_link method. + # result = client.get_search_ads360_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. + # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. # p result # - def get_attribution_settings request, options = nil + 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::GetAttributionSettingsRequest + 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_attribution_settings.metadata.to_h + 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 \ @@ -7362,15 +7390,15 @@ def get_attribution_settings request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.get_search_ads360_link.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_attribution_settings.retry_policy + 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_attribution_settings, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_search_ads360_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -7379,37 +7407,42 @@ def get_attribution_settings request, options = nil end ## - # Updates attribution settings on a property. + # Lists all SearchAds360Links 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. + # @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::UpdateAttributionSettingsRequest, ::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 update_attribution_settings(attribution_settings: nil, update_mask: nil) - # Pass arguments to `update_attribution_settings` via keyword arguments. Note that at + # @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 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. + # @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 [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -7420,24 +7453,28 @@ def get_attribution_settings request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest.new # - # # Call the update_attribution_settings method. - # result = client.update_attribution_settings request + # # Call the list_search_ads360_links method. + # result = client.list_search_ads360_links request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. - # p result + # # 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 update_attribution_settings request, options = nil + 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::UpdateAttributionSettingsRequest + 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.update_attribution_settings.metadata.to_h + 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 \ @@ -7447,22 +7484,23 @@ def update_attribution_settings request, options = nil 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 + 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.update_attribution_settings.timeout, + options.apply_defaults timeout: @config.rpcs.list_search_ads360_links.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_attribution_settings.retry_policy + 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 :update_attribution_settings, request, options: options do |response, operation| + @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? return response end @@ -7471,120 +7509,33 @@ def update_attribution_settings request, options = nil 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 GA4 UI Reporting, GA4 UI Explorations, - # GA4 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). + # Creates a SearchAds360Link. # - # @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. + # @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::RunAccessReportRequest, ::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 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 + # @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 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 GA4 property ID. To request at the - # account level, entity should be for example 'accounts/1234' if "1234" is - # your GA4 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. + # @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::RunAccessReportResponse] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -7595,24 +7546,1108 @@ def update_attribution_settings request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest.new # - # # Call the run_access_report method. - # result = client.run_access_report request + # # Call the create_search_ads360_link method. + # result = client.create_search_ads360_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::RunAccessReportResponse. + # # 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? + return response + 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? + return response + 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? + return response + 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? + return response + 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? + return response + 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 GA4 UI Reporting, GA4 UI Explorations, + # GA4 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). + # + # @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 GA4 property ID. To request at the + # account level, entity should be for example 'accounts/1234' if "1234" is + # your GA4 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 + 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? + return response + 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? + return response + 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? + return response + 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? + return response + 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? + return response + 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? + return 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.run_access_report.metadata.to_h + 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 \ @@ -7622,22 +8657,22 @@ def run_access_report request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.entity - header_params["entity"] = request.entity + 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.run_access_report.timeout, + options.apply_defaults timeout: @config.rpcs.batch_create_access_bindings.timeout, metadata: metadata, - retry_policy: @config.rpcs.run_access_report.retry_policy + 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 :run_access_report, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :batch_create_access_bindings, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -7646,35 +8681,229 @@ def run_access_report request, options = nil end ## - # Creates an access binding on an account or property. + # Gets information about multiple access bindings to 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. + # @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::CreateAccessBindingRequest, ::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 create_access_binding(parent: nil, access_binding: nil) - # Pass arguments to `create_access_binding` via keyword arguments. Note that at + # @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? + return response + 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? + return response + 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. Formats: + # 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 access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] - # Required. The access binding to create. + # @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::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam response [::Google::Protobuf::Empty] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -7685,24 +8914,24 @@ def run_access_report request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new # - # # Call the create_access_binding method. - # result = client.create_access_binding request + # # Call the batch_delete_access_bindings method. + # result = client.batch_delete_access_bindings request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def create_access_binding request, options = nil + 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::CreateAccessBindingRequest + 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.create_access_binding.metadata.to_h + 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 \ @@ -7719,15 +8948,15 @@ def create_access_binding request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.batch_delete_access_bindings.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_access_binding.retry_policy + 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 :create_access_binding, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :batch_delete_access_bindings, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -7736,34 +8965,32 @@ def create_access_binding request, options = nil end ## - # Gets information about an access binding. + # Lookup for a single ExpandedDataSet. # - # @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. + # @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::GetAccessBindingRequest, ::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_access_binding(name: nil) - # Pass arguments to `get_access_binding` via keyword arguments. Note that at + # @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 access binding to retrieve. - # Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} + # 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::AccessBinding] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -7774,24 +9001,24 @@ def create_access_binding request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new # - # # Call the get_access_binding method. - # result = client.get_access_binding request + # # Call the get_expanded_data_set method. + # result = client.get_expanded_data_set request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. # p result # - def get_access_binding request, options = nil + 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::GetAccessBindingRequest + 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_access_binding.metadata.to_h + 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 \ @@ -7808,15 +9035,15 @@ def get_access_binding request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.get_expanded_data_set.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_access_binding.retry_policy + 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_access_binding, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_expanded_data_set, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -7825,31 +9052,41 @@ def get_access_binding request, options = nil end ## - # Updates an access binding on an account or property. + # Lists ExpandedDataSets on a 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. + # @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::UpdateAccessBindingRequest, ::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 update_access_binding(access_binding: nil) - # Pass arguments to `update_access_binding` via keyword arguments. Note that at + # @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 access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] - # Required. The access binding to update. + # @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 [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -7860,24 +9097,28 @@ def get_access_binding request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new # - # # Call the update_access_binding method. - # result = client.update_access_binding request + # # Call the list_expanded_data_sets method. + # result = client.list_expanded_data_sets request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - # p result + # # 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 update_access_binding request, options = nil + 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::UpdateAccessBindingRequest + 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.update_access_binding.metadata.to_h + 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 \ @@ -7887,22 +9128,23 @@ def update_access_binding request, options = nil 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 + 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.update_access_binding.timeout, + options.apply_defaults timeout: @config.rpcs.list_expanded_data_sets.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_access_binding.retry_policy + 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 :update_access_binding, request, options: options do |response, operation| + @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? return response end @@ -7911,33 +9153,33 @@ def update_access_binding request, options = nil end ## - # Deletes an access binding on an account or property. + # Creates a ExpandedDataSet. # - # @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. + # @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::DeleteAccessBindingRequest, ::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 delete_access_binding(name: nil) - # Pass arguments to `delete_access_binding` via keyword arguments. Note that at + # @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 name [::String] - # Required. Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} + # @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::Protobuf::Empty] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -7948,24 +9190,24 @@ def update_access_binding request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new # - # # Call the delete_access_binding method. - # result = client.delete_access_binding request + # # Call the create_expanded_data_set method. + # result = client.create_expanded_data_set request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. # p result # - def delete_access_binding request, options = nil + 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::DeleteAccessBindingRequest + 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.delete_access_binding.metadata.to_h + 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 \ @@ -7975,22 +9217,22 @@ def delete_access_binding request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.delete_access_binding.timeout, + options.apply_defaults timeout: @config.rpcs.create_expanded_data_set.timeout, metadata: metadata, - retry_policy: @config.rpcs.delete_access_binding.retry_policy + 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 :delete_access_binding, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_expanded_data_set, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -7999,43 +9241,38 @@ def delete_access_binding request, options = nil end ## - # Lists all access bindings on an account or property. + # Updates a ExpandedDataSet on a 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. + # @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::ListAccessBindingsRequest, ::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 list_access_bindings(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_access_bindings` via keyword arguments. Note that at + # @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 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. + # @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 [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8046,28 +9283,24 @@ def delete_access_binding request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new # - # # Call the list_access_bindings method. - # result = client.list_access_bindings request + # # Call the update_expanded_data_set method. + # result = client.update_expanded_data_set 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 + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # p result # - def list_access_bindings request, options = nil + 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::ListAccessBindingsRequest + 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.list_access_bindings.metadata.to_h + 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 \ @@ -8077,23 +9310,22 @@ def list_access_bindings request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.list_access_bindings.timeout, + options.apply_defaults timeout: @config.rpcs.update_expanded_data_set.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_access_bindings.retry_policy + 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 :list_access_bindings, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_access_bindings, request, response, operation, options + @analytics_admin_service_stub.call_rpc :update_expanded_data_set, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -8102,42 +9334,31 @@ def list_access_bindings request, options = nil 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. + # Deletes a ExpandedDataSet on a property. # - # @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. + # @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::BatchCreateAccessBindingsRequest, ::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 batch_create_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_create_access_bindings` via keyword arguments. Note that at + # @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 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. + # @param name [::String] + # Required. Example format: properties/1234/expandedDataSets/5678 # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] + # @yieldparam response [::Google::Protobuf::Empty] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8148,24 +9369,24 @@ def list_access_bindings request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new # - # # Call the batch_create_access_bindings method. - # result = client.batch_create_access_bindings request + # # Call the delete_expanded_data_set method. + # result = client.delete_expanded_data_set request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def batch_create_access_bindings request, options = nil + 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::BatchCreateAccessBindingsRequest + 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.batch_create_access_bindings.metadata.to_h + 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 \ @@ -8175,22 +9396,22 @@ def batch_create_access_bindings request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.batch_create_access_bindings.timeout, + options.apply_defaults timeout: @config.rpcs.delete_expanded_data_set.timeout, metadata: metadata, - retry_policy: @config.rpcs.batch_create_access_bindings.retry_policy + 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 :batch_create_access_bindings, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :delete_expanded_data_set, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -8199,41 +9420,32 @@ def batch_create_access_bindings request, options = nil end ## - # Gets information about multiple access bindings to an account or property. + # Lookup for a single ChannelGroup. # - # @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. + # @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::BatchGetAccessBindingsRequest, ::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 batch_get_access_bindings(parent: nil, names: nil) - # Pass arguments to `batch_get_access_bindings` via keyword arguments. Note that at + # @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 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} + # @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::BatchGetAccessBindingsResponse] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ChannelGroup] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8244,24 +9456,24 @@ def batch_create_access_bindings request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new # - # # Call the batch_get_access_bindings method. - # result = client.batch_get_access_bindings request + # # Call the get_channel_group method. + # result = client.get_channel_group request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. # p result # - def batch_get_access_bindings request, options = nil + 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::BatchGetAccessBindingsRequest + 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.batch_get_access_bindings.metadata.to_h + 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 \ @@ -8271,22 +9483,22 @@ def batch_get_access_bindings request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.batch_get_access_bindings.timeout, + options.apply_defaults timeout: @config.rpcs.get_channel_group.timeout, metadata: metadata, - retry_policy: @config.rpcs.batch_get_access_bindings.retry_policy + 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 :batch_get_access_bindings, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_channel_group, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -8295,40 +9507,42 @@ def batch_get_access_bindings request, options = nil end ## - # Updates information about multiple access bindings to an account or - # property. + # Lists ChannelGroups on a 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. + # @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::BatchUpdateAccessBindingsRequest, ::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 batch_update_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_update_access_bindings` via keyword arguments. Note that at + # @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 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. + # 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 [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8339,24 +9553,28 @@ def batch_get_access_bindings request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new # - # # Call the batch_update_access_bindings method. - # result = client.batch_update_access_bindings request + # # Call the list_channel_groups method. + # result = client.list_channel_groups request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse. - # p result + # # 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 batch_update_access_bindings request, options = nil + 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::BatchUpdateAccessBindingsRequest + 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.batch_update_access_bindings.metadata.to_h + 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 \ @@ -8373,15 +9591,16 @@ def batch_update_access_bindings request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.list_channel_groups.timeout, metadata: metadata, - retry_policy: @config.rpcs.batch_update_access_bindings.retry_policy + 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 :batch_update_access_bindings, request, options: options do |response, operation| + @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? return response end @@ -8390,38 +9609,34 @@ def batch_update_access_bindings request, options = nil end ## - # Deletes information about multiple users' links to an account or property. + # Creates a ChannelGroup. # - # @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. + # @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::BatchDeleteAccessBindingsRequest, ::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 batch_delete_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_delete_access_bindings` via keyword arguments. Note that at + # @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 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. + # 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::Protobuf::Empty] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ChannelGroup] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8432,24 +9647,24 @@ def batch_update_access_bindings request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new # - # # Call the batch_delete_access_bindings method. - # result = client.batch_delete_access_bindings request + # # Call the create_channel_group method. + # result = client.create_channel_group request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. # p result # - def batch_delete_access_bindings request, options = nil + 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::BatchDeleteAccessBindingsRequest + 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.batch_delete_access_bindings.metadata.to_h + 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 \ @@ -8466,15 +9681,15 @@ def batch_delete_access_bindings request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.create_channel_group.timeout, metadata: metadata, - retry_policy: @config.rpcs.batch_delete_access_bindings.retry_policy + 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 :batch_delete_access_bindings, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_channel_group, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -8483,32 +9698,38 @@ def batch_delete_access_bindings request, options = nil end ## - # Lookup for a single ExpandedDataSet. + # Updates a ChannelGroup. # - # @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. + # @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::GetExpandedDataSetRequest, ::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 get_expanded_data_set(name: nil) - # Pass arguments to `get_expanded_data_set` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the ExpandedDataSet to get. - # Example format: properties/1234/expandedDataSets/5678 + # @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::ExpandedDataSet] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ChannelGroup] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8519,24 +9740,24 @@ def batch_delete_access_bindings request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new # - # # Call the get_expanded_data_set method. - # result = client.get_expanded_data_set request + # # Call the update_channel_group method. + # result = client.update_channel_group request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. # p result # - def get_expanded_data_set request, options = nil + 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::GetExpandedDataSetRequest + 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.get_expanded_data_set.metadata.to_h + 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 \ @@ -8546,22 +9767,22 @@ def get_expanded_data_set request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.get_expanded_data_set.timeout, + options.apply_defaults timeout: @config.rpcs.update_channel_group.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_expanded_data_set.retry_policy + 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 :get_expanded_data_set, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_channel_group, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -8570,41 +9791,32 @@ def get_expanded_data_set request, options = nil end ## - # Lists ExpandedDataSets on a property. + # Deletes a ChannelGroup 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. + # @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::ListExpandedDataSetsRequest, ::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 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 + # @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 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. + # @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 [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] + # @yieldparam response [::Google::Protobuf::Empty] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8615,28 +9827,24 @@ def get_expanded_data_set request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new # - # # Call the list_expanded_data_sets method. - # result = client.list_expanded_data_sets request + # # Call the delete_channel_group method. + # result = client.delete_channel_group 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 + # # The returned object is of type Google::Protobuf::Empty. + # p result # - def list_expanded_data_sets request, options = nil + 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::ListExpandedDataSetsRequest + 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.list_expanded_data_sets.metadata.to_h + 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 \ @@ -8646,23 +9854,22 @@ def list_expanded_data_sets request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.list_expanded_data_sets.timeout, + options.apply_defaults timeout: @config.rpcs.delete_channel_group.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_expanded_data_sets.retry_policy + 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 :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 + @analytics_admin_service_stub.call_rpc :delete_channel_group, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -8671,33 +9878,38 @@ def list_expanded_data_sets request, options = nil end ## - # Creates a ExpandedDataSet. + # Sets the opt out status for the automated GA4 setup process for a UA + # property. + # Note: this has no effect on GA4 property. # - # @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. + # @overload set_automated_ga4_configuration_opt_out(request, options = nil) + # Pass arguments to `set_automated_ga4_configuration_opt_out` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter 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 + # @overload set_automated_ga4_configuration_opt_out(property: nil, opt_out: nil) + # Pass arguments to `set_automated_ga4_configuration_opt_out` via keyword arguments. Note that at # least one keyword argument is 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. + # @param property [::String] + # Required. The UA property to set the opt out status. Note this request uses + # the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + # Format: properties/\\{internalWebPropertyId} + # Example: properties/1234 + # @param opt_out [::Boolean] + # The status to set. # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @return [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8708,24 +9920,24 @@ def list_expanded_data_sets request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest.new # - # # Call the create_expanded_data_set method. - # result = client.create_expanded_data_set request + # # Call the set_automated_ga4_configuration_opt_out method. + # result = client.set_automated_ga4_configuration_opt_out request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # # The returned object is of type Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse. # p result # - def create_expanded_data_set request, options = nil + def set_automated_ga4_configuration_opt_out request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest # Converts hash and nil to 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 + metadata = @config.rpcs.set_automated_ga4_configuration_opt_out.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -8734,23 +9946,15 @@ def create_expanded_data_set request, options = nil metadata[:"x-goog-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, + options.apply_defaults timeout: @config.rpcs.set_automated_ga4_configuration_opt_out.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_expanded_data_set.retry_policy + retry_policy: @config.rpcs.set_automated_ga4_configuration_opt_out.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| + @analytics_admin_service_stub.call_rpc :set_automated_ga4_configuration_opt_out, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -8759,38 +9963,36 @@ def create_expanded_data_set request, options = nil end ## - # Updates a ExpandedDataSet on a property. + # Fetches the opt out status for the automated GA4 setup process for a UA + # property. + # Note: this has no effect on GA4 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. + # @overload fetch_automated_ga4_configuration_opt_out(request, options = nil) + # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter 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 + # @overload fetch_automated_ga4_configuration_opt_out(property: nil) + # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via keyword arguments. Note that at # least one keyword argument is 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. + # @param property [::String] + # Required. The UA property to get the opt out status. Note this request uses + # the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + # Format: properties/\\{internalWebPropertyId} + # Example: properties/1234 # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @return [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8801,24 +10003,24 @@ def create_expanded_data_set request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest.new # - # # Call the update_expanded_data_set method. - # result = client.update_expanded_data_set request + # # Call the fetch_automated_ga4_configuration_opt_out method. + # result = client.fetch_automated_ga4_configuration_opt_out request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # # The returned object is of type Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse. # p result # - def update_expanded_data_set request, options = nil + def fetch_automated_ga4_configuration_opt_out request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest # Converts hash and nil to 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 + metadata = @config.rpcs.fetch_automated_ga4_configuration_opt_out.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -8827,23 +10029,15 @@ def update_expanded_data_set request, options = nil metadata[:"x-goog-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, + options.apply_defaults timeout: @config.rpcs.fetch_automated_ga4_configuration_opt_out.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_expanded_data_set.retry_policy + retry_policy: @config.rpcs.fetch_automated_ga4_configuration_opt_out.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| + @analytics_admin_service_stub.call_rpc :fetch_automated_ga4_configuration_opt_out, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -8852,31 +10046,33 @@ def update_expanded_data_set request, options = nil end ## - # Deletes a ExpandedDataSet on a property. + # Creates a BigQueryLink. # - # @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. + # @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::DeleteExpandedDataSetRequest, ::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 delete_expanded_data_set(name: nil) - # Pass arguments to `delete_expanded_data_set` via keyword arguments. Note that at + # @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 name [::String] - # Required. Example format: properties/1234/expandedDataSets/5678 + # @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::Protobuf::Empty] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::BigQueryLink] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8887,24 +10083,24 @@ def update_expanded_data_set request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new # - # # Call the delete_expanded_data_set method. - # result = client.delete_expanded_data_set request + # # Call the create_big_query_link method. + # result = client.create_big_query_link request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. # p result # - def delete_expanded_data_set request, options = nil + 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::DeleteExpandedDataSetRequest + 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.delete_expanded_data_set.metadata.to_h + 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 \ @@ -8914,22 +10110,22 @@ def delete_expanded_data_set request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.delete_expanded_data_set.timeout, + options.apply_defaults timeout: @config.rpcs.create_big_query_link.timeout, metadata: metadata, - retry_policy: @config.rpcs.delete_expanded_data_set.retry_policy + 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 :delete_expanded_data_set, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_big_query_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -8938,32 +10134,33 @@ def delete_expanded_data_set request, options = nil end ## - # Lookup for a single ChannelGroup. + # Lookup for a single BigQuery Link. # - # @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. + # @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::GetChannelGroupRequest, ::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_channel_group(name: nil) - # Pass arguments to `get_channel_group` via keyword arguments. Note that at + # @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 ChannelGroup to get. - # Example format: properties/1234/channelGroups/5678 + # 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::ChannelGroup] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::BigQueryLink] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -8974,24 +10171,24 @@ def delete_expanded_data_set request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new # - # # Call the get_channel_group method. - # result = client.get_channel_group request + # # Call the get_big_query_link method. + # result = client.get_big_query_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. # p result # - def get_channel_group request, options = nil + 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::GetChannelGroupRequest + 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_channel_group.metadata.to_h + 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 \ @@ -9008,15 +10205,15 @@ def get_channel_group request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.get_big_query_link.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_channel_group.retry_policy + 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_channel_group, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_big_query_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -9025,42 +10222,43 @@ def get_channel_group request, options = nil end ## - # Lists ChannelGroups on a property. + # Lists BigQuery Links 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. + # @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::ListChannelGroupsRequest, ::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_channel_groups(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_channel_groups` via keyword arguments. Note that at + # @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 property for which to list ChannelGroups. - # Example format: properties/1234 + # 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 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). + # 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. + # 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::ChannelGroup>] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9071,28 +10269,28 @@ def get_channel_group request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new # - # # Call the list_channel_groups method. - # result = client.list_channel_groups request + # # 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::ChannelGroup. + # # Each element is of type ::Google::Analytics::Admin::V1alpha::BigQueryLink. # p item # end # - def list_channel_groups request, options = nil + 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::ListChannelGroupsRequest + 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_channel_groups.metadata.to_h + 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 \ @@ -9109,16 +10307,16 @@ def list_channel_groups request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.list_big_query_links.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_channel_groups.retry_policy + 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_channel_groups, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_channel_groups, request, response, operation, options + @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? return response end @@ -9127,34 +10325,32 @@ def list_channel_groups request, options = nil end ## - # Creates a ChannelGroup. + # Deletes a BigQueryLink on a property. # - # @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. + # @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::CreateChannelGroupRequest, ::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 create_channel_group(parent: nil, channel_group: nil) - # Pass arguments to `create_channel_group` via keyword arguments. Note that at + # @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 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. + # @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::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam response [::Google::Protobuf::Empty] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9165,24 +10361,24 @@ def list_channel_groups request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new # - # # Call the create_channel_group method. - # result = client.create_channel_group request + # # Call the delete_big_query_link method. + # result = client.delete_big_query_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def create_channel_group request, options = nil + 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::CreateChannelGroupRequest + 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.create_channel_group.metadata.to_h + 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 \ @@ -9192,22 +10388,22 @@ def create_channel_group request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.create_channel_group.timeout, + options.apply_defaults timeout: @config.rpcs.delete_big_query_link.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_channel_group.retry_policy + 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 :create_channel_group, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :delete_big_query_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -9216,27 +10412,26 @@ def create_channel_group request, options = nil end ## - # Updates a ChannelGroup. + # Updates a BigQueryLink. # - # @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. + # @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::UpdateChannelGroupRequest, ::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_channel_group(channel_group: nil, update_mask: nil) - # Pass arguments to `update_channel_group` via keyword arguments. Note that at + # @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 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 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 @@ -9244,10 +10439,10 @@ def create_channel_group request, options = nil # fields. # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::BigQueryLink] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9258,24 +10453,24 @@ def create_channel_group request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new # - # # Call the update_channel_group method. - # result = client.update_channel_group request + # # Call the update_big_query_link method. + # result = client.update_big_query_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. # p result # - def update_channel_group request, options = nil + 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::UpdateChannelGroupRequest + 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_channel_group.metadata.to_h + 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 \ @@ -9285,22 +10480,22 @@ def update_channel_group request, options = nil 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 + 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_channel_group.timeout, + options.apply_defaults timeout: @config.rpcs.update_big_query_link.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_channel_group.retry_policy + 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_channel_group, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_big_query_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -9309,32 +10504,36 @@ def update_channel_group request, options = nil end ## - # Deletes a ChannelGroup on a property. + # Returns the enhanced measurement settings for this data stream. + # Note that the stream must enable enhanced measurement for these settings to + # take effect. # - # @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. + # @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::DeleteChannelGroupRequest, ::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 delete_channel_group(name: nil) - # Pass arguments to `delete_channel_group` via keyword arguments. Note that at + # @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 ChannelGroup to delete. - # Example format: properties/1234/channelGroups/5678 + # 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::Protobuf::Empty] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9345,24 +10544,24 @@ def update_channel_group request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new # - # # Call the delete_channel_group method. - # result = client.delete_channel_group request + # # Call the get_enhanced_measurement_settings method. + # result = client.get_enhanced_measurement_settings request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. # p result # - def delete_channel_group request, options = nil + 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::DeleteChannelGroupRequest + 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.delete_channel_group.metadata.to_h + 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 \ @@ -9379,15 +10578,15 @@ def delete_channel_group request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.get_enhanced_measurement_settings.timeout, metadata: metadata, - retry_policy: @config.rpcs.delete_channel_group.retry_policy + 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 :delete_channel_group, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_enhanced_measurement_settings, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -9396,38 +10595,39 @@ def delete_channel_group request, options = nil end ## - # Sets the opt out status for the automated GA4 setup process for a UA - # property. - # Note: this has no effect on GA4 property. + # Updates the enhanced measurement settings for this data stream. + # Note that the stream must enable enhanced measurement for these settings to + # take effect. # - # @overload set_automated_ga4_configuration_opt_out(request, options = nil) - # Pass arguments to `set_automated_ga4_configuration_opt_out` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest} or an equivalent Hash. + # @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::SetAutomatedGa4ConfigurationOptOutRequest, ::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 set_automated_ga4_configuration_opt_out(property: nil, opt_out: nil) - # Pass arguments to `set_automated_ga4_configuration_opt_out` via keyword arguments. Note that at + # @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 property [::String] - # Required. The UA property to set the opt out status. Note this request uses - # the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - # Format: properties/\\{internalWebPropertyId} - # Example: properties/1234 - # @param opt_out [::Boolean] - # The status to set. + # @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::SetAutomatedGa4ConfigurationOptOutResponse] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse] + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9438,24 +10638,24 @@ def delete_channel_group request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest.new + # request = Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new # - # # Call the set_automated_ga4_configuration_opt_out method. - # result = client.set_automated_ga4_configuration_opt_out request + # # Call the update_enhanced_measurement_settings method. + # result = client.update_enhanced_measurement_settings request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. # p result # - def set_automated_ga4_configuration_opt_out request, options = nil + 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::SetAutomatedGa4ConfigurationOptOutRequest + 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.set_automated_ga4_configuration_opt_out.metadata.to_h + 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 \ @@ -9464,15 +10664,23 @@ def set_automated_ga4_configuration_opt_out request, options = nil 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.set_automated_ga4_configuration_opt_out.timeout, + 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.set_automated_ga4_configuration_opt_out.retry_policy + 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 :set_automated_ga4_configuration_opt_out, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_enhanced_measurement_settings, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -9481,36 +10689,38 @@ def set_automated_ga4_configuration_opt_out request, options = nil end ## - # Fetches the opt out status for the automated GA4 setup process for a UA - # property. - # Note: this has no effect on GA4 property. + # Creates a connected site tag for a Universal Analytics property. You can + # create a maximum of 20 connected site tags per property. + # Note: This API cannot be used on GA4 properties. # - # @overload fetch_automated_ga4_configuration_opt_out(request, options = nil) - # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest} or an equivalent Hash. + # @overload create_connected_site_tag(request, options = nil) + # Pass arguments to `create_connected_site_tag` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter values, pass an empty Hash. # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload fetch_automated_ga4_configuration_opt_out(property: nil) - # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via keyword arguments. Note that at + # @overload create_connected_site_tag(property: nil, connected_site_tag: nil) + # Pass arguments to `create_connected_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 property [::String] - # Required. The UA property to get the opt out status. Note this request uses - # the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - # Format: properties/\\{internalWebPropertyId} + # The Universal Analytics property to create connected site tags for. + # This API does not support GA4 properties. + # Format: properties/\\{universalAnalyticsPropertyId} # Example: properties/1234 + # @param connected_site_tag [::Google::Analytics::Admin::V1alpha::ConnectedSiteTag, ::Hash] + # Required. The tag to add to the Universal Analytics property # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse] + # @return [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9521,24 +10731,24 @@ def set_automated_ga4_configuration_opt_out request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest.new + # request = Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest.new # - # # Call the fetch_automated_ga4_configuration_opt_out method. - # result = client.fetch_automated_ga4_configuration_opt_out request + # # Call the create_connected_site_tag method. + # result = client.create_connected_site_tag request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse. # p result # - def fetch_automated_ga4_configuration_opt_out request, options = nil + def create_connected_site_tag request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest # Converts hash and nil to an options object options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h # Customize the options with defaults - metadata = @config.rpcs.fetch_automated_ga4_configuration_opt_out.metadata.to_h + metadata = @config.rpcs.create_connected_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 \ @@ -9547,15 +10757,15 @@ def fetch_automated_ga4_configuration_opt_out request, options = nil 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.fetch_automated_ga4_configuration_opt_out.timeout, + options.apply_defaults timeout: @config.rpcs.create_connected_site_tag.timeout, metadata: metadata, - retry_policy: @config.rpcs.fetch_automated_ga4_configuration_opt_out.retry_policy + retry_policy: @config.rpcs.create_connected_site_tag.retry_policy options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @analytics_admin_service_stub.call_rpc :fetch_automated_ga4_configuration_opt_out, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_connected_site_tag, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -9564,33 +10774,38 @@ def fetch_automated_ga4_configuration_opt_out request, options = nil end ## - # Lookup for a single BigQuery Link. + # Deletes a connected site tag for a Universal Analytics property. + # Note: this has no effect on GA4 properties. # - # @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. + # @overload delete_connected_site_tag(request, options = nil) + # Pass arguments to `delete_connected_site_tag` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter 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 + # @overload delete_connected_site_tag(property: nil, tag_id: nil) + # Pass arguments to `delete_connected_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 BigQuery link to lookup. - # Format: properties/\\{property_id}/bigQueryLinks/\\{bigquery_link_id} - # Example: properties/123/bigQueryLinks/456 + # @param property [::String] + # The Universal Analytics property to delete connected site tags for. + # This API does not support GA4 properties. + # Format: properties/\\{universalAnalyticsPropertyId} + # Example: properties/1234 + # @param tag_id [::String] + # Tag ID to forward events to. Also known as the Measurement ID, or the + # "G-ID" (For example: G-12345). # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam response [::Google::Protobuf::Empty] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9601,24 +10816,24 @@ def fetch_automated_ga4_configuration_opt_out request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest.new # - # # Call the get_big_query_link method. - # result = client.get_big_query_link request + # # Call the delete_connected_site_tag method. + # result = client.delete_connected_site_tag request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def get_big_query_link request, options = nil + def delete_connected_site_tag request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest # Converts hash and nil to 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 + metadata = @config.rpcs.delete_connected_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 \ @@ -9627,23 +10842,15 @@ def get_big_query_link request, options = nil metadata[:"x-goog-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, + options.apply_defaults timeout: @config.rpcs.delete_connected_site_tag.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_big_query_link.retry_policy + retry_policy: @config.rpcs.delete_connected_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_big_query_link, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :delete_connected_site_tag, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -9652,43 +10859,36 @@ def get_big_query_link request, options = nil end ## - # Lists BigQuery Links on a property. + # Lists the connected site tags for a Universal Analytics property. A maximum + # of 20 connected site tags will be returned. Note: this has no effect on GA4 + # 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. + # @overload list_connected_site_tags(request, options = nil) + # Pass arguments to `list_connected_site_tags` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter 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 + # @overload list_connected_site_tags(property: nil) + # Pass arguments to `list_connected_site_tags` via keyword arguments. Note that at # least one keyword argument is 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. + # @param property [::String] + # The Universal Analytics property to fetch connected site tags for. + # This does not work on GA4 properties. A maximum of 20 connected site tags + # will be returned. + # Example Format: `properties/1234` # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] + # @return [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9699,28 +10899,24 @@ def get_big_query_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest.new # - # # Call the list_big_query_links method. - # result = client.list_big_query_links request + # # Call the list_connected_site_tags method. + # result = client.list_connected_site_tags 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 + # # The returned object is of type Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse. + # p result # - def list_big_query_links request, options = nil + def list_connected_site_tags request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest # Converts hash and nil to 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 + metadata = @config.rpcs.list_connected_site_tags.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -9729,24 +10925,15 @@ def list_big_query_links request, options = nil metadata[:"x-goog-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, + options.apply_defaults timeout: @config.rpcs.list_connected_site_tags.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_big_query_links.retry_policy + retry_policy: @config.rpcs.list_connected_site_tags.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 + @analytics_admin_service_stub.call_rpc :list_connected_site_tags, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -9755,36 +10942,36 @@ def list_big_query_links request, options = nil end ## - # Returns the enhanced measurement settings for this data stream. - # Note that the stream must enable enhanced measurement for these settings to - # take effect. + # Given a specified UA property, looks up the GA4 property connected to it. + # Note: this cannot be used with GA4 properties. # - # @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. + # @overload fetch_connected_ga4_property(request, options = nil) + # Pass arguments to `fetch_connected_ga4_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter 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 + # @overload fetch_connected_ga4_property(property: nil) + # Pass arguments to `fetch_connected_ga4_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 settings to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{data_stream}/enhancedMeasurementSettings - # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + # @param property [::String] + # Required. The UA property for which to look up the connected GA4 property. + # Note this request uses the + # internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + # Format: properties/\\{internal_web_property_id} + # Example: properties/1234 # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @return [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9795,49 +10982,41 @@ def list_big_query_links request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest.new # - # # Call the get_enhanced_measurement_settings method. - # result = client.get_enhanced_measurement_settings request + # # Call the fetch_connected_ga4_property method. + # result = client.fetch_connected_ga4_property request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. + # # The returned object is of type Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse. # p result # - def get_enhanced_measurement_settings request, options = nil + def fetch_connected_ga4_property request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest # Converts hash and nil to 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 + metadata = @config.rpcs.fetch_connected_ga4_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 + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Analytics::Admin::V1alpha::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.get_enhanced_measurement_settings.timeout, + options.apply_defaults timeout: @config.rpcs.fetch_connected_ga4_property.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_enhanced_measurement_settings.retry_policy + retry_policy: @config.rpcs.fetch_connected_ga4_property.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| + @analytics_admin_service_stub.call_rpc :fetch_connected_ga4_property, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -9846,39 +11025,33 @@ def get_enhanced_measurement_settings request, options = nil end ## - # Updates the enhanced measurement settings for this data stream. - # Note that the stream must enable enhanced measurement for these settings to - # take effect. + # Looks up a single AdSenseLink. # - # @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. + # @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::UpdateEnhancedMeasurementSettingsRequest, ::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 update_enhanced_measurement_settings(enhanced_measurement_settings: nil, update_mask: nil) - # Pass arguments to `update_enhanced_measurement_settings` via keyword arguments. Note that at + # @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 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. + # @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::EnhancedMeasurementSettings] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::AdSenseLink] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9889,24 +11062,24 @@ def get_enhanced_measurement_settings request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new # - # # Call the update_enhanced_measurement_settings method. - # result = client.update_enhanced_measurement_settings request + # # Call the get_ad_sense_link method. + # result = client.get_ad_sense_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. + # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. # p result # - def update_enhanced_measurement_settings request, options = nil + 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::UpdateEnhancedMeasurementSettingsRequest + 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.update_enhanced_measurement_settings.metadata.to_h + 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 \ @@ -9916,22 +11089,22 @@ def update_enhanced_measurement_settings request, options = nil 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 + 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.update_enhanced_measurement_settings.timeout, + options.apply_defaults timeout: @config.rpcs.get_ad_sense_link.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_enhanced_measurement_settings.retry_policy + 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 :update_enhanced_measurement_settings, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_ad_sense_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -9940,38 +11113,35 @@ def update_enhanced_measurement_settings request, options = nil end ## - # Creates a connected site tag for a Universal Analytics property. You can - # create a maximum of 20 connected site tags per property. - # Note: This API cannot be used on GA4 properties. + # Creates an AdSenseLink. # - # @overload create_connected_site_tag(request, options = nil) - # Pass arguments to `create_connected_site_tag` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest} or an equivalent Hash. + # @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::CreateConnectedSiteTagRequest, ::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_connected_site_tag(property: nil, connected_site_tag: nil) - # Pass arguments to `create_connected_site_tag` via keyword arguments. Note that at + # @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 property [::String] - # The Universal Analytics property to create connected site tags for. - # This API does not support GA4 properties. - # Format: properties/\\{universalAnalyticsPropertyId} + # @param parent [::String] + # Required. The property for which to create an AdSense Link. + # Format: properties/\\{propertyId} # Example: properties/1234 - # @param connected_site_tag [::Google::Analytics::Admin::V1alpha::ConnectedSiteTag, ::Hash] - # Required. The tag to add to the Universal Analytics property + # @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::CreateConnectedSiteTagResponse] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::AdSenseLink] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse] + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -9982,24 +11152,24 @@ def update_enhanced_measurement_settings request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest.new + # request = Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new # - # # Call the create_connected_site_tag method. - # result = client.create_connected_site_tag request + # # Call the create_ad_sense_link method. + # result = client.create_ad_sense_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. # p result # - def create_connected_site_tag request, options = nil + 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::CreateConnectedSiteTagRequest + 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_connected_site_tag.metadata.to_h + 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 \ @@ -10008,15 +11178,23 @@ def create_connected_site_tag request, options = nil 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_connected_site_tag.timeout, + 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_connected_site_tag.retry_policy + 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_connected_site_tag, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_ad_sense_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -10025,32 +11203,27 @@ def create_connected_site_tag request, options = nil end ## - # Deletes a connected site tag for a Universal Analytics property. - # Note: this has no effect on GA4 properties. + # Deletes an AdSenseLink. # - # @overload delete_connected_site_tag(request, options = nil) - # Pass arguments to `delete_connected_site_tag` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest} or an equivalent Hash. + # @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::DeleteConnectedSiteTagRequest, ::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_connected_site_tag(property: nil, tag_id: nil) - # Pass arguments to `delete_connected_site_tag` via keyword arguments. Note that at + # @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 property [::String] - # The Universal Analytics property to delete connected site tags for. - # This API does not support GA4 properties. - # Format: properties/\\{universalAnalyticsPropertyId} - # Example: properties/1234 - # @param tag_id [::String] - # Tag ID to forward events to. Also known as the Measurement ID, or the - # "G-ID" (For example: G-12345). + # @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] @@ -10067,24 +11240,24 @@ def create_connected_site_tag request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest.new + # request = Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new # - # # Call the delete_connected_site_tag method. - # result = client.delete_connected_site_tag request + # # 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_connected_site_tag request, options = nil + 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::DeleteConnectedSiteTagRequest + 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_connected_site_tag.metadata.to_h + 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 \ @@ -10093,15 +11266,23 @@ def delete_connected_site_tag request, options = nil 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.delete_connected_site_tag.timeout, + 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_connected_site_tag.retry_policy + 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_connected_site_tag, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :delete_ad_sense_link, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -10110,36 +11291,43 @@ def delete_connected_site_tag request, options = nil end ## - # Lists the connected site tags for a Universal Analytics property. A maximum - # of 20 connected site tags will be returned. Note: this has no effect on GA4 - # property. + # Lists AdSenseLinks on a property. # - # @overload list_connected_site_tags(request, options = nil) - # Pass arguments to `list_connected_site_tags` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest} or an equivalent Hash. + # @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::ListConnectedSiteTagsRequest, ::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_connected_site_tags(property: nil) - # Pass arguments to `list_connected_site_tags` via keyword arguments. Note that at + # @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 property [::String] - # The Universal Analytics property to fetch connected site tags for. - # This does not work on GA4 properties. A maximum of 20 connected site tags - # will be returned. - # Example Format: `properties/1234` + # @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 [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -10150,24 +11338,28 @@ def delete_connected_site_tag request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest.new + # request = Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new # - # # Call the list_connected_site_tags method. - # result = client.list_connected_site_tags request + # # Call the list_ad_sense_links method. + # result = client.list_ad_sense_links request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse. - # p result + # # 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_connected_site_tags request, options = nil + 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::ListConnectedSiteTagsRequest + 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_connected_site_tags.metadata.to_h + 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 \ @@ -10176,15 +11368,24 @@ def list_connected_site_tags request, options = nil 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_connected_site_tags.timeout, + 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_connected_site_tags.retry_policy + 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_connected_site_tags, request, options: options do |response, operation| + @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? return response end @@ -10192,37 +11393,33 @@ def list_connected_site_tags request, options = nil raise ::Google::Cloud::Error.from_error(e) end - ## - # Given a specified UA property, looks up the GA4 property connected to it. - # Note: this cannot be used with GA4 properties. + ## + # Lookup for a single EventCreateRule. # - # @overload fetch_connected_ga4_property(request, options = nil) - # Pass arguments to `fetch_connected_ga4_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest} or an equivalent Hash. + # @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::FetchConnectedGa4PropertyRequest, ::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 fetch_connected_ga4_property(property: nil) - # Pass arguments to `fetch_connected_ga4_property` via keyword arguments. Note that at + # @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 property [::String] - # Required. The UA property for which to look up the connected GA4 property. - # Note this request uses the - # internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - # Format: properties/\\{internal_web_property_id} - # Example: properties/1234 + # @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::FetchConnectedGa4PropertyResponse] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse] + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -10233,24 +11430,24 @@ def list_connected_site_tags request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest.new + # request = Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new # - # # Call the fetch_connected_ga4_property method. - # result = client.fetch_connected_ga4_property request + # # Call the get_event_create_rule method. + # result = client.get_event_create_rule request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. # p result # - def fetch_connected_ga4_property request, options = nil + 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::FetchConnectedGa4PropertyRequest + 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.fetch_connected_ga4_property.metadata.to_h + 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 \ @@ -10259,15 +11456,23 @@ def fetch_connected_ga4_property request, options = nil 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.fetch_connected_ga4_property.timeout, + 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.fetch_connected_ga4_property.retry_policy + 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 :fetch_connected_ga4_property, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_event_create_rule, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -10276,33 +11481,41 @@ def fetch_connected_ga4_property request, options = nil end ## - # Looks up a single AdSenseLink. + # Lists EventCreateRules on a web data stream. # - # @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. + # @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::GetAdSenseLinkRequest, ::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 get_ad_sense_link(name: nil) - # Pass arguments to `get_ad_sense_link` via keyword arguments. Note that at + # @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 name [::String] - # Required. Unique identifier for the AdSense Link requested. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/5678 + # @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 [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -10313,24 +11526,28 @@ def fetch_connected_ga4_property request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new # - # # Call the get_ad_sense_link method. - # result = client.get_ad_sense_link request + # # Call the list_event_create_rules method. + # result = client.list_event_create_rules request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. - # p result + # # 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 get_ad_sense_link request, options = nil + 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::GetAdSenseLinkRequest + 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.get_ad_sense_link.metadata.to_h + 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 \ @@ -10340,22 +11557,23 @@ def get_ad_sense_link request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.get_ad_sense_link.timeout, + options.apply_defaults timeout: @config.rpcs.list_event_create_rules.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_ad_sense_link.retry_policy + 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 :get_ad_sense_link, request, options: options do |response, operation| + @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? return response end @@ -10364,35 +11582,33 @@ def get_ad_sense_link request, options = nil end ## - # Creates an AdSenseLink. + # Creates an EventCreateRule. # - # @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. + # @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::CreateAdSenseLinkRequest, ::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_ad_sense_link(parent: nil, adsense_link: nil) - # Pass arguments to `create_ad_sense_link` via keyword arguments. Note that at + # @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. 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 + # 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::AdSenseLink] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -10403,24 +11619,24 @@ def get_ad_sense_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new # - # # Call the create_ad_sense_link method. - # result = client.create_ad_sense_link request + # # Call the create_event_create_rule method. + # result = client.create_event_create_rule request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. # p result # - def create_ad_sense_link request, options = nil + 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::CreateAdSenseLinkRequest + 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_ad_sense_link.metadata.to_h + 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 \ @@ -10437,15 +11653,15 @@ def create_ad_sense_link request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.create_event_create_rule.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_ad_sense_link.retry_policy + 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_ad_sense_link, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_event_create_rule, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -10454,33 +11670,38 @@ def create_ad_sense_link request, options = nil end ## - # Deletes an AdSenseLink. + # Updates an EventCreateRule. # - # @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. + # @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::DeleteAdSenseLinkRequest, ::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 delete_ad_sense_link(name: nil) - # Pass arguments to `delete_ad_sense_link` via keyword arguments. Note that at + # @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 name [::String] - # Required. Unique identifier for the AdSense Link to be deleted. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/5678 + # @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::Protobuf::Empty] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -10491,24 +11712,24 @@ def create_ad_sense_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new # - # # Call the delete_ad_sense_link method. - # result = client.delete_ad_sense_link request + # # Call the update_event_create_rule method. + # result = client.update_event_create_rule request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. # p result # - def delete_ad_sense_link request, options = nil + 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::DeleteAdSenseLinkRequest + 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.delete_ad_sense_link.metadata.to_h + 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 \ @@ -10518,22 +11739,22 @@ def delete_ad_sense_link request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.name - header_params["name"] = request.name + 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.delete_ad_sense_link.timeout, + options.apply_defaults timeout: @config.rpcs.update_event_create_rule.timeout, metadata: metadata, - retry_policy: @config.rpcs.delete_ad_sense_link.retry_policy + 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 :delete_ad_sense_link, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_event_create_rule, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -10542,43 +11763,32 @@ def delete_ad_sense_link request, options = nil end ## - # Lists AdSenseLinks on a property. + # Deletes an EventCreateRule. # - # @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. + # @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::ListAdSenseLinksRequest, ::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 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 + # @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 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. + # @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 [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] + # @yieldparam response [::Google::Protobuf::Empty] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -10589,28 +11799,24 @@ def delete_ad_sense_link request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new # - # # Call the list_ad_sense_links method. - # result = client.list_ad_sense_links request + # # Call the delete_event_create_rule method. + # result = client.delete_event_create_rule 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 + # # The returned object is of type Google::Protobuf::Empty. + # p result # - def list_ad_sense_links request, options = nil + 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::ListAdSenseLinksRequest + 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.list_ad_sense_links.metadata.to_h + 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 \ @@ -10620,23 +11826,22 @@ def list_ad_sense_links request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + 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.list_ad_sense_links.timeout, + options.apply_defaults timeout: @config.rpcs.delete_event_create_rule.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_ad_sense_links.retry_policy + 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 :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 + @analytics_admin_service_stub.call_rpc :delete_event_create_rule, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -10645,32 +11850,32 @@ def list_ad_sense_links request, options = nil end ## - # Lookup for a single EventCreateRule. + # Lookup for a single EventEditRule. # - # @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. + # @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::GetEventCreateRuleRequest, ::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_create_rule(name: nil) - # Pass arguments to `get_event_create_rule` via keyword arguments. Note that at + # @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 EventCreateRule to get. - # Example format: properties/123/dataStreams/456/eventCreateRules/789 + # 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::EventCreateRule] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventEditRule] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -10681,24 +11886,24 @@ def list_ad_sense_links request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new # - # # Call the get_event_create_rule method. - # result = client.get_event_create_rule request + # # Call the get_event_edit_rule method. + # result = client.get_event_edit_rule request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. # p result # - def get_event_create_rule request, options = nil + 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::GetEventCreateRuleRequest + 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_create_rule.metadata.to_h + 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 \ @@ -10715,15 +11920,15 @@ def get_event_create_rule request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.get_event_edit_rule.timeout, metadata: metadata, - retry_policy: @config.rpcs.get_event_create_rule.retry_policy + 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_create_rule, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :get_event_edit_rule, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -10732,41 +11937,41 @@ def get_event_create_rule request, options = nil end ## - # Lists EventCreateRules on a web data stream. + # Lists EventEditRules 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. + # @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::ListEventCreateRulesRequest, ::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_create_rules(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_event_create_rules` via keyword arguments. Note that at + # @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] - # The maximum number of resources to return. + # 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] - # A page token, received from a previous `ListEventCreateRules` call. Provide - # this to retrieve the subsequent page. + # Optional. A page token, received from a previous `ListEventEditRules` call. + # Provide this to retrieve the subsequent page. # - # When paginating, all other parameters provided to `ListEventCreateRules` + # 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::EventCreateRule>] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] + # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -10777,28 +11982,28 @@ def get_event_create_rule request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new # - # # Call the list_event_create_rules method. - # result = client.list_event_create_rules request + # # 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::EventCreateRule. + # # Each element is of type ::Google::Analytics::Admin::V1alpha::EventEditRule. # p item # end # - def list_event_create_rules request, options = nil + 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::ListEventCreateRulesRequest + 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_create_rules.metadata.to_h + 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 \ @@ -10815,16 +12020,16 @@ def list_event_create_rules request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.list_event_edit_rules.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_event_create_rules.retry_policy + 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_create_rules, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_event_create_rules, request, response, operation, options + @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? return response end @@ -10833,33 +12038,33 @@ def list_event_create_rules request, options = nil end ## - # Creates an EventCreateRule. + # Creates an EventEditRule. # - # @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. + # @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::CreateEventCreateRuleRequest, ::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_create_rule(parent: nil, event_create_rule: nil) - # Pass arguments to `create_event_create_rule` via keyword arguments. Note that at + # @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_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash] - # Required. The EventCreateRule to create. + # @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::EventCreateRule] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventEditRule] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -10870,24 +12075,24 @@ def list_event_create_rules request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new # - # # Call the create_event_create_rule method. - # result = client.create_event_create_rule request + # # Call the create_event_edit_rule method. + # result = client.create_event_edit_rule request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. # p result # - def create_event_create_rule request, options = nil + 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::CreateEventCreateRuleRequest + 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_create_rule.metadata.to_h + 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 \ @@ -10904,15 +12109,15 @@ def create_event_create_rule request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.create_event_edit_rule.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_event_create_rule.retry_policy + 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_create_rule, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :create_event_edit_rule, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -10921,26 +12126,26 @@ def create_event_create_rule request, options = nil end ## - # Updates an EventCreateRule. + # Updates an EventEditRule. # - # @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. + # @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::UpdateEventCreateRuleRequest, ::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_create_rule(event_create_rule: nil, update_mask: nil) - # Pass arguments to `update_event_create_rule` via keyword arguments. Note that at + # @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_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 + # @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 @@ -10949,10 +12154,10 @@ def create_event_create_rule request, options = nil # fields. # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::EventEditRule] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -10963,24 +12168,24 @@ def create_event_create_rule request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new # - # # Call the update_event_create_rule method. - # result = client.update_event_create_rule request + # # Call the update_event_edit_rule method. + # result = client.update_event_edit_rule request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. # p result # - def update_event_create_rule request, options = nil + 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::UpdateEventCreateRuleRequest + 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_create_rule.metadata.to_h + 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 \ @@ -10990,22 +12195,22 @@ def update_event_create_rule request, options = nil 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 + 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_create_rule.timeout, + options.apply_defaults timeout: @config.rpcs.update_event_edit_rule.timeout, metadata: metadata, - retry_policy: @config.rpcs.update_event_create_rule.retry_policy + 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_create_rule, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :update_event_edit_rule, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -11014,26 +12219,25 @@ def update_event_create_rule request, options = nil end ## - # Deletes an EventCreateRule. + # Deletes an EventEditRule. # - # @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. + # @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::DeleteEventCreateRuleRequest, ::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_create_rule(name: nil) - # Pass arguments to `delete_event_create_rule` via keyword arguments. Note that at + # @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/eventCreateRules/789 + # 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] @@ -11050,24 +12254,24 @@ def update_event_create_rule request, options = nil # 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 + # request = Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new # - # # Call the delete_event_create_rule method. - # result = client.delete_event_create_rule request + # # 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_create_rule request, options = nil + 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::DeleteEventCreateRuleRequest + 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_create_rule.metadata.to_h + 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 \ @@ -11084,15 +12288,105 @@ def delete_event_create_rule request, options = nil request_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, + options.apply_defaults timeout: @config.rpcs.delete_event_edit_rule.timeout, metadata: metadata, - retry_policy: @config.rpcs.delete_event_create_rule.retry_policy + 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_create_rule, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :delete_event_edit_rule, request, options: options do |response, operation| + yield response, operation if block_given? + return response + 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? return response end @@ -12208,35 +13502,31 @@ def delete_rollup_property_source_link request, options = nil # Create a subproperty and a subproperty event filter that applies to the # created subproperty. # - # @overload create_subproperty(request, options = nil) - # Pass arguments to `create_subproperty` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest} or an equivalent Hash. + # @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::CreateSubpropertyRequest, ::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 create_subproperty(parent: nil, subproperty: nil, subproperty_event_filter: nil) - # Pass arguments to `create_subproperty` via keyword arguments. Note that at + # @overload provision_subproperty(subproperty: nil, subproperty_event_filter: 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 parent [::String] - # Required. The ordinary property for which to create a subproperty. - # Format: properties/property_id - # Example: properties/123 # @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. # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse] + # @yieldparam response [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse] + # @return [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -12247,24 +13537,24 @@ def delete_rollup_property_source_link request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest.new + # request = Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new # - # # Call the create_subproperty method. - # result = client.create_subproperty request + # # Call the provision_subproperty method. + # result = client.provision_subproperty request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse. # p result # - def create_subproperty request, options = nil + 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::CreateSubpropertyRequest + 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.create_subproperty.metadata.to_h + 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 \ @@ -12273,15 +13563,15 @@ def create_subproperty request, options = nil 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_subproperty.timeout, + options.apply_defaults timeout: @config.rpcs.provision_subproperty.timeout, metadata: metadata, - retry_policy: @config.rpcs.create_subproperty.retry_policy + 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 :create_subproperty, request, options: options do |response, operation| + @analytics_admin_service_stub.call_rpc :provision_subproperty, request, options: options do |response, operation| yield response, operation if block_given? return response end @@ -13100,6 +14390,31 @@ class Rpcs # 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] # @@ -13410,6 +14725,11 @@ class Rpcs # attr_reader :fetch_automated_ga4_configuration_opt_out ## + # 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] # @@ -13420,6 +14740,16 @@ class Rpcs # 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] # @@ -13495,6 +14825,36 @@ class Rpcs # 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] # @@ -13555,10 +14915,10 @@ class Rpcs # attr_reader :delete_rollup_property_source_link ## - # RPC-specific configuration for `create_subproperty` + # RPC-specific configuration for `provision_subproperty` # @return [::Gapic::Config::Method] # - attr_reader :create_subproperty + attr_reader :provision_subproperty ## # RPC-specific configuration for `create_subproperty_event_filter` # @return [::Gapic::Config::Method] @@ -13665,6 +15025,16 @@ def initialize parent_rpcs = nil @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 @@ -13789,10 +15159,16 @@ def initialize parent_rpcs = nil @set_automated_ga4_configuration_opt_out = ::Gapic::Config::Method.new set_automated_ga4_configuration_opt_out_config fetch_automated_ga4_configuration_opt_out_config = parent_rpcs.fetch_automated_ga4_configuration_opt_out if parent_rpcs.respond_to? :fetch_automated_ga4_configuration_opt_out @fetch_automated_ga4_configuration_opt_out = ::Gapic::Config::Method.new fetch_automated_ga4_configuration_opt_out_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 @@ -13823,6 +15199,18 @@ def initialize parent_rpcs = nil @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 @@ -13847,8 +15235,8 @@ def initialize parent_rpcs = nil @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 - create_subproperty_config = parent_rpcs.create_subproperty if parent_rpcs.respond_to? :create_subproperty - @create_subproperty = ::Gapic::Config::Method.new create_subproperty_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 diff --git a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb index 38f6a16ad67a..160ceead68e5 100644 --- a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb +++ b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb @@ -359,6 +359,25 @@ def event_create_rule_path property:, data_stream:, event_create_rule: "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. # @@ -441,6 +460,23 @@ 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. # @@ -460,6 +496,20 @@ def measurement_protocol_secret_path property:, data_stream:, measurement_protoc "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. # 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 9bd35acb73c4..95126fb09201 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 @@ -1210,7 +1210,8 @@ def update_property request, options = nil # # @param parent [::String] # Required. Format: properties/\\{property_id} - # Example: properties/1234 + # + # 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 @@ -1292,7 +1293,8 @@ def create_firebase_link request, options = nil # # @param name [::String] # Required. Format: properties/\\{property_id}/firebaseLinks/\\{firebase_link_id} - # Example: properties/1234/firebaseLinks/5678 + # + # 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] @@ -1373,7 +1375,8 @@ def delete_firebase_link request, options = nil # # @param parent [::String] # Required. Format: properties/\\{property_id} - # Example: properties/1234 + # + # 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. @@ -1471,7 +1474,8 @@ def list_firebase_links request, options = nil # 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" + # + # 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] @@ -1891,7 +1895,8 @@ def list_google_ads_links request, options = nil # @param name [::String] # Required. The name of the settings to lookup. # Format: accounts/\\{account}/dataSharingSettings - # Example: "accounts/1000/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] @@ -2911,12 +2916,15 @@ def list_sk_ad_network_conversion_value_schemas request, options = nil # # @param account [::String] # Required. The account resource for which to return change history - # resources. Format: accounts/\\{account} Example: "accounts/100" + # 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" + # + # 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. @@ -3171,6 +3179,7 @@ def update_google_signals_settings request, options = nil end ## + # Deprecated: Use `CreateKeyEvent` instead. # Creates a conversion event with the specified attributes. # # @overload create_conversion_event(request, options = nil) @@ -3253,6 +3262,7 @@ def create_conversion_event request, options = nil end ## + # Deprecated: Use `UpdateKeyEvent` instead. # Updates a conversion event with the specified attributes. # # @overload update_conversion_event(request, options = nil) @@ -3338,6 +3348,7 @@ def update_conversion_event request, options = nil end ## + # Deprecated: Use `GetKeyEvent` instead. # Retrieve a single conversion event. # # @overload get_conversion_event(request, options = nil) @@ -3419,6 +3430,7 @@ def get_conversion_event request, options = nil end ## + # Deprecated: Use `DeleteKeyEvent` instead. # Deletes a conversion event in a property. # # @overload delete_conversion_event(request, options = nil) @@ -3500,6 +3512,7 @@ def delete_conversion_event request, options = nil 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. @@ -3596,31 +3609,33 @@ def list_conversion_events request, options = nil end ## - # Look up a single DisplayVideo360AdvertiserLink + # Creates a Key Event. # - # @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. + # @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::GetDisplayVideo360AdvertiserLinkRequest, ::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 get_display_video360_advertiser_link(name: nil) - # Pass arguments to `get_display_video360_advertiser_link` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the DisplayVideo360AdvertiserLink to get. - # Example format: properties/1234/displayVideo360AdvertiserLink/5678 + # @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::DisplayVideo360AdvertiserLink] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -3631,24 +3646,24 @@ def list_conversion_events request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new # - # # Call the get_display_video360_advertiser_link method. - # result = client.get_display_video360_advertiser_link request + # # Call the create_key_event method. + # result = client.create_key_event request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. # p result # - def get_display_video360_advertiser_link request, options = nil + 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::GetDisplayVideo360AdvertiserLinkRequest + 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.get_display_video360_advertiser_link.metadata.to_h + 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 \ @@ -3659,15 +3674,15 @@ def get_display_video360_advertiser_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_key_event.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_display_video360_advertiser_link.retry_policy + 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.get_display_video360_advertiser_link request, options do |result, operation| + @analytics_admin_service_stub.create_key_event request, options do |result, operation| yield result, operation if block_given? return result end @@ -3676,41 +3691,36 @@ def get_display_video360_advertiser_link request, options = nil end ## - # Lists all DisplayVideo360AdvertiserLinks on a property. + # Updates a Key Event. # - # @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. + # @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::ListDisplayVideo360AdvertiserLinksRequest, ::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 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 + # @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 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. + # @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 [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -3721,28 +3731,24 @@ def get_display_video360_advertiser_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateKeyEventRequest.new # - # # Call the list_display_video360_advertiser_links method. - # result = client.list_display_video360_advertiser_links request + # # Call the update_key_event method. + # result = client.update_key_event 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 + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. + # p result # - def list_display_video360_advertiser_links request, options = nil + 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::ListDisplayVideo360AdvertiserLinksRequest + 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.list_display_video360_advertiser_links.metadata.to_h + 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 \ @@ -3753,16 +3759,15 @@ def list_display_video360_advertiser_links request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_key_event.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_display_video360_advertiser_links.retry_policy + 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.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 + @analytics_admin_service_stub.update_key_event request, options do |result, operation| yield result, operation if block_given? return result end @@ -3771,36 +3776,32 @@ def list_display_video360_advertiser_links request, options = nil 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. + # Retrieve a single Key Event. # - # @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. + # @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::CreateDisplayVideo360AdvertiserLinkRequest, ::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 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 + # @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 parent [::String] - # Required. Example format: properties/1234 - # @param display_video_360_advertiser_link [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink, ::Hash] - # Required. The DisplayVideo360AdvertiserLink to create. + # @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::DisplayVideo360AdvertiserLink] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::KeyEvent] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @return [::Google::Analytics::Admin::V1alpha::KeyEvent] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -3811,24 +3812,24 @@ def list_display_video360_advertiser_links request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetKeyEventRequest.new # - # # Call the create_display_video360_advertiser_link method. - # result = client.create_display_video360_advertiser_link request + # # Call the get_key_event method. + # result = client.get_key_event request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. + # # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. # p result # - def create_display_video360_advertiser_link request, options = nil + 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::CreateDisplayVideo360AdvertiserLinkRequest + 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.create_display_video360_advertiser_link.metadata.to_h + 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 \ @@ -3839,15 +3840,15 @@ def create_display_video360_advertiser_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_key_event.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_display_video360_advertiser_link.retry_policy + 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.create_display_video360_advertiser_link request, options do |result, operation| + @analytics_admin_service_stub.get_key_event request, options do |result, operation| yield result, operation if block_given? return result end @@ -3856,26 +3857,27 @@ def create_display_video360_advertiser_link request, options = nil end ## - # Deletes a DisplayVideo360AdvertiserLink on a property. + # Deletes a Key Event. # - # @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. + # @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::DeleteDisplayVideo360AdvertiserLinkRequest, ::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_display_video360_advertiser_link(name: nil) - # Pass arguments to `delete_display_video360_advertiser_link` via keyword arguments. Note that at + # @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 name of the DisplayVideo360AdvertiserLink to delete. - # Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + # 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] @@ -3891,24 +3893,24 @@ def create_display_video360_advertiser_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::DeleteKeyEventRequest.new # - # # Call the delete_display_video360_advertiser_link method. - # result = client.delete_display_video360_advertiser_link request + # # 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_display_video360_advertiser_link request, options = nil + 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::DeleteDisplayVideo360AdvertiserLinkRequest + 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_display_video360_advertiser_link.metadata.to_h + 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 \ @@ -3919,15 +3921,15 @@ def delete_display_video360_advertiser_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.delete_key_event.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_display_video360_advertiser_link.retry_policy + 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_display_video360_advertiser_link request, options do |result, operation| + @analytics_admin_service_stub.delete_key_event request, options do |result, operation| yield result, operation if block_given? return result end @@ -3936,34 +3938,41 @@ def delete_display_video360_advertiser_link request, options = nil end ## - # Updates a DisplayVideo360AdvertiserLink on a property. + # Returns a list of Key Events in the specified parent property. + # Returns an empty list if no Key Events are found. # - # @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. + # @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::UpdateDisplayVideo360AdvertiserLinkRequest, ::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 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 + # @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 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. + # @param parent [::String] + # Required. The resource name of the parent property. + # Example: 'properties/123' + # @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 `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 [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::KeyEvent>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -3974,24 +3983,28 @@ def delete_display_video360_advertiser_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListKeyEventsRequest.new # - # # Call the update_display_video360_advertiser_link method. - # result = client.update_display_video360_advertiser_link request + # # Call the list_key_events method. + # result = client.list_key_events request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. - # p result + # # 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 update_display_video360_advertiser_link request, options = nil + 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::UpdateDisplayVideo360AdvertiserLinkRequest + 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.update_display_video360_advertiser_link.metadata.to_h + 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 \ @@ -4002,15 +4015,16 @@ def update_display_video360_advertiser_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_key_events.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_display_video360_advertiser_link.retry_policy + 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.update_display_video360_advertiser_link request, options do |result, operation| + @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? return result end @@ -4019,31 +4033,31 @@ def update_display_video360_advertiser_link request, options = nil end ## - # Lookup for a single DisplayVideo360AdvertiserLinkProposal. + # Look up a single DisplayVideo360AdvertiserLink # - # @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. + # @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::GetDisplayVideo360AdvertiserLinkProposalRequest, ::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_proposal(name: nil) - # Pass arguments to `get_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # @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 DisplayVideo360AdvertiserLinkProposal to get. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # 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::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -4054,24 +4068,24 @@ def update_display_video360_advertiser_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest.new # - # # Call the get_display_video360_advertiser_link_proposal method. - # result = client.get_display_video360_advertiser_link_proposal request + # # 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::DisplayVideo360AdvertiserLinkProposal. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. # p result # - def get_display_video360_advertiser_link_proposal request, options = nil + 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::GetDisplayVideo360AdvertiserLinkProposalRequest + 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_proposal.metadata.to_h + 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 \ @@ -4082,15 +4096,15 @@ def get_display_video360_advertiser_link_proposal request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_display_video360_advertiser_link_proposal.retry_policy + 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_proposal request, options do |result, operation| + @analytics_admin_service_stub.get_display_video360_advertiser_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -4099,20 +4113,20 @@ def get_display_video360_advertiser_link_proposal request, options = nil end ## - # Lists DisplayVideo360AdvertiserLinkProposals on a property. + # Lists all DisplayVideo360AdvertiserLinks 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. + # @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::ListDisplayVideo360AdvertiserLinkProposalsRequest, ::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_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 + # @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). # @@ -4123,18 +4137,17 @@ def get_display_video360_advertiser_link_proposal request, options = nil # 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. + # A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + # 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. + # `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::DisplayVideo360AdvertiserLinkProposal>] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -4145,28 +4158,28 @@ def get_display_video360_advertiser_link_proposal request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest.new # - # # Call the list_display_video360_advertiser_link_proposals method. - # result = client.list_display_video360_advertiser_link_proposals request + # # 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::DisplayVideo360AdvertiserLinkProposal. + # # Each element is of type ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. # p item # end # - def list_display_video360_advertiser_link_proposals request, options = nil + 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::ListDisplayVideo360AdvertiserLinkProposalsRequest + 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_link_proposals.metadata.to_h + 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 \ @@ -4177,16 +4190,16 @@ def list_display_video360_advertiser_link_proposals request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_links.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_display_video360_advertiser_link_proposals.retry_policy + 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_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 + @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? return result end @@ -4195,32 +4208,36 @@ def list_display_video360_advertiser_link_proposals request, options = nil end ## - # Creates a DisplayVideo360AdvertiserLinkProposal. + # 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_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. + # @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::CreateDisplayVideo360AdvertiserLinkProposalRequest, ::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_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 + # @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_proposal [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal, ::Hash] - # Required. The DisplayVideo360AdvertiserLinkProposal to create. + # @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::DisplayVideo360AdvertiserLinkProposal] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -4231,24 +4248,24 @@ def list_display_video360_advertiser_link_proposals request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest.new # - # # Call the create_display_video360_advertiser_link_proposal method. - # result = client.create_display_video360_advertiser_link_proposal request + # # 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::DisplayVideo360AdvertiserLinkProposal. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. # p result # - def create_display_video360_advertiser_link_proposal request, options = nil + 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::CreateDisplayVideo360AdvertiserLinkProposalRequest + 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_proposal.metadata.to_h + 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 \ @@ -4259,15 +4276,15 @@ def create_display_video360_advertiser_link_proposal request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_display_video360_advertiser_link_proposal.retry_policy + 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_proposal request, options do |result, operation| + @analytics_admin_service_stub.create_display_video360_advertiser_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -4276,27 +4293,26 @@ def create_display_video360_advertiser_link_proposal request, options = nil end ## - # Deletes a DisplayVideo360AdvertiserLinkProposal on a property. - # This can only be used on cancelled proposals. + # Deletes a DisplayVideo360AdvertiserLink on a property. # - # @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. + # @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::DeleteDisplayVideo360AdvertiserLinkProposalRequest, ::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_proposal(name: nil) - # Pass arguments to `delete_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # @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 DisplayVideo360AdvertiserLinkProposal to delete. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # 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] @@ -4312,24 +4328,24 @@ def create_display_video360_advertiser_link_proposal request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest.new # - # # Call the delete_display_video360_advertiser_link_proposal method. - # result = client.delete_display_video360_advertiser_link_proposal request + # # 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_proposal request, options = nil + 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::DeleteDisplayVideo360AdvertiserLinkProposalRequest + 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_proposal.metadata.to_h + 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 \ @@ -4340,15 +4356,15 @@ def delete_display_video360_advertiser_link_proposal request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_display_video360_advertiser_link_proposal.retry_policy + 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_proposal request, options do |result, operation| + @analytics_admin_service_stub.delete_display_video360_advertiser_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -4357,33 +4373,34 @@ def delete_display_video360_advertiser_link_proposal request, options = nil end ## - # Approves a DisplayVideo360AdvertiserLinkProposal. - # The DisplayVideo360AdvertiserLinkProposal will be deleted and a new - # DisplayVideo360AdvertiserLink will be created. + # Updates a DisplayVideo360AdvertiserLink on a property. # - # @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. + # @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::ApproveDisplayVideo360AdvertiserLinkProposalRequest, ::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 approve_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `approve_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. - # Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + # @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::ApproveDisplayVideo360AdvertiserLinkProposalResponse] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -4394,24 +4411,24 @@ def delete_display_video360_advertiser_link_proposal request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest.new # - # # Call the approve_display_video360_advertiser_link_proposal method. - # result = client.approve_display_video360_advertiser_link_proposal request + # # 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::ApproveDisplayVideo360AdvertiserLinkProposalResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink. # p result # - def approve_display_video360_advertiser_link_proposal request, options = nil + 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::ApproveDisplayVideo360AdvertiserLinkProposalRequest + 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.approve_display_video360_advertiser_link_proposal.metadata.to_h + 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 \ @@ -4422,15 +4439,15 @@ def approve_display_video360_advertiser_link_proposal request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_display_video360_advertiser_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.approve_display_video360_advertiser_link_proposal.retry_policy + 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.approve_display_video360_advertiser_link_proposal request, options do |result, operation| + @analytics_admin_service_stub.update_display_video360_advertiser_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -4439,29 +4456,25 @@ def approve_display_video360_advertiser_link_proposal request, options = nil 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. + # Lookup for a single DisplayVideo360AdvertiserLinkProposal. # - # @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. + # @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::CancelDisplayVideo360AdvertiserLinkProposalRequest, ::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 cancel_display_video360_advertiser_link_proposal(name: nil) - # Pass arguments to `cancel_display_video360_advertiser_link_proposal` via keyword arguments. Note that at + # @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 cancel. + # 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] @@ -4478,24 +4491,24 @@ def approve_display_video360_advertiser_link_proposal request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest.new # - # # Call the cancel_display_video360_advertiser_link_proposal method. - # result = client.cancel_display_video360_advertiser_link_proposal request + # # 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 cancel_display_video360_advertiser_link_proposal request, options = nil + 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::CancelDisplayVideo360AdvertiserLinkProposalRequest + 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.cancel_display_video360_advertiser_link_proposal.metadata.to_h + 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 \ @@ -4506,15 +4519,15 @@ def cancel_display_video360_advertiser_link_proposal request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_display_video360_advertiser_link_proposal.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.cancel_display_video360_advertiser_link_proposal.retry_policy + 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.cancel_display_video360_advertiser_link_proposal request, options do |result, operation| + @analytics_admin_service_stub.get_display_video360_advertiser_link_proposal request, options do |result, operation| yield result, operation if block_given? return result end @@ -4523,32 +4536,42 @@ def cancel_display_video360_advertiser_link_proposal request, options = nil end ## - # Creates a CustomDimension. + # Lists DisplayVideo360AdvertiserLinkProposals on a property. # - # @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. + # @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::CreateCustomDimensionRequest, ::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 create_custom_dimension(parent: nil, custom_dimension: nil) - # Pass arguments to `create_custom_dimension` via keyword arguments. Note that at + # @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 custom_dimension [::Google::Analytics::Admin::V1alpha::CustomDimension, ::Hash] - # Required. The CustomDimension to create. + # @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 [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -4559,24 +4582,28 @@ def cancel_display_video360_advertiser_link_proposal request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest.new # - # # Call the create_custom_dimension method. - # result = client.create_custom_dimension request + # # Call the list_display_video360_advertiser_link_proposals method. + # result = client.list_display_video360_advertiser_link_proposals request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. - # p result + # # 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 create_custom_dimension request, options = nil + 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::CreateCustomDimensionRequest + 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.create_custom_dimension.metadata.to_h + 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 \ @@ -4587,15 +4614,16 @@ def create_custom_dimension request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_display_video360_advertiser_link_proposals.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_custom_dimension.retry_policy + 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.create_custom_dimension request, options do |result, operation| + @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? return result end @@ -4604,34 +4632,32 @@ def create_custom_dimension request, options = nil end ## - # Updates a CustomDimension on a property. + # Creates a DisplayVideo360AdvertiserLinkProposal. # - # @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. + # @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::UpdateCustomDimensionRequest, ::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 update_custom_dimension(custom_dimension: nil, update_mask: nil) - # Pass arguments to `update_custom_dimension` via keyword arguments. Note that at + # @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 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. + # @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::CustomDimension] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -4642,24 +4668,24 @@ def create_custom_dimension request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest.new # - # # Call the update_custom_dimension method. - # result = client.update_custom_dimension request + # # 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::CustomDimension. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. # p result # - def update_custom_dimension request, options = nil + 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::UpdateCustomDimensionRequest + 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.update_custom_dimension.metadata.to_h + 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 \ @@ -4670,15 +4696,15 @@ def update_custom_dimension request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_display_video360_advertiser_link_proposal.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_custom_dimension.retry_policy + 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.update_custom_dimension request, options do |result, operation| + @analytics_admin_service_stub.create_display_video360_advertiser_link_proposal request, options do |result, operation| yield result, operation if block_given? return result end @@ -4687,40 +4713,32 @@ def update_custom_dimension request, options = nil end ## - # Lists CustomDimensions on a property. + # Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + # This can only be used on cancelled proposals. # - # @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. + # @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::ListCustomDimensionsRequest, ::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 list_custom_dimensions(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_custom_dimensions` via keyword arguments. Note that at + # @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 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 `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. + # @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 [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -4731,28 +4749,24 @@ def update_custom_dimension request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest.new # - # # Call the list_custom_dimensions method. - # result = client.list_custom_dimensions request + # # Call the delete_display_video360_advertiser_link_proposal method. + # result = client.delete_display_video360_advertiser_link_proposal 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 + # # The returned object is of type Google::Protobuf::Empty. + # p result # - def list_custom_dimensions request, options = nil + 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::ListCustomDimensionsRequest + 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.list_custom_dimensions.metadata.to_h + 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 \ @@ -4763,16 +4777,15 @@ def list_custom_dimensions request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.delete_display_video360_advertiser_link_proposal.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_custom_dimensions.retry_policy + 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.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 + @analytics_admin_service_stub.delete_display_video360_advertiser_link_proposal request, options do |result, operation| yield result, operation if block_given? return result end @@ -4781,31 +4794,33 @@ def list_custom_dimensions request, options = nil end ## - # Archives a CustomDimension on a property. + # Approves a DisplayVideo360AdvertiserLinkProposal. + # The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + # DisplayVideo360AdvertiserLink will be created. # - # @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. + # @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::ArchiveCustomDimensionRequest, ::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 archive_custom_dimension(name: nil) - # Pass arguments to `archive_custom_dimension` via keyword arguments. Note that at + # @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 CustomDimension to archive. - # Example format: properties/1234/customDimensions/5678 + # 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::Protobuf::Empty] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -4816,24 +4831,24 @@ def list_custom_dimensions request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest.new # - # # Call the archive_custom_dimension method. - # result = client.archive_custom_dimension request + # # 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::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse. # p result # - def archive_custom_dimension request, options = nil + 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::ArchiveCustomDimensionRequest + 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.archive_custom_dimension.metadata.to_h + 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 \ @@ -4844,15 +4859,15 @@ def archive_custom_dimension request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.approve_display_video360_advertiser_link_proposal.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.archive_custom_dimension.retry_policy + 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.archive_custom_dimension request, options do |result, operation| + @analytics_admin_service_stub.approve_display_video360_advertiser_link_proposal request, options do |result, operation| yield result, operation if block_given? return result end @@ -4861,31 +4876,35 @@ def archive_custom_dimension request, options = nil end ## - # Lookup for a single CustomDimension. + # 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 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. + # @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::GetCustomDimensionRequest, ::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 get_custom_dimension(name: nil) - # Pass arguments to `get_custom_dimension` via keyword arguments. Note that at + # @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 CustomDimension to get. - # Example format: properties/1234/customDimensions/5678 + # 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::CustomDimension] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] + # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -4896,24 +4915,24 @@ def archive_custom_dimension request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest.new # - # # Call the get_custom_dimension method. - # result = client.get_custom_dimension request + # # 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::CustomDimension. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal. # p result # - def get_custom_dimension request, options = nil + 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::GetCustomDimensionRequest + 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.get_custom_dimension.metadata.to_h + 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 \ @@ -4924,15 +4943,15 @@ def get_custom_dimension request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.cancel_display_video360_advertiser_link_proposal.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_custom_dimension.retry_policy + 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.get_custom_dimension request, options do |result, operation| + @analytics_admin_service_stub.cancel_display_video360_advertiser_link_proposal request, options do |result, operation| yield result, operation if block_given? return result end @@ -4941,32 +4960,32 @@ def get_custom_dimension request, options = nil end ## - # Creates a CustomMetric. + # Creates a CustomDimension. # - # @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. + # @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::CreateCustomMetricRequest, ::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_metric(parent: nil, custom_metric: nil) - # Pass arguments to `create_custom_metric` via keyword arguments. Note that at + # @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_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] - # Required. The CustomMetric to create. + # @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::CustomMetric] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -4977,24 +4996,24 @@ def get_custom_dimension request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest.new # - # # Call the create_custom_metric method. - # result = client.create_custom_metric request + # # Call the create_custom_dimension method. + # result = client.create_custom_dimension request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. # p result # - def create_custom_metric request, options = nil + 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::CreateCustomMetricRequest + 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_metric.metadata.to_h + 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 \ @@ -5005,15 +5024,15 @@ def create_custom_metric request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_custom_dimension.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_custom_metric.retry_policy + 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_metric request, options do |result, operation| + @analytics_admin_service_stub.create_custom_dimension request, options do |result, operation| yield result, operation if block_given? return result end @@ -5022,34 +5041,34 @@ def create_custom_metric request, options = nil end ## - # Updates a CustomMetric on a property. + # Updates a CustomDimension 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. + # @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::UpdateCustomMetricRequest, ::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_metric(custom_metric: nil, update_mask: nil) - # Pass arguments to `update_custom_metric` via keyword arguments. Note that at + # @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_metric [::Google::Analytics::Admin::V1alpha::CustomMetric, ::Hash] - # The CustomMetric to update + # @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::CustomMetric] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5060,24 +5079,24 @@ def create_custom_metric request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest.new # - # # Call the update_custom_metric method. - # result = client.update_custom_metric request + # # Call the update_custom_dimension method. + # result = client.update_custom_dimension request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. # p result # - def update_custom_metric request, options = nil + 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::UpdateCustomMetricRequest + 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_metric.metadata.to_h + 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 \ @@ -5088,15 +5107,15 @@ def update_custom_metric request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_custom_dimension.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_custom_metric.retry_policy + 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_metric request, options do |result, operation| + @analytics_admin_service_stub.update_custom_dimension request, options do |result, operation| yield result, operation if block_given? return result end @@ -5105,20 +5124,20 @@ def update_custom_metric request, options = nil end ## - # Lists CustomMetrics on a property. + # Lists CustomDimensions 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. + # @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::ListCustomMetricsRequest, ::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_metrics(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_custom_metrics` via keyword arguments. Note that at + # @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). # @@ -5129,16 +5148,16 @@ def update_custom_metric request, options = nil # 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. + # A page token, received from a previous `ListCustomDimensions` 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. + # 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::CustomMetric>] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomDimension>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5149,28 +5168,28 @@ def update_custom_metric request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest.new # - # # Call the list_custom_metrics method. - # result = client.list_custom_metrics request + # # 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::CustomMetric. + # # Each element is of type ::Google::Analytics::Admin::V1alpha::CustomDimension. # p item # end # - def list_custom_metrics request, options = nil + 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::ListCustomMetricsRequest + 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_metrics.metadata.to_h + 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 \ @@ -5181,16 +5200,16 @@ def list_custom_metrics request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_custom_dimensions.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_custom_metrics.retry_policy + 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_metrics request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_custom_metrics, "custom_metrics", request, result, options + @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? return result end @@ -5199,26 +5218,26 @@ def list_custom_metrics request, options = nil end ## - # Archives a CustomMetric on a property. + # Archives a CustomDimension 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. + # @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::ArchiveCustomMetricRequest, ::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_metric(name: nil) - # Pass arguments to `archive_custom_metric` via keyword arguments. Note that at + # @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 CustomMetric to archive. - # Example format: properties/1234/customMetrics/5678 + # 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] @@ -5234,24 +5253,24 @@ def list_custom_metrics request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest.new # - # # Call the archive_custom_metric method. - # result = client.archive_custom_metric request + # # 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_metric request, options = nil + 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::ArchiveCustomMetricRequest + 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_metric.metadata.to_h + 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 \ @@ -5262,15 +5281,15 @@ def archive_custom_metric request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.archive_custom_dimension.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.archive_custom_metric.retry_policy + 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_metric request, options do |result, operation| + @analytics_admin_service_stub.archive_custom_dimension request, options do |result, operation| yield result, operation if block_given? return result end @@ -5279,31 +5298,31 @@ def archive_custom_metric request, options = nil end ## - # Lookup for a single CustomMetric. + # Lookup for a single CustomDimension. # - # @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. + # @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::GetCustomMetricRequest, ::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_metric(name: nil) - # Pass arguments to `get_custom_metric` via keyword arguments. Note that at + # @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 CustomMetric to get. - # Example format: properties/1234/customMetrics/5678 + # 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::CustomMetric] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] + # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5314,24 +5333,24 @@ def archive_custom_metric request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest.new # - # # Call the get_custom_metric method. - # result = client.get_custom_metric request + # # Call the get_custom_dimension method. + # result = client.get_custom_dimension request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomDimension. # p result # - def get_custom_metric request, options = nil + 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::GetCustomMetricRequest + 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_metric.metadata.to_h + 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 \ @@ -5342,15 +5361,15 @@ def get_custom_metric request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_custom_dimension.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_custom_metric.retry_policy + 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_metric request, options do |result, operation| + @analytics_admin_service_stub.get_custom_dimension request, options do |result, operation| yield result, operation if block_given? return result end @@ -5359,33 +5378,32 @@ def get_custom_metric request, options = nil end ## - # Returns the singleton data retention settings for this property. + # Creates a CustomMetric. # - # @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. + # @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::GetDataRetentionSettingsRequest, ::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 get_data_retention_settings(name: nil) - # Pass arguments to `get_data_retention_settings` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataRetentionSettings - # Example: "properties/1000/dataRetentionSettings" + # @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::DataRetentionSettings] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5396,24 +5414,24 @@ def get_custom_metric request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest.new # - # # Call the get_data_retention_settings method. - # result = client.get_data_retention_settings request + # # Call the create_custom_metric method. + # result = client.create_custom_metric request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. # p result # - def get_data_retention_settings request, options = nil + 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::GetDataRetentionSettingsRequest + 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.get_data_retention_settings.metadata.to_h + 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 \ @@ -5424,15 +5442,15 @@ def get_data_retention_settings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_custom_metric.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_data_retention_settings.retry_policy + 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.get_data_retention_settings request, options do |result, operation| + @analytics_admin_service_stub.create_custom_metric request, options do |result, operation| yield result, operation if block_given? return result end @@ -5441,36 +5459,34 @@ def get_data_retention_settings request, options = nil end ## - # Updates the singleton data retention settings for this property. + # Updates a CustomMetric on a 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. + # @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::UpdateDataRetentionSettingsRequest, ::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_data_retention_settings(data_retention_settings: nil, update_mask: nil) - # Pass arguments to `update_data_retention_settings` via keyword arguments. Note that at + # @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 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 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. 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. + # 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::DataRetentionSettings] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5481,24 +5497,24 @@ def get_data_retention_settings request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest.new # - # # Call the update_data_retention_settings method. - # result = client.update_data_retention_settings request + # # Call the update_custom_metric method. + # result = client.update_custom_metric request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. # p result # - def update_data_retention_settings request, options = nil + 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::UpdateDataRetentionSettingsRequest + 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_data_retention_settings.metadata.to_h + 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 \ @@ -5509,15 +5525,15 @@ def update_data_retention_settings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_custom_metric.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_data_retention_settings.retry_policy + 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_data_retention_settings request, options do |result, operation| + @analytics_admin_service_stub.update_custom_metric request, options do |result, operation| yield result, operation if block_given? return result end @@ -5526,32 +5542,40 @@ def update_data_retention_settings request, options = nil end ## - # Creates a DataStream. + # Lists CustomMetrics on a property. # - # @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. + # @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::CreateDataStreamRequest, ::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 create_data_stream(parent: nil, data_stream: nil) - # Pass arguments to `create_data_stream` via keyword arguments. Note that at + # @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 data_stream [::Google::Analytics::Admin::V1alpha::DataStream, ::Hash] - # Required. The DataStream to create. + # @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 [::Google::Analytics::Admin::V1alpha::DataStream] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::CustomMetric>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5562,24 +5586,28 @@ def update_data_retention_settings request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest.new # - # # Call the create_data_stream method. - # result = client.create_data_stream request + # # Call the list_custom_metrics method. + # result = client.list_custom_metrics request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. - # p result + # # 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 create_data_stream request, options = nil + 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::CreateDataStreamRequest + 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.create_data_stream.metadata.to_h + 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 \ @@ -5590,15 +5618,16 @@ def create_data_stream request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_custom_metrics.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_data_stream.retry_policy + 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.create_data_stream request, options do |result, operation| + @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? return result end @@ -5607,26 +5636,26 @@ def create_data_stream request, options = nil end ## - # Deletes a DataStream on a property. + # Archives a CustomMetric 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. + # @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::DeleteDataStreamRequest, ::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 delete_data_stream(name: nil) - # Pass arguments to `delete_data_stream` via keyword arguments. Note that at + # @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 DataStream to delete. - # Example format: properties/1234/dataStreams/5678 + # 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] @@ -5642,24 +5671,24 @@ def create_data_stream request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest.new # - # # Call the delete_data_stream method. - # result = client.delete_data_stream request + # # Call the archive_custom_metric method. + # result = client.archive_custom_metric request # # # The returned object is of type Google::Protobuf::Empty. # p result # - def delete_data_stream request, options = nil + 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::DeleteDataStreamRequest + 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.delete_data_stream.metadata.to_h + 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 \ @@ -5670,15 +5699,15 @@ def delete_data_stream request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.archive_custom_metric.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_data_stream.retry_policy + 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.delete_data_stream request, options do |result, operation| + @analytics_admin_service_stub.archive_custom_metric request, options do |result, operation| yield result, operation if block_given? return result end @@ -5687,34 +5716,31 @@ def delete_data_stream request, options = nil end ## - # Updates a DataStream on a property. + # Lookup for a single CustomMetric. # - # @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. + # @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::UpdateDataStreamRequest, ::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 update_data_stream(data_stream: nil, update_mask: nil) - # Pass arguments to `update_data_stream` via keyword arguments. Note that at + # @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 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. + # @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::DataStream] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5725,24 +5751,24 @@ def delete_data_stream request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetCustomMetricRequest.new # - # # Call the update_data_stream method. - # result = client.update_data_stream request + # # Call the get_custom_metric method. + # result = client.get_custom_metric request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CustomMetric. # p result # - def update_data_stream request, options = nil + 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::UpdateDataStreamRequest + 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.update_data_stream.metadata.to_h + 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 \ @@ -5753,15 +5779,15 @@ def update_data_stream request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_custom_metric.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_data_stream.retry_policy + 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.update_data_stream request, options do |result, operation| + @analytics_admin_service_stub.get_custom_metric request, options do |result, operation| yield result, operation if block_given? return result end @@ -5770,40 +5796,33 @@ def update_data_stream request, options = nil end ## - # Lists DataStreams on a property. + # Returns the singleton data retention settings for this 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. + # @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::ListDataStreamsRequest, ::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 list_data_streams(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_data_streams` via keyword arguments. Note that at + # @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 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. + # @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 [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5814,28 +5833,24 @@ def update_data_stream request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest.new # - # # Call the list_data_streams method. - # result = client.list_data_streams request + # # Call the get_data_retention_settings method. + # result = client.get_data_retention_settings 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 + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. + # p result # - def list_data_streams request, options = nil + 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::ListDataStreamsRequest + 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.list_data_streams.metadata.to_h + 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 \ @@ -5846,16 +5861,15 @@ def list_data_streams request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_data_retention_settings.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_data_streams.retry_policy + 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.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 + @analytics_admin_service_stub.get_data_retention_settings request, options do |result, operation| yield result, operation if block_given? return result end @@ -5864,31 +5878,36 @@ def list_data_streams request, options = nil end ## - # Lookup for a single DataStream. + # Updates the singleton data retention settings for this property. # - # @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. + # @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::GetDataStreamRequest, ::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 get_data_stream(name: nil) - # Pass arguments to `get_data_stream` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the DataStream to get. - # Example format: properties/1234/dataStreams/5678 + # @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::DataStream] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::DataStream] + # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5899,24 +5918,24 @@ def list_data_streams request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest.new # - # # Call the get_data_stream method. - # result = client.get_data_stream request + # # Call the update_data_retention_settings method. + # result = client.update_data_retention_settings request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataRetentionSettings. # p result # - def get_data_stream request, options = nil + 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::GetDataStreamRequest + 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.get_data_stream.metadata.to_h + 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 \ @@ -5927,15 +5946,15 @@ def get_data_stream request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_data_retention_settings.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_data_stream.retry_policy + 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.get_data_stream request, options do |result, operation| + @analytics_admin_service_stub.update_data_retention_settings request, options do |result, operation| yield result, operation if block_given? return result end @@ -5944,33 +5963,32 @@ def get_data_stream request, options = nil end ## - # Lookup for a single Audience. - # Audiences created before 2020 may not be supported. - # Default audiences will not show filter definitions. + # Creates a DataStream. # - # @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. + # @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::GetAudienceRequest, ::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 get_audience(name: nil) - # Pass arguments to `get_audience` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the Audience to get. - # Example format: properties/1234/audiences/5678 + # @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::Audience] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::Audience] + # @return [::Google::Analytics::Admin::V1alpha::DataStream] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5981,24 +5999,24 @@ def get_data_stream request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateDataStreamRequest.new # - # # Call the get_audience method. - # result = client.get_audience request + # # Call the create_data_stream method. + # result = client.create_data_stream request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. # p result # - def get_audience request, options = nil + 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::GetAudienceRequest + 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.get_audience.metadata.to_h + 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 \ @@ -6009,15 +6027,15 @@ def get_audience request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_data_stream.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_audience.retry_policy + 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.get_audience request, options do |result, operation| + @analytics_admin_service_stub.create_data_stream request, options do |result, operation| yield result, operation if block_given? return result end @@ -6026,42 +6044,31 @@ def get_audience request, options = nil end ## - # Lists Audiences on a property. - # Audiences created before 2020 may not be supported. - # Default audiences will not show filter definitions. + # Deletes a DataStream on a property. # - # @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. + # @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::ListAudiencesRequest, ::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 list_audiences(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_audiences` via keyword arguments. Note that at + # @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 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. + # @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 [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6072,28 +6079,24 @@ def get_audience request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest.new # - # # Call the list_audiences method. - # result = client.list_audiences request + # # Call the delete_data_stream method. + # result = client.delete_data_stream 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 + # # The returned object is of type Google::Protobuf::Empty. + # p result # - def list_audiences request, options = nil + 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::ListAudiencesRequest + 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.list_audiences.metadata.to_h + 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 \ @@ -6104,16 +6107,15 @@ def list_audiences request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.delete_data_stream.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_audiences.retry_policy + 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.list_audiences request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @analytics_admin_service_stub, :list_audiences, "audiences", request, result, options + @analytics_admin_service_stub.delete_data_stream request, options do |result, operation| yield result, operation if block_given? return result end @@ -6122,32 +6124,34 @@ def list_audiences request, options = nil end ## - # Creates an Audience. + # Updates a DataStream on a property. # - # @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. + # @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::CreateAudienceRequest, ::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 create_audience(parent: nil, audience: nil) - # Pass arguments to `create_audience` via keyword arguments. Note that at + # @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 parent [::String] - # Required. Example format: properties/1234 - # @param audience [::Google::Analytics::Admin::V1alpha::Audience, ::Hash] - # Required. The audience to create. + # @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::Audience] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::Audience] + # @return [::Google::Analytics::Admin::V1alpha::DataStream] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6158,24 +6162,24 @@ def list_audiences request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest.new # - # # Call the create_audience method. - # result = client.create_audience request + # # Call the update_data_stream method. + # result = client.update_data_stream request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. # p result # - def create_audience request, options = nil + 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::CreateAudienceRequest + 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.create_audience.metadata.to_h + 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 \ @@ -6186,15 +6190,15 @@ def create_audience request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_data_stream.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_audience.retry_policy + 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.create_audience request, options do |result, operation| + @analytics_admin_service_stub.update_data_stream request, options do |result, operation| yield result, operation if block_given? return result end @@ -6203,36 +6207,40 @@ def create_audience request, options = nil end ## - # Updates an Audience on a property. + # Lists DataStreams 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. + # @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::UpdateAudienceRequest, ::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 update_audience(audience: nil, update_mask: nil) - # Pass arguments to `update_audience` via keyword arguments. Note that at + # @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 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. + # @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 [::Google::Analytics::Admin::V1alpha::Audience] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::Audience] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::DataStream>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6243,24 +6251,28 @@ def create_audience request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListDataStreamsRequest.new # - # # Call the update_audience method. - # result = client.update_audience request + # # Call the list_data_streams method. + # result = client.list_data_streams request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. - # p result + # # 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 update_audience request, options = nil + 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::UpdateAudienceRequest + 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.update_audience.metadata.to_h + 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 \ @@ -6271,15 +6283,16 @@ def update_audience request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_data_streams.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_audience.retry_policy + 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.update_audience request, options do |result, operation| + @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? return result end @@ -6288,30 +6301,31 @@ def update_audience request, options = nil end ## - # Archives an Audience on a property. + # Lookup for a single DataStream. # - # @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. + # @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::ArchiveAudienceRequest, ::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 archive_audience(name: nil) - # Pass arguments to `archive_audience` via keyword arguments. Note that at + # @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. Example format: properties/1234/audiences/5678 + # 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::Protobuf::Empty] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::DataStream] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6322,24 +6336,24 @@ def update_audience request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetDataStreamRequest.new # - # # Call the archive_audience method. - # result = client.archive_audience request + # # Call the get_data_stream method. + # result = client.get_data_stream request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::DataStream. # p result # - def archive_audience request, options = nil + 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::ArchiveAudienceRequest + 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.archive_audience.metadata.to_h + 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 \ @@ -6350,15 +6364,15 @@ def archive_audience request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_data_stream.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.archive_audience.retry_policy + 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.archive_audience request, options do |result, operation| + @analytics_admin_service_stub.get_data_stream request, options do |result, operation| yield result, operation if block_given? return result end @@ -6367,31 +6381,33 @@ def archive_audience request, options = nil end ## - # Look up a single SearchAds360Link + # Lookup for a single Audience. + # Audiences created before 2020 may not be supported. + # Default audiences will not show filter definitions. # - # @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. + # @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::GetSearchAds360LinkRequest, ::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_search_ads360_link(name: nil) - # Pass arguments to `get_search_ads360_link` via keyword arguments. Note that at + # @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 SearchAds360Link to get. - # Example format: properties/1234/SearchAds360Link/5678 + # 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::SearchAds360Link] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @return [::Google::Analytics::Admin::V1alpha::Audience] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6402,24 +6418,24 @@ def archive_audience request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetAudienceRequest.new # - # # Call the get_search_ads360_link method. - # result = client.get_search_ads360_link request + # # Call the get_audience method. + # result = client.get_audience request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. # p result # - def get_search_ads360_link request, options = nil + 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::GetSearchAds360LinkRequest + 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_search_ads360_link.metadata.to_h + 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 \ @@ -6430,15 +6446,15 @@ def get_search_ads360_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_audience.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_search_ads360_link.retry_policy + 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_search_ads360_link request, options do |result, operation| + @analytics_admin_service_stub.get_audience request, options do |result, operation| yield result, operation if block_given? return result end @@ -6447,20 +6463,22 @@ def get_search_ads360_link request, options = nil end ## - # Lists all SearchAds360Links on a property. + # Lists Audiences on a property. + # Audiences created before 2020 may not be supported. + # Default audiences will not show filter definitions. # - # @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. + # @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::ListSearchAds360LinksRequest, ::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_search_ads360_links(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_search_ads360_links` via keyword arguments. Note that at + # @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). # @@ -6471,17 +6489,16 @@ def get_search_ads360_link request, options = nil # 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. + # A page token, received from a previous `ListAudiences` 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. + # 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::SearchAds360Link>] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::SearchAds360Link>] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::Audience>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6492,28 +6509,28 @@ def get_search_ads360_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListAudiencesRequest.new # - # # Call the list_search_ads360_links method. - # result = client.list_search_ads360_links request + # # 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::SearchAds360Link. + # # Each element is of type ::Google::Analytics::Admin::V1alpha::Audience. # p item # end # - def list_search_ads360_links request, options = nil + 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::ListSearchAds360LinksRequest + 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_search_ads360_links.metadata.to_h + 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 \ @@ -6524,16 +6541,16 @@ def list_search_ads360_links request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_audiences.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_search_ads360_links.retry_policy + 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_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 + @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? return result end @@ -6542,32 +6559,32 @@ def list_search_ads360_links request, options = nil end ## - # Creates a SearchAds360Link. + # Creates an Audience. # - # @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. + # @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::CreateSearchAds360LinkRequest, ::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_search_ads360_link(parent: nil, search_ads_360_link: nil) - # Pass arguments to `create_search_ads360_link` via keyword arguments. Note that at + # @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 search_ads_360_link [::Google::Analytics::Admin::V1alpha::SearchAds360Link, ::Hash] - # Required. The SearchAds360Link to create. + # @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::SearchAds360Link] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @return [::Google::Analytics::Admin::V1alpha::Audience] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6578,24 +6595,24 @@ def list_search_ads360_links request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateAudienceRequest.new # - # # Call the create_search_ads360_link method. - # result = client.create_search_ads360_link request + # # Call the create_audience method. + # result = client.create_audience request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. # p result # - def create_search_ads360_link request, options = nil + 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::CreateSearchAds360LinkRequest + 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_search_ads360_link.metadata.to_h + 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 \ @@ -6606,15 +6623,15 @@ def create_search_ads360_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_audience.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_search_ads360_link.retry_policy + 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_search_ads360_link request, options do |result, operation| + @analytics_admin_service_stub.create_audience request, options do |result, operation| yield result, operation if block_given? return result end @@ -6623,31 +6640,36 @@ def create_search_ads360_link request, options = nil end ## - # Deletes a SearchAds360Link on a property. + # Updates an Audience 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. + # @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::DeleteSearchAds360LinkRequest, ::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 delete_search_ads360_link(name: nil) - # Pass arguments to `delete_search_ads360_link` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the SearchAds360Link to delete. - # Example format: properties/1234/SearchAds360Links/5678 + # @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::Protobuf::Empty] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::Audience] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6658,24 +6680,24 @@ def create_search_ads360_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateAudienceRequest.new # - # # Call the delete_search_ads360_link method. - # result = client.delete_search_ads360_link request + # # Call the update_audience method. + # result = client.update_audience request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::Audience. # p result # - def delete_search_ads360_link request, options = nil + 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::DeleteSearchAds360LinkRequest + 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.delete_search_ads360_link.metadata.to_h + 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 \ @@ -6686,15 +6708,15 @@ def delete_search_ads360_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_audience.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_search_ads360_link.retry_policy + 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.delete_search_ads360_link request, options do |result, operation| + @analytics_admin_service_stub.update_audience request, options do |result, operation| yield result, operation if block_given? return result end @@ -6703,34 +6725,30 @@ def delete_search_ads360_link request, options = nil end ## - # Updates a SearchAds360Link on a property. + # Archives an Audience 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. + # @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::UpdateSearchAds360LinkRequest, ::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 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 + # @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 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. + # @param name [::String] + # Required. Example format: properties/1234/audiences/5678 # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6741,24 +6759,24 @@ def delete_search_ads360_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest.new # - # # Call the update_search_ads360_link method. - # result = client.update_search_ads360_link request + # # Call the archive_audience method. + # result = client.archive_audience request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def update_search_ads360_link request, options = nil + 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::UpdateSearchAds360LinkRequest + 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.update_search_ads360_link.metadata.to_h + 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 \ @@ -6769,15 +6787,15 @@ def update_search_ads360_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.archive_audience.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_search_ads360_link.retry_policy + 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.update_search_ads360_link request, options do |result, operation| + @analytics_admin_service_stub.archive_audience request, options do |result, operation| yield result, operation if block_given? return result end @@ -6786,31 +6804,31 @@ def update_search_ads360_link request, options = nil end ## - # Lookup for a AttributionSettings singleton. + # Look up a single SearchAds360Link # - # @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. + # @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::GetAttributionSettingsRequest, ::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_attribution_settings(name: nil) - # Pass arguments to `get_attribution_settings` via keyword arguments. Note that at + # @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 attribution settings to retrieve. - # Format: properties/\\{property}/attributionSettings + # 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::AttributionSettings] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] + # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6821,24 +6839,24 @@ def update_search_ads360_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest.new # - # # Call the get_attribution_settings method. - # result = client.get_attribution_settings request + # # Call the get_search_ads360_link method. + # result = client.get_search_ads360_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. + # # The returned object is of type Google::Analytics::Admin::V1alpha::SearchAds360Link. # p result # - def get_attribution_settings request, options = nil + 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::GetAttributionSettingsRequest + 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_attribution_settings.metadata.to_h + 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 \ @@ -6849,15 +6867,15 @@ def get_attribution_settings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_search_ads360_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_attribution_settings.retry_policy + 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_attribution_settings request, options do |result, operation| + @analytics_admin_service_stub.get_search_ads360_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -6866,25 +6884,444 @@ def get_attribution_settings request, options = nil end ## - # Updates attribution settings on a property. + # Lists all SearchAds360Links 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. + # @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::UpdateAttributionSettingsRequest, ::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 update_attribution_settings(attribution_settings: nil, update_mask: nil) - # Pass arguments to `update_attribution_settings` via keyword arguments. Note that at + # @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 attribution_settings [::Google::Analytics::Admin::V1alpha::AttributionSettings, ::Hash] - # Required. The attribution settings to update. + # @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? + return 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? + return result + 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? + return result + 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? + return result + 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? + return result + 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 @@ -6892,10 +7329,689 @@ def get_attribution_settings request, options = nil # 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 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? + return result + 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 GA4 UI Reporting, GA4 UI Explorations, + # GA4 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). + # + # @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 GA4 property ID. To request at the + # account level, entity should be for example 'accounts/1234' if "1234" is + # your GA4 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? + return result + 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? + return result + 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? + return result + 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? + return result + 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? + return result + 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? + return 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::AttributionSettings] + # @return [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -6906,24 +8022,201 @@ def get_attribution_settings request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest.new # - # # Call the update_attribution_settings method. - # result = client.update_attribution_settings request + # # Call the batch_create_access_bindings method. + # result = client.batch_create_access_bindings request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AttributionSettings. + # # 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? + return result + 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? + return result + 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 update_attribution_settings request, options = nil + 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::UpdateAttributionSettingsRequest + 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.update_attribution_settings.metadata.to_h + 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 \ @@ -6934,15 +8227,15 @@ def update_attribution_settings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.batch_update_access_bindings.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_attribution_settings.retry_policy + 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.update_attribution_settings request, options do |result, operation| + @analytics_admin_service_stub.batch_update_access_bindings request, options do |result, operation| yield result, operation if block_given? return result end @@ -6951,119 +8244,37 @@ def update_attribution_settings request, options = nil 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 GA4 UI Reporting, GA4 UI Explorations, - # GA4 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). + # Deletes information about multiple users' links to an account or property. # - # @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. + # @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::RunAccessReportRequest, ::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 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 + # @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 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 GA4 property ID. To request at the - # account level, entity should be for example 'accounts/1234' if "1234" is - # your GA4 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. + # @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::Analytics::Admin::V1alpha::RunAccessReportResponse] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7074,24 +8285,24 @@ def update_attribution_settings request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest.new # - # # Call the run_access_report method. - # result = client.run_access_report request + # # Call the batch_delete_access_bindings method. + # result = client.batch_delete_access_bindings request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::RunAccessReportResponse. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def run_access_report request, options = nil + 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::RunAccessReportRequest + 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.run_access_report.metadata.to_h + 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 \ @@ -7102,15 +8313,15 @@ def run_access_report request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.batch_delete_access_bindings.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.run_access_report.retry_policy + 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.run_access_report request, options do |result, operation| + @analytics_admin_service_stub.batch_delete_access_bindings request, options do |result, operation| yield result, operation if block_given? return result end @@ -7119,34 +8330,31 @@ def run_access_report request, options = nil end ## - # Creates an access binding on an account or property. + # Lookup for a single ExpandedDataSet. # - # @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. + # @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::CreateAccessBindingRequest, ::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 create_access_binding(parent: nil, access_binding: nil) - # Pass arguments to `create_access_binding` via keyword arguments. Note that at + # @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 parent [::String] - # Required. Formats: - # - accounts/\\{account} - # - properties/\\{property} - # @param access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] - # Required. The access binding to create. + # @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::AccessBinding] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7157,24 +8365,24 @@ def run_access_report request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest.new # - # # Call the create_access_binding method. - # result = client.create_access_binding request + # # Call the get_expanded_data_set method. + # result = client.get_expanded_data_set request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. # p result # - def create_access_binding request, options = nil + 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::CreateAccessBindingRequest + 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.create_access_binding.metadata.to_h + 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 \ @@ -7185,15 +8393,15 @@ def create_access_binding request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_expanded_data_set.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_access_binding.retry_policy + 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.create_access_binding request, options do |result, operation| + @analytics_admin_service_stub.get_expanded_data_set request, options do |result, operation| yield result, operation if block_given? return result end @@ -7202,33 +8410,40 @@ def create_access_binding request, options = nil end ## - # Gets information about an access binding. + # Lists ExpandedDataSets on a property. # - # @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. + # @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::GetAccessBindingRequest, ::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 get_access_binding(name: nil) - # Pass arguments to `get_access_binding` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the access binding to retrieve. - # Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} + # @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 [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7239,24 +8454,28 @@ def create_access_binding request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest.new # - # # Call the get_access_binding method. - # result = client.get_access_binding request + # # Call the list_expanded_data_sets method. + # result = client.list_expanded_data_sets request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. - # p result + # # 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 get_access_binding request, options = nil + 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::GetAccessBindingRequest + 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.get_access_binding.metadata.to_h + 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 \ @@ -7267,15 +8486,16 @@ def get_access_binding request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_expanded_data_sets.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_access_binding.retry_policy + 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.get_access_binding request, options do |result, operation| + @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? return result end @@ -7284,30 +8504,32 @@ def get_access_binding request, options = nil end ## - # Updates an access binding on an account or property. + # Creates a ExpandedDataSet. # - # @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. + # @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::UpdateAccessBindingRequest, ::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 update_access_binding(access_binding: nil) - # Pass arguments to `update_access_binding` via keyword arguments. Note that at + # @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 access_binding [::Google::Analytics::Admin::V1alpha::AccessBinding, ::Hash] - # Required. The access binding to update. + # @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::AccessBinding] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7318,24 +8540,24 @@ def get_access_binding request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest.new # - # # Call the update_access_binding method. - # result = client.update_access_binding request + # # Call the create_expanded_data_set method. + # result = client.create_expanded_data_set request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AccessBinding. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. # p result # - def update_access_binding request, options = nil + 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::UpdateAccessBindingRequest + 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.update_access_binding.metadata.to_h + 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 \ @@ -7346,15 +8568,15 @@ def update_access_binding request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_expanded_data_set.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_access_binding.retry_policy + 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.update_access_binding request, options do |result, operation| + @analytics_admin_service_stub.create_expanded_data_set request, options do |result, operation| yield result, operation if block_given? return result end @@ -7363,32 +8585,37 @@ def update_access_binding request, options = nil end ## - # Deletes an access binding on an account or property. + # Updates a ExpandedDataSet on a 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. + # @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::DeleteAccessBindingRequest, ::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 delete_access_binding(name: nil) - # Pass arguments to `delete_access_binding` via keyword arguments. Note that at + # @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 name [::String] - # Required. Formats: - # - accounts/\\{account}/accessBindings/\\{accessBinding} - # - properties/\\{property}/accessBindings/\\{accessBinding} + # @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::Protobuf::Empty] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7399,24 +8626,24 @@ def update_access_binding request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest.new # - # # Call the delete_access_binding method. - # result = client.delete_access_binding request + # # Call the update_expanded_data_set method. + # result = client.update_expanded_data_set request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. # p result # - def delete_access_binding request, options = nil + 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::DeleteAccessBindingRequest + 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.delete_access_binding.metadata.to_h + 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 \ @@ -7427,15 +8654,15 @@ def delete_access_binding request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_expanded_data_set.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_access_binding.retry_policy + 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.delete_access_binding request, options do |result, operation| + @analytics_admin_service_stub.update_expanded_data_set request, options do |result, operation| yield result, operation if block_given? return result end @@ -7444,42 +8671,30 @@ def delete_access_binding request, options = nil end ## - # Lists all access bindings on an account or property. + # Deletes a ExpandedDataSet on a 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. + # @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::ListAccessBindingsRequest, ::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 list_access_bindings(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_access_bindings` via keyword arguments. Note that at + # @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 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. + # @param name [::String] + # Required. Example format: properties/1234/expandedDataSets/5678 # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccessBinding>] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7490,28 +8705,24 @@ def delete_access_binding request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest.new # - # # Call the list_access_bindings method. - # result = client.list_access_bindings request + # # Call the delete_expanded_data_set method. + # result = client.delete_expanded_data_set 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 + # # The returned object is of type Google::Protobuf::Empty. + # p result # - def list_access_bindings request, options = nil + 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::ListAccessBindingsRequest + 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.list_access_bindings.metadata.to_h + 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 \ @@ -7522,16 +8733,15 @@ def list_access_bindings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.delete_expanded_data_set.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_access_bindings.retry_policy + 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.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 + @analytics_admin_service_stub.delete_expanded_data_set request, options do |result, operation| yield result, operation if block_given? return result end @@ -7540,41 +8750,31 @@ def list_access_bindings request, options = nil 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. + # Lookup for a single ChannelGroup. # - # @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. + # @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::BatchCreateAccessBindingsRequest, ::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 batch_create_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_create_access_bindings` via keyword arguments. Note that at + # @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 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. + # @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::BatchCreateAccessBindingsResponse] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7585,24 +8785,24 @@ def list_access_bindings request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetChannelGroupRequest.new # - # # Call the batch_create_access_bindings method. - # result = client.batch_create_access_bindings request + # # Call the get_channel_group method. + # result = client.get_channel_group request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. # p result # - def batch_create_access_bindings request, options = nil + 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::BatchCreateAccessBindingsRequest + 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.batch_create_access_bindings.metadata.to_h + 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 \ @@ -7613,15 +8813,15 @@ def batch_create_access_bindings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_channel_group.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.batch_create_access_bindings.retry_policy + 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.batch_create_access_bindings request, options do |result, operation| + @analytics_admin_service_stub.get_channel_group request, options do |result, operation| yield result, operation if block_given? return result end @@ -7630,40 +8830,41 @@ def batch_create_access_bindings request, options = nil end ## - # Gets information about multiple access bindings to an account or property. + # Lists ChannelGroups on a 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. + # @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::BatchGetAccessBindingsRequest, ::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 batch_get_access_bindings(parent: nil, names: nil) - # Pass arguments to `batch_get_access_bindings` via keyword arguments. Note that at + # @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 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} + # 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 [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7674,24 +8875,28 @@ def batch_create_access_bindings request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest.new # - # # Call the batch_get_access_bindings method. - # result = client.batch_get_access_bindings request + # # Call the list_channel_groups method. + # result = client.list_channel_groups request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse. - # p result + # # 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 batch_get_access_bindings request, options = nil + 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::BatchGetAccessBindingsRequest + 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.batch_get_access_bindings.metadata.to_h + 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 \ @@ -7702,15 +8907,16 @@ def batch_get_access_bindings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_channel_groups.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.batch_get_access_bindings.retry_policy + 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.batch_get_access_bindings request, options do |result, operation| + @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? return result end @@ -7719,39 +8925,33 @@ def batch_get_access_bindings request, options = nil end ## - # Updates information about multiple access bindings to an account or - # property. + # Creates a ChannelGroup. # - # @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. + # @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::BatchUpdateAccessBindingsRequest, ::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 batch_update_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_update_access_bindings` via keyword arguments. Note that at + # @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 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. + # 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::BatchUpdateAccessBindingsResponse] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7762,24 +8962,24 @@ def batch_get_access_bindings request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest.new # - # # Call the batch_update_access_bindings method. - # result = client.batch_update_access_bindings request + # # Call the create_channel_group method. + # result = client.create_channel_group request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. # p result # - def batch_update_access_bindings request, options = nil + 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::BatchUpdateAccessBindingsRequest + 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.batch_update_access_bindings.metadata.to_h + 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 \ @@ -7790,15 +8990,15 @@ def batch_update_access_bindings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_channel_group.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.batch_update_access_bindings.retry_policy + 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.batch_update_access_bindings request, options do |result, operation| + @analytics_admin_service_stub.create_channel_group request, options do |result, operation| yield result, operation if block_given? return result end @@ -7807,37 +9007,37 @@ def batch_update_access_bindings request, options = nil end ## - # Deletes information about multiple users' links to an account or property. + # Updates a ChannelGroup. # - # @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. + # @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::BatchDeleteAccessBindingsRequest, ::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 batch_delete_access_bindings(parent: nil, requests: nil) - # Pass arguments to `batch_delete_access_bindings` via keyword arguments. Note that at + # @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 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. + # @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::Protobuf::Empty] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7848,24 +9048,24 @@ def batch_update_access_bindings request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest.new # - # # Call the batch_delete_access_bindings method. - # result = client.batch_delete_access_bindings request + # # Call the update_channel_group method. + # result = client.update_channel_group request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. # p result # - def batch_delete_access_bindings request, options = nil + 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::BatchDeleteAccessBindingsRequest + 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.batch_delete_access_bindings.metadata.to_h + 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 \ @@ -7876,15 +9076,15 @@ def batch_delete_access_bindings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_channel_group.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.batch_delete_access_bindings.retry_policy + 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.batch_delete_access_bindings request, options do |result, operation| + @analytics_admin_service_stub.update_channel_group request, options do |result, operation| yield result, operation if block_given? return result end @@ -7893,31 +9093,31 @@ def batch_delete_access_bindings request, options = nil end ## - # Lookup for a single ExpandedDataSet. + # Deletes a ChannelGroup on a property. # - # @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. + # @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::GetExpandedDataSetRequest, ::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 get_expanded_data_set(name: nil) - # Pass arguments to `get_expanded_data_set` via keyword arguments. Note that at + # @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 name of the ExpandedDataSet to get. - # Example format: properties/1234/expandedDataSets/5678 + # 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::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -7928,24 +9128,24 @@ def batch_delete_access_bindings request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest.new # - # # Call the get_expanded_data_set method. - # result = client.get_expanded_data_set request + # # Call the delete_channel_group method. + # result = client.delete_channel_group request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def get_expanded_data_set request, options = nil + 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::GetExpandedDataSetRequest + 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.get_expanded_data_set.metadata.to_h + 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 \ @@ -7956,15 +9156,15 @@ def get_expanded_data_set request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.delete_channel_group.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_expanded_data_set.retry_policy + 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.get_expanded_data_set request, options do |result, operation| + @analytics_admin_service_stub.delete_channel_group request, options do |result, operation| yield result, operation if block_given? return result end @@ -7973,40 +9173,37 @@ def get_expanded_data_set request, options = nil end ## - # Lists ExpandedDataSets on a property. + # Sets the opt out status for the automated GA4 setup process for a UA + # property. + # Note: this has no effect on GA4 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. + # @overload set_automated_ga4_configuration_opt_out(request, options = nil) + # Pass arguments to `set_automated_ga4_configuration_opt_out` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter 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 + # @overload set_automated_ga4_configuration_opt_out(property: nil, opt_out: nil) + # Pass arguments to `set_automated_ga4_configuration_opt_out` via keyword arguments. Note that at # least one keyword argument is 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. + # @param property [::String] + # Required. The UA property to set the opt out status. Note this request uses + # the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + # Format: properties/\\{internalWebPropertyId} + # Example: properties/1234 + # @param opt_out [::Boolean] + # The status to set. # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ExpandedDataSet>] + # @return [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8017,28 +9214,24 @@ def get_expanded_data_set request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest.new # - # # Call the list_expanded_data_sets method. - # result = client.list_expanded_data_sets request + # # Call the set_automated_ga4_configuration_opt_out method. + # result = client.set_automated_ga4_configuration_opt_out 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 + # # The returned object is of type Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse. + # p result # - def list_expanded_data_sets request, options = nil + def set_automated_ga4_configuration_opt_out request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest # Converts hash and nil to an 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 + call_metadata = @config.rpcs.set_automated_ga4_configuration_opt_out.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -8049,16 +9242,15 @@ def list_expanded_data_sets request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.set_automated_ga4_configuration_opt_out.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_expanded_data_sets.retry_policy + retry_policy: @config.rpcs.set_automated_ga4_configuration_opt_out.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 + @analytics_admin_service_stub.set_automated_ga4_configuration_opt_out request, options do |result, operation| yield result, operation if block_given? return result end @@ -8067,32 +9259,35 @@ def list_expanded_data_sets request, options = nil end ## - # Creates a ExpandedDataSet. + # Fetches the opt out status for the automated GA4 setup process for a UA + # property. + # Note: this has no effect on GA4 property. # - # @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. + # @overload fetch_automated_ga4_configuration_opt_out(request, options = nil) + # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter 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 + # @overload fetch_automated_ga4_configuration_opt_out(property: nil) + # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via keyword arguments. Note that at # least one keyword argument is 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. + # @param property [::String] + # Required. The UA property to get the opt out status. Note this request uses + # the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + # Format: properties/\\{internalWebPropertyId} + # Example: properties/1234 # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @return [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8103,24 +9298,24 @@ def list_expanded_data_sets request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest.new # - # # Call the create_expanded_data_set method. - # result = client.create_expanded_data_set request + # # Call the fetch_automated_ga4_configuration_opt_out method. + # result = client.fetch_automated_ga4_configuration_opt_out request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # # The returned object is of type Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse. # p result # - def create_expanded_data_set request, options = nil + def fetch_automated_ga4_configuration_opt_out request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest # Converts hash and nil to an 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 + call_metadata = @config.rpcs.fetch_automated_ga4_configuration_opt_out.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -8131,15 +9326,15 @@ def create_expanded_data_set request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.fetch_automated_ga4_configuration_opt_out.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_expanded_data_set.retry_policy + retry_policy: @config.rpcs.fetch_automated_ga4_configuration_opt_out.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| + @analytics_admin_service_stub.fetch_automated_ga4_configuration_opt_out request, options do |result, operation| yield result, operation if block_given? return result end @@ -8148,37 +9343,32 @@ def create_expanded_data_set request, options = nil end ## - # Updates a ExpandedDataSet on a property. + # Creates a BigQueryLink. # - # @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. + # @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::UpdateExpandedDataSetRequest, ::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 update_expanded_data_set(expanded_data_set: nil, update_mask: nil) - # Pass arguments to `update_expanded_data_set` via keyword arguments. Note that at + # @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 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. + # @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::ExpandedDataSet] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8189,24 +9379,24 @@ def create_expanded_data_set request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateBigQueryLinkRequest.new # - # # Call the update_expanded_data_set method. - # result = client.update_expanded_data_set request + # # Call the create_big_query_link method. + # result = client.create_big_query_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ExpandedDataSet. + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. # p result # - def update_expanded_data_set request, options = nil + 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::UpdateExpandedDataSetRequest + 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.update_expanded_data_set.metadata.to_h + 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 \ @@ -8217,15 +9407,15 @@ def update_expanded_data_set request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_big_query_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_expanded_data_set.retry_policy + 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.update_expanded_data_set request, options do |result, operation| + @analytics_admin_service_stub.create_big_query_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -8234,30 +9424,32 @@ def update_expanded_data_set request, options = nil end ## - # Deletes a ExpandedDataSet on a property. + # Lookup for a single BigQuery Link. # - # @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. + # @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::DeleteExpandedDataSetRequest, ::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 delete_expanded_data_set(name: nil) - # Pass arguments to `delete_expanded_data_set` via keyword arguments. Note that at + # @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. Example format: properties/1234/expandedDataSets/5678 + # 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::Protobuf::Empty] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8268,24 +9460,24 @@ def update_expanded_data_set request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new # - # # Call the delete_expanded_data_set method. - # result = client.delete_expanded_data_set request + # # Call the get_big_query_link method. + # result = client.get_big_query_link request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. # p result # - def delete_expanded_data_set request, options = nil + 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::DeleteExpandedDataSetRequest + 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.delete_expanded_data_set.metadata.to_h + 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 \ @@ -8296,15 +9488,15 @@ def delete_expanded_data_set request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_big_query_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_expanded_data_set.retry_policy + 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.delete_expanded_data_set request, options do |result, operation| + @analytics_admin_service_stub.get_big_query_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -8313,31 +9505,42 @@ def delete_expanded_data_set request, options = nil end ## - # Lookup for a single ChannelGroup. + # Lists BigQuery Links on a property. # - # @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. + # @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::GetChannelGroupRequest, ::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 get_channel_group(name: nil) - # Pass arguments to `get_channel_group` via keyword arguments. Note that at + # @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 name [::String] - # Required. The ChannelGroup to get. - # Example format: properties/1234/channelGroups/5678 + # @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 [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8348,24 +9551,28 @@ def delete_expanded_data_set request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new # - # # Call the get_channel_group method. - # result = client.get_channel_group request + # # Call the list_big_query_links method. + # result = client.list_big_query_links request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. - # p result + # # 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 get_channel_group request, options = nil + 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::GetChannelGroupRequest + 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.get_channel_group.metadata.to_h + 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 \ @@ -8376,15 +9583,16 @@ def get_channel_group request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_big_query_links.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_channel_group.retry_policy + 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.get_channel_group request, options do |result, operation| + @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? return result end @@ -8393,41 +9601,31 @@ def get_channel_group request, options = nil end ## - # Lists ChannelGroups on a property. + # Deletes a BigQueryLink 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. + # @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::ListChannelGroupsRequest, ::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 list_channel_groups(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_channel_groups` via keyword arguments. Note that at + # @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 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. + # @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 [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::ChannelGroup>] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8438,28 +9636,24 @@ def get_channel_group request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::DeleteBigQueryLinkRequest.new # - # # Call the list_channel_groups method. - # result = client.list_channel_groups request + # # Call the delete_big_query_link method. + # result = client.delete_big_query_link 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 + # # The returned object is of type Google::Protobuf::Empty. + # p result # - def list_channel_groups request, options = nil + 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::ListChannelGroupsRequest + 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.list_channel_groups.metadata.to_h + 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 \ @@ -8470,16 +9664,15 @@ def list_channel_groups request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.delete_big_query_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_channel_groups.retry_policy + 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.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 + @analytics_admin_service_stub.delete_big_query_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -8488,33 +9681,36 @@ def list_channel_groups request, options = nil end ## - # Creates a ChannelGroup. + # Updates a BigQueryLink. # - # @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. + # @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::CreateChannelGroupRequest, ::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 create_channel_group(parent: nil, channel_group: nil) - # Pass arguments to `create_channel_group` via keyword arguments. Note that at + # @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 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. + # @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::ChannelGroup] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8525,24 +9721,24 @@ def list_channel_groups request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateBigQueryLinkRequest.new # - # # Call the create_channel_group method. - # result = client.create_channel_group request + # # Call the update_big_query_link method. + # result = client.update_big_query_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. # p result # - def create_channel_group request, options = nil + 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::CreateChannelGroupRequest + 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.create_channel_group.metadata.to_h + 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 \ @@ -8553,15 +9749,15 @@ def create_channel_group request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_big_query_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_channel_group.retry_policy + 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.create_channel_group request, options do |result, operation| + @analytics_admin_service_stub.update_big_query_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -8570,37 +9766,35 @@ def create_channel_group request, options = nil 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. + # Returns the enhanced measurement settings for this data stream. + # Note that the stream must enable enhanced measurement for these settings to + # take effect. # - # @param request [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest, ::Hash] + # @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 update_channel_group(channel_group: nil, update_mask: nil) - # Pass arguments to `update_channel_group` via keyword arguments. Note that at + # @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 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. + # @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::ChannelGroup] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8611,24 +9805,24 @@ def create_channel_group request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest.new # - # # Call the update_channel_group method. - # result = client.update_channel_group request + # # Call the get_enhanced_measurement_settings method. + # result = client.get_enhanced_measurement_settings request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ChannelGroup. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. # p result # - def update_channel_group request, options = nil + 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::UpdateChannelGroupRequest + 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.update_channel_group.metadata.to_h + 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 \ @@ -8639,15 +9833,15 @@ def update_channel_group request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_enhanced_measurement_settings.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_channel_group.retry_policy + 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.update_channel_group request, options do |result, operation| + @analytics_admin_service_stub.get_enhanced_measurement_settings request, options do |result, operation| yield result, operation if block_given? return result end @@ -8656,31 +9850,38 @@ def update_channel_group request, options = nil end ## - # Deletes a ChannelGroup on a property. + # Updates the enhanced measurement settings for this data stream. + # Note that the stream must enable enhanced measurement for these settings to + # take effect. # - # @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. + # @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::DeleteChannelGroupRequest, ::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 delete_channel_group(name: nil) - # Pass arguments to `delete_channel_group` via keyword arguments. Note that at + # @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 name [::String] - # Required. The ChannelGroup to delete. - # Example format: properties/1234/channelGroups/5678 + # @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::Protobuf::Empty] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8691,24 +9892,24 @@ def update_channel_group request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest.new # - # # Call the delete_channel_group method. - # result = client.delete_channel_group request + # # Call the update_enhanced_measurement_settings method. + # result = client.update_enhanced_measurement_settings request # - # # The returned object is of type Google::Protobuf::Empty. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. # p result # - def delete_channel_group request, options = nil + 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::DeleteChannelGroupRequest + 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.delete_channel_group.metadata.to_h + 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 \ @@ -8719,15 +9920,15 @@ def delete_channel_group request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_enhanced_measurement_settings.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_channel_group.retry_policy + 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.delete_channel_group request, options do |result, operation| + @analytics_admin_service_stub.update_enhanced_measurement_settings request, options do |result, operation| yield result, operation if block_given? return result end @@ -8736,37 +9937,37 @@ def delete_channel_group request, options = nil end ## - # Sets the opt out status for the automated GA4 setup process for a UA - # property. - # Note: this has no effect on GA4 property. + # Creates a connected site tag for a Universal Analytics property. You can + # create a maximum of 20 connected site tags per property. + # Note: This API cannot be used on GA4 properties. # - # @overload set_automated_ga4_configuration_opt_out(request, options = nil) - # Pass arguments to `set_automated_ga4_configuration_opt_out` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest} or an equivalent Hash. + # @overload create_connected_site_tag(request, options = nil) + # Pass arguments to `create_connected_site_tag` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter values, pass an empty Hash. # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload set_automated_ga4_configuration_opt_out(property: nil, opt_out: nil) - # Pass arguments to `set_automated_ga4_configuration_opt_out` via keyword arguments. Note that at + # @overload create_connected_site_tag(property: nil, connected_site_tag: nil) + # Pass arguments to `create_connected_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 property [::String] - # Required. The UA property to set the opt out status. Note this request uses - # the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - # Format: properties/\\{internalWebPropertyId} + # The Universal Analytics property to create connected site tags for. + # This API does not support GA4 properties. + # Format: properties/\\{universalAnalyticsPropertyId} # Example: properties/1234 - # @param opt_out [::Boolean] - # The status to set. + # @param connected_site_tag [::Google::Analytics::Admin::V1alpha::ConnectedSiteTag, ::Hash] + # Required. The tag to add to the Universal Analytics property # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse] + # @return [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8777,24 +9978,24 @@ def delete_channel_group request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest.new + # request = Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest.new # - # # Call the set_automated_ga4_configuration_opt_out method. - # result = client.set_automated_ga4_configuration_opt_out request + # # Call the create_connected_site_tag method. + # result = client.create_connected_site_tag request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse. # p result # - def set_automated_ga4_configuration_opt_out request, options = nil + def create_connected_site_tag request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest # Converts hash and nil to an options object options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h # Customize the options with defaults - call_metadata = @config.rpcs.set_automated_ga4_configuration_opt_out.metadata.to_h + call_metadata = @config.rpcs.create_connected_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 \ @@ -8805,15 +10006,15 @@ def set_automated_ga4_configuration_opt_out request, options = nil call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - options.apply_defaults timeout: @config.rpcs.set_automated_ga4_configuration_opt_out.timeout, + options.apply_defaults timeout: @config.rpcs.create_connected_site_tag.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.set_automated_ga4_configuration_opt_out.retry_policy + retry_policy: @config.rpcs.create_connected_site_tag.retry_policy options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @analytics_admin_service_stub.set_automated_ga4_configuration_opt_out request, options do |result, operation| + @analytics_admin_service_stub.create_connected_site_tag request, options do |result, operation| yield result, operation if block_given? return result end @@ -8822,35 +10023,37 @@ def set_automated_ga4_configuration_opt_out request, options = nil end ## - # Fetches the opt out status for the automated GA4 setup process for a UA - # property. - # Note: this has no effect on GA4 property. + # Deletes a connected site tag for a Universal Analytics property. + # Note: this has no effect on GA4 properties. # - # @overload fetch_automated_ga4_configuration_opt_out(request, options = nil) - # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest} or an equivalent Hash. + # @overload delete_connected_site_tag(request, options = nil) + # Pass arguments to `delete_connected_site_tag` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter values, pass an empty Hash. # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload fetch_automated_ga4_configuration_opt_out(property: nil) - # Pass arguments to `fetch_automated_ga4_configuration_opt_out` via keyword arguments. Note that at + # @overload delete_connected_site_tag(property: nil, tag_id: nil) + # Pass arguments to `delete_connected_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 property [::String] - # Required. The UA property to get the opt out status. Note this request uses - # the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - # Format: properties/\\{internalWebPropertyId} + # The Universal Analytics property to delete connected site tags for. + # This API does not support GA4 properties. + # Format: properties/\\{universalAnalyticsPropertyId} # Example: properties/1234 + # @param tag_id [::String] + # Tag ID to forward events to. Also known as the Measurement ID, or the + # "G-ID" (For example: G-12345). # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8861,24 +10064,24 @@ def set_automated_ga4_configuration_opt_out request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest.new + # request = Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest.new # - # # Call the fetch_automated_ga4_configuration_opt_out method. - # result = client.fetch_automated_ga4_configuration_opt_out request + # # Call the delete_connected_site_tag method. + # result = client.delete_connected_site_tag request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def fetch_automated_ga4_configuration_opt_out request, options = nil + def delete_connected_site_tag request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest # Converts hash and nil to an options object options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h # Customize the options with defaults - call_metadata = @config.rpcs.fetch_automated_ga4_configuration_opt_out.metadata.to_h + call_metadata = @config.rpcs.delete_connected_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 \ @@ -8889,15 +10092,15 @@ def fetch_automated_ga4_configuration_opt_out request, options = nil call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - options.apply_defaults timeout: @config.rpcs.fetch_automated_ga4_configuration_opt_out.timeout, + options.apply_defaults timeout: @config.rpcs.delete_connected_site_tag.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.fetch_automated_ga4_configuration_opt_out.retry_policy + retry_policy: @config.rpcs.delete_connected_site_tag.retry_policy options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @analytics_admin_service_stub.fetch_automated_ga4_configuration_opt_out request, options do |result, operation| + @analytics_admin_service_stub.delete_connected_site_tag request, options do |result, operation| yield result, operation if block_given? return result end @@ -8906,32 +10109,35 @@ def fetch_automated_ga4_configuration_opt_out request, options = nil end ## - # Lookup for a single BigQuery Link. + # Lists the connected site tags for a Universal Analytics property. A maximum + # of 20 connected site tags will be returned. Note: this has no effect on GA4 + # property. # - # @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. + # @overload list_connected_site_tags(request, options = nil) + # Pass arguments to `list_connected_site_tags` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest} or an equivalent Hash. # - # @param request [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest, ::Hash] + # @param request [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter 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 + # @overload list_connected_site_tags(property: nil) + # Pass arguments to `list_connected_site_tags` via keyword arguments. Note that at # least one keyword argument is 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 + # @param property [::String] + # The Universal Analytics property to fetch connected site tags for. + # This does not work on GA4 properties. A maximum of 20 connected site tags + # will be returned. + # Example Format: `properties/1234` # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] + # @return [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -8942,24 +10148,24 @@ def fetch_automated_ga4_configuration_opt_out request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest.new # - # # Call the get_big_query_link method. - # result = client.get_big_query_link request + # # Call the list_connected_site_tags method. + # result = client.list_connected_site_tags request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::BigQueryLink. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse. # p result # - def get_big_query_link request, options = nil + def list_connected_site_tags request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest # Converts hash and nil to an 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 + call_metadata = @config.rpcs.list_connected_site_tags.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -8970,15 +10176,15 @@ def get_big_query_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_connected_site_tags.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_big_query_link.retry_policy + retry_policy: @config.rpcs.list_connected_site_tags.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| + @analytics_admin_service_stub.list_connected_site_tags request, options do |result, operation| yield result, operation if block_given? return result end @@ -8987,42 +10193,35 @@ def get_big_query_link request, options = nil 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. + # Given a specified UA property, looks up the GA4 property connected to it. + # Note: this cannot be used with GA4 properties. # - # @param request [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest, ::Hash] + # @overload fetch_connected_ga4_property(request, options = nil) + # Pass arguments to `fetch_connected_ga4_property` via a request object, either of type + # {::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest} or an equivalent Hash. + # + # @param request [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter 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 + # @overload fetch_connected_ga4_property(property: nil) + # Pass arguments to `fetch_connected_ga4_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 parent [::String] - # Required. The name of the property to list BigQuery links under. - # Format: properties/\\{property_id} + # @param property [::String] + # Required. The UA property for which to look up the connected GA4 property. + # Note this request uses the + # internal property ID, not the tracking ID of the form UA-XXXXXX-YY. + # Format: properties/\\{internal_web_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 result [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::BigQueryLink>] + # @return [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9033,28 +10232,24 @@ def get_big_query_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest.new # - # # Call the list_big_query_links method. - # result = client.list_big_query_links request + # # Call the fetch_connected_ga4_property method. + # result = client.fetch_connected_ga4_property 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 + # # The returned object is of type Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse. + # p result # - def list_big_query_links request, options = nil + def fetch_connected_ga4_property request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest # Converts hash and nil to an 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 + call_metadata = @config.rpcs.fetch_connected_ga4_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 \ @@ -9065,16 +10260,15 @@ def list_big_query_links request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.fetch_connected_ga4_property.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_big_query_links.retry_policy + retry_policy: @config.rpcs.fetch_connected_ga4_property.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 + @analytics_admin_service_stub.fetch_connected_ga4_property request, options do |result, operation| yield result, operation if block_given? return result end @@ -9083,35 +10277,32 @@ def list_big_query_links request, options = nil end ## - # Returns the enhanced measurement settings for this data stream. - # Note that the stream must enable enhanced measurement for these settings to - # take effect. + # Looks up a single AdSenseLink. # - # @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. + # @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::GetEnhancedMeasurementSettingsRequest, ::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_enhanced_measurement_settings(name: nil) - # Pass arguments to `get_enhanced_measurement_settings` via keyword arguments. Note that at + # @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. The name of the settings to lookup. - # Format: - # properties/\\{property}/dataStreams/\\{data_stream}/enhancedMeasurementSettings - # Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + # 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::EnhancedMeasurementSettings] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9122,24 +10313,24 @@ def list_big_query_links request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetAdSenseLinkRequest.new # - # # Call the get_enhanced_measurement_settings method. - # result = client.get_enhanced_measurement_settings request + # # Call the get_ad_sense_link method. + # result = client.get_ad_sense_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. + # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. # p result # - def get_enhanced_measurement_settings request, options = nil + 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::GetEnhancedMeasurementSettingsRequest + 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_enhanced_measurement_settings.metadata.to_h + 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 \ @@ -9150,15 +10341,15 @@ def get_enhanced_measurement_settings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_ad_sense_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_enhanced_measurement_settings.retry_policy + 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_enhanced_measurement_settings request, options do |result, operation| + @analytics_admin_service_stub.get_ad_sense_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -9167,38 +10358,34 @@ def get_enhanced_measurement_settings request, options = nil end ## - # Updates the enhanced measurement settings for this data stream. - # Note that the stream must enable enhanced measurement for these settings to - # take effect. + # Creates an AdSenseLink. # - # @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. + # @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::UpdateEnhancedMeasurementSettingsRequest, ::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 update_enhanced_measurement_settings(enhanced_measurement_settings: nil, update_mask: nil) - # Pass arguments to `update_enhanced_measurement_settings` via keyword arguments. Note that at + # @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 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. + # @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::EnhancedMeasurementSettings] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::AdSenseLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] + # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9209,24 +10396,24 @@ def get_enhanced_measurement_settings request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateAdSenseLinkRequest.new # - # # Call the update_enhanced_measurement_settings method. - # result = client.update_enhanced_measurement_settings request + # # Call the create_ad_sense_link method. + # result = client.create_ad_sense_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings. + # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. # p result # - def update_enhanced_measurement_settings request, options = nil + 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::UpdateEnhancedMeasurementSettingsRequest + 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.update_enhanced_measurement_settings.metadata.to_h + 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 \ @@ -9237,15 +10424,15 @@ def update_enhanced_measurement_settings request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_ad_sense_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_enhanced_measurement_settings.retry_policy + 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.update_enhanced_measurement_settings request, options do |result, operation| + @analytics_admin_service_stub.create_ad_sense_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -9254,37 +10441,32 @@ def update_enhanced_measurement_settings request, options = nil end ## - # Creates a connected site tag for a Universal Analytics property. You can - # create a maximum of 20 connected site tags per property. - # Note: This API cannot be used on GA4 properties. + # Deletes an AdSenseLink. # - # @overload create_connected_site_tag(request, options = nil) - # Pass arguments to `create_connected_site_tag` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest} or an equivalent Hash. + # @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::CreateConnectedSiteTagRequest, ::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 create_connected_site_tag(property: nil, connected_site_tag: nil) - # Pass arguments to `create_connected_site_tag` via keyword arguments. Note that at + # @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 property [::String] - # The Universal Analytics property to create connected site tags for. - # This API does not support GA4 properties. - # Format: properties/\\{universalAnalyticsPropertyId} - # Example: properties/1234 - # @param connected_site_tag [::Google::Analytics::Admin::V1alpha::ConnectedSiteTag, ::Hash] - # Required. The tag to add to the Universal Analytics property + # @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::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9295,24 +10477,24 @@ def update_enhanced_measurement_settings request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest.new + # request = Google::Analytics::Admin::V1alpha::DeleteAdSenseLinkRequest.new # - # # Call the create_connected_site_tag method. - # result = client.create_connected_site_tag request + # # Call the delete_ad_sense_link method. + # result = client.delete_ad_sense_link request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def create_connected_site_tag request, options = nil + 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::CreateConnectedSiteTagRequest + 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.create_connected_site_tag.metadata.to_h + 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 \ @@ -9323,15 +10505,15 @@ def create_connected_site_tag request, options = nil call_metadata[:"x-goog-api-version"] = API_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_connected_site_tag.timeout, + options.apply_defaults timeout: @config.rpcs.delete_ad_sense_link.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_connected_site_tag.retry_policy + 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.create_connected_site_tag request, options do |result, operation| + @analytics_admin_service_stub.delete_ad_sense_link request, options do |result, operation| yield result, operation if block_given? return result end @@ -9340,37 +10522,42 @@ def create_connected_site_tag request, options = nil end ## - # Deletes a connected site tag for a Universal Analytics property. - # Note: this has no effect on GA4 properties. + # Lists AdSenseLinks on a property. # - # @overload delete_connected_site_tag(request, options = nil) - # Pass arguments to `delete_connected_site_tag` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest} or an equivalent Hash. + # @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::DeleteConnectedSiteTagRequest, ::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 delete_connected_site_tag(property: nil, tag_id: nil) - # Pass arguments to `delete_connected_site_tag` via keyword arguments. Note that at + # @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 property [::String] - # The Universal Analytics property to delete connected site tags for. - # This API does not support GA4 properties. - # Format: properties/\\{universalAnalyticsPropertyId} + # @param parent [::String] + # Required. Resource name of the parent property. + # Format: properties/\\{propertyId} # Example: properties/1234 - # @param tag_id [::String] - # Tag ID to forward events to. Also known as the Measurement ID, or the - # "G-ID" (For example: G-12345). + # @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 [::Google::Protobuf::Empty] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Protobuf::Empty] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9381,24 +10568,28 @@ def create_connected_site_tag request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest.new + # request = Google::Analytics::Admin::V1alpha::ListAdSenseLinksRequest.new # - # # Call the delete_connected_site_tag method. - # result = client.delete_connected_site_tag request + # # Call the list_ad_sense_links method. + # result = client.list_ad_sense_links request # - # # The returned object is of type Google::Protobuf::Empty. - # p result + # # 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 delete_connected_site_tag request, options = nil + 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::DeleteConnectedSiteTagRequest + 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.delete_connected_site_tag.metadata.to_h + 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 \ @@ -9409,15 +10600,16 @@ def delete_connected_site_tag request, options = nil call_metadata[:"x-goog-api-version"] = API_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_connected_site_tag.timeout, + options.apply_defaults timeout: @config.rpcs.list_ad_sense_links.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_connected_site_tag.retry_policy + 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.delete_connected_site_tag request, options do |result, operation| + @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? return result end @@ -9426,35 +10618,31 @@ def delete_connected_site_tag request, options = nil end ## - # Lists the connected site tags for a Universal Analytics property. A maximum - # of 20 connected site tags will be returned. Note: this has no effect on GA4 - # property. + # Lookup for a single EventCreateRule. # - # @overload list_connected_site_tags(request, options = nil) - # Pass arguments to `list_connected_site_tags` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest} or an equivalent Hash. + # @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::ListConnectedSiteTagsRequest, ::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 list_connected_site_tags(property: nil) - # Pass arguments to `list_connected_site_tags` via keyword arguments. Note that at + # @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 property [::String] - # The Universal Analytics property to fetch connected site tags for. - # This does not work on GA4 properties. A maximum of 20 connected site tags - # will be returned. - # Example Format: `properties/1234` + # @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::ListConnectedSiteTagsResponse] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse] + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9465,24 +10653,24 @@ def delete_connected_site_tag request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest.new + # request = Google::Analytics::Admin::V1alpha::GetEventCreateRuleRequest.new # - # # Call the list_connected_site_tags method. - # result = client.list_connected_site_tags request + # # Call the get_event_create_rule method. + # result = client.get_event_create_rule request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. # p result # - def list_connected_site_tags request, options = nil + 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::ListConnectedSiteTagsRequest + 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.list_connected_site_tags.metadata.to_h + 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 \ @@ -9493,15 +10681,15 @@ def list_connected_site_tags request, options = nil call_metadata[:"x-goog-api-version"] = API_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_connected_site_tags.timeout, + options.apply_defaults timeout: @config.rpcs.get_event_create_rule.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_connected_site_tags.retry_policy + 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.list_connected_site_tags request, options do |result, operation| + @analytics_admin_service_stub.get_event_create_rule request, options do |result, operation| yield result, operation if block_given? return result end @@ -9510,35 +10698,40 @@ def list_connected_site_tags request, options = nil end ## - # Given a specified UA property, looks up the GA4 property connected to it. - # Note: this cannot be used with GA4 properties. + # Lists EventCreateRules on a web data stream. # - # @overload fetch_connected_ga4_property(request, options = nil) - # Pass arguments to `fetch_connected_ga4_property` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest} or an equivalent Hash. + # @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::FetchConnectedGa4PropertyRequest, ::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 fetch_connected_ga4_property(property: nil) - # Pass arguments to `fetch_connected_ga4_property` via keyword arguments. Note that at + # @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 property [::String] - # Required. The UA property for which to look up the connected GA4 property. - # Note this request uses the - # internal property ID, not the tracking ID of the form UA-XXXXXX-YY. - # Format: properties/\\{internal_web_property_id} - # Example: properties/1234 + # @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 [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9549,24 +10742,28 @@ def list_connected_site_tags request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest.new + # request = Google::Analytics::Admin::V1alpha::ListEventCreateRulesRequest.new # - # # Call the fetch_connected_ga4_property method. - # result = client.fetch_connected_ga4_property request + # # Call the list_event_create_rules method. + # result = client.list_event_create_rules request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse. - # p result + # # 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 fetch_connected_ga4_property request, options = nil + 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::FetchConnectedGa4PropertyRequest + 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.fetch_connected_ga4_property.metadata.to_h + 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 \ @@ -9577,15 +10774,16 @@ def fetch_connected_ga4_property request, options = nil call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - options.apply_defaults timeout: @config.rpcs.fetch_connected_ga4_property.timeout, + options.apply_defaults timeout: @config.rpcs.list_event_create_rules.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.fetch_connected_ga4_property.retry_policy + 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.fetch_connected_ga4_property request, options do |result, operation| + @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? return result end @@ -9594,32 +10792,32 @@ def fetch_connected_ga4_property request, options = nil end ## - # Looks up a single AdSenseLink. + # Creates an EventCreateRule. # - # @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. + # @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::GetAdSenseLinkRequest, ::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 get_ad_sense_link(name: nil) - # Pass arguments to `get_ad_sense_link` via keyword arguments. Note that at + # @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 name [::String] - # Required. Unique identifier for the AdSense Link requested. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/5678 + # @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::AdSenseLink] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9630,24 +10828,24 @@ def fetch_connected_ga4_property request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateEventCreateRuleRequest.new # - # # Call the get_ad_sense_link method. - # result = client.get_ad_sense_link request + # # Call the create_event_create_rule method. + # result = client.create_event_create_rule request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. # p result # - def get_ad_sense_link request, options = nil + 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::GetAdSenseLinkRequest + 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.get_ad_sense_link.metadata.to_h + 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 \ @@ -9658,15 +10856,15 @@ def get_ad_sense_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_event_create_rule.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_ad_sense_link.retry_policy + 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.get_ad_sense_link request, options do |result, operation| + @analytics_admin_service_stub.create_event_create_rule request, options do |result, operation| yield result, operation if block_given? return result end @@ -9675,34 +10873,37 @@ def get_ad_sense_link request, options = nil end ## - # Creates an AdSenseLink. + # Updates an EventCreateRule. # - # @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. + # @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::CreateAdSenseLinkRequest, ::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 create_ad_sense_link(parent: nil, adsense_link: nil) - # Pass arguments to `create_ad_sense_link` via keyword arguments. Note that at + # @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 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 + # @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::AdSenseLink] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::AdSenseLink] + # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9713,24 +10914,24 @@ def get_ad_sense_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest.new # - # # Call the create_ad_sense_link method. - # result = client.create_ad_sense_link request + # # Call the update_event_create_rule method. + # result = client.update_event_create_rule request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::AdSenseLink. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. # p result # - def create_ad_sense_link request, options = nil + 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::CreateAdSenseLinkRequest + 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.create_ad_sense_link.metadata.to_h + 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 \ @@ -9741,15 +10942,15 @@ def create_ad_sense_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_event_create_rule.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_ad_sense_link.retry_policy + 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.create_ad_sense_link request, options do |result, operation| + @analytics_admin_service_stub.update_event_create_rule request, options do |result, operation| yield result, operation if block_given? return result end @@ -9758,27 +10959,26 @@ def create_ad_sense_link request, options = nil end ## - # Deletes an AdSenseLink. + # Deletes an EventCreateRule. # - # @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. + # @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::DeleteAdSenseLinkRequest, ::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_ad_sense_link(name: nil) - # Pass arguments to `delete_ad_sense_link` via keyword arguments. Note that at + # @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. Unique identifier for the AdSense Link to be deleted. - # Format: properties/\\{propertyId}/adSenseLinks/\\{linkId} - # Example: properties/1234/adSenseLinks/5678 + # 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] @@ -9794,24 +10994,24 @@ def create_ad_sense_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest.new # - # # Call the delete_ad_sense_link method. - # result = client.delete_ad_sense_link request + # # 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_ad_sense_link request, options = nil + 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::DeleteAdSenseLinkRequest + 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_ad_sense_link.metadata.to_h + 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 \ @@ -9822,15 +11022,15 @@ def delete_ad_sense_link request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.delete_event_create_rule.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_ad_sense_link.retry_policy + 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_ad_sense_link request, options do |result, operation| + @analytics_admin_service_stub.delete_event_create_rule request, options do |result, operation| yield result, operation if block_given? return result end @@ -9839,42 +11039,31 @@ def delete_ad_sense_link request, options = nil end ## - # Lists AdSenseLinks on a property. + # Lookup for a single EventEditRule. # - # @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. + # @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::ListAdSenseLinksRequest, ::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 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 + # @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 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. + # @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 [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AdSenseLink>] + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9885,28 +11074,24 @@ def delete_ad_sense_link request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::GetEventEditRuleRequest.new # - # # Call the list_ad_sense_links method. - # result = client.list_ad_sense_links request + # # Call the get_event_edit_rule method. + # result = client.get_event_edit_rule 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 + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + # p result # - def list_ad_sense_links request, options = nil + 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::ListAdSenseLinksRequest + 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.list_ad_sense_links.metadata.to_h + 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 \ @@ -9917,16 +11102,15 @@ def list_ad_sense_links request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.get_event_edit_rule.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_ad_sense_links.retry_policy + 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.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 + @analytics_admin_service_stub.get_event_edit_rule request, options do |result, operation| yield result, operation if block_given? return result end @@ -9935,31 +11119,40 @@ def list_ad_sense_links request, options = nil end ## - # Lookup for a single EventCreateRule. + # Lists EventEditRules on a web data stream. # - # @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. + # @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::GetEventCreateRuleRequest, ::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 get_event_create_rule(name: nil) - # Pass arguments to `get_event_create_rule` via keyword arguments. Note that at + # @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 name [::String] - # Required. The name of the EventCreateRule to get. - # Example format: properties/123/dataStreams/456/eventCreateRules/789 + # @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 [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventEditRule>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -9970,24 +11163,28 @@ def list_ad_sense_links request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ListEventEditRulesRequest.new # - # # Call the get_event_create_rule method. - # result = client.get_event_create_rule request + # # Call the list_event_edit_rules method. + # result = client.list_event_edit_rules request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. - # p result + # # 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 get_event_create_rule request, options = nil + 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::GetEventCreateRuleRequest + 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.get_event_create_rule.metadata.to_h + 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 \ @@ -9998,15 +11195,16 @@ def get_event_create_rule request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.list_event_edit_rules.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.get_event_create_rule.retry_policy + 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.get_event_create_rule request, options do |result, operation| + @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? return result end @@ -10015,40 +11213,32 @@ def get_event_create_rule request, options = nil end ## - # Lists EventCreateRules on a web data stream. + # Creates an EventEditRule. # - # @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. + # @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::ListEventCreateRulesRequest, ::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 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 + # @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 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. + # @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 [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Analytics::Admin::V1alpha::EventCreateRule>] + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -10059,28 +11249,24 @@ def get_event_create_rule request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::CreateEventEditRuleRequest.new # - # # Call the list_event_create_rules method. - # result = client.list_event_create_rules request + # # Call the create_event_edit_rule method. + # result = client.create_event_edit_rule 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 + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. + # p result # - def list_event_create_rules request, options = nil + 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::ListEventCreateRulesRequest + 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.list_event_create_rules.metadata.to_h + 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 \ @@ -10091,16 +11277,15 @@ def list_event_create_rules request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.create_event_edit_rule.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_event_create_rules.retry_policy + 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.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 + @analytics_admin_service_stub.create_event_edit_rule request, options do |result, operation| yield result, operation if block_given? return result end @@ -10109,32 +11294,37 @@ def list_event_create_rules request, options = nil end ## - # Creates an EventCreateRule. + # Updates an EventEditRule. # - # @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. + # @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::CreateEventCreateRuleRequest, ::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 create_event_create_rule(parent: nil, event_create_rule: nil) - # Pass arguments to `create_event_create_rule` via keyword arguments. Note that at + # @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 parent [::String] - # Required. Example format: properties/123/dataStreams/456 - # @param event_create_rule [::Google::Analytics::Admin::V1alpha::EventCreateRule, ::Hash] - # Required. The EventCreateRule to create. + # @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::EventCreateRule] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventEditRule] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @return [::Google::Analytics::Admin::V1alpha::EventEditRule] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -10145,24 +11335,24 @@ def list_event_create_rules request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::UpdateEventEditRuleRequest.new # - # # Call the create_event_create_rule method. - # result = client.create_event_create_rule request + # # Call the update_event_edit_rule method. + # result = client.update_event_edit_rule request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # # The returned object is of type Google::Analytics::Admin::V1alpha::EventEditRule. # p result # - def create_event_create_rule request, options = nil + 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::CreateEventCreateRuleRequest + 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.create_event_create_rule.metadata.to_h + 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 \ @@ -10173,15 +11363,15 @@ def create_event_create_rule request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.update_event_edit_rule.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_event_create_rule.retry_policy + 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.create_event_create_rule request, options do |result, operation| + @analytics_admin_service_stub.update_event_edit_rule request, options do |result, operation| yield result, operation if block_given? return result end @@ -10190,37 +11380,30 @@ def create_event_create_rule request, options = nil end ## - # Updates an EventCreateRule. + # Deletes an EventEditRule. # - # @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. + # @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::UpdateEventCreateRuleRequest, ::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 update_event_create_rule(event_create_rule: nil, update_mask: nil) - # Pass arguments to `update_event_create_rule` via keyword arguments. Note that at + # @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 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. + # @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::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @return [::Google::Protobuf::Empty] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -10231,24 +11414,24 @@ def create_event_create_rule request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::DeleteEventEditRuleRequest.new # - # # Call the update_event_create_rule method. - # result = client.update_event_create_rule request + # # Call the delete_event_edit_rule method. + # result = client.delete_event_edit_rule request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::EventCreateRule. + # # The returned object is of type Google::Protobuf::Empty. # p result # - def update_event_create_rule request, options = nil + 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::UpdateEventCreateRuleRequest + 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.update_event_create_rule.metadata.to_h + 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 \ @@ -10259,15 +11442,15 @@ def update_event_create_rule request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.delete_event_edit_rule.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.update_event_create_rule.retry_policy + 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.update_event_create_rule request, options do |result, operation| + @analytics_admin_service_stub.delete_event_edit_rule request, options do |result, operation| yield result, operation if block_given? return result end @@ -10276,26 +11459,29 @@ def update_event_create_rule request, options = nil end ## - # Deletes an EventCreateRule. + # Changes the processing order of event edit rules on the specified stream. # - # @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. + # @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::DeleteEventCreateRuleRequest, ::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 delete_event_create_rule(name: nil) - # Pass arguments to `delete_event_create_rule` via keyword arguments. Note that at + # @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 name [::String] - # Required. Example format: - # properties/123/dataStreams/456/eventCreateRules/789 + # @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] @@ -10311,24 +11497,24 @@ def update_event_create_rule request, options = nil # client = 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 + # request = Google::Analytics::Admin::V1alpha::ReorderEventEditRulesRequest.new # - # # Call the delete_event_create_rule method. - # result = client.delete_event_create_rule request + # # 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 delete_event_create_rule request, options = nil + 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::DeleteEventCreateRuleRequest + 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.delete_event_create_rule.metadata.to_h + 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 \ @@ -10339,15 +11525,15 @@ def delete_event_create_rule request, options = nil call_metadata[:"x-goog-api-version"] = API_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, + options.apply_defaults timeout: @config.rpcs.reorder_event_edit_rules.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.delete_event_create_rule.retry_policy + 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.delete_event_create_rule request, options do |result, operation| + @analytics_admin_service_stub.reorder_event_edit_rules request, options do |result, operation| yield result, operation if block_given? return result end @@ -11387,34 +12573,30 @@ def delete_rollup_property_source_link request, options = nil # Create a subproperty and a subproperty event filter that applies to the # created subproperty. # - # @overload create_subproperty(request, options = nil) - # Pass arguments to `create_subproperty` via a request object, either of type - # {::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest} or an equivalent Hash. + # @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::CreateSubpropertyRequest, ::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 create_subproperty(parent: nil, subproperty: nil, subproperty_event_filter: nil) - # Pass arguments to `create_subproperty` via keyword arguments. Note that at + # @overload provision_subproperty(subproperty: nil, subproperty_event_filter: 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 parent [::String] - # Required. The ordinary property for which to create a subproperty. - # Format: properties/property_id - # Example: properties/123 # @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. # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse] + # @return [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -11425,24 +12607,24 @@ def delete_rollup_property_source_link request, options = nil # client = Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest.new + # request = Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new # - # # Call the create_subproperty method. - # result = client.create_subproperty request + # # Call the provision_subproperty method. + # result = client.provision_subproperty request # - # # The returned object is of type Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse. + # # The returned object is of type Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse. # p result # - def create_subproperty request, options = nil + 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::CreateSubpropertyRequest + 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.create_subproperty.metadata.to_h + 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 \ @@ -11453,15 +12635,15 @@ def create_subproperty request, options = nil call_metadata[:"x-goog-api-version"] = API_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.timeout, + options.apply_defaults timeout: @config.rpcs.provision_subproperty.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.create_subproperty.retry_policy + 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.create_subproperty request, options do |result, operation| + @analytics_admin_service_stub.provision_subproperty request, options do |result, operation| yield result, operation if block_given? return result end @@ -12225,6 +13407,31 @@ class Rpcs # 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] # @@ -12535,6 +13742,11 @@ class Rpcs # attr_reader :fetch_automated_ga4_configuration_opt_out ## + # 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] # @@ -12545,6 +13757,16 @@ class Rpcs # 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] # @@ -12620,6 +13842,36 @@ class Rpcs # 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] # @@ -12680,10 +13932,10 @@ class Rpcs # attr_reader :delete_rollup_property_source_link ## - # RPC-specific configuration for `create_subproperty` + # RPC-specific configuration for `provision_subproperty` # @return [::Gapic::Config::Method] # - attr_reader :create_subproperty + attr_reader :provision_subproperty ## # RPC-specific configuration for `create_subproperty_event_filter` # @return [::Gapic::Config::Method] @@ -12790,6 +14042,16 @@ def initialize parent_rpcs = nil @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 @@ -12914,10 +14176,16 @@ def initialize parent_rpcs = nil @set_automated_ga4_configuration_opt_out = ::Gapic::Config::Method.new set_automated_ga4_configuration_opt_out_config fetch_automated_ga4_configuration_opt_out_config = parent_rpcs.fetch_automated_ga4_configuration_opt_out if parent_rpcs.respond_to? :fetch_automated_ga4_configuration_opt_out @fetch_automated_ga4_configuration_opt_out = ::Gapic::Config::Method.new fetch_automated_ga4_configuration_opt_out_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 @@ -12948,6 +14216,18 @@ def initialize parent_rpcs = nil @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 @@ -12972,8 +14252,8 @@ def initialize parent_rpcs = nil @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 - create_subproperty_config = parent_rpcs.create_subproperty if parent_rpcs.respond_to? :create_subproperty - @create_subproperty = ::Gapic::Config::Method.new create_subproperty_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 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 15c5fd1fe023..e0abd4ceee40 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 @@ -1543,6 +1543,196 @@ def list_conversion_events request_pb, options = nil result 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::KeyEvent.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListKeyEventsResponse.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + end + ## # Baseline implementation for the get_display_video360_advertiser_link REST call # @@ -3899,6 +4089,44 @@ def fetch_automated_ga4_configuration_opt_out request_pb, options = nil result 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + end + ## # Baseline implementation for the get_big_query_link REST call # @@ -3975,6 +4203,82 @@ def list_big_query_links request_pb, options = nil result 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + end + ## # Baseline implementation for the get_enhanced_measurement_settings REST call # @@ -4443,12 +4747,240 @@ def list_event_create_rules request_pb, options = nil # @yieldparam result [::Google::Analytics::Admin::V1alpha::EventCreateRule] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::ListEventEditRulesResponse.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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, + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true + + yield result, operation if block_given? + result + 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 create_event_create_rule request_pb, options = nil + 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_create_event_create_rule_request request_pb + 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 @@ -4463,30 +4995,30 @@ def create_event_create_rule request_pb, options = nil options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Analytics::Admin::V1alpha::EventEditRule.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## - # Baseline implementation for the update_event_create_rule REST call + # Baseline implementation for the delete_event_edit_rule REST call # - # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEventCreateRuleRequest] + # @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::Analytics::Admin::V1alpha::EventCreateRule] + # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::EventCreateRule] + # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply - def update_event_create_rule request_pb, options = nil + 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_update_event_create_rule_request request_pb + 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 @@ -4501,16 +5033,16 @@ def update_event_create_rule request_pb, options = nil options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::EventCreateRule.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## - # Baseline implementation for the delete_event_create_rule REST call + # Baseline implementation for the reorder_event_edit_rules REST call # - # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteEventCreateRuleRequest] + # @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. @@ -4521,10 +5053,10 @@ def update_event_create_rule request_pb, options = nil # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply - def delete_event_create_rule request_pb, options = nil + 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_delete_event_create_rule_request request_pb + 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 @@ -5002,23 +5534,23 @@ def delete_rollup_property_source_link request_pb, options = nil end ## - # Baseline implementation for the create_subproperty REST call + # Baseline implementation for the provision_subproperty REST call # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest] + # @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::CreateSubpropertyResponse] + # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse] + # @return [::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse] # A result object deserialized from the server's reply - def create_subproperty request_pb, options = nil + 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_create_subproperty_request request_pb + 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 @@ -5033,7 +5565,7 @@ def create_subproperty request_pb, options = nil options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result @@ -6054,6 +6586,113 @@ def self.transcode_list_conversion_events_request request_pb 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 # @@ -7460,6 +8099,28 @@ def self.transcode_fetch_automated_ga4_configuration_opt_out_request request_pb 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 # @@ -7502,6 +8163,49 @@ def self.transcode_list_big_query_links_request request_pb 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 # @@ -7816,6 +8520,135 @@ def self.transcode_delete_event_create_rule_request request_pb 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 # @@ -8074,17 +8907,17 @@ def self.transcode_delete_rollup_property_source_link_request request_pb ## # @private # - # GRPC transcoding helper method for the create_subproperty REST call + # GRPC transcoding helper method for the provision_subproperty REST call # - # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest] + # @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_create_subproperty_request request_pb + def self.transcode_provision_subproperty_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, - uri_template: "/v1alpha/properties:createSubproperty", + uri_template: "/v1alpha/properties:provisionSubproperty", body: "*", matches: [] ) 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 a6e9da87b61a..ab81578805b8 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 @@ -142,18 +142,34 @@ class Service 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. @@ -316,10 +332,16 @@ class Service # property. # Note: this has no effect on GA4 property. rpc :FetchAutomatedGa4ConfigurationOptOut, ::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest, ::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse + # 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. @@ -360,6 +382,18 @@ class Service 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. @@ -394,7 +428,7 @@ class Service 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 :CreateSubproperty, ::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest, ::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse + 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. diff --git a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb index 4a68d6d1713f..e271ce5e6ee1 100644 --- a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb +++ b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/audience_pb.rb @@ -7,9 +7,10 @@ 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\"\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\"\x9e\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\"\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" +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 @@ -25,6 +26,7 @@ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" imports = [ ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], ] imports.each do |type_name, expected_filename| import_file = pool.lookup(type_name).file_descriptor diff --git a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb index 6e10b7b703ec..1ef499ca69e9 100644 --- a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb +++ b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/channel_group_pb.rb @@ -8,7 +8,7 @@ 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\"\x9e\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: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" +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 diff --git a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb index 70ea7e9516ed..609697cd2d48 100644 --- a/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb +++ b/google-analytics-admin-v1alpha/lib/google/analytics/admin/v1alpha/event_create_and_edit_pb.rb @@ -8,7 +8,7 @@ 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}\"\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" +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 @@ -40,6 +40,7 @@ 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 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 a72bbadcd9a0..132629402304 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 @@ -14,7 +14,7 @@ require 'google/protobuf/wrappers_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\"\x8e\x02\n\x07\x41\x63\x63ount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:>\xea\x41;\n%analyticsadmin.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}\"\xb9\x05\n\x08Property\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:B\xea\x41?\n&analyticsadmin.googleapis.com/Property\x12\x15properties/{property}\"\xf4\x07\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\x03\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:^\xea\x41[\n(analyticsadmin.googleapis.com/DataStream\x12/properties/{property}/dataStreams/{data_stream}B\r\n\x0bstream_data\"\xd3\x01\n\x0c\x46irebaseLink\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:d\xea\x41\x61\n*analyticsadmin.googleapis.com/FirebaseLink\x12\x33properties/{property}/firebaseLinks/{firebase_link}\"\xa9\x01\n\rGlobalSiteTag\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07snippet\x18\x02 \x01(\tB\x03\xe0\x41\x05:o\xea\x41l\n+analyticsadmin.googleapis.com/GlobalSiteTag\x12=properties/{property}/dataStreams/{data_stream}/globalSiteTag\"\x98\x03\n\rGoogleAdsLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:h\xea\x41\x65\n+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x36properties/{property}/googleAdsLinks/{google_ads_link}\"\xeb\x02\n\x13\x44\x61taSharingSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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-\n%sharing_with_google_any_sales_enabled\x18\x04 \x01(\x08\x12,\n$sharing_with_google_products_enabled\x18\x05 \x01(\x08\x12#\n\x1bsharing_with_others_enabled\x18\x06 \x01(\x08:^\xea\x41[\n1analyticsadmin.googleapis.com/DataSharingSettings\x12&accounts/{account}/dataSharingSettings\"\x95\x02\n\x0e\x41\x63\x63ountSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\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:U\xea\x41R\n,analyticsadmin.googleapis.com/AccountSummary\x12\"accountSummaries/{account_summary}\"\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\"\x8e\x02\n\x19MeasurementProtocolSecret\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\x19\n\x0csecret_value\x18\x03 \x01(\tB\x03\xe0\x41\x03:\xa7\x01\xea\x41\xa3\x01\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\x12hproperties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}\"\x83\x04\n SKAdNetworkConversionValueSchema\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:\xbc\x01\xea\x41\xb8\x01\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12vproperties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}\"\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\"\xdf\x12\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\xa4\x10\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\x12M\n\x11\x63\x61lculated_metric\x18\x1f \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricH\x00\x42\n\n\x08resource\"\xdf\x03\n\x1d\x44isplayVideo360AdvertiserLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:\x9b\x01\xea\x41\x97\x01\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12Xproperties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}\"\x8a\x05\n%DisplayVideo360AdvertiserLinkProposal\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:\xb4\x01\xea\x41\xb0\x01\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12iproperties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}\"\xe8\x03\n\x10SearchAds360Link\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:r\xea\x41o\n.analyticsadmin.googleapis.com/SearchAds360Link\x12=properties/{property}/searchAds360Links/{search_ads_360_link}\"\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\"\xe0\x05\n\x0f\x43onversionEvent\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\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:m\xea\x41j\n-analyticsadmin.googleapis.com/ConversionEvent\x12\x39properties/{property}/conversionEvents/{conversion_event}B\x1b\n\x19_default_conversion_value\"\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\"\xbc\x03\n\x0f\x43ustomDimension\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:m\xea\x41j\n-analyticsadmin.googleapis.com/CustomDimension\x12\x39properties/{property}/customDimensions/{custom_dimension}\"\xc5\x06\n\x0c\x43ustomMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:d\xea\x41\x61\n*analyticsadmin.googleapis.com/CustomMetric\x12\x33properties/{property}/customMetrics/{custom_metric}\"\xa7\x06\n\x10\x43\x61lculatedMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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\"\xc2\x03\n\x15\x44\x61taRetentionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x65\n\x14\x65vent_data_retention\x18\x02 \x01(\x0e\x32G.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration\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:e\xea\x41\x62\n3analyticsadmin.googleapis.com/DataRetentionSettings\x12+properties/{property}/dataRetentionSettings\"\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\"\x88\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: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\"B\n\x10\x43onnectedSiteTag\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06tag_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\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*\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*\xa2\x05\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!\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\x15\n\x11\x43\x41LCULATED_METRIC\x10\x1f*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\x42v\n\"com.google.analytics.admin.v1alphaB\x0eResourcesProtoP\x01Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbb\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\"\xe4\x02\n\x07\x41\x63\x63ount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:>\xea\x41;\n%analyticsadmin.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}\"\xb9\x05\n\x08Property\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:B\xea\x41?\n&analyticsadmin.googleapis.com/Property\x12\x15properties/{property}\"\xf4\x07\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\x03\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:^\xea\x41[\n(analyticsadmin.googleapis.com/DataStream\x12/properties/{property}/dataStreams/{data_stream}B\r\n\x0bstream_data\"\xd3\x01\n\x0c\x46irebaseLink\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:d\xea\x41\x61\n*analyticsadmin.googleapis.com/FirebaseLink\x12\x33properties/{property}/firebaseLinks/{firebase_link}\"\xa9\x01\n\rGlobalSiteTag\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07snippet\x18\x02 \x01(\tB\x03\xe0\x41\x05:o\xea\x41l\n+analyticsadmin.googleapis.com/GlobalSiteTag\x12=properties/{property}/dataStreams/{data_stream}/globalSiteTag\"\x98\x03\n\rGoogleAdsLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:h\xea\x41\x65\n+analyticsadmin.googleapis.com/GoogleAdsLink\x12\x36properties/{property}/googleAdsLinks/{google_ads_link}\"\xeb\x02\n\x13\x44\x61taSharingSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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-\n%sharing_with_google_any_sales_enabled\x18\x04 \x01(\x08\x12,\n$sharing_with_google_products_enabled\x18\x05 \x01(\x08\x12#\n\x1bsharing_with_others_enabled\x18\x06 \x01(\x08:^\xea\x41[\n1analyticsadmin.googleapis.com/DataSharingSettings\x12&accounts/{account}/dataSharingSettings\"\x95\x02\n\x0e\x41\x63\x63ountSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\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:U\xea\x41R\n,analyticsadmin.googleapis.com/AccountSummary\x12\"accountSummaries/{account_summary}\"\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\"\x8e\x02\n\x19MeasurementProtocolSecret\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\x19\n\x0csecret_value\x18\x03 \x01(\tB\x03\xe0\x41\x03:\xa7\x01\xea\x41\xa3\x01\n7analyticsadmin.googleapis.com/MeasurementProtocolSecret\x12hproperties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}\"\x83\x04\n SKAdNetworkConversionValueSchema\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:\xbc\x01\xea\x41\xb8\x01\n>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\x12vproperties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}\"\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\"\xdf\x12\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\xa4\x10\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\x12M\n\x11\x63\x61lculated_metric\x18\x1f \x01(\x0b\x32\x30.google.analytics.admin.v1alpha.CalculatedMetricH\x00\x42\n\n\x08resource\"\xdf\x03\n\x1d\x44isplayVideo360AdvertiserLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:\x9b\x01\xea\x41\x97\x01\n;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\x12Xproperties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}\"\x8a\x05\n%DisplayVideo360AdvertiserLinkProposal\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:\xb4\x01\xea\x41\xb0\x01\nCanalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\x12iproperties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}\"\xe8\x03\n\x10SearchAds360Link\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:r\xea\x41o\n.analyticsadmin.googleapis.com/SearchAds360Link\x12=properties/{property}/searchAds360Links/{search_ads_360_link}\"\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\"\xe0\x05\n\x0f\x43onversionEvent\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\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:m\xea\x41j\n-analyticsadmin.googleapis.com/ConversionEvent\x12\x39properties/{property}/conversionEvents/{conversion_event}B\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\"\xbc\x03\n\x0f\x43ustomDimension\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:m\xea\x41j\n-analyticsadmin.googleapis.com/CustomDimension\x12\x39properties/{property}/customDimensions/{custom_dimension}\"\xc5\x06\n\x0c\x43ustomMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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:d\xea\x41\x61\n*analyticsadmin.googleapis.com/CustomMetric\x12\x33properties/{property}/customMetrics/{custom_metric}\"\xa7\x06\n\x10\x43\x61lculatedMetric\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\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\"\xc2\x03\n\x15\x44\x61taRetentionSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x65\n\x14\x65vent_data_retention\x18\x02 \x01(\x0e\x32G.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration\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:e\xea\x41\x62\n3analyticsadmin.googleapis.com/DataRetentionSettings\x12+properties/{property}/dataRetentionSettings\"\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\"B\n\x10\x43onnectedSiteTag\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06tag_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\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*\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*\xb5\x05\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\x15\n\x11\x43\x41LCULATED_METRIC\x10\x1f*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 @@ -78,6 +78,9 @@ module V1alpha 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 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 0ee8c1424e91..c141c92559c8 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 @@ -353,7 +353,8 @@ class DeletePropertyRequest # @!attribute [rw] parent # @return [::String] # Required. Format: properties/\\{property_id} - # Example: properties/1234 + # + # Example: `properties/1234` # @!attribute [rw] firebase_link # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] # Required. The Firebase link to create. @@ -366,7 +367,8 @@ class CreateFirebaseLinkRequest # @!attribute [rw] name # @return [::String] # Required. Format: properties/\\{property_id}/firebaseLinks/\\{firebase_link_id} - # Example: properties/1234/firebaseLinks/5678 + # + # Example: `properties/1234/firebaseLinks/5678` class DeleteFirebaseLinkRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -376,7 +378,8 @@ class DeleteFirebaseLinkRequest # @!attribute [rw] parent # @return [::String] # Required. Format: properties/\\{property_id} - # Example: properties/1234 + # + # Example: `properties/1234` # @!attribute [rw] page_size # @return [::Integer] # The maximum number of resources to return. The service may return @@ -415,7 +418,8 @@ class ListFirebaseLinksResponse # 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" + # + # Example: `properties/123/dataStreams/456/globalSiteTag` class GetGlobalSiteTagRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -496,7 +500,8 @@ class ListGoogleAdsLinksResponse # @return [::String] # Required. The name of the settings to lookup. # Format: accounts/\\{account}/dataSharingSettings - # Example: "accounts/1000/dataSharingSettings" + # + # Example: `accounts/1000/dataSharingSettings` class GetDataSharingSettingsRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -562,13 +567,16 @@ class AcknowledgeUserDataCollectionResponse # @!attribute [rw] account # @return [::String] # Required. The account resource for which to return change history - # resources. Format: accounts/\\{account} Example: "accounts/100" + # 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" + # + # 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 @@ -902,6 +910,91 @@ class ListConversionEventsResponse 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] + # 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 `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] @@ -2025,6 +2118,18 @@ class FetchAutomatedGa4ConfigurationOptOutResponse 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] @@ -2072,6 +2177,32 @@ class ListBigQueryLinksResponse 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] @@ -2368,6 +2499,103 @@ class ListEventCreateRulesResponse 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] @@ -2466,30 +2694,25 @@ class DeleteRollupPropertySourceLinkRequest end # Request message for CreateSubproperty RPC. - # @!attribute [rw] parent - # @return [::String] - # Required. The ordinary property for which to create a subproperty. - # Format: properties/property_id - # Example: properties/123 # @!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. - class CreateSubpropertyRequest + class ProvisionSubpropertyRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end - # Response message for CreateSubproperty RPC. + # 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 CreateSubpropertyResponse + class ProvisionSubpropertyResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end diff --git a/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb b/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb index 320e21947ccb..4e302a858e63 100644 --- a/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb +++ b/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/audience.rb @@ -376,6 +376,9 @@ module LogCondition # @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 diff --git a/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb b/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb index f4f077deb711..3bbdb9af8caa 100644 --- a/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb +++ b/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/channel_group.rb @@ -149,6 +149,14 @@ class GroupingRule # 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 diff --git a/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb b/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb index ad4035b06825..6ef4d58c3f72 100644 --- a/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb +++ b/google-analytics-admin-v1alpha/proto_docs/google/analytics/admin/v1alpha/event_create_and_edit.rb @@ -86,6 +86,45 @@ class EventCreateRule 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 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 fb58f8f4eeae..1e0fb2d13525 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 @@ -43,6 +43,11 @@ module V1alpha # @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 @@ -865,6 +870,73 @@ module ConversionCountingMethod 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] @@ -1358,6 +1430,11 @@ class AccessBinding # @!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 @@ -1680,6 +1757,9 @@ module ChangeHistoryResourceType # ChannelGroup resource CHANNEL_GROUP = 22 + # BigQuery link resource + BIGQUERY_LINK = 23 + # EnhancedMeasurementSettings resource ENHANCED_MEASUREMENT_SETTINGS = 24 diff --git a/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb new file mode 100644 index 000000000000..7e247e63396d --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_big_query_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb new file mode 100644 index 000000000000..ef288a2c50af --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_event_edit_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb similarity index 80% rename from google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty.rb rename to google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb index 49190d740417..8e4d0cd2b343 100644 --- a/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_subproperty.rb +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/create_key_event.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,11 +16,11 @@ # Auto-generated by gapic-generator-ruby. DO NOT EDIT! -# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubproperty_sync] +# [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_sync] require "google/analytics/admin/v1alpha" ## -# Snippet for the create_subproperty call in the AnalyticsAdminService service +# 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: @@ -29,19 +29,19 @@ # client as shown 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. +# Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_key_event. # -def create_subproperty +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::CreateSubpropertyRequest.new + request = Google::Analytics::Admin::V1alpha::CreateKeyEventRequest.new - # Call the create_subproperty method. - result = client.create_subproperty request + # Call the create_key_event method. + result = client.create_key_event request - # The returned object is of type Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse. + # The returned object is of type Google::Analytics::Admin::V1alpha::KeyEvent. p result end -# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubproperty_sync] +# [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_sync] diff --git a/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb new file mode 100644 index 000000000000..3e3fee7887d9 --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_big_query_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb new file mode 100644 index 000000000000..c904a7773a98 --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_event_edit_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb new file mode 100644 index 000000000000..3e987b81fdc4 --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/delete_key_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb new file mode 100644 index 000000000000..887ad7c81dbf --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_event_edit_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb new file mode 100644 index 000000000000..642b080ffb9c --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/get_key_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb new file mode 100644 index 000000000000..e4212bb9e2c4 --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_event_edit_rules.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb new file mode 100644 index 000000000000..a5aed62c90d6 --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/list_key_events.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb new file mode 100644 index 000000000000..2c086958fed5 --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/provision_subproperty.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb new file mode 100644 index 000000000000..843eab51ad04 --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/reorder_event_edit_rules.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb new file mode 100644 index 000000000000..c6aa7b59484f --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_big_query_link.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb new file mode 100644 index 000000000000..b487d2b2a95c --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_event_edit_rule.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb new file mode 100644 index 000000000000..efa07d0907fe --- /dev/null +++ b/google-analytics-admin-v1alpha/snippets/analytics_admin_service/update_key_event.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for 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/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 9fa90386ee53..a7e3d930f3ca 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 @@ -1571,6 +1571,206 @@ } ] }, + { + "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", @@ -4051,6 +4251,46 @@ } ] }, + { + "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", @@ -4131,6 +4371,86 @@ } ] }, + { + "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", @@ -4731,6 +5051,246 @@ } ] }, + { + "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", @@ -5212,29 +5772,29 @@ ] }, { - "region_tag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubproperty_sync", - "title": "Snippet for the create_subproperty call in the AnalyticsAdminService service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_subproperty.", - "file": "analytics_admin_service/create_subproperty.rb", + "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": "create_subproperty", - "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#create_subproperty", + "short_name": "provision_subproperty", + "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client#provision_subproperty", "async": false, "parameters": [ { - "type": "::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest", + "type": "::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest", "name": "request" } ], - "result_type": "::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse", + "result_type": "::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyResponse", "client": { "short_name": "AnalyticsAdminService::Client", "full_name": "::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client" }, "method": { - "short_name": "CreateSubproperty", - "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSubproperty", + "short_name": "ProvisionSubproperty", + "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionSubproperty", "service": { "short_name": "AnalyticsAdminService", "full_name": "google.analytics.admin.v1alpha.AnalyticsAdminService" diff --git a/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb b/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb index 5b8292a16888..4de3d4231c8b 100644 --- a/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb +++ b/google-analytics-admin-v1alpha/test/google/analytics/admin/v1alpha/analytics_admin_service_paths_test.rb @@ -264,6 +264,18 @@ def test_event_create_rule_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 @@ -324,6 +336,18 @@ def test_google_signals_settings_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 @@ -336,6 +360,18 @@ def test_measurement_protocol_secret_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 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 02df9c071bd8..e6dc9eb87f47 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 @@ -2214,6 +2214,280 @@ def test_list_conversion_events 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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_key_event({ key_event: key_event, parent: parent }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_key_event key_event: key_event, parent: parent do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.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 + client.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 + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_key_event({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_key_event name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.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 + client.get_key_event({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_key_event({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_key_event name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.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 + client.delete_key_event({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 @@ -5619,7 +5893,7 @@ def test_fetch_automated_ga4_configuration_opt_out end end - def test_get_big_query_link + 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 @@ -5627,104 +5901,268 @@ def test_get_big_query_link call_options = {} # Create request parameters for a unary method. - name = "hello world" + parent = "hello world" + bigquery_link = {} - get_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:| + create_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:| assert options.metadata.key? :"x-goog-api-client" assert options.metadata[:"x-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 + ::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 client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| config.credentials = :dummy_value end # Use hash object - client.get_big_query_link({ name: name }) do |_result, response| + client.create_big_query_link({ parent: parent, bigquery_link: bigquery_link }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - client.get_big_query_link name: name do |_result, response| + client.create_big_query_link parent: parent, bigquery_link: bigquery_link do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - client.get_big_query_link ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name) do |_result, response| + client.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 - client.get_big_query_link({ name: name }, call_options) do |_result, response| + client.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 - client.get_big_query_link(::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name), call_options) do |_result, response| + client.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, get_big_query_link_client_stub.call_count + assert_equal 5, create_big_query_link_client_stub.call_count end end end - def test_list_big_query_links + def test_get_big_query_link # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse.new + 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" - page_size = 42 - page_token = "hello world" + name = "hello world" - list_big_query_links_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:| + get_big_query_link_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:| assert options.metadata.key? :"x-goog-api-client" assert options.metadata[:"x-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 + ::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 client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| config.credentials = :dummy_value end # Use hash object - client.list_big_query_links({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + client.get_big_query_link({ name: name }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - client.list_big_query_links parent: parent, page_size: page_size, page_token: page_token do |_result, response| + client.get_big_query_link name: name do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - client.list_big_query_links ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + client.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 - client.list_big_query_links({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + client.get_big_query_link({ name: name }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - client.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| + client.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, list_big_query_links_client_stub.call_count + 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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_big_query_link({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_big_query_link name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.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 + client.delete_big_query_link({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 @@ -6549,6 +6987,335 @@ def test_delete_event_create_rule 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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_event_edit_rule({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_event_edit_rule name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.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 + client.get_event_edit_rule({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_event_edit_rule({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_event_edit_rule name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.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 + client.delete_event_edit_rule({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.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:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 @@ -7207,58 +7974,57 @@ def test_delete_rollup_property_source_link end end - def test_create_subproperty + def test_provision_subproperty # Create test objects. - client_result = ::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse.new + 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. - parent = "hello world" subproperty = {} subproperty_event_filter = {} - create_subproperty_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:| + provision_subproperty_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:| assert options.metadata.key? :"x-goog-api-client" assert options.metadata[:"x-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_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_subproperty_client_stub do + ::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 client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Rest::Client.new do |config| config.credentials = :dummy_value end # Use hash object - client.create_subproperty({ parent: parent, subproperty: subproperty, subproperty_event_filter: subproperty_event_filter }) do |_result, response| + client.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - client.create_subproperty parent: parent, subproperty: subproperty, subproperty_event_filter: subproperty_event_filter do |_result, response| + client.provision_subproperty subproperty: subproperty, subproperty_event_filter: subproperty_event_filter do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - client.create_subproperty ::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest.new(parent: parent, subproperty: subproperty, subproperty_event_filter: subproperty_event_filter) do |_result, response| + client.provision_subproperty ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, subproperty_event_filter: subproperty_event_filter) do |_result, response| assert_equal http_response, response.underlying_op end # Use hash object with options - client.create_subproperty({ parent: parent, subproperty: subproperty, subproperty_event_filter: subproperty_event_filter }, call_options) do |_result, response| + client.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - client.create_subproperty(::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest.new(parent: parent, subproperty: subproperty, subproperty_event_filter: subproperty_event_filter), call_options) do |_result, response| + client.provision_subproperty(::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, 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_client_stub.call_count + assert_equal 5, provision_subproperty_client_stub.call_count end end end 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 f25654e58d12..5fcc2f245d9a 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 @@ -2438,6 +2438,309 @@ def test_list_conversion_events 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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_key_event({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_key_event name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.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 + client.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 + client.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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_key_event({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_key_event name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.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 + client.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 + client.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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 @@ -6198,7 +6501,7 @@ def test_fetch_automated_ga4_configuration_opt_out end end - def test_get_big_query_link + def test_create_big_query_link # Create GRPC objects. grpc_response = ::Google::Analytics::Admin::V1alpha::BigQueryLink.new grpc_operation = GRPC::ActiveCall::Operation.new nil @@ -6206,57 +6509,117 @@ def test_get_big_query_link grpc_options = {} # Create request parameters for a unary method. - name = "hello world" + parent = "hello world" + bigquery_link = {} - 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"] + 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, get_big_query_link_client_stub do + Gapic::ServiceStub.stub :new, create_big_query_link_client_stub do # Create client client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| config.credentials = grpc_channel end # Use hash object - client.get_big_query_link({ name: name }) do |response, operation| + client.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 - client.get_big_query_link name: name do |response, operation| + client.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 - client.get_big_query_link ::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name) do |response, operation| + client.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 - client.get_big_query_link({ name: name }, grpc_options) do |response, operation| + client.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 - client.get_big_query_link(::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest.new(name: name), grpc_options) do |response, operation| + client.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, get_big_query_link_client_stub.call_rpc_count + assert_equal 5, create_big_query_link_client_stub.call_rpc_count end end - def test_list_big_query_links + 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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_big_query_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_big_query_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.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 + client.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 + client.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 @@ -6323,6 +6686,124 @@ def test_list_big_query_links 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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_big_query_link({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_big_query_link name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.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 + client.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 + client.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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 @@ -7223,6 +7704,369 @@ def test_delete_event_create_rule 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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_event_edit_rule({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_event_edit_rule name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.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 + client.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 + client.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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_event_edit_rule({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_event_edit_rule name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.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 + client.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 + client.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 + client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.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 + client.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 + client.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 + client.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 + client.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 @@ -7949,65 +8793,63 @@ def test_delete_rollup_property_source_link end end - def test_create_subproperty + def test_provision_subproperty # Create GRPC objects. - grpc_response = ::Google::Analytics::Admin::V1alpha::CreateSubpropertyResponse.new + 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. - parent = "hello world" subproperty = {} subproperty_event_filter = {} - create_subproperty_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_subproperty, name - assert_kind_of ::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest, request - assert_equal "hello world", request["parent"] + 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"] refute_nil options end - Gapic::ServiceStub.stub :new, create_subproperty_client_stub do + Gapic::ServiceStub.stub :new, provision_subproperty_client_stub do # Create client client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config| config.credentials = grpc_channel end # Use hash object - client.create_subproperty({ parent: parent, subproperty: subproperty, subproperty_event_filter: subproperty_event_filter }) do |response, operation| + client.provision_subproperty({ subproperty: subproperty, subproperty_event_filter: subproperty_event_filter }) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use named arguments - client.create_subproperty parent: parent, subproperty: subproperty, subproperty_event_filter: subproperty_event_filter do |response, operation| + client.provision_subproperty subproperty: subproperty, subproperty_event_filter: subproperty_event_filter do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object - client.create_subproperty ::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest.new(parent: parent, subproperty: subproperty, subproperty_event_filter: subproperty_event_filter) do |response, operation| + client.provision_subproperty ::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, 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 - client.create_subproperty({ parent: parent, subproperty: subproperty, subproperty_event_filter: subproperty_event_filter }, grpc_options) do |response, operation| + client.provision_subproperty({ subproperty: subproperty, 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 - client.create_subproperty(::Google::Analytics::Admin::V1alpha::CreateSubpropertyRequest.new(parent: parent, subproperty: subproperty, subproperty_event_filter: subproperty_event_filter), grpc_options) do |response, operation| + client.provision_subproperty(::Google::Analytics::Admin::V1alpha::ProvisionSubpropertyRequest.new(subproperty: subproperty, 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_client_stub.call_rpc_count + assert_equal 5, provision_subproperty_client_stub.call_rpc_count end end