diff --git a/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php b/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php
index 1e29638998ba..468b667bec6e 100644
--- a/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php
+++ b/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php
@@ -30,7 +30,7 @@ public static function initOnce() {
\GPBMetadata\Google\Protobuf\Timestamp::initOnce();
$pool->internalAddGeneratedFile(
'
-ÁÀ
+Úæ
4google/analytics/admin/v1alpha/analytics_admin.protogoogle.analytics.admin.v1alpha-google/analytics/admin/v1alpha/audience.proto2google/analytics/admin/v1alpha/channel_group.proto:google/analytics/admin/v1alpha/event_create_and_edit.proto6google/analytics/admin/v1alpha/expanded_data_set.proto.google/analytics/admin/v1alpha/resources.proto=google/analytics/admin/v1alpha/subproperty_event_filter.protogoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"à
RunAccessReportRequest
entity ( C
@@ -227,6 +227,27 @@ public static function initOnce() {
page_token ( "ƒ
ListConversionEventsResponseJ
conversion_events (2/.google.analytics.admin.v1alpha.ConversionEvent
+next_page_token ( "™
+CreateKeyEventRequest@
+ key_event (2(.google.analytics.admin.v1alpha.KeyEventBàA>
+parent ( B.àAúA(&analyticsadmin.googleapis.com/KeyEvent"
+UpdateKeyEventRequest@
+ key_event (2(.google.analytics.admin.v1alpha.KeyEventBàA4
+update_mask (2.google.protobuf.FieldMaskBàA"R
+GetKeyEventRequest<
+name ( B.àAúA(
+&analyticsadmin.googleapis.com/KeyEvent"U
+DeleteKeyEventRequest<
+name ( B.àAúA(
+&analyticsadmin.googleapis.com/KeyEvent"}
+ListKeyEventsRequest>
+parent ( B.àAúA(&analyticsadmin.googleapis.com/KeyEvent
+ page_size (
+
+page_token ( "n
+ListKeyEventsResponse<
+
+key_events (2(.google.analytics.admin.v1alpha.KeyEvent
next_page_token ( "|
\'GetDisplayVideo360AdvertiserLinkRequestQ
name ( BCàAúA=
@@ -490,7 +511,10 @@ public static function initOnce() {
+FetchAutomatedGa4ConfigurationOptOutRequest
property ( BàA"?
,FetchAutomatedGa4ConfigurationOptOutResponse
-opt_out ("Z
+opt_out ("©
+CreateBigQueryLinkRequestB
+parent ( B2àAúA,*analyticsadmin.googleapis.com/BigQueryLinkH
+
bigquery_link (2,.google.analytics.admin.v1alpha.BigQueryLinkBàA"Z
GetBigQueryLinkRequest@
name ( B2àAúA,
*analyticsadmin.googleapis.com/BigQueryLink"…
@@ -501,7 +525,13 @@ public static function initOnce() {
page_token ( "z
ListBigQueryLinksResponseD
bigquery_links (2,.google.analytics.admin.v1alpha.BigQueryLink
-next_page_token ( "x
+next_page_token ( "›
+UpdateBigQueryLinkRequestH
+
bigquery_link (2,.google.analytics.admin.v1alpha.BigQueryLinkBàA4
+update_mask (2.google.protobuf.FieldMaskBàA"]
+DeleteBigQueryLinkRequest@
+name ( B2àAúA,
+*analyticsadmin.googleapis.com/BigQueryLink"x
%GetEnhancedMeasurementSettingsRequestO
name ( BAàAúA;
9analyticsadmin.googleapis.com/EnhancedMeasurementSettings"É
@@ -567,7 +597,30 @@ public static function initOnce() {
page_token ( "„
ListEventCreateRulesResponseK
event_create_rules (2/.google.analytics.admin.v1alpha.EventCreateRule
-next_page_token ( "…
+next_page_token ( "®
+CreateEventEditRuleRequestC
+parent ( B3àAúA-+analyticsadmin.googleapis.com/EventEditRuleK
+event_edit_rule (2-.google.analytics.admin.v1alpha.EventEditRuleBàA"Ÿ
+UpdateEventEditRuleRequestK
+event_edit_rule (2-.google.analytics.admin.v1alpha.EventEditRuleBàA4
+update_mask (2.google.protobuf.FieldMaskBàA"_
+DeleteEventEditRuleRequestA
+name ( B3àAúA-
++analyticsadmin.googleapis.com/EventEditRule"\\
+GetEventEditRuleRequestA
+name ( B3àAúA-
++analyticsadmin.googleapis.com/EventEditRule"‘
+ListEventEditRulesRequestC
+parent ( B3àAúA-+analyticsadmin.googleapis.com/EventEditRule
+ page_size (BàA
+
+page_token ( BàA"~
+ListEventEditRulesResponseG
+event_edit_rules (2-.google.analytics.admin.v1alpha.EventEditRule
+next_page_token ( "‚
+ReorderEventEditRulesRequestC
+parent ( B3àAúA-+analyticsadmin.googleapis.com/EventEditRule
+event_edit_rules ( BàA"…
CreateRollupPropertyRequestF
rollup_property (2(.google.analytics.admin.v1alpha.PropertyBàA
source_properties ( BàA"Á
@@ -590,13 +643,11 @@ public static function initOnce() {
rollup_property_source_link (28.google.analytics.admin.v1alpha.RollupPropertySourceLinkBàA"u
%DeleteRollupPropertySourceLinkRequestL
name ( B>àAúA8
-6analyticsadmin.googleapis.com/RollupPropertySourceLink"ý
-CreateSubpropertyRequest>
-parent ( B.àAúA(
-&analyticsadmin.googleapis.com/PropertyB
+6analyticsadmin.googleapis.com/RollupPropertySourceLink"À
+ProvisionSubpropertyRequestB
subproperty (2(.google.analytics.admin.v1alpha.PropertyBàA]
-subproperty_event_filter (26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA"´
-CreateSubpropertyResponse=
+subproperty_event_filter (26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA"·
+ProvisionSubpropertyResponse=
subproperty (2(.google.analytics.admin.v1alpha.PropertyX
subproperty_event_filter (26.google.analytics.admin.v1alpha.SubpropertyEventFilter"Ò
#CreateSubpropertyEventFilterRequestL
@@ -618,7 +669,7 @@ public static function initOnce() {
update_mask (2.google.protobuf.FieldMaskBàA"q
#DeleteSubpropertyEventFilterRequestJ
name ( B<àAúA6
-4analyticsadmin.googleapis.com/SubpropertyEventFilter2ã÷
+4analyticsadmin.googleapis.com/SubpropertyEventFilter2šŽ
AnalyticsAdminService“
GetAccount1.google.analytics.admin.v1alpha.GetAccountRequest\'.google.analytics.admin.v1alpha.Account")ÚAname‚Óä“/v1alpha/{name=accounts/*}”
@@ -654,12 +705,17 @@ public static function initOnce() {
%ListSKAdNetworkConversionValueSchemasL.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequestM.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse"^ÚAparent‚Óä“OM/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchemaä
SearchChangeHistoryEvents@.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequestA.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse"B‚Óä“<"7/v1alpha/{account=accounts/*}:searchChangeHistoryEvents:*Õ
GetGoogleSignalsSettings?.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest5.google.analytics.admin.v1alpha.GoogleSignalsSettings"AÚAname‚Óä“42/v1alpha/{name=properties/*/googleSignalsSettings}¬
-UpdateGoogleSignalsSettingsB.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest5.google.analytics.admin.v1alpha.GoogleSignalsSettings"‘ÚA#google_signals_settings,update_mask‚Óä“e2J/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}:google_signals_settingsë
-CreateConversionEvent<.google.analytics.admin.v1alpha.CreateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"cÚAparent,conversion_event‚Óä“C"//v1alpha/{parent=properties/*}/conversionEvents:conversion_event
-UpdateConversionEvent<.google.analytics.admin.v1alpha.UpdateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"yÚAconversion_event,update_mask‚Óä“T2@/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}:conversion_eventÀ
-GetConversionEvent9.google.analytics.admin.v1alpha.GetConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent">ÚAname‚Óä“1//v1alpha/{name=properties/*/conversionEvents/*}
-DeleteConversionEvent<.google.analytics.admin.v1alpha.DeleteConversionEventRequest.google.protobuf.Empty">ÚAname‚Óä“1*//v1alpha/{name=properties/*/conversionEvents/*}Ó
-ListConversionEvents;.google.analytics.admin.v1alpha.ListConversionEventsRequest<.google.analytics.admin.v1alpha.ListConversionEventsResponse"@ÚAparent‚Óä“1//v1alpha/{parent=properties/*}/conversionEventsø
+UpdateGoogleSignalsSettingsB.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest5.google.analytics.admin.v1alpha.GoogleSignalsSettings"‘ÚA#google_signals_settings,update_mask‚Óä“e2J/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}:google_signals_settingsî
+CreateConversionEvent<.google.analytics.admin.v1alpha.CreateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"fˆÚAparent,conversion_event‚Óä“C"//v1alpha/{parent=properties/*}/conversionEvents:conversion_event„
+UpdateConversionEvent<.google.analytics.admin.v1alpha.UpdateConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"|ˆÚAconversion_event,update_mask‚Óä“T2@/v1alpha/{conversion_event.name=properties/*/conversionEvents/*}:conversion_eventÃ
+GetConversionEvent9.google.analytics.admin.v1alpha.GetConversionEventRequest/.google.analytics.admin.v1alpha.ConversionEvent"AˆÚAname‚Óä“1//v1alpha/{name=properties/*/conversionEvents/*}°
+DeleteConversionEvent<.google.analytics.admin.v1alpha.DeleteConversionEventRequest.google.protobuf.Empty"AˆÚAname‚Óä“1*//v1alpha/{name=properties/*/conversionEvents/*}Ö
+ListConversionEvents;.google.analytics.admin.v1alpha.ListConversionEventsRequest<.google.analytics.admin.v1alpha.ListConversionEventsResponse"CˆÚAparent‚Óä“1//v1alpha/{parent=properties/*}/conversionEventsÁ
+CreateKeyEvent5.google.analytics.admin.v1alpha.CreateKeyEventRequest(.google.analytics.admin.v1alpha.KeyEvent"NÚAparent,key_event‚Óä“5"(/v1alpha/{parent=properties/*}/keyEvents: key_eventÐ
+UpdateKeyEvent5.google.analytics.admin.v1alpha.UpdateKeyEventRequest(.google.analytics.admin.v1alpha.KeyEvent"]ÚAkey_event,update_mask‚Óä“?22/v1alpha/{key_event.name=properties/*/keyEvents/*}: key_event¤
+GetKeyEvent2.google.analytics.admin.v1alpha.GetKeyEventRequest(.google.analytics.admin.v1alpha.KeyEvent"7ÚAname‚Óä“*(/v1alpha/{name=properties/*/keyEvents/*}˜
+DeleteKeyEvent5.google.analytics.admin.v1alpha.DeleteKeyEventRequest.google.protobuf.Empty"7ÚAname‚Óä“**(/v1alpha/{name=properties/*/keyEvents/*}·
+
ListKeyEvents4.google.analytics.admin.v1alpha.ListKeyEventsRequest5.google.analytics.admin.v1alpha.ListKeyEventsResponse"9ÚAparent‚Óä“*(/v1alpha/{parent=properties/*}/keyEventsø
GetDisplayVideo360AdvertiserLinkG.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"LÚAname‚Óä“?=/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}‹
"ListDisplayVideo360AdvertiserLinksI.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequestJ.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse"NÚAparent‚Óä“?=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinksÆ
#CreateDisplayVideo360AdvertiserLinkJ.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink"“ÚA(parent,display_video_360_advertiser_link‚Óä“b"=/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks:!display_video_360_advertiser_link×
@@ -721,9 +777,12 @@ public static function initOnce() {
UpdateChannelGroup9.google.analytics.admin.v1alpha.UpdateChannelGroupRequest,.google.analytics.admin.v1alpha.ChannelGroup"mÚAchannel_group,update_mask‚Óä“K2:/v1alpha/{channel_group.name=properties/*/channelGroups/*}:
channel_group¤
DeleteChannelGroup9.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.google.protobuf.Empty";ÚAname‚Óä“.*,/v1alpha/{name=properties/*/channelGroups/*}þ
"SetAutomatedGa4ConfigurationOptOutI.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequestJ.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse"A‚Óä“;"6/v1alpha/properties:setAutomatedGa4ConfigurationOptOut:*†
-$FetchAutomatedGa4ConfigurationOptOutK.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequestL.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse"C‚Óä“="8/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut:*´
+$FetchAutomatedGa4ConfigurationOptOutK.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequestL.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse"C‚Óä“="8/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut:*Ù
+CreateBigQueryLink9.google.analytics.admin.v1alpha.CreateBigQueryLinkRequest,.google.analytics.admin.v1alpha.BigQueryLink"ZÚAparent,bigquery_link‚Óä“=",/v1alpha/{parent=properties/*}/bigQueryLinks:
bigquery_link´
GetBigQueryLink6.google.analytics.admin.v1alpha.GetBigQueryLinkRequest,.google.analytics.admin.v1alpha.BigQueryLink";ÚAname‚Óä“.,/v1alpha/{name=properties/*/bigQueryLinks/*}Ç
-ListBigQueryLinks8.google.analytics.admin.v1alpha.ListBigQueryLinksRequest9.google.analytics.admin.v1alpha.ListBigQueryLinksResponse"=ÚAparent‚Óä“.,/v1alpha/{parent=properties/*}/bigQueryLinksû
+ListBigQueryLinks8.google.analytics.admin.v1alpha.ListBigQueryLinksRequest9.google.analytics.admin.v1alpha.ListBigQueryLinksResponse"=ÚAparent‚Óä“.,/v1alpha/{parent=properties/*}/bigQueryLinks¤
+DeleteBigQueryLink9.google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest.google.protobuf.Empty";ÚAname‚Óä“.*,/v1alpha/{name=properties/*/bigQueryLinks/*}ì
+UpdateBigQueryLink9.google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest,.google.analytics.admin.v1alpha.BigQueryLink"mÚAbigquery_link,update_mask‚Óä“K2:/v1alpha/{bigquery_link.name=properties/*/bigQueryLinks/*}:
bigquery_linkû
GetEnhancedMeasurementSettingsE.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings"UÚAname‚Óä“HF/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}å
!UpdateEnhancedMeasurementSettingsH.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;.google.analytics.admin.v1alpha.EnhancedMeasurementSettings"¸ÚA)enhanced_measurement_settings,update_mask‚Óä“…2d/v1alpha/{enhanced_measurement_settings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}:enhanced_measurement_settingsÎ
CreateConnectedSiteTag=.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest>.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse"5‚Óä“/"*/v1alpha/properties:createConnectedSiteTag:*¦
@@ -738,7 +797,13 @@ public static function initOnce() {
ListEventCreateRules;.google.analytics.admin.v1alpha.ListEventCreateRulesRequest<.google.analytics.admin.v1alpha.ListEventCreateRulesResponse"NÚAparent‚Óä“?=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRulesû
CreateEventCreateRule<.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"sÚAparent,event_create_rule‚Óä“R"=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules:event_create_rule“
UpdateEventCreateRule<.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"ŠÚAevent_create_rule,update_mask‚Óä“d2O/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}:event_create_rule»
-DeleteEventCreateRule<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.google.protobuf.Empty"LÚAname‚Óä“?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}º
+DeleteEventCreateRule<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.google.protobuf.Empty"LÚAname‚Óä“?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}Æ
+GetEventEditRule7.google.analytics.admin.v1alpha.GetEventEditRuleRequest-.google.analytics.admin.v1alpha.EventEditRule"JÚAname‚Óä“=;/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}Ù
+ListEventEditRules9.google.analytics.admin.v1alpha.ListEventEditRulesRequest:.google.analytics.admin.v1alpha.ListEventEditRulesResponse"LÚAparent‚Óä“=;/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRulesï
+CreateEventEditRule:.google.analytics.admin.v1alpha.CreateEventEditRuleRequest-.google.analytics.admin.v1alpha.EventEditRule"mÚAparent,event_edit_rule‚Óä“N";/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:event_edit_rule…
+UpdateEventEditRule:.google.analytics.admin.v1alpha.UpdateEventEditRuleRequest-.google.analytics.admin.v1alpha.EventEditRule"‚ÚAevent_edit_rule,update_mask‚Óä“^2K/v1alpha/{event_edit_rule.name=properties/*/dataStreams/*/eventEditRules/*}:event_edit_ruleµ
+DeleteEventEditRule:.google.analytics.admin.v1alpha.DeleteEventEditRuleRequest.google.protobuf.Empty"JÚAname‚Óä“=*;/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}½
+ReorderEventEditRules<.google.analytics.admin.v1alpha.ReorderEventEditRulesRequest.google.protobuf.Empty"N‚Óä“H"C/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:reorder:*º
UpdateDataRedactionSettingsB.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest5.google.analytics.admin.v1alpha.DataRedactionSettings"ŸÚA#data_redaction_settings,update_mask‚Óä“s2X/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}:data_redaction_settingsã
GetDataRedactionSettings?.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest5.google.analytics.admin.v1alpha.DataRedactionSettings"OÚAname‚Óä“B@/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}Ä
GetCalculatedMetric:.google.analytics.admin.v1alpha.GetCalculatedMetricRequest0.google.analytics.admin.v1alpha.CalculatedMetric"?ÚAname‚Óä“20/v1alpha/{name=properties/*/calculatedMetrics/*}†
@@ -750,8 +815,8 @@ public static function initOnce() {
GetRollupPropertySourceLinkB.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest8.google.analytics.admin.v1alpha.RollupPropertySourceLink"GÚAname‚Óä“:8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}÷
ListRollupPropertySourceLinksD.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequestE.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse"IÚAparent‚Óä“:8/v1alpha/{parent=properties/*}/rollupPropertySourceLinks¦
CreateRollupPropertySourceLinkE.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest8.google.analytics.admin.v1alpha.RollupPropertySourceLink"‚ÚA"parent,rollup_property_source_link‚Óä“W"8/v1alpha/{parent=properties/*}/rollupPropertySourceLinks:rollup_property_source_linkÈ
-DeleteRollupPropertySourceLinkE.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.google.protobuf.Empty"GÚAname‚Óä“:*8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}º
-CreateSubproperty8.google.analytics.admin.v1alpha.CreateSubpropertyRequest9.google.analytics.admin.v1alpha.CreateSubpropertyResponse"0‚Óä“*"%/v1alpha/properties:createSubproperty:*—
+DeleteRollupPropertySourceLinkE.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.google.protobuf.Empty"GÚAname‚Óä“:*8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}Æ
+ProvisionSubproperty;.google.analytics.admin.v1alpha.ProvisionSubpropertyRequest<.google.analytics.admin.v1alpha.ProvisionSubpropertyResponse"3‚Óä“-"(/v1alpha/properties:provisionSubproperty:*—
CreateSubpropertyEventFilterC.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest6.google.analytics.admin.v1alpha.SubpropertyEventFilter"zÚAparent,subproperty_event_filter‚Óä“R"6/v1alpha/{parent=properties/*}/subpropertyEventFilters:subproperty_event_filterÜ
GetSubpropertyEventFilter@.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest6.google.analytics.admin.v1alpha.SubpropertyEventFilter"EÚAname‚Óä“86/v1alpha/{name=properties/*/subpropertyEventFilters/*}ï
ListSubpropertyEventFiltersB.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequestC.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse"GÚAparent‚Óä“86/v1alpha/{parent=properties/*}/subpropertyEventFilters¶
diff --git a/AnalyticsAdmin/metadata/V1Alpha/Audience.php b/AnalyticsAdmin/metadata/V1Alpha/Audience.php
index 3a94ac8194dd..1a97f75b51a2 100644
Binary files a/AnalyticsAdmin/metadata/V1Alpha/Audience.php and b/AnalyticsAdmin/metadata/V1Alpha/Audience.php differ
diff --git a/AnalyticsAdmin/metadata/V1Alpha/ChannelGroup.php b/AnalyticsAdmin/metadata/V1Alpha/ChannelGroup.php
index fd598deea7fe..2853f6286213 100644
Binary files a/AnalyticsAdmin/metadata/V1Alpha/ChannelGroup.php and b/AnalyticsAdmin/metadata/V1Alpha/ChannelGroup.php differ
diff --git a/AnalyticsAdmin/metadata/V1Alpha/EventCreateAndEdit.php b/AnalyticsAdmin/metadata/V1Alpha/EventCreateAndEdit.php
index 0de4d453c68a..03bc275648c3 100644
Binary files a/AnalyticsAdmin/metadata/V1Alpha/EventCreateAndEdit.php and b/AnalyticsAdmin/metadata/V1Alpha/EventCreateAndEdit.php differ
diff --git a/AnalyticsAdmin/metadata/V1Alpha/Resources.php b/AnalyticsAdmin/metadata/V1Alpha/Resources.php
index 0c764e72c1ec..33ace7abd72a 100644
Binary files a/AnalyticsAdmin/metadata/V1Alpha/Resources.php and b/AnalyticsAdmin/metadata/V1Alpha/Resources.php differ
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_big_query_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_big_query_link.php
new file mode 100644
index 000000000000..0ed5adac9643
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_big_query_link.php
@@ -0,0 +1,80 @@
+setDatasetLocation($bigqueryLinkDatasetLocation);
+ $request = (new CreateBigQueryLinkRequest())
+ ->setParent($formattedParent)
+ ->setBigqueryLink($bigqueryLink);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var BigQueryLink $response */
+ $response = $analyticsAdminServiceClient->createBigQueryLink($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]');
+ $bigqueryLinkDatasetLocation = '[DATASET_LOCATION]';
+
+ create_big_query_link_sample($formattedParent, $bigqueryLinkDatasetLocation);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateBigQueryLink_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php
index 2ca74036d102..1c117fd1ef6e 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php
@@ -29,6 +29,7 @@
use Google\ApiCore\ApiException;
/**
+ * Deprecated: Use `CreateKeyEvent` instead.
* Creates a conversion event with the specified attributes.
*
* @param string $formattedParent The resource name of the parent property where this conversion
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_event_edit_rule.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_event_edit_rule.php
new file mode 100644
index 000000000000..80b80c1c25c5
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_event_edit_rule.php
@@ -0,0 +1,134 @@
+setField($eventEditRuleEventConditionsField)
+ ->setComparisonType($eventEditRuleEventConditionsComparisonType)
+ ->setValue($eventEditRuleEventConditionsValue);
+ $eventEditRuleEventConditions = [$matchingCondition,];
+ $parameterMutation = (new ParameterMutation())
+ ->setParameter($eventEditRuleParameterMutationsParameter)
+ ->setParameterValue($eventEditRuleParameterMutationsParameterValue);
+ $eventEditRuleParameterMutations = [$parameterMutation,];
+ $eventEditRule = (new EventEditRule())
+ ->setDisplayName($eventEditRuleDisplayName)
+ ->setEventConditions($eventEditRuleEventConditions)
+ ->setParameterMutations($eventEditRuleParameterMutations);
+ $request = (new CreateEventEditRuleRequest())
+ ->setParent($formattedParent)
+ ->setEventEditRule($eventEditRule);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var EventEditRule $response */
+ $response = $analyticsAdminServiceClient->createEventEditRule($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $eventEditRuleDisplayName = '[DISPLAY_NAME]';
+ $eventEditRuleEventConditionsField = '[FIELD]';
+ $eventEditRuleEventConditionsComparisonType = ComparisonType::COMPARISON_TYPE_UNSPECIFIED;
+ $eventEditRuleEventConditionsValue = '[VALUE]';
+ $eventEditRuleParameterMutationsParameter = '[PARAMETER]';
+ $eventEditRuleParameterMutationsParameterValue = '[PARAMETER_VALUE]';
+
+ create_event_edit_rule_sample(
+ $formattedParent,
+ $eventEditRuleDisplayName,
+ $eventEditRuleEventConditionsField,
+ $eventEditRuleEventConditionsComparisonType,
+ $eventEditRuleEventConditionsValue,
+ $eventEditRuleParameterMutationsParameter,
+ $eventEditRuleParameterMutationsParameterValue
+ );
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventEditRule_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php
index 9f687f5540e9..121767da8386 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php
@@ -34,7 +34,8 @@
* Properties can have at most one FirebaseLink.
*
* @param string $formattedParent Format: properties/{property_id}
- * Example: properties/1234
+ *
+ * Example: `properties/1234`
* Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field.
*/
function create_firebase_link_sample(string $formattedParent): void
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_key_event.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_key_event.php
new file mode 100644
index 000000000000..f38d2d4a677b
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_key_event.php
@@ -0,0 +1,79 @@
+setCountingMethod($keyEventCountingMethod);
+ $request = (new CreateKeyEventRequest())
+ ->setKeyEvent($keyEvent)
+ ->setParent($formattedParent);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var KeyEvent $response */
+ $response = $analyticsAdminServiceClient->createKeyEvent($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED;
+ $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]');
+
+ create_key_event_sample($keyEventCountingMethod, $formattedParent);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_big_query_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_big_query_link.php
new file mode 100644
index 000000000000..602fd5305708
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_big_query_link.php
@@ -0,0 +1,70 @@
+setName($formattedName);
+
+ // Call the API and handle any network failures.
+ try {
+ $analyticsAdminServiceClient->deleteBigQueryLink($request);
+ printf('Call completed successfully.' . PHP_EOL);
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedName = AnalyticsAdminServiceClient::bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]');
+
+ delete_big_query_link_sample($formattedName);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteBigQueryLink_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php
index 344173bf5093..e55c92bbf19e 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_conversion_event.php
@@ -28,6 +28,7 @@
use Google\ApiCore\ApiException;
/**
+ * Deprecated: Use `DeleteKeyEvent` instead.
* Deletes a conversion event in a property.
*
* @param string $formattedName The resource name of the conversion event to delete.
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_edit_rule.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_edit_rule.php
new file mode 100644
index 000000000000..e7c754b51bd5
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_event_edit_rule.php
@@ -0,0 +1,73 @@
+setName($formattedName);
+
+ // Call the API and handle any network failures.
+ try {
+ $analyticsAdminServiceClient->deleteEventEditRule($request);
+ printf('Call completed successfully.' . PHP_EOL);
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedName = AnalyticsAdminServiceClient::eventEditRuleName(
+ '[PROPERTY]',
+ '[DATA_STREAM]',
+ '[EVENT_EDIT_RULE]'
+ );
+
+ delete_event_edit_rule_sample($formattedName);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventEditRule_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php
index e337af674c10..a10f8745b859 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_firebase_link.php
@@ -31,7 +31,8 @@
* Deletes a FirebaseLink on a property
*
* @param string $formattedName Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
- * Example: properties/1234/firebaseLinks/5678
+ *
+ * Example: `properties/1234/firebaseLinks/5678`
* Please see {@see AnalyticsAdminServiceClient::firebaseLinkName()} for help formatting this field.
*/
function delete_firebase_link_sample(string $formattedName): void
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_key_event.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_key_event.php
new file mode 100644
index 000000000000..9b897cc93f37
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_key_event.php
@@ -0,0 +1,71 @@
+setName($formattedName);
+
+ // Call the API and handle any network failures.
+ try {
+ $analyticsAdminServiceClient->deleteKeyEvent($request);
+ printf('Call completed successfully.' . PHP_EOL);
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedName = AnalyticsAdminServiceClient::keyEventName('[PROPERTY]', '[KEY_EVENT]');
+
+ delete_key_event_sample($formattedName);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteKeyEvent_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php
index 6204113046c0..89e625c0c1b2 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_conversion_event.php
@@ -29,6 +29,7 @@
use Google\ApiCore\ApiException;
/**
+ * Deprecated: Use `GetKeyEvent` instead.
* Retrieve a single conversion event.
*
* @param string $formattedName The resource name of the conversion event to retrieve.
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php
index 7135986e482b..53e3ef9c08d6 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_data_sharing_settings.php
@@ -34,7 +34,8 @@
*
* @param string $formattedName The name of the settings to lookup.
* Format: accounts/{account}/dataSharingSettings
- * Example: "accounts/1000/dataSharingSettings"
+ *
+ * Example: `accounts/1000/dataSharingSettings`
* Please see {@see AnalyticsAdminServiceClient::dataSharingSettingsName()} for help formatting this field.
*/
function get_data_sharing_settings_sample(string $formattedName): void
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_event_edit_rule.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_event_edit_rule.php
new file mode 100644
index 000000000000..227e79f09958
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_event_edit_rule.php
@@ -0,0 +1,76 @@
+setName($formattedName);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var EventEditRule $response */
+ $response = $analyticsAdminServiceClient->getEventEditRule($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedName = AnalyticsAdminServiceClient::eventEditRuleName(
+ '[PROPERTY]',
+ '[DATA_STREAM]',
+ '[EVENT_EDIT_RULE]'
+ );
+
+ get_event_edit_rule_sample($formattedName);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventEditRule_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php
index 9418091bf384..08ccd3acf7d9 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_global_site_tag.php
@@ -35,7 +35,8 @@
* @param string $formattedName 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`
* Please see {@see AnalyticsAdminServiceClient::globalSiteTagName()} for help formatting this field.
*/
function get_global_site_tag_sample(string $formattedName): void
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_key_event.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_key_event.php
new file mode 100644
index 000000000000..157ac2ee0c80
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_key_event.php
@@ -0,0 +1,73 @@
+setName($formattedName);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var KeyEvent $response */
+ $response = $analyticsAdminServiceClient->getKeyEvent($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedName = AnalyticsAdminServiceClient::keyEventName('[PROPERTY]', '[KEY_EVENT]');
+
+ get_key_event_sample($formattedName);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetKeyEvent_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php
index 550fbd30d89d..55cadd11a8ff 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_conversion_events.php
@@ -30,6 +30,7 @@
use Google\ApiCore\PagedListResponse;
/**
+ * 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.
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_event_edit_rules.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_event_edit_rules.php
new file mode 100644
index 000000000000..eb16f295457e
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_event_edit_rules.php
@@ -0,0 +1,76 @@
+setParent($formattedParent);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var PagedListResponse $response */
+ $response = $analyticsAdminServiceClient->listEventEditRules($request);
+
+ /** @var EventEditRule $element */
+ foreach ($response as $element) {
+ printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
+ }
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+
+ list_event_edit_rules_sample($formattedParent);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventEditRules_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php
index 101a95693398..5174f120aa39 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_firebase_links.php
@@ -34,7 +34,8 @@
* Properties can have at most one FirebaseLink.
*
* @param string $formattedParent Format: properties/{property_id}
- * Example: properties/1234
+ *
+ * Example: `properties/1234`
* Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field.
*/
function list_firebase_links_sample(string $formattedParent): void
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_key_events.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_key_events.php
new file mode 100644
index 000000000000..5115b81efd97
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_key_events.php
@@ -0,0 +1,78 @@
+setParent($formattedParent);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var PagedListResponse $response */
+ $response = $analyticsAdminServiceClient->listKeyEvents($request);
+
+ /** @var KeyEvent $element */
+ foreach ($response as $element) {
+ printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
+ }
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedParent = AnalyticsAdminServiceClient::propertyName('[PROPERTY]');
+
+ list_key_events_sample($formattedParent);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListKeyEvents_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/provision_subproperty.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/provision_subproperty.php
new file mode 100644
index 000000000000..efced67c49a2
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/provision_subproperty.php
@@ -0,0 +1,89 @@
+setDisplayName($subpropertyDisplayName)
+ ->setTimeZone($subpropertyTimeZone);
+ $request = (new ProvisionSubpropertyRequest())
+ ->setSubproperty($subproperty);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var ProvisionSubpropertyResponse $response */
+ $response = $analyticsAdminServiceClient->provisionSubproperty($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $subpropertyDisplayName = '[DISPLAY_NAME]';
+ $subpropertyTimeZone = '[TIME_ZONE]';
+
+ provision_subproperty_sample($subpropertyDisplayName, $subpropertyTimeZone);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionSubproperty_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/reorder_event_edit_rules.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/reorder_event_edit_rules.php
new file mode 100644
index 000000000000..03b7503be467
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/reorder_event_edit_rules.php
@@ -0,0 +1,77 @@
+setParent($formattedParent)
+ ->setEventEditRules($eventEditRules);
+
+ // Call the API and handle any network failures.
+ try {
+ $analyticsAdminServiceClient->reorderEventEditRules($request);
+ printf('Call completed successfully.' . PHP_EOL);
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $formattedParent = AnalyticsAdminServiceClient::dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $eventEditRulesElement = '[EVENT_EDIT_RULES]';
+
+ reorder_event_edit_rules_sample($formattedParent, $eventEditRulesElement);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ReorderEventEditRules_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php
index 587a15a62ea3..d63fc9f38453 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/search_change_history_events.php
@@ -34,7 +34,9 @@
* specified set of filters.
*
* @param string $formattedAccount The account resource for which to return change history
- * resources. Format: accounts/{account} Example: "accounts/100"
+ * resources. Format: accounts/{account}
+ *
+ * Example: `accounts/100`
* Please see {@see AnalyticsAdminServiceClient::accountName()} for help formatting this field.
*/
function search_change_history_events_sample(string $formattedAccount): void
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_big_query_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_big_query_link.php
new file mode 100644
index 000000000000..cb862d87f7b8
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_big_query_link.php
@@ -0,0 +1,77 @@
+setDatasetLocation($bigqueryLinkDatasetLocation);
+ $updateMask = new FieldMask();
+ $request = (new UpdateBigQueryLinkRequest())
+ ->setBigqueryLink($bigqueryLink)
+ ->setUpdateMask($updateMask);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var BigQueryLink $response */
+ $response = $analyticsAdminServiceClient->updateBigQueryLink($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $bigqueryLinkDatasetLocation = '[DATASET_LOCATION]';
+
+ update_big_query_link_sample($bigqueryLinkDatasetLocation);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateBigQueryLink_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php
index 900228df38fe..d84a55531792 100644
--- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_conversion_event.php
@@ -30,6 +30,7 @@
use Google\Protobuf\FieldMask;
/**
+ * Deprecated: Use `UpdateKeyEvent` instead.
* Updates a conversion event with the specified attributes.
*
* This sample has been automatically generated and should be regarded as a code
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_event_edit_rule.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_event_edit_rule.php
new file mode 100644
index 000000000000..04dd92c05351
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_event_edit_rule.php
@@ -0,0 +1,131 @@
+setField($eventEditRuleEventConditionsField)
+ ->setComparisonType($eventEditRuleEventConditionsComparisonType)
+ ->setValue($eventEditRuleEventConditionsValue);
+ $eventEditRuleEventConditions = [$matchingCondition,];
+ $parameterMutation = (new ParameterMutation())
+ ->setParameter($eventEditRuleParameterMutationsParameter)
+ ->setParameterValue($eventEditRuleParameterMutationsParameterValue);
+ $eventEditRuleParameterMutations = [$parameterMutation,];
+ $eventEditRule = (new EventEditRule())
+ ->setDisplayName($eventEditRuleDisplayName)
+ ->setEventConditions($eventEditRuleEventConditions)
+ ->setParameterMutations($eventEditRuleParameterMutations);
+ $updateMask = new FieldMask();
+ $request = (new UpdateEventEditRuleRequest())
+ ->setEventEditRule($eventEditRule)
+ ->setUpdateMask($updateMask);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var EventEditRule $response */
+ $response = $analyticsAdminServiceClient->updateEventEditRule($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $eventEditRuleDisplayName = '[DISPLAY_NAME]';
+ $eventEditRuleEventConditionsField = '[FIELD]';
+ $eventEditRuleEventConditionsComparisonType = ComparisonType::COMPARISON_TYPE_UNSPECIFIED;
+ $eventEditRuleEventConditionsValue = '[VALUE]';
+ $eventEditRuleParameterMutationsParameter = '[PARAMETER]';
+ $eventEditRuleParameterMutationsParameterValue = '[PARAMETER_VALUE]';
+
+ update_event_edit_rule_sample(
+ $eventEditRuleDisplayName,
+ $eventEditRuleEventConditionsField,
+ $eventEditRuleEventConditionsComparisonType,
+ $eventEditRuleEventConditionsValue,
+ $eventEditRuleParameterMutationsParameter,
+ $eventEditRuleParameterMutationsParameterValue
+ );
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventEditRule_sync]
diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_key_event.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_key_event.php
new file mode 100644
index 000000000000..ee0863969287
--- /dev/null
+++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_key_event.php
@@ -0,0 +1,77 @@
+setCountingMethod($keyEventCountingMethod);
+ $updateMask = new FieldMask();
+ $request = (new UpdateKeyEventRequest())
+ ->setKeyEvent($keyEvent)
+ ->setUpdateMask($updateMask);
+
+ // Call the API and handle any network failures.
+ try {
+ /** @var KeyEvent $response */
+ $response = $analyticsAdminServiceClient->updateKeyEvent($request);
+ printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
+ } catch (ApiException $ex) {
+ printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
+ }
+}
+
+/**
+ * Helper to execute the sample.
+ *
+ * This sample has been automatically generated and should be regarded as a code
+ * template only. It will require modifications to work:
+ * - It may require correct/in-range values for request initialization.
+ * - It may require specifying regional endpoints when creating the service client,
+ * please see the apiEndpoint client configuration option for more details.
+ */
+function callSample(): void
+{
+ $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED;
+
+ update_key_event_sample($keyEventCountingMethod);
+}
+// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateKeyEvent_sync]
diff --git a/AnalyticsAdmin/src/V1alpha/Account.php b/AnalyticsAdmin/src/V1alpha/Account.php
index a1ea714593b5..dddb1ea359cd 100644
--- a/AnalyticsAdmin/src/V1alpha/Account.php
+++ b/AnalyticsAdmin/src/V1alpha/Account.php
@@ -54,6 +54,14 @@ class Account extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $deleted = false;
+ /**
+ * 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}
+ *
+ * Generated from protobuf field string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
+ */
+ private $gmp_organization = '';
/**
* Constructor.
@@ -76,6 +84,10 @@ class Account extends \Google\Protobuf\Internal\Message
* @type bool $deleted
* Output only. Indicates whether this Account is soft-deleted or not. Deleted
* accounts are excluded from List results unless specifically requested.
+ * @type string $gmp_organization
+ * 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}
* }
*/
public function __construct($data = NULL) {
@@ -265,5 +277,35 @@ public function setDeleted($var)
return $this;
}
+ /**
+ * 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}
+ *
+ * Generated from protobuf field string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getGmpOrganization()
+ {
+ return $this->gmp_organization;
+ }
+
+ /**
+ * 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}
+ *
+ * Generated from protobuf field string gmp_organization = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setGmpOrganization($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->gmp_organization = $var;
+
+ return $this;
+ }
+
}
diff --git a/AnalyticsAdmin/src/V1alpha/Audience.php b/AnalyticsAdmin/src/V1alpha/Audience.php
index 08ef4d3e94bb..e999873dbb98 100644
--- a/AnalyticsAdmin/src/V1alpha/Audience.php
+++ b/AnalyticsAdmin/src/V1alpha/Audience.php
@@ -70,6 +70,12 @@ class Audience extends \Google\Protobuf\Internal\Message
* Generated from protobuf field repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST];
*/
private $filter_clauses;
+ /**
+ * Output only. Time when the Audience was created.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $create_time = null;
/**
* Constructor.
@@ -100,6 +106,8 @@ class Audience extends \Google\Protobuf\Internal\Message
* @type array<\Google\Analytics\Admin\V1alpha\AudienceFilterClause>|\Google\Protobuf\Internal\RepeatedField $filter_clauses
* Required. Immutable. Unordered list. Filter clauses that define the
* Audience. All clauses will be AND’ed together.
+ * @type \Google\Protobuf\Timestamp $create_time
+ * Output only. Time when the Audience was created.
* }
*/
public function __construct($data = NULL) {
@@ -339,5 +347,41 @@ public function setFilterClauses($var)
return $this;
}
+ /**
+ * Output only. Time when the Audience was created.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getCreateTime()
+ {
+ return $this->create_time;
+ }
+
+ public function hasCreateTime()
+ {
+ return isset($this->create_time);
+ }
+
+ public function clearCreateTime()
+ {
+ unset($this->create_time);
+ }
+
+ /**
+ * Output only. Time when the Audience was created.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setCreateTime($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->create_time = $var;
+
+ return $this;
+ }
+
}
diff --git a/AnalyticsAdmin/src/V1alpha/BigQueryLink.php b/AnalyticsAdmin/src/V1alpha/BigQueryLink.php
index d6e19915a9e8..301cbf0ecbeb 100644
--- a/AnalyticsAdmin/src/V1alpha/BigQueryLink.php
+++ b/AnalyticsAdmin/src/V1alpha/BigQueryLink.php
@@ -80,6 +80,14 @@ class BigQueryLink extends \Google\Protobuf\Internal\Message
* Generated from protobuf field repeated string excluded_events = 8;
*/
private $excluded_events;
+ /**
+ * Required. Immutable. The geographic location where the created BigQuery
+ * dataset should reside. See https://cloud.google.com/bigquery/docs/locations
+ * for supported locations.
+ *
+ * Generated from protobuf field string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
+ */
+ private $dataset_location = '';
/**
* Constructor.
@@ -116,6 +124,10 @@ class BigQueryLink extends \Google\Protobuf\Internal\Message
* Example: ['properties/1000/dataStreams/2000']
* @type array|\Google\Protobuf\Internal\RepeatedField $excluded_events
* The list of event names that will be excluded from exports.
+ * @type string $dataset_location
+ * Required. Immutable. The geographic location where the created BigQuery
+ * dataset should reside. See https://cloud.google.com/bigquery/docs/locations
+ * for supported locations.
* }
*/
public function __construct($data = NULL) {
@@ -389,5 +401,35 @@ public function setExcludedEvents($var)
return $this;
}
+ /**
+ * Required. Immutable. The geographic location where the created BigQuery
+ * dataset should reside. See https://cloud.google.com/bigquery/docs/locations
+ * for supported locations.
+ *
+ * Generated from protobuf field string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
+ * @return string
+ */
+ public function getDatasetLocation()
+ {
+ return $this->dataset_location;
+ }
+
+ /**
+ * Required. Immutable. The geographic location where the created BigQuery
+ * dataset should reside. See https://cloud.google.com/bigquery/docs/locations
+ * for supported locations.
+ *
+ * Generated from protobuf field string dataset_location = 10 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
+ * @param string $var
+ * @return $this
+ */
+ public function setDatasetLocation($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->dataset_location = $var;
+
+ return $this;
+ }
+
}
diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php
index c6ebdef9b099..6235fd7d0824 100644
--- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php
+++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php
@@ -121,6 +121,12 @@ class ChangeHistoryResourceType
* Generated from protobuf enum CHANNEL_GROUP = 22;
*/
const CHANNEL_GROUP = 22;
+ /**
+ * BigQuery link resource
+ *
+ * Generated from protobuf enum BIGQUERY_LINK = 23;
+ */
+ const BIGQUERY_LINK = 23;
/**
* EnhancedMeasurementSettings resource
*
@@ -183,6 +189,7 @@ class ChangeHistoryResourceType
self::ATTRIBUTION_SETTINGS => 'ATTRIBUTION_SETTINGS',
self::EXPANDED_DATA_SET => 'EXPANDED_DATA_SET',
self::CHANNEL_GROUP => 'CHANNEL_GROUP',
+ self::BIGQUERY_LINK => 'BIGQUERY_LINK',
self::ENHANCED_MEASUREMENT_SETTINGS => 'ENHANCED_MEASUREMENT_SETTINGS',
self::DATA_REDACTION_SETTINGS => 'DATA_REDACTION_SETTINGS',
self::SKADNETWORK_CONVERSION_VALUE_SCHEMA => 'SKADNETWORK_CONVERSION_VALUE_SCHEMA',
diff --git a/AnalyticsAdmin/src/V1alpha/ChannelGroup.php b/AnalyticsAdmin/src/V1alpha/ChannelGroup.php
index 337f3657dbcb..29f3468b28e5 100644
--- a/AnalyticsAdmin/src/V1alpha/ChannelGroup.php
+++ b/AnalyticsAdmin/src/V1alpha/ChannelGroup.php
@@ -49,6 +49,16 @@ class ChannelGroup extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $system_defined = false;
+ /**
+ * 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.
+ *
+ * Generated from protobuf field bool primary = 6 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $primary = false;
/**
* Constructor.
@@ -70,6 +80,12 @@ class ChannelGroup extends \Google\Protobuf\Internal\Message
* 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.
+ * @type bool $primary
+ * 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.
* }
*/
public function __construct($data = NULL) {
@@ -215,5 +231,39 @@ public function setSystemDefined($var)
return $this;
}
+ /**
+ * 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.
+ *
+ * Generated from protobuf field bool primary = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * @return bool
+ */
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field bool primary = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * @param bool $var
+ * @return $this
+ */
+ public function setPrimary($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->primary = $var;
+
+ return $this;
+ }
+
}
diff --git a/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php b/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php
index 62b37b74df17..7482a74083d7 100644
--- a/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php
+++ b/AnalyticsAdmin/src/V1alpha/Client/AnalyticsAdminServiceClient.php
@@ -53,6 +53,7 @@
use Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest;
use Google\Analytics\Admin\V1alpha\CreateAdSenseLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateAudienceRequest;
+use Google\Analytics\Admin\V1alpha\CreateBigQueryLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateCalculatedMetricRequest;
use Google\Analytics\Admin\V1alpha\CreateChannelGroupRequest;
use Google\Analytics\Admin\V1alpha\CreateConnectedSiteTagRequest;
@@ -64,9 +65,11 @@
use Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest;
use Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\CreateEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\CreateExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\CreateFirebaseLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateGoogleAdsLinkRequest;
+use Google\Analytics\Admin\V1alpha\CreateKeyEventRequest;
use Google\Analytics\Admin\V1alpha\CreateMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\CreatePropertyRequest;
use Google\Analytics\Admin\V1alpha\CreateRollupPropertyRequest;
@@ -75,8 +78,6 @@
use Google\Analytics\Admin\V1alpha\CreateSKAdNetworkConversionValueSchemaRequest;
use Google\Analytics\Admin\V1alpha\CreateSearchAds360LinkRequest;
use Google\Analytics\Admin\V1alpha\CreateSubpropertyEventFilterRequest;
-use Google\Analytics\Admin\V1alpha\CreateSubpropertyRequest;
-use Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse;
use Google\Analytics\Admin\V1alpha\CustomDimension;
use Google\Analytics\Admin\V1alpha\CustomMetric;
use Google\Analytics\Admin\V1alpha\DataRedactionSettings;
@@ -86,6 +87,7 @@
use Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest;
use Google\Analytics\Admin\V1alpha\DeleteAccountRequest;
use Google\Analytics\Admin\V1alpha\DeleteAdSenseLinkRequest;
+use Google\Analytics\Admin\V1alpha\DeleteBigQueryLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteCalculatedMetricRequest;
use Google\Analytics\Admin\V1alpha\DeleteChannelGroupRequest;
use Google\Analytics\Admin\V1alpha\DeleteConnectedSiteTagRequest;
@@ -94,9 +96,11 @@
use Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest;
use Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\DeleteEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\DeleteExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteGoogleAdsLinkRequest;
+use Google\Analytics\Admin\V1alpha\DeleteKeyEventRequest;
use Google\Analytics\Admin\V1alpha\DeleteMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\DeletePropertyRequest;
use Google\Analytics\Admin\V1alpha\DeleteRollupPropertySourceLinkRequest;
@@ -107,6 +111,7 @@
use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal;
use Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings;
use Google\Analytics\Admin\V1alpha\EventCreateRule;
+use Google\Analytics\Admin\V1alpha\EventEditRule;
use Google\Analytics\Admin\V1alpha\ExpandedDataSet;
use Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutRequest;
use Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutResponse;
@@ -132,9 +137,11 @@
use Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\GetEnhancedMeasurementSettingsRequest;
use Google\Analytics\Admin\V1alpha\GetEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\GetEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\GetExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\GetGlobalSiteTagRequest;
use Google\Analytics\Admin\V1alpha\GetGoogleSignalsSettingsRequest;
+use Google\Analytics\Admin\V1alpha\GetKeyEventRequest;
use Google\Analytics\Admin\V1alpha\GetMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\GetPropertyRequest;
use Google\Analytics\Admin\V1alpha\GetRollupPropertySourceLinkRequest;
@@ -144,6 +151,7 @@
use Google\Analytics\Admin\V1alpha\GlobalSiteTag;
use Google\Analytics\Admin\V1alpha\GoogleAdsLink;
use Google\Analytics\Admin\V1alpha\GoogleSignalsSettings;
+use Google\Analytics\Admin\V1alpha\KeyEvent;
use Google\Analytics\Admin\V1alpha\ListAccessBindingsRequest;
use Google\Analytics\Admin\V1alpha\ListAccountSummariesRequest;
use Google\Analytics\Admin\V1alpha\ListAccountsRequest;
@@ -161,9 +169,11 @@
use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsRequest;
use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksRequest;
use Google\Analytics\Admin\V1alpha\ListEventCreateRulesRequest;
+use Google\Analytics\Admin\V1alpha\ListEventEditRulesRequest;
use Google\Analytics\Admin\V1alpha\ListExpandedDataSetsRequest;
use Google\Analytics\Admin\V1alpha\ListFirebaseLinksRequest;
use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksRequest;
+use Google\Analytics\Admin\V1alpha\ListKeyEventsRequest;
use Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsRequest;
use Google\Analytics\Admin\V1alpha\ListPropertiesRequest;
use Google\Analytics\Admin\V1alpha\ListRollupPropertySourceLinksRequest;
@@ -174,6 +184,9 @@
use Google\Analytics\Admin\V1alpha\Property;
use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketRequest;
use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse;
+use Google\Analytics\Admin\V1alpha\ProvisionSubpropertyRequest;
+use Google\Analytics\Admin\V1alpha\ProvisionSubpropertyResponse;
+use Google\Analytics\Admin\V1alpha\ReorderEventEditRulesRequest;
use Google\Analytics\Admin\V1alpha\RollupPropertySourceLink;
use Google\Analytics\Admin\V1alpha\RunAccessReportRequest;
use Google\Analytics\Admin\V1alpha\RunAccessReportResponse;
@@ -187,6 +200,7 @@
use Google\Analytics\Admin\V1alpha\UpdateAccountRequest;
use Google\Analytics\Admin\V1alpha\UpdateAttributionSettingsRequest;
use Google\Analytics\Admin\V1alpha\UpdateAudienceRequest;
+use Google\Analytics\Admin\V1alpha\UpdateBigQueryLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateCalculatedMetricRequest;
use Google\Analytics\Admin\V1alpha\UpdateChannelGroupRequest;
use Google\Analytics\Admin\V1alpha\UpdateConversionEventRequest;
@@ -198,9 +212,11 @@
use Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateEnhancedMeasurementSettingsRequest;
use Google\Analytics\Admin\V1alpha\UpdateEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\UpdateEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\UpdateExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\UpdateGoogleAdsLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateGoogleSignalsSettingsRequest;
+use Google\Analytics\Admin\V1alpha\UpdateKeyEventRequest;
use Google\Analytics\Admin\V1alpha\UpdateMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\UpdatePropertyRequest;
use Google\Analytics\Admin\V1alpha\UpdateSKAdNetworkConversionValueSchemaRequest;
@@ -243,6 +259,7 @@
* @method PromiseInterface createAccessBindingAsync(CreateAccessBindingRequest $request, array $optionalArgs = [])
* @method PromiseInterface createAdSenseLinkAsync(CreateAdSenseLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface createAudienceAsync(CreateAudienceRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface createBigQueryLinkAsync(CreateBigQueryLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface createCalculatedMetricAsync(CreateCalculatedMetricRequest $request, array $optionalArgs = [])
* @method PromiseInterface createChannelGroupAsync(CreateChannelGroupRequest $request, array $optionalArgs = [])
* @method PromiseInterface createConnectedSiteTagAsync(CreateConnectedSiteTagRequest $request, array $optionalArgs = [])
@@ -253,20 +270,22 @@
* @method PromiseInterface createDisplayVideo360AdvertiserLinkAsync(CreateDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface createDisplayVideo360AdvertiserLinkProposalAsync(CreateDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = [])
* @method PromiseInterface createEventCreateRuleAsync(CreateEventCreateRuleRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface createEventEditRuleAsync(CreateEventEditRuleRequest $request, array $optionalArgs = [])
* @method PromiseInterface createExpandedDataSetAsync(CreateExpandedDataSetRequest $request, array $optionalArgs = [])
* @method PromiseInterface createFirebaseLinkAsync(CreateFirebaseLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface createGoogleAdsLinkAsync(CreateGoogleAdsLinkRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface createKeyEventAsync(CreateKeyEventRequest $request, array $optionalArgs = [])
* @method PromiseInterface createMeasurementProtocolSecretAsync(CreateMeasurementProtocolSecretRequest $request, array $optionalArgs = [])
* @method PromiseInterface createPropertyAsync(CreatePropertyRequest $request, array $optionalArgs = [])
* @method PromiseInterface createRollupPropertyAsync(CreateRollupPropertyRequest $request, array $optionalArgs = [])
* @method PromiseInterface createRollupPropertySourceLinkAsync(CreateRollupPropertySourceLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface createSKAdNetworkConversionValueSchemaAsync(CreateSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = [])
* @method PromiseInterface createSearchAds360LinkAsync(CreateSearchAds360LinkRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createSubpropertyAsync(CreateSubpropertyRequest $request, array $optionalArgs = [])
* @method PromiseInterface createSubpropertyEventFilterAsync(CreateSubpropertyEventFilterRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteAccessBindingAsync(DeleteAccessBindingRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteAccountAsync(DeleteAccountRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteAdSenseLinkAsync(DeleteAdSenseLinkRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface deleteBigQueryLinkAsync(DeleteBigQueryLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteCalculatedMetricAsync(DeleteCalculatedMetricRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteChannelGroupAsync(DeleteChannelGroupRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteConnectedSiteTagAsync(DeleteConnectedSiteTagRequest $request, array $optionalArgs = [])
@@ -275,9 +294,11 @@
* @method PromiseInterface deleteDisplayVideo360AdvertiserLinkAsync(DeleteDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteDisplayVideo360AdvertiserLinkProposalAsync(DeleteDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteEventCreateRuleAsync(DeleteEventCreateRuleRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface deleteEventEditRuleAsync(DeleteEventEditRuleRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteExpandedDataSetAsync(DeleteExpandedDataSetRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteFirebaseLinkAsync(DeleteFirebaseLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteGoogleAdsLinkAsync(DeleteGoogleAdsLinkRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface deleteKeyEventAsync(DeleteKeyEventRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteMeasurementProtocolSecretAsync(DeleteMeasurementProtocolSecretRequest $request, array $optionalArgs = [])
* @method PromiseInterface deletePropertyAsync(DeletePropertyRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteRollupPropertySourceLinkAsync(DeleteRollupPropertySourceLinkRequest $request, array $optionalArgs = [])
@@ -305,9 +326,11 @@
* @method PromiseInterface getDisplayVideo360AdvertiserLinkProposalAsync(GetDisplayVideo360AdvertiserLinkProposalRequest $request, array $optionalArgs = [])
* @method PromiseInterface getEnhancedMeasurementSettingsAsync(GetEnhancedMeasurementSettingsRequest $request, array $optionalArgs = [])
* @method PromiseInterface getEventCreateRuleAsync(GetEventCreateRuleRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface getEventEditRuleAsync(GetEventEditRuleRequest $request, array $optionalArgs = [])
* @method PromiseInterface getExpandedDataSetAsync(GetExpandedDataSetRequest $request, array $optionalArgs = [])
* @method PromiseInterface getGlobalSiteTagAsync(GetGlobalSiteTagRequest $request, array $optionalArgs = [])
* @method PromiseInterface getGoogleSignalsSettingsAsync(GetGoogleSignalsSettingsRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface getKeyEventAsync(GetKeyEventRequest $request, array $optionalArgs = [])
* @method PromiseInterface getMeasurementProtocolSecretAsync(GetMeasurementProtocolSecretRequest $request, array $optionalArgs = [])
* @method PromiseInterface getPropertyAsync(GetPropertyRequest $request, array $optionalArgs = [])
* @method PromiseInterface getRollupPropertySourceLinkAsync(GetRollupPropertySourceLinkRequest $request, array $optionalArgs = [])
@@ -330,9 +353,11 @@
* @method PromiseInterface listDisplayVideo360AdvertiserLinkProposalsAsync(ListDisplayVideo360AdvertiserLinkProposalsRequest $request, array $optionalArgs = [])
* @method PromiseInterface listDisplayVideo360AdvertiserLinksAsync(ListDisplayVideo360AdvertiserLinksRequest $request, array $optionalArgs = [])
* @method PromiseInterface listEventCreateRulesAsync(ListEventCreateRulesRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface listEventEditRulesAsync(ListEventEditRulesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listExpandedDataSetsAsync(ListExpandedDataSetsRequest $request, array $optionalArgs = [])
* @method PromiseInterface listFirebaseLinksAsync(ListFirebaseLinksRequest $request, array $optionalArgs = [])
* @method PromiseInterface listGoogleAdsLinksAsync(ListGoogleAdsLinksRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface listKeyEventsAsync(ListKeyEventsRequest $request, array $optionalArgs = [])
* @method PromiseInterface listMeasurementProtocolSecretsAsync(ListMeasurementProtocolSecretsRequest $request, array $optionalArgs = [])
* @method PromiseInterface listPropertiesAsync(ListPropertiesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listRollupPropertySourceLinksAsync(ListRollupPropertySourceLinksRequest $request, array $optionalArgs = [])
@@ -340,6 +365,8 @@
* @method PromiseInterface listSearchAds360LinksAsync(ListSearchAds360LinksRequest $request, array $optionalArgs = [])
* @method PromiseInterface listSubpropertyEventFiltersAsync(ListSubpropertyEventFiltersRequest $request, array $optionalArgs = [])
* @method PromiseInterface provisionAccountTicketAsync(ProvisionAccountTicketRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface provisionSubpropertyAsync(ProvisionSubpropertyRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface reorderEventEditRulesAsync(ReorderEventEditRulesRequest $request, array $optionalArgs = [])
* @method PromiseInterface runAccessReportAsync(RunAccessReportRequest $request, array $optionalArgs = [])
* @method PromiseInterface searchChangeHistoryEventsAsync(SearchChangeHistoryEventsRequest $request, array $optionalArgs = [])
* @method PromiseInterface setAutomatedGa4ConfigurationOptOutAsync(SetAutomatedGa4ConfigurationOptOutRequest $request, array $optionalArgs = [])
@@ -347,6 +374,7 @@
* @method PromiseInterface updateAccountAsync(UpdateAccountRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateAttributionSettingsAsync(UpdateAttributionSettingsRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateAudienceAsync(UpdateAudienceRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface updateBigQueryLinkAsync(UpdateBigQueryLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateCalculatedMetricAsync(UpdateCalculatedMetricRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateChannelGroupAsync(UpdateChannelGroupRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateConversionEventAsync(UpdateConversionEventRequest $request, array $optionalArgs = [])
@@ -358,9 +386,11 @@
* @method PromiseInterface updateDisplayVideo360AdvertiserLinkAsync(UpdateDisplayVideo360AdvertiserLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateEnhancedMeasurementSettingsAsync(UpdateEnhancedMeasurementSettingsRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateEventCreateRuleAsync(UpdateEventCreateRuleRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface updateEventEditRuleAsync(UpdateEventEditRuleRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateExpandedDataSetAsync(UpdateExpandedDataSetRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateGoogleAdsLinkAsync(UpdateGoogleAdsLinkRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateGoogleSignalsSettingsAsync(UpdateGoogleSignalsSettingsRequest $request, array $optionalArgs = [])
+ * @method PromiseInterface updateKeyEventAsync(UpdateKeyEventRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateMeasurementProtocolSecretAsync(UpdateMeasurementProtocolSecretRequest $request, array $optionalArgs = [])
* @method PromiseInterface updatePropertyAsync(UpdatePropertyRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateSKAdNetworkConversionValueSchemaAsync(UpdateSKAdNetworkConversionValueSchemaRequest $request, array $optionalArgs = [])
@@ -792,6 +822,27 @@ public static function eventCreateRuleName(string $property, string $dataStream,
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a
+ * event_edit_rule resource.
+ *
+ * @param string $property
+ * @param string $dataStream
+ * @param string $eventEditRule
+ *
+ * @return string The formatted event_edit_rule resource.
+ *
+ * @experimental
+ */
+ public static function eventEditRuleName(string $property, string $dataStream, string $eventEditRule): string
+ {
+ return self::getPathTemplate('eventEditRule')->render([
+ 'property' => $property,
+ 'data_stream' => $dataStream,
+ 'event_edit_rule' => $eventEditRule,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a
* expanded_data_set resource.
@@ -885,6 +936,25 @@ public static function googleSignalsSettingsName(string $property): string
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a key_event
+ * resource.
+ *
+ * @param string $property
+ * @param string $keyEvent
+ *
+ * @return string The formatted key_event resource.
+ *
+ * @experimental
+ */
+ public static function keyEventName(string $property, string $keyEvent): string
+ {
+ return self::getPathTemplate('keyEvent')->render([
+ 'property' => $property,
+ 'key_event' => $keyEvent,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a
* measurement_protocol_secret resource.
@@ -906,6 +976,23 @@ public static function measurementProtocolSecretName(string $property, string $d
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a organization
+ * resource.
+ *
+ * @param string $organization
+ *
+ * @return string The formatted organization resource.
+ *
+ * @experimental
+ */
+ public static function organizationName(string $organization): string
+ {
+ return self::getPathTemplate('organization')->render([
+ 'organization' => $organization,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a property
* resource.
@@ -1044,12 +1131,15 @@ public static function subpropertyEventFilterName(string $property, string $subP
* - displayVideo360AdvertiserLinkProposal: properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}
* - enhancedMeasurementSettings: properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
* - eventCreateRule: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+ * - eventEditRule: properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}
* - expandedDataSet: properties/{property}/expandedDataSets/{expanded_data_set}
* - firebaseLink: properties/{property}/firebaseLinks/{firebase_link}
* - globalSiteTag: properties/{property}/dataStreams/{data_stream}/globalSiteTag
* - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link}
* - googleSignalsSettings: properties/{property}/googleSignalsSettings
+ * - keyEvent: properties/{property}/keyEvents/{key_event}
* - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}
+ * - organization: organizations/{organization}
* - property: properties/{property}
* - propertyAccessBinding: properties/{property}/accessBindings/{access_binding}
* - rollupPropertySourceLink: properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}
@@ -1535,6 +1625,35 @@ public function createAudience(CreateAudienceRequest $request, array $callOption
return $this->startApiCall('CreateAudience', $request, $callOptions)->wait();
}
+ /**
+ * Creates a BigQueryLink.
+ *
+ * The async variant is
+ * {@see AnalyticsAdminServiceClient::createBigQueryLinkAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/create_big_query_link.php
+ *
+ * @param CreateBigQueryLinkRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return BigQueryLink
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function createBigQueryLink(CreateBigQueryLinkRequest $request, array $callOptions = []): BigQueryLink
+ {
+ return $this->startApiCall('CreateBigQueryLink', $request, $callOptions)->wait();
+ }
+
/**
* Creates a CalculatedMetric.
*
@@ -1625,6 +1744,7 @@ public function createConnectedSiteTag(CreateConnectedSiteTagRequest $request, a
}
/**
+ * Deprecated: Use `CreateKeyEvent` instead.
* Creates a conversion event with the specified attributes.
*
* The async variant is
@@ -1647,6 +1767,8 @@ public function createConnectedSiteTag(CreateConnectedSiteTagRequest $request, a
* @throws ApiException Thrown if the API call fails.
*
* @experimental
+ *
+ * @deprecated This method will be removed in the next major version update.
*/
public function createConversionEvent(CreateConversionEventRequest $request, array $callOptions = []): ConversionEvent
{
@@ -1832,6 +1954,35 @@ public function createEventCreateRule(CreateEventCreateRuleRequest $request, arr
return $this->startApiCall('CreateEventCreateRule', $request, $callOptions)->wait();
}
+ /**
+ * Creates an EventEditRule.
+ *
+ * The async variant is
+ * {@see AnalyticsAdminServiceClient::createEventEditRuleAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/create_event_edit_rule.php
+ *
+ * @param CreateEventEditRuleRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return EventEditRule
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function createEventEditRule(CreateEventEditRuleRequest $request, array $callOptions = []): EventEditRule
+ {
+ return $this->startApiCall('CreateEventEditRule', $request, $callOptions)->wait();
+ }
+
/**
* Creates a ExpandedDataSet.
*
@@ -1921,6 +2072,34 @@ public function createGoogleAdsLink(CreateGoogleAdsLinkRequest $request, array $
return $this->startApiCall('CreateGoogleAdsLink', $request, $callOptions)->wait();
}
+ /**
+ * Creates a Key Event.
+ *
+ * The async variant is {@see AnalyticsAdminServiceClient::createKeyEventAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/create_key_event.php
+ *
+ * @param CreateKeyEventRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return KeyEvent
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function createKeyEvent(CreateKeyEventRequest $request, array $callOptions = []): KeyEvent
+ {
+ return $this->startApiCall('CreateKeyEvent', $request, $callOptions)->wait();
+ }
+
/**
* Creates a measurement protocol secret.
*
@@ -2097,36 +2276,6 @@ public function createSearchAds360Link(CreateSearchAds360LinkRequest $request, a
return $this->startApiCall('CreateSearchAds360Link', $request, $callOptions)->wait();
}
- /**
- * Create a subproperty and a subproperty event filter that applies to the
- * created subproperty.
- *
- * The async variant is
- * {@see AnalyticsAdminServiceClient::createSubpropertyAsync()} .
- *
- * @example samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty.php
- *
- * @param CreateSubpropertyRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return CreateSubpropertyResponse
- *
- * @throws ApiException Thrown if the API call fails.
- *
- * @experimental
- */
- public function createSubproperty(CreateSubpropertyRequest $request, array $callOptions = []): CreateSubpropertyResponse
- {
- return $this->startApiCall('CreateSubproperty', $request, $callOptions)->wait();
- }
-
/**
* Creates a subproperty Event Filter.
*
@@ -2246,6 +2395,33 @@ public function deleteAdSenseLink(DeleteAdSenseLinkRequest $request, array $call
$this->startApiCall('DeleteAdSenseLink', $request, $callOptions)->wait();
}
+ /**
+ * Deletes a BigQueryLink on a property.
+ *
+ * The async variant is
+ * {@see AnalyticsAdminServiceClient::deleteBigQueryLinkAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_big_query_link.php
+ *
+ * @param DeleteBigQueryLinkRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function deleteBigQueryLink(DeleteBigQueryLinkRequest $request, array $callOptions = []): void
+ {
+ $this->startApiCall('DeleteBigQueryLink', $request, $callOptions)->wait();
+ }
+
/**
* Deletes a CalculatedMetric on a property.
*
@@ -2329,6 +2505,7 @@ public function deleteConnectedSiteTag(DeleteConnectedSiteTagRequest $request, a
}
/**
+ * Deprecated: Use `DeleteKeyEvent` instead.
* Deletes a conversion event in a property.
*
* The async variant is
@@ -2349,6 +2526,8 @@ public function deleteConnectedSiteTag(DeleteConnectedSiteTagRequest $request, a
* @throws ApiException Thrown if the API call fails.
*
* @experimental
+ *
+ * @deprecated This method will be removed in the next major version update.
*/
public function deleteConversionEvent(DeleteConversionEventRequest $request, array $callOptions = []): void
{
@@ -2465,6 +2644,33 @@ public function deleteEventCreateRule(DeleteEventCreateRuleRequest $request, arr
$this->startApiCall('DeleteEventCreateRule', $request, $callOptions)->wait();
}
+ /**
+ * Deletes an EventEditRule.
+ *
+ * The async variant is
+ * {@see AnalyticsAdminServiceClient::deleteEventEditRuleAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_event_edit_rule.php
+ *
+ * @param DeleteEventEditRuleRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function deleteEventEditRule(DeleteEventEditRuleRequest $request, array $callOptions = []): void
+ {
+ $this->startApiCall('DeleteEventEditRule', $request, $callOptions)->wait();
+ }
+
/**
* Deletes a ExpandedDataSet on a property.
*
@@ -2546,6 +2752,32 @@ public function deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest $request, array $
$this->startApiCall('DeleteGoogleAdsLink', $request, $callOptions)->wait();
}
+ /**
+ * Deletes a Key Event.
+ *
+ * The async variant is {@see AnalyticsAdminServiceClient::deleteKeyEventAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/delete_key_event.php
+ *
+ * @param DeleteKeyEventRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function deleteKeyEvent(DeleteKeyEventRequest $request, array $callOptions = []): void
+ {
+ $this->startApiCall('DeleteKeyEvent', $request, $callOptions)->wait();
+ }
+
/**
* Deletes target MeasurementProtocolSecret.
*
@@ -3016,6 +3248,7 @@ public function getChannelGroup(GetChannelGroupRequest $request, array $callOpti
}
/**
+ * Deprecated: Use `GetKeyEvent` instead.
* Retrieve a single conversion event.
*
* The async variant is
@@ -3038,6 +3271,8 @@ public function getChannelGroup(GetChannelGroupRequest $request, array $callOpti
* @throws ApiException Thrown if the API call fails.
*
* @experimental
+ *
+ * @deprecated This method will be removed in the next major version update.
*/
public function getConversionEvent(GetConversionEventRequest $request, array $callOptions = []): ConversionEvent
{
@@ -3337,6 +3572,35 @@ public function getEventCreateRule(GetEventCreateRuleRequest $request, array $ca
return $this->startApiCall('GetEventCreateRule', $request, $callOptions)->wait();
}
+ /**
+ * Lookup for a single EventEditRule.
+ *
+ * The async variant is {@see AnalyticsAdminServiceClient::getEventEditRuleAsync()}
+ * .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/get_event_edit_rule.php
+ *
+ * @param GetEventEditRuleRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return EventEditRule
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function getEventEditRule(GetEventEditRuleRequest $request, array $callOptions = []): EventEditRule
+ {
+ return $this->startApiCall('GetEventEditRule', $request, $callOptions)->wait();
+ }
+
/**
* Lookup for a single ExpandedDataSet.
*
@@ -3425,6 +3689,34 @@ public function getGoogleSignalsSettings(GetGoogleSignalsSettingsRequest $reques
return $this->startApiCall('GetGoogleSignalsSettings', $request, $callOptions)->wait();
}
+ /**
+ * Retrieve a single Key Event.
+ *
+ * The async variant is {@see AnalyticsAdminServiceClient::getKeyEventAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/get_key_event.php
+ *
+ * @param GetKeyEventRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return KeyEvent
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function getKeyEvent(GetKeyEventRequest $request, array $callOptions = []): KeyEvent
+ {
+ return $this->startApiCall('GetKeyEvent', $request, $callOptions)->wait();
+ }
+
/**
* Lookup for a single "GA4" MeasurementProtocolSecret.
*
@@ -3868,6 +4160,7 @@ public function listConnectedSiteTags(ListConnectedSiteTagsRequest $request, arr
}
/**
+ * 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.
@@ -3892,6 +4185,8 @@ public function listConnectedSiteTags(ListConnectedSiteTagsRequest $request, arr
* @throws ApiException Thrown if the API call fails.
*
* @experimental
+ *
+ * @deprecated This method will be removed in the next major version update.
*/
public function listConversionEvents(ListConversionEventsRequest $request, array $callOptions = []): PagedListResponse
{
@@ -4073,6 +4368,35 @@ public function listEventCreateRules(ListEventCreateRulesRequest $request, array
return $this->startApiCall('ListEventCreateRules', $request, $callOptions);
}
+ /**
+ * Lists EventEditRules on a web data stream.
+ *
+ * The async variant is
+ * {@see AnalyticsAdminServiceClient::listEventEditRulesAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/list_event_edit_rules.php
+ *
+ * @param ListEventEditRulesRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return PagedListResponse
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function listEventEditRules(ListEventEditRulesRequest $request, array $callOptions = []): PagedListResponse
+ {
+ return $this->startApiCall('ListEventEditRules', $request, $callOptions);
+ }
+
/**
* Lists ExpandedDataSets on a property.
*
@@ -4161,6 +4485,35 @@ public function listGoogleAdsLinks(ListGoogleAdsLinksRequest $request, array $ca
return $this->startApiCall('ListGoogleAdsLinks', $request, $callOptions);
}
+ /**
+ * Returns a list of Key Events in the specified parent property.
+ * Returns an empty list if no Key Events are found.
+ *
+ * The async variant is {@see AnalyticsAdminServiceClient::listKeyEventsAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/list_key_events.php
+ *
+ * @param ListKeyEventsRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return PagedListResponse
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function listKeyEvents(ListKeyEventsRequest $request, array $callOptions = []): PagedListResponse
+ {
+ return $this->startApiCall('ListKeyEvents', $request, $callOptions);
+ }
+
/**
* Returns child MeasurementProtocolSecrets under the specified parent
* Property.
@@ -4373,6 +4726,63 @@ public function provisionAccountTicket(ProvisionAccountTicketRequest $request, a
return $this->startApiCall('ProvisionAccountTicket', $request, $callOptions)->wait();
}
+ /**
+ * Create a subproperty and a subproperty event filter that applies to the
+ * created subproperty.
+ *
+ * The async variant is
+ * {@see AnalyticsAdminServiceClient::provisionSubpropertyAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/provision_subproperty.php
+ *
+ * @param ProvisionSubpropertyRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return ProvisionSubpropertyResponse
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function provisionSubproperty(ProvisionSubpropertyRequest $request, array $callOptions = []): ProvisionSubpropertyResponse
+ {
+ return $this->startApiCall('ProvisionSubproperty', $request, $callOptions)->wait();
+ }
+
+ /**
+ * Changes the processing order of event edit rules on the specified stream.
+ *
+ * The async variant is
+ * {@see AnalyticsAdminServiceClient::reorderEventEditRulesAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/reorder_event_edit_rules.php
+ *
+ * @param ReorderEventEditRulesRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function reorderEventEditRules(ReorderEventEditRulesRequest $request, array $callOptions = []): void
+ {
+ $this->startApiCall('ReorderEventEditRules', $request, $callOptions)->wait();
+ }
+
/**
* Returns a customized report of data access records. The report provides
* records of each time a user reads Google Analytics reporting data. Access
@@ -4591,6 +5001,35 @@ public function updateAudience(UpdateAudienceRequest $request, array $callOption
return $this->startApiCall('UpdateAudience', $request, $callOptions)->wait();
}
+ /**
+ * Updates a BigQueryLink.
+ *
+ * The async variant is
+ * {@see AnalyticsAdminServiceClient::updateBigQueryLinkAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/update_big_query_link.php
+ *
+ * @param UpdateBigQueryLinkRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return BigQueryLink
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function updateBigQueryLink(UpdateBigQueryLinkRequest $request, array $callOptions = []): BigQueryLink
+ {
+ return $this->startApiCall('UpdateBigQueryLink', $request, $callOptions)->wait();
+ }
+
/**
* Updates a CalculatedMetric on a property.
*
@@ -4650,6 +5089,7 @@ public function updateChannelGroup(UpdateChannelGroupRequest $request, array $ca
}
/**
+ * Deprecated: Use `UpdateKeyEvent` instead.
* Updates a conversion event with the specified attributes.
*
* The async variant is
@@ -4672,6 +5112,8 @@ public function updateChannelGroup(UpdateChannelGroupRequest $request, array $ca
* @throws ApiException Thrown if the API call fails.
*
* @experimental
+ *
+ * @deprecated This method will be removed in the next major version update.
*/
public function updateConversionEvent(UpdateConversionEventRequest $request, array $callOptions = []): ConversionEvent
{
@@ -4912,6 +5354,35 @@ public function updateEventCreateRule(UpdateEventCreateRuleRequest $request, arr
return $this->startApiCall('UpdateEventCreateRule', $request, $callOptions)->wait();
}
+ /**
+ * Updates an EventEditRule.
+ *
+ * The async variant is
+ * {@see AnalyticsAdminServiceClient::updateEventEditRuleAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/update_event_edit_rule.php
+ *
+ * @param UpdateEventEditRuleRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return EventEditRule
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function updateEventEditRule(UpdateEventEditRuleRequest $request, array $callOptions = []): EventEditRule
+ {
+ return $this->startApiCall('UpdateEventEditRule', $request, $callOptions)->wait();
+ }
+
/**
* Updates a ExpandedDataSet on a property.
*
@@ -4999,6 +5470,34 @@ public function updateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest $
return $this->startApiCall('UpdateGoogleSignalsSettings', $request, $callOptions)->wait();
}
+ /**
+ * Updates a Key Event.
+ *
+ * The async variant is {@see AnalyticsAdminServiceClient::updateKeyEventAsync()} .
+ *
+ * @example samples/V1alpha/AnalyticsAdminServiceClient/update_key_event.php
+ *
+ * @param UpdateKeyEventRequest $request A request to house fields associated with the call.
+ * @param array $callOptions {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return KeyEvent
+ *
+ * @throws ApiException Thrown if the API call fails.
+ *
+ * @experimental
+ */
+ public function updateKeyEvent(UpdateKeyEventRequest $request, array $callOptions = []): KeyEvent
+ {
+ return $this->startApiCall('UpdateKeyEvent', $request, $callOptions)->wait();
+ }
+
/**
* Updates a measurement protocol secret.
*
diff --git a/AnalyticsAdmin/src/V1alpha/CreateBigQueryLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateBigQueryLinkRequest.php
new file mode 100644
index 000000000000..78d38c035b5d
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/CreateBigQueryLinkRequest.php
@@ -0,0 +1,127 @@
+google.analytics.admin.v1alpha.CreateBigQueryLinkRequest
+ */
+class CreateBigQueryLinkRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * Required. The BigQueryLink to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $bigquery_link = null;
+
+ /**
+ * @param string $parent Required. Example format: properties/1234
+ * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field.
+ * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $bigqueryLink Required. The BigQueryLink to create.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\CreateBigQueryLinkRequest
+ *
+ * @experimental
+ */
+ public static function build(string $parent, \Google\Analytics\Admin\V1alpha\BigQueryLink $bigqueryLink): self
+ {
+ return (new self())
+ ->setParent($parent)
+ ->setBigqueryLink($bigqueryLink);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. Example format: properties/1234
+ * @type \Google\Analytics\Admin\V1alpha\BigQueryLink $bigquery_link
+ * Required. The BigQueryLink to create.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. Example format: properties/1234
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The BigQueryLink to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\BigQueryLink|null
+ */
+ public function getBigqueryLink()
+ {
+ return $this->bigquery_link;
+ }
+
+ public function hasBigqueryLink()
+ {
+ return isset($this->bigquery_link);
+ }
+
+ public function clearBigqueryLink()
+ {
+ unset($this->bigquery_link);
+ }
+
+ /**
+ * Required. The BigQueryLink to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $var
+ * @return $this
+ */
+ public function setBigqueryLink($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\BigQueryLink::class);
+ $this->bigquery_link = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/CreateEventEditRuleRequest.php b/AnalyticsAdmin/src/V1alpha/CreateEventEditRuleRequest.php
new file mode 100644
index 000000000000..03ca3814a6a5
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/CreateEventEditRuleRequest.php
@@ -0,0 +1,127 @@
+google.analytics.admin.v1alpha.CreateEventEditRuleRequest
+ */
+class CreateEventEditRuleRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/123/dataStreams/456
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * Required. The EventEditRule to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $event_edit_rule = null;
+
+ /**
+ * @param string $parent Required. Example format: properties/123/dataStreams/456
+ * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field.
+ * @param \Google\Analytics\Admin\V1alpha\EventEditRule $eventEditRule Required. The EventEditRule to create.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\CreateEventEditRuleRequest
+ *
+ * @experimental
+ */
+ public static function build(string $parent, \Google\Analytics\Admin\V1alpha\EventEditRule $eventEditRule): self
+ {
+ return (new self())
+ ->setParent($parent)
+ ->setEventEditRule($eventEditRule);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. Example format: properties/123/dataStreams/456
+ * @type \Google\Analytics\Admin\V1alpha\EventEditRule $event_edit_rule
+ * Required. The EventEditRule to create.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/123/dataStreams/456
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. Example format: properties/123/dataStreams/456
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The EventEditRule to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\EventEditRule|null
+ */
+ public function getEventEditRule()
+ {
+ return $this->event_edit_rule;
+ }
+
+ public function hasEventEditRule()
+ {
+ return isset($this->event_edit_rule);
+ }
+
+ public function clearEventEditRule()
+ {
+ unset($this->event_edit_rule);
+ }
+
+ /**
+ * Required. The EventEditRule to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\EventEditRule $var
+ * @return $this
+ */
+ public function setEventEditRule($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventEditRule::class);
+ $this->event_edit_rule = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php
index bd6ecf1f76c6..a71b41a4d29f 100644
--- a/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/CreateFirebaseLinkRequest.php
@@ -17,7 +17,7 @@ class CreateFirebaseLinkRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. Format: properties/{property_id}
- * Example: properties/1234
+ * Example: `properties/1234`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -31,7 +31,8 @@ class CreateFirebaseLinkRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. Format: properties/{property_id}
- * Example: properties/1234
+ *
+ * Example: `properties/1234`
* Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field.
* @param \Google\Analytics\Admin\V1alpha\FirebaseLink $firebaseLink Required. The Firebase link to create.
*
@@ -54,7 +55,7 @@ public static function build(string $parent, \Google\Analytics\Admin\V1alpha\Fir
*
* @type string $parent
* Required. Format: properties/{property_id}
- * Example: properties/1234
+ * Example: `properties/1234`
* @type \Google\Analytics\Admin\V1alpha\FirebaseLink $firebase_link
* Required. The Firebase link to create.
* }
@@ -66,7 +67,7 @@ public function __construct($data = NULL) {
/**
* Required. Format: properties/{property_id}
- * Example: properties/1234
+ * Example: `properties/1234`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -78,7 +79,7 @@ public function getParent()
/**
* Required. Format: properties/{property_id}
- * Example: properties/1234
+ * Example: `properties/1234`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/AnalyticsAdmin/src/V1alpha/CreateKeyEventRequest.php b/AnalyticsAdmin/src/V1alpha/CreateKeyEventRequest.php
new file mode 100644
index 000000000000..9f641fcda4e5
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/CreateKeyEventRequest.php
@@ -0,0 +1,132 @@
+google.analytics.admin.v1alpha.CreateKeyEventRequest
+ */
+class CreateKeyEventRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The Key Event to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $key_event = null;
+ /**
+ * Required. The resource name of the parent property where this Key Event
+ * will be created. Format: properties/123
+ *
+ * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+
+ /**
+ * @param string $parent Required. The resource name of the parent property where this Key Event
+ * will be created. Format: properties/123
+ * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field.
+ * @param \Google\Analytics\Admin\V1alpha\KeyEvent $keyEvent Required. The Key Event to create.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\CreateKeyEventRequest
+ *
+ * @experimental
+ */
+ public static function build(string $parent, \Google\Analytics\Admin\V1alpha\KeyEvent $keyEvent): self
+ {
+ return (new self())
+ ->setParent($parent)
+ ->setKeyEvent($keyEvent);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\KeyEvent $key_event
+ * Required. The Key Event to create.
+ * @type string $parent
+ * Required. The resource name of the parent property where this Key Event
+ * will be created. Format: properties/123
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The Key Event to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\KeyEvent|null
+ */
+ public function getKeyEvent()
+ {
+ return $this->key_event;
+ }
+
+ public function hasKeyEvent()
+ {
+ return isset($this->key_event);
+ }
+
+ public function clearKeyEvent()
+ {
+ unset($this->key_event);
+ }
+
+ /**
+ * Required. The Key Event to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\KeyEvent $var
+ * @return $this
+ */
+ public function setKeyEvent($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\KeyEvent::class);
+ $this->key_event = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The resource name of the parent property where this Key Event
+ * will be created. Format: properties/123
+ *
+ * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. The resource name of the parent property where this Key Event
+ * will be created. Format: properties/123
+ *
+ * Generated from protobuf field string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/DeleteBigQueryLinkRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteBigQueryLinkRequest.php
new file mode 100644
index 000000000000..87410a5ee293
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DeleteBigQueryLinkRequest.php
@@ -0,0 +1,86 @@
+google.analytics.admin.v1alpha.DeleteBigQueryLinkRequest
+ */
+class DeleteBigQueryLinkRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The BigQueryLink to delete.
+ * Example format: properties/1234/bigQueryLinks/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * @param string $name Required. The BigQueryLink to delete.
+ * Example format: properties/1234/bigQueryLinks/5678
+ * Please see {@see AnalyticsAdminServiceClient::bigQueryLinkName()} for help formatting this field.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DeleteBigQueryLinkRequest
+ *
+ * @experimental
+ */
+ public static function build(string $name): self
+ {
+ return (new self())
+ ->setName($name);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The BigQueryLink to delete.
+ * Example format: properties/1234/bigQueryLinks/5678
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The BigQueryLink to delete.
+ * Example format: properties/1234/bigQueryLinks/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The BigQueryLink to delete.
+ * Example format: properties/1234/bigQueryLinks/5678
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/DeleteEventEditRuleRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteEventEditRuleRequest.php
new file mode 100644
index 000000000000..9a5322dfec35
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DeleteEventEditRuleRequest.php
@@ -0,0 +1,81 @@
+google.analytics.admin.v1alpha.DeleteEventEditRuleRequest
+ */
+class DeleteEventEditRuleRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/123/dataStreams/456/eventEditRules/789
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * @param string $name Required. Example format: properties/123/dataStreams/456/eventEditRules/789
+ * Please see {@see AnalyticsAdminServiceClient::eventEditRuleName()} for help formatting this field.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DeleteEventEditRuleRequest
+ *
+ * @experimental
+ */
+ public static function build(string $name): self
+ {
+ return (new self())
+ ->setName($name);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. Example format: properties/123/dataStreams/456/eventEditRules/789
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/123/dataStreams/456/eventEditRules/789
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. Example format: properties/123/dataStreams/456/eventEditRules/789
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/DeleteFirebaseLinkRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteFirebaseLinkRequest.php
index 9ce2b935c552..45914b41843e 100644
--- a/AnalyticsAdmin/src/V1alpha/DeleteFirebaseLinkRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/DeleteFirebaseLinkRequest.php
@@ -17,7 +17,7 @@ class DeleteFirebaseLinkRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
- * Example: properties/1234/firebaseLinks/5678
+ * Example: `properties/1234/firebaseLinks/5678`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -25,7 +25,8 @@ class DeleteFirebaseLinkRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
- * Example: properties/1234/firebaseLinks/5678
+ *
+ * Example: `properties/1234/firebaseLinks/5678`
* Please see {@see AnalyticsAdminServiceClient::firebaseLinkName()} for help formatting this field.
*
* @return \Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest
@@ -46,7 +47,7 @@ public static function build(string $name): self
*
* @type string $name
* Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
- * Example: properties/1234/firebaseLinks/5678
+ * Example: `properties/1234/firebaseLinks/5678`
* }
*/
public function __construct($data = NULL) {
@@ -56,7 +57,7 @@ public function __construct($data = NULL) {
/**
* Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
- * Example: properties/1234/firebaseLinks/5678
+ * Example: `properties/1234/firebaseLinks/5678`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -68,7 +69,7 @@ public function getName()
/**
* Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
- * Example: properties/1234/firebaseLinks/5678
+ * Example: `properties/1234/firebaseLinks/5678`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/AnalyticsAdmin/src/V1alpha/DeleteKeyEventRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteKeyEventRequest.php
new file mode 100644
index 000000000000..0ac38dfbdee0
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/DeleteKeyEventRequest.php
@@ -0,0 +1,91 @@
+google.analytics.admin.v1alpha.DeleteKeyEventRequest
+ */
+class DeleteKeyEventRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The resource name of the Key Event to delete.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * @param string $name Required. The resource name of the Key Event to delete.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ * Please see {@see AnalyticsAdminServiceClient::keyEventName()} for help formatting this field.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\DeleteKeyEventRequest
+ *
+ * @experimental
+ */
+ public static function build(string $name): self
+ {
+ return (new self())
+ ->setName($name);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The resource name of the Key Event to delete.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The resource name of the Key Event to delete.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The resource name of the Key Event to delete.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/EventEditRule.php b/AnalyticsAdmin/src/V1alpha/EventEditRule.php
new file mode 100644
index 000000000000..cbb5ee8289a5
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/EventEditRule.php
@@ -0,0 +1,245 @@
+google.analytics.admin.v1alpha.EventEditRule
+ */
+class EventEditRule extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Identifier. Resource name for this EventEditRule resource.
+ * Format:
+ * properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ */
+ private $name = '';
+ /**
+ * Required. The display name of this event edit rule. Maximum of 255
+ * characters.
+ *
+ * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $display_name = '';
+ /**
+ * 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.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $event_conditions;
+ /**
+ * Required. Parameter mutations define parameter behavior on the new event,
+ * and are applied in order. A maximum of 20 mutations can be applied.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $parameter_mutations;
+ /**
+ * 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.
+ *
+ * Generated from protobuf field int64 processing_order = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $processing_order = 0;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Identifier. Resource name for this EventEditRule resource.
+ * Format:
+ * properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}
+ * @type string $display_name
+ * Required. The display name of this event edit rule. Maximum of 255
+ * characters.
+ * @type array<\Google\Analytics\Admin\V1alpha\MatchingCondition>|\Google\Protobuf\Internal\RepeatedField $event_conditions
+ * 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.
+ * @type array<\Google\Analytics\Admin\V1alpha\ParameterMutation>|\Google\Protobuf\Internal\RepeatedField $parameter_mutations
+ * Required. Parameter mutations define parameter behavior on the new event,
+ * and are applied in order. A maximum of 20 mutations can be applied.
+ * @type int|string $processing_order
+ * 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.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Identifier. Resource name for this EventEditRule resource.
+ * Format:
+ * properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Identifier. Resource name for this EventEditRule resource.
+ * Format:
+ * properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The display name of this event edit rule. Maximum of 255
+ * characters.
+ *
+ * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return string
+ */
+ public function getDisplayName()
+ {
+ return $this->display_name;
+ }
+
+ /**
+ * Required. The display name of this event edit rule. Maximum of 255
+ * characters.
+ *
+ * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param string $var
+ * @return $this
+ */
+ public function setDisplayName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->display_name = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getEventConditions()
+ {
+ return $this->event_conditions;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED];
+ * @param array<\Google\Analytics\Admin\V1alpha\MatchingCondition>|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setEventConditions($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\MatchingCondition::class);
+ $this->event_conditions = $arr;
+
+ return $this;
+ }
+
+ /**
+ * Required. Parameter mutations define parameter behavior on the new event,
+ * and are applied in order. A maximum of 20 mutations can be applied.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getParameterMutations()
+ {
+ return $this->parameter_mutations;
+ }
+
+ /**
+ * Required. Parameter mutations define parameter behavior on the new event,
+ * and are applied in order. A maximum of 20 mutations can be applied.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 4 [(.google.api.field_behavior) = REQUIRED];
+ * @param array<\Google\Analytics\Admin\V1alpha\ParameterMutation>|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setParameterMutations($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\ParameterMutation::class);
+ $this->parameter_mutations = $arr;
+
+ return $this;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field int64 processing_order = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return int|string
+ */
+ public function getProcessingOrder()
+ {
+ return $this->processing_order;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field int64 processing_order = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param int|string $var
+ * @return $this
+ */
+ public function setProcessingOrder($var)
+ {
+ GPBUtil::checkInt64($var);
+ $this->processing_order = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php b/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php
index fe69ade622e8..4642ea29d8b7 100644
--- a/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php
+++ b/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php
@@ -59,6 +59,7 @@
use Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest;
use Google\Analytics\Admin\V1alpha\CreateAdSenseLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateAudienceRequest;
+use Google\Analytics\Admin\V1alpha\CreateBigQueryLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateCalculatedMetricRequest;
use Google\Analytics\Admin\V1alpha\CreateChannelGroupRequest;
use Google\Analytics\Admin\V1alpha\CreateConnectedSiteTagRequest;
@@ -70,9 +71,11 @@
use Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest;
use Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\CreateEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\CreateExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\CreateFirebaseLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateGoogleAdsLinkRequest;
+use Google\Analytics\Admin\V1alpha\CreateKeyEventRequest;
use Google\Analytics\Admin\V1alpha\CreateMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\CreatePropertyRequest;
use Google\Analytics\Admin\V1alpha\CreateRollupPropertyRequest;
@@ -81,8 +84,6 @@
use Google\Analytics\Admin\V1alpha\CreateSKAdNetworkConversionValueSchemaRequest;
use Google\Analytics\Admin\V1alpha\CreateSearchAds360LinkRequest;
use Google\Analytics\Admin\V1alpha\CreateSubpropertyEventFilterRequest;
-use Google\Analytics\Admin\V1alpha\CreateSubpropertyRequest;
-use Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse;
use Google\Analytics\Admin\V1alpha\CustomDimension;
use Google\Analytics\Admin\V1alpha\CustomMetric;
use Google\Analytics\Admin\V1alpha\DataRedactionSettings;
@@ -92,6 +93,7 @@
use Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest;
use Google\Analytics\Admin\V1alpha\DeleteAccountRequest;
use Google\Analytics\Admin\V1alpha\DeleteAdSenseLinkRequest;
+use Google\Analytics\Admin\V1alpha\DeleteBigQueryLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteCalculatedMetricRequest;
use Google\Analytics\Admin\V1alpha\DeleteChannelGroupRequest;
use Google\Analytics\Admin\V1alpha\DeleteConnectedSiteTagRequest;
@@ -100,9 +102,11 @@
use Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest;
use Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\DeleteEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\DeleteExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteGoogleAdsLinkRequest;
+use Google\Analytics\Admin\V1alpha\DeleteKeyEventRequest;
use Google\Analytics\Admin\V1alpha\DeleteMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\DeletePropertyRequest;
use Google\Analytics\Admin\V1alpha\DeleteRollupPropertySourceLinkRequest;
@@ -113,6 +117,7 @@
use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal;
use Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings;
use Google\Analytics\Admin\V1alpha\EventCreateRule;
+use Google\Analytics\Admin\V1alpha\EventEditRule;
use Google\Analytics\Admin\V1alpha\ExpandedDataSet;
use Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutRequest;
use Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutResponse;
@@ -138,9 +143,11 @@
use Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\GetEnhancedMeasurementSettingsRequest;
use Google\Analytics\Admin\V1alpha\GetEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\GetEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\GetExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\GetGlobalSiteTagRequest;
use Google\Analytics\Admin\V1alpha\GetGoogleSignalsSettingsRequest;
+use Google\Analytics\Admin\V1alpha\GetKeyEventRequest;
use Google\Analytics\Admin\V1alpha\GetMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\GetPropertyRequest;
use Google\Analytics\Admin\V1alpha\GetRollupPropertySourceLinkRequest;
@@ -150,6 +157,7 @@
use Google\Analytics\Admin\V1alpha\GlobalSiteTag;
use Google\Analytics\Admin\V1alpha\GoogleAdsLink;
use Google\Analytics\Admin\V1alpha\GoogleSignalsSettings;
+use Google\Analytics\Admin\V1alpha\KeyEvent;
use Google\Analytics\Admin\V1alpha\ListAccessBindingsRequest;
use Google\Analytics\Admin\V1alpha\ListAccessBindingsResponse;
use Google\Analytics\Admin\V1alpha\ListAccountSummariesRequest;
@@ -182,12 +190,16 @@
use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse;
use Google\Analytics\Admin\V1alpha\ListEventCreateRulesRequest;
use Google\Analytics\Admin\V1alpha\ListEventCreateRulesResponse;
+use Google\Analytics\Admin\V1alpha\ListEventEditRulesRequest;
+use Google\Analytics\Admin\V1alpha\ListEventEditRulesResponse;
use Google\Analytics\Admin\V1alpha\ListExpandedDataSetsRequest;
use Google\Analytics\Admin\V1alpha\ListExpandedDataSetsResponse;
use Google\Analytics\Admin\V1alpha\ListFirebaseLinksRequest;
use Google\Analytics\Admin\V1alpha\ListFirebaseLinksResponse;
use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksRequest;
use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksResponse;
+use Google\Analytics\Admin\V1alpha\ListKeyEventsRequest;
+use Google\Analytics\Admin\V1alpha\ListKeyEventsResponse;
use Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsRequest;
use Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsResponse;
use Google\Analytics\Admin\V1alpha\ListPropertiesRequest;
@@ -204,6 +216,9 @@
use Google\Analytics\Admin\V1alpha\Property;
use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketRequest;
use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse;
+use Google\Analytics\Admin\V1alpha\ProvisionSubpropertyRequest;
+use Google\Analytics\Admin\V1alpha\ProvisionSubpropertyResponse;
+use Google\Analytics\Admin\V1alpha\ReorderEventEditRulesRequest;
use Google\Analytics\Admin\V1alpha\RollupPropertySourceLink;
use Google\Analytics\Admin\V1alpha\RunAccessReportRequest;
use Google\Analytics\Admin\V1alpha\RunAccessReportResponse;
@@ -218,6 +233,7 @@
use Google\Analytics\Admin\V1alpha\UpdateAccountRequest;
use Google\Analytics\Admin\V1alpha\UpdateAttributionSettingsRequest;
use Google\Analytics\Admin\V1alpha\UpdateAudienceRequest;
+use Google\Analytics\Admin\V1alpha\UpdateBigQueryLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateCalculatedMetricRequest;
use Google\Analytics\Admin\V1alpha\UpdateChannelGroupRequest;
use Google\Analytics\Admin\V1alpha\UpdateConversionEventRequest;
@@ -229,9 +245,11 @@
use Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateEnhancedMeasurementSettingsRequest;
use Google\Analytics\Admin\V1alpha\UpdateEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\UpdateEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\UpdateExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\UpdateGoogleAdsLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateGoogleSignalsSettingsRequest;
+use Google\Analytics\Admin\V1alpha\UpdateKeyEventRequest;
use Google\Analytics\Admin\V1alpha\UpdateMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\UpdatePropertyRequest;
use Google\Analytics\Admin\V1alpha\UpdateSKAdNetworkConversionValueSchemaRequest;
@@ -347,6 +365,8 @@ class AnalyticsAdminServiceGapicClient
private static $eventCreateRuleNameTemplate;
+ private static $eventEditRuleNameTemplate;
+
private static $expandedDataSetNameTemplate;
private static $firebaseLinkNameTemplate;
@@ -357,8 +377,12 @@ class AnalyticsAdminServiceGapicClient
private static $googleSignalsSettingsNameTemplate;
+ private static $keyEventNameTemplate;
+
private static $measurementProtocolSecretNameTemplate;
+ private static $organizationNameTemplate;
+
private static $propertyNameTemplate;
private static $propertyAccessBindingNameTemplate;
@@ -572,6 +596,15 @@ private static function getEventCreateRuleNameTemplate()
return self::$eventCreateRuleNameTemplate;
}
+ private static function getEventEditRuleNameTemplate()
+ {
+ if (self::$eventEditRuleNameTemplate == null) {
+ self::$eventEditRuleNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}');
+ }
+
+ return self::$eventEditRuleNameTemplate;
+ }
+
private static function getExpandedDataSetNameTemplate()
{
if (self::$expandedDataSetNameTemplate == null) {
@@ -617,6 +650,15 @@ private static function getGoogleSignalsSettingsNameTemplate()
return self::$googleSignalsSettingsNameTemplate;
}
+ private static function getKeyEventNameTemplate()
+ {
+ if (self::$keyEventNameTemplate == null) {
+ self::$keyEventNameTemplate = new PathTemplate('properties/{property}/keyEvents/{key_event}');
+ }
+
+ return self::$keyEventNameTemplate;
+ }
+
private static function getMeasurementProtocolSecretNameTemplate()
{
if (self::$measurementProtocolSecretNameTemplate == null) {
@@ -626,6 +668,15 @@ private static function getMeasurementProtocolSecretNameTemplate()
return self::$measurementProtocolSecretNameTemplate;
}
+ private static function getOrganizationNameTemplate()
+ {
+ if (self::$organizationNameTemplate == null) {
+ self::$organizationNameTemplate = new PathTemplate('organizations/{organization}');
+ }
+
+ return self::$organizationNameTemplate;
+ }
+
private static function getPropertyNameTemplate()
{
if (self::$propertyNameTemplate == null) {
@@ -704,12 +755,15 @@ private static function getPathTemplateMap()
'displayVideo360AdvertiserLinkProposal' => self::getDisplayVideo360AdvertiserLinkProposalNameTemplate(),
'enhancedMeasurementSettings' => self::getEnhancedMeasurementSettingsNameTemplate(),
'eventCreateRule' => self::getEventCreateRuleNameTemplate(),
+ 'eventEditRule' => self::getEventEditRuleNameTemplate(),
'expandedDataSet' => self::getExpandedDataSetNameTemplate(),
'firebaseLink' => self::getFirebaseLinkNameTemplate(),
'globalSiteTag' => self::getGlobalSiteTagNameTemplate(),
'googleAdsLink' => self::getGoogleAdsLinkNameTemplate(),
'googleSignalsSettings' => self::getGoogleSignalsSettingsNameTemplate(),
+ 'keyEvent' => self::getKeyEventNameTemplate(),
'measurementProtocolSecret' => self::getMeasurementProtocolSecretNameTemplate(),
+ 'organization' => self::getOrganizationNameTemplate(),
'property' => self::getPropertyNameTemplate(),
'propertyAccessBinding' => self::getPropertyAccessBindingNameTemplate(),
'rollupPropertySourceLink' => self::getRollupPropertySourceLinkNameTemplate(),
@@ -1096,6 +1150,27 @@ public static function eventCreateRuleName($property, $dataStream, $eventCreateR
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a
+ * event_edit_rule resource.
+ *
+ * @param string $property
+ * @param string $dataStream
+ * @param string $eventEditRule
+ *
+ * @return string The formatted event_edit_rule resource.
+ *
+ * @experimental
+ */
+ public static function eventEditRuleName($property, $dataStream, $eventEditRule)
+ {
+ return self::getEventEditRuleNameTemplate()->render([
+ 'property' => $property,
+ 'data_stream' => $dataStream,
+ 'event_edit_rule' => $eventEditRule,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a
* expanded_data_set resource.
@@ -1189,6 +1264,25 @@ public static function googleSignalsSettingsName($property)
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a key_event
+ * resource.
+ *
+ * @param string $property
+ * @param string $keyEvent
+ *
+ * @return string The formatted key_event resource.
+ *
+ * @experimental
+ */
+ public static function keyEventName($property, $keyEvent)
+ {
+ return self::getKeyEventNameTemplate()->render([
+ 'property' => $property,
+ 'key_event' => $keyEvent,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a
* measurement_protocol_secret resource.
@@ -1210,6 +1304,23 @@ public static function measurementProtocolSecretName($property, $dataStream, $me
]);
}
+ /**
+ * Formats a string containing the fully-qualified path to represent a organization
+ * resource.
+ *
+ * @param string $organization
+ *
+ * @return string The formatted organization resource.
+ *
+ * @experimental
+ */
+ public static function organizationName($organization)
+ {
+ return self::getOrganizationNameTemplate()->render([
+ 'organization' => $organization,
+ ]);
+ }
+
/**
* Formats a string containing the fully-qualified path to represent a property
* resource.
@@ -1348,12 +1459,15 @@ public static function subpropertyEventFilterName($property, $subPropertyEventFi
* - displayVideo360AdvertiserLinkProposal: properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}
* - enhancedMeasurementSettings: properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
* - eventCreateRule: properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+ * - eventEditRule: properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}
* - expandedDataSet: properties/{property}/expandedDataSets/{expanded_data_set}
* - firebaseLink: properties/{property}/firebaseLinks/{firebase_link}
* - globalSiteTag: properties/{property}/dataStreams/{data_stream}/globalSiteTag
* - googleAdsLink: properties/{property}/googleAdsLinks/{google_ads_link}
* - googleSignalsSettings: properties/{property}/googleSignalsSettings
+ * - keyEvent: properties/{property}/keyEvents/{key_event}
* - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}
+ * - organization: organizations/{organization}
* - property: properties/{property}
* - propertyAccessBinding: properties/{property}/accessBindings/{access_binding}
* - rollupPropertySourceLink: properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}
@@ -2065,6 +2179,50 @@ public function createAudience($parent, $audience, array $optionalArgs = [])
return $this->startCall('CreateAudience', Audience::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Creates a BigQueryLink.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * $bigqueryLink = new BigQueryLink();
+ * $response = $analyticsAdminServiceClient->createBigQueryLink($formattedParent, $bigqueryLink);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. Example format: properties/1234
+ * @param BigQueryLink $bigqueryLink Required. The BigQueryLink to create.
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\BigQueryLink
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function createBigQueryLink($parent, $bigqueryLink, array $optionalArgs = [])
+ {
+ $request = new CreateBigQueryLinkRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $request->setBigqueryLink($bigqueryLink);
+ $requestParamHeaders['parent'] = $parent;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('CreateBigQueryLink', BigQueryLink::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Creates a CalculatedMetric.
*
@@ -2214,6 +2372,7 @@ public function createConnectedSiteTag($connectedSiteTag, array $optionalArgs =
}
/**
+ * Deprecated: Use `CreateKeyEvent` instead.
* Creates a conversion event with the specified attributes.
*
* Sample code:
@@ -2245,6 +2404,8 @@ public function createConnectedSiteTag($connectedSiteTag, array $optionalArgs =
* @throws ApiException if the remote call fails
*
* @experimental
+ *
+ * @deprecated This method will be removed in the next major version update.
*/
public function createConversionEvent($conversionEvent, $parent, array $optionalArgs = [])
{
@@ -2526,6 +2687,50 @@ public function createEventCreateRule($parent, $eventCreateRule, array $optional
return $this->startCall('CreateEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Creates an EventEditRule.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ * $eventEditRule = new EventEditRule();
+ * $response = $analyticsAdminServiceClient->createEventEditRule($formattedParent, $eventEditRule);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. Example format: properties/123/dataStreams/456
+ * @param EventEditRule $eventEditRule Required. The EventEditRule to create.
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\EventEditRule
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function createEventEditRule($parent, $eventEditRule, array $optionalArgs = [])
+ {
+ $request = new CreateEventEditRuleRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $request->setEventEditRule($eventEditRule);
+ $requestParamHeaders['parent'] = $parent;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('CreateEventEditRule', EventEditRule::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Creates a ExpandedDataSet.
*
@@ -2588,7 +2793,8 @@ public function createExpandedDataSet($parent, $expandedDataSet, array $optional
* ```
*
* @param string $parent Required. Format: properties/{property_id}
- * Example: properties/1234
+ *
+ * Example: `properties/1234`
* @param FirebaseLink $firebaseLink Required. The Firebase link to create.
* @param array $optionalArgs {
* Optional.
@@ -2661,6 +2867,51 @@ public function createGoogleAdsLink($parent, $googleAdsLink, array $optionalArgs
return $this->startCall('CreateGoogleAdsLink', GoogleAdsLink::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Creates a Key Event.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $keyEvent = new KeyEvent();
+ * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * $response = $analyticsAdminServiceClient->createKeyEvent($keyEvent, $formattedParent);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param KeyEvent $keyEvent Required. The Key Event to create.
+ * @param string $parent Required. The resource name of the parent property where this Key Event
+ * will be created. Format: properties/123
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\KeyEvent
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function createKeyEvent($keyEvent, $parent, array $optionalArgs = [])
+ {
+ $request = new CreateKeyEventRequest();
+ $requestParamHeaders = [];
+ $request->setKeyEvent($keyEvent);
+ $request->setParent($parent);
+ $requestParamHeaders['parent'] = $parent;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('CreateKeyEvent', KeyEvent::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Creates a measurement protocol secret.
*
@@ -2924,55 +3175,6 @@ public function createSearchAds360Link($parent, $searchAds360Link, array $option
return $this->startCall('CreateSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait();
}
- /**
- * Create a subproperty and a subproperty event filter that applies to the
- * created subproperty.
- *
- * Sample code:
- * ```
- * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
- * try {
- * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
- * $subproperty = new Property();
- * $response = $analyticsAdminServiceClient->createSubproperty($formattedParent, $subproperty);
- * } finally {
- * $analyticsAdminServiceClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The ordinary property for which to create a subproperty.
- * Format: properties/property_id
- * Example: properties/123
- * @param Property $subproperty Required. The subproperty to create.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type SubpropertyEventFilter $subpropertyEventFilter
- * Optional. The subproperty event filter to create on an ordinary property.
- * @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
- * associative array of retry settings parameters. See the documentation on
- * {@see RetrySettings} for example usage.
- * }
- *
- * @return \Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse
- *
- * @throws ApiException if the remote call fails
- *
- * @experimental
- */
- public function createSubproperty($parent, $subproperty, array $optionalArgs = [])
- {
- $request = new CreateSubpropertyRequest();
- $request->setParent($parent);
- $request->setSubproperty($subproperty);
- if (isset($optionalArgs['subpropertyEventFilter'])) {
- $request->setSubpropertyEventFilter($optionalArgs['subpropertyEventFilter']);
- }
-
- return $this->startCall('CreateSubproperty', CreateSubpropertyResponse::class, $optionalArgs, $request)->wait();
- }
-
/**
* Creates a subproperty Event Filter.
*
@@ -3151,6 +3353,46 @@ public function deleteAdSenseLink($name, array $optionalArgs = [])
return $this->startCall('DeleteAdSenseLink', GPBEmpty::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Deletes a BigQueryLink on a property.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]');
+ * $analyticsAdminServiceClient->deleteBigQueryLink($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The BigQueryLink to delete.
+ * Example format: properties/1234/bigQueryLinks/5678
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function deleteBigQueryLink($name, array $optionalArgs = [])
+ {
+ $request = new DeleteBigQueryLinkRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('DeleteBigQueryLink', GPBEmpty::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Deletes a CalculatedMetric on a property.
*
@@ -3282,6 +3524,7 @@ public function deleteConnectedSiteTag(array $optionalArgs = [])
}
/**
+ * Deprecated: Use `DeleteKeyEvent` instead.
* Deletes a conversion event in a property.
*
* Sample code:
@@ -3310,6 +3553,8 @@ public function deleteConnectedSiteTag(array $optionalArgs = [])
* @throws ApiException if the remote call fails
*
* @experimental
+ *
+ * @deprecated This method will be removed in the next major version update.
*/
public function deleteConversionEvent($name, array $optionalArgs = [])
{
@@ -3484,20 +3729,20 @@ public function deleteEventCreateRule($name, array $optionalArgs = [])
}
/**
- * Deletes a ExpandedDataSet on a property.
+ * Deletes an EventEditRule.
*
* Sample code:
* ```
* $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
* try {
- * $formattedName = $analyticsAdminServiceClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]');
- * $analyticsAdminServiceClient->deleteExpandedDataSet($formattedName);
+ * $formattedName = $analyticsAdminServiceClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]');
+ * $analyticsAdminServiceClient->deleteEventEditRule($formattedName);
* } finally {
* $analyticsAdminServiceClient->close();
* }
* ```
*
- * @param string $name Required. Example format: properties/1234/expandedDataSets/5678
+ * @param string $name Required. Example format: properties/123/dataStreams/456/eventEditRules/789
* @param array $optionalArgs {
* Optional.
*
@@ -3511,33 +3756,32 @@ public function deleteEventCreateRule($name, array $optionalArgs = [])
*
* @experimental
*/
- public function deleteExpandedDataSet($name, array $optionalArgs = [])
+ public function deleteEventEditRule($name, array $optionalArgs = [])
{
- $request = new DeleteExpandedDataSetRequest();
+ $request = new DeleteEventEditRuleRequest();
$requestParamHeaders = [];
$request->setName($name);
$requestParamHeaders['name'] = $name;
$requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
$optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('DeleteExpandedDataSet', GPBEmpty::class, $optionalArgs, $request)->wait();
+ return $this->startCall('DeleteEventEditRule', GPBEmpty::class, $optionalArgs, $request)->wait();
}
/**
- * Deletes a FirebaseLink on a property
+ * Deletes a ExpandedDataSet on a property.
*
* Sample code:
* ```
* $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
* try {
- * $formattedName = $analyticsAdminServiceClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]');
- * $analyticsAdminServiceClient->deleteFirebaseLink($formattedName);
+ * $formattedName = $analyticsAdminServiceClient->expandedDataSetName('[PROPERTY]', '[EXPANDED_DATA_SET]');
+ * $analyticsAdminServiceClient->deleteExpandedDataSet($formattedName);
* } finally {
* $analyticsAdminServiceClient->close();
* }
* ```
*
- * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
- * Example: properties/1234/firebaseLinks/5678
+ * @param string $name Required. Example format: properties/1234/expandedDataSets/5678
* @param array $optionalArgs {
* Optional.
*
@@ -3551,9 +3795,50 @@ public function deleteExpandedDataSet($name, array $optionalArgs = [])
*
* @experimental
*/
- public function deleteFirebaseLink($name, array $optionalArgs = [])
+ public function deleteExpandedDataSet($name, array $optionalArgs = [])
{
- $request = new DeleteFirebaseLinkRequest();
+ $request = new DeleteExpandedDataSetRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('DeleteExpandedDataSet', GPBEmpty::class, $optionalArgs, $request)->wait();
+ }
+
+ /**
+ * Deletes a FirebaseLink on a property
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->firebaseLinkName('[PROPERTY]', '[FIREBASE_LINK]');
+ * $analyticsAdminServiceClient->deleteFirebaseLink($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+ *
+ * Example: `properties/1234/firebaseLinks/5678`
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function deleteFirebaseLink($name, array $optionalArgs = [])
+ {
+ $request = new DeleteFirebaseLinkRequest();
$requestParamHeaders = [];
$request->setName($name);
$requestParamHeaders['name'] = $name;
@@ -3601,6 +3886,47 @@ public function deleteGoogleAdsLink($name, array $optionalArgs = [])
return $this->startCall('DeleteGoogleAdsLink', GPBEmpty::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Deletes a Key Event.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->keyEventName('[PROPERTY]', '[KEY_EVENT]');
+ * $analyticsAdminServiceClient->deleteKeyEvent($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The resource name of the Key Event to delete.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function deleteKeyEvent($name, array $optionalArgs = [])
+ {
+ $request = new DeleteKeyEventRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('DeleteKeyEvent', GPBEmpty::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Deletes target MeasurementProtocolSecret.
*
@@ -4290,6 +4616,7 @@ public function getChannelGroup($name, array $optionalArgs = [])
}
/**
+ * Deprecated: Use `GetKeyEvent` instead.
* Retrieve a single conversion event.
*
* Sample code:
@@ -4320,6 +4647,8 @@ public function getChannelGroup($name, array $optionalArgs = [])
* @throws ApiException if the remote call fails
*
* @experimental
+ *
+ * @deprecated This method will be removed in the next major version update.
*/
public function getConversionEvent($name, array $optionalArgs = [])
{
@@ -4521,7 +4850,8 @@ public function getDataRetentionSettings($name, array $optionalArgs = [])
*
* @param string $name Required. The name of the settings to lookup.
* Format: accounts/{account}/dataSharingSettings
- * Example: "accounts/1000/dataSharingSettings"
+ *
+ * Example: `accounts/1000/dataSharingSettings`
* @param array $optionalArgs {
* Optional.
*
@@ -4762,6 +5092,48 @@ public function getEventCreateRule($name, array $optionalArgs = [])
return $this->startCall('GetEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Lookup for a single EventEditRule.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]');
+ * $response = $analyticsAdminServiceClient->getEventEditRule($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The name of the EventEditRule to get.
+ * Example format: properties/123/dataStreams/456/eventEditRules/789
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\EventEditRule
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function getEventEditRule($name, array $optionalArgs = [])
+ {
+ $request = new GetEventEditRuleRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('GetEventEditRule', EventEditRule::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Lookup for a single ExpandedDataSet.
*
@@ -4822,7 +5194,8 @@ public function getExpandedDataSet($name, array $optionalArgs = [])
* @param string $name 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`
* @param array $optionalArgs {
* Optional.
*
@@ -4891,6 +5264,49 @@ public function getGoogleSignalsSettings($name, array $optionalArgs = [])
return $this->startCall('GetGoogleSignalsSettings', GoogleSignalsSettings::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Retrieve a single Key Event.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedName = $analyticsAdminServiceClient->keyEventName('[PROPERTY]', '[KEY_EVENT]');
+ * $response = $analyticsAdminServiceClient->getKeyEvent($formattedName);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $name Required. The resource name of the Key Event to retrieve.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\KeyEvent
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function getKeyEvent($name, array $optionalArgs = [])
+ {
+ $request = new GetKeyEventRequest();
+ $requestParamHeaders = [];
+ $request->setName($name);
+ $requestParamHeaders['name'] = $name;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('GetKeyEvent', KeyEvent::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Lookup for a single "GA4" MeasurementProtocolSecret.
*
@@ -5765,6 +6181,7 @@ public function listConnectedSiteTags(array $optionalArgs = [])
}
/**
+ * 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.
@@ -5817,6 +6234,8 @@ public function listConnectedSiteTags(array $optionalArgs = [])
* @throws ApiException if the remote call fails
*
* @experimental
+ *
+ * @deprecated This method will be removed in the next major version update.
*/
public function listConversionEvents($parent, array $optionalArgs = [])
{
@@ -6257,6 +6676,76 @@ public function listEventCreateRules($parent, array $optionalArgs = [])
return $this->getPagedListResponse('ListEventCreateRules', $optionalArgs, ListEventCreateRulesResponse::class, $request);
}
+ /**
+ * Lists EventEditRules on a web data stream.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ * // Iterate over pages of elements
+ * $pagedResponse = $analyticsAdminServiceClient->listEventEditRules($formattedParent);
+ * foreach ($pagedResponse->iteratePages() as $page) {
+ * foreach ($page as $element) {
+ * // doSomethingWith($element);
+ * }
+ * }
+ * // Alternatively:
+ * // Iterate through all elements
+ * $pagedResponse = $analyticsAdminServiceClient->listEventEditRules($formattedParent);
+ * foreach ($pagedResponse->iterateAllElements() as $element) {
+ * // doSomethingWith($element);
+ * }
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. Example format: properties/123/dataStreams/456
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type int $pageSize
+ * The maximum number of resources contained in the underlying API
+ * response. The API may return fewer values in a page, even if
+ * there are additional values to be retrieved.
+ * @type string $pageToken
+ * A page token is used to specify a page of values to be returned.
+ * If no page token is specified (the default), the first page
+ * of values will be returned. Any page token used here must have
+ * been generated by a previous call to the API.
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\ApiCore\PagedListResponse
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function listEventEditRules($parent, array $optionalArgs = [])
+ {
+ $request = new ListEventEditRulesRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $requestParamHeaders['parent'] = $parent;
+ if (isset($optionalArgs['pageSize'])) {
+ $request->setPageSize($optionalArgs['pageSize']);
+ }
+
+ if (isset($optionalArgs['pageToken'])) {
+ $request->setPageToken($optionalArgs['pageToken']);
+ }
+
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->getPagedListResponse('ListEventEditRules', $optionalArgs, ListEventEditRulesResponse::class, $request);
+ }
+
/**
* Lists ExpandedDataSets on a property.
*
@@ -6355,7 +6844,8 @@ public function listExpandedDataSets($parent, array $optionalArgs = [])
* ```
*
* @param string $parent Required. Format: properties/{property_id}
- * Example: properties/1234
+ *
+ * Example: `properties/1234`
* @param array $optionalArgs {
* Optional.
*
@@ -6469,6 +6959,78 @@ public function listGoogleAdsLinks($parent, array $optionalArgs = [])
return $this->getPagedListResponse('ListGoogleAdsLinks', $optionalArgs, ListGoogleAdsLinksResponse::class, $request);
}
+ /**
+ * Returns a list of Key Events in the specified parent property.
+ * Returns an empty list if no Key Events are found.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]');
+ * // Iterate over pages of elements
+ * $pagedResponse = $analyticsAdminServiceClient->listKeyEvents($formattedParent);
+ * foreach ($pagedResponse->iteratePages() as $page) {
+ * foreach ($page as $element) {
+ * // doSomethingWith($element);
+ * }
+ * }
+ * // Alternatively:
+ * // Iterate through all elements
+ * $pagedResponse = $analyticsAdminServiceClient->listKeyEvents($formattedParent);
+ * foreach ($pagedResponse->iterateAllElements() as $element) {
+ * // doSomethingWith($element);
+ * }
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. The resource name of the parent property.
+ * Example: 'properties/123'
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type int $pageSize
+ * The maximum number of resources contained in the underlying API
+ * response. The API may return fewer values in a page, even if
+ * there are additional values to be retrieved.
+ * @type string $pageToken
+ * A page token is used to specify a page of values to be returned.
+ * If no page token is specified (the default), the first page
+ * of values will be returned. Any page token used here must have
+ * been generated by a previous call to the API.
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\ApiCore\PagedListResponse
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function listKeyEvents($parent, array $optionalArgs = [])
+ {
+ $request = new ListKeyEventsRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $requestParamHeaders['parent'] = $parent;
+ if (isset($optionalArgs['pageSize'])) {
+ $request->setPageSize($optionalArgs['pageSize']);
+ }
+
+ if (isset($optionalArgs['pageToken'])) {
+ $request->setPageToken($optionalArgs['pageToken']);
+ }
+
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->getPagedListResponse('ListKeyEvents', $optionalArgs, ListKeyEventsResponse::class, $request);
+ }
+
/**
* Returns child MeasurementProtocolSecrets under the specified parent
* Property.
@@ -6972,6 +7534,94 @@ public function provisionAccountTicket(array $optionalArgs = [])
return $this->startCall('ProvisionAccountTicket', ProvisionAccountTicketResponse::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Create a subproperty and a subproperty event filter that applies to the
+ * created subproperty.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $subproperty = new Property();
+ * $response = $analyticsAdminServiceClient->provisionSubproperty($subproperty);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param Property $subproperty Required. The subproperty to create.
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type SubpropertyEventFilter $subpropertyEventFilter
+ * Optional. The subproperty event filter to create on an ordinary property.
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\ProvisionSubpropertyResponse
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function provisionSubproperty($subproperty, array $optionalArgs = [])
+ {
+ $request = new ProvisionSubpropertyRequest();
+ $request->setSubproperty($subproperty);
+ if (isset($optionalArgs['subpropertyEventFilter'])) {
+ $request->setSubpropertyEventFilter($optionalArgs['subpropertyEventFilter']);
+ }
+
+ return $this->startCall('ProvisionSubproperty', ProvisionSubpropertyResponse::class, $optionalArgs, $request)->wait();
+ }
+
+ /**
+ * Changes the processing order of event edit rules on the specified stream.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ * $eventEditRules = [];
+ * $analyticsAdminServiceClient->reorderEventEditRules($formattedParent, $eventEditRules);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param string $parent Required. Example format: properties/123/dataStreams/456
+ * @param string[] $eventEditRules 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.
+ * @param array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function reorderEventEditRules($parent, $eventEditRules, array $optionalArgs = [])
+ {
+ $request = new ReorderEventEditRulesRequest();
+ $requestParamHeaders = [];
+ $request->setParent($parent);
+ $request->setEventEditRules($eventEditRules);
+ $requestParamHeaders['parent'] = $parent;
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('ReorderEventEditRules', GPBEmpty::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Returns a customized report of data access records. The report provides
* records of each time a user reads Google Analytics reporting data. Access
@@ -7181,7 +7831,9 @@ public function runAccessReport(array $optionalArgs = [])
* ```
*
* @param string $account 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 array $optionalArgs {
* Optional.
*
@@ -7189,7 +7841,8 @@ public function runAccessReport(array $optionalArgs = [])
* 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`
* @type int[] $resourceType
* Optional. If set, only return changes if they are for a resource that
* matches at least one of these types.
@@ -7502,6 +8155,54 @@ public function updateAudience($audience, $updateMask, array $optionalArgs = [])
return $this->startCall('UpdateAudience', Audience::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Updates a BigQueryLink.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $bigqueryLink = new BigQueryLink();
+ * $updateMask = new FieldMask();
+ * $response = $analyticsAdminServiceClient->updateBigQueryLink($bigqueryLink, $updateMask);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param BigQueryLink $bigqueryLink Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ * @param FieldMask $updateMask 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 array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\BigQueryLink
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function updateBigQueryLink($bigqueryLink, $updateMask, array $optionalArgs = [])
+ {
+ $request = new UpdateBigQueryLinkRequest();
+ $requestParamHeaders = [];
+ $request->setBigqueryLink($bigqueryLink);
+ $request->setUpdateMask($updateMask);
+ $requestParamHeaders['bigquery_link.name'] = $bigqueryLink->getName();
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('UpdateBigQueryLink', BigQueryLink::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Updates a CalculatedMetric on a property.
*
@@ -7598,6 +8299,7 @@ public function updateChannelGroup($channelGroup, $updateMask, array $optionalAr
}
/**
+ * Deprecated: Use `UpdateKeyEvent` instead.
* Updates a conversion event with the specified attributes.
*
* Sample code:
@@ -7632,6 +8334,8 @@ public function updateChannelGroup($channelGroup, $updateMask, array $optionalAr
* @throws ApiException if the remote call fails
*
* @experimental
+ *
+ * @deprecated This method will be removed in the next major version update.
*/
public function updateConversionEvent($conversionEvent, $updateMask, array $optionalArgs = [])
{
@@ -8032,6 +8736,55 @@ public function updateEventCreateRule($eventCreateRule, $updateMask, array $opti
return $this->startCall('UpdateEventCreateRule', EventCreateRule::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Updates an EventEditRule.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $eventEditRule = new EventEditRule();
+ * $updateMask = new FieldMask();
+ * $response = $analyticsAdminServiceClient->updateEventEditRule($eventEditRule, $updateMask);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param EventEditRule $eventEditRule Required. The EventEditRule to update.
+ * The resource's `name` field is used to identify the EventEditRule to be
+ * updated.
+ * @param FieldMask $updateMask 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 array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\EventEditRule
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function updateEventEditRule($eventEditRule, $updateMask, array $optionalArgs = [])
+ {
+ $request = new UpdateEventEditRuleRequest();
+ $requestParamHeaders = [];
+ $request->setEventEditRule($eventEditRule);
+ $request->setUpdateMask($updateMask);
+ $requestParamHeaders['event_edit_rule.name'] = $eventEditRule->getName();
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('UpdateEventEditRule', EventEditRule::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Updates a ExpandedDataSet on a property.
*
@@ -8178,6 +8931,54 @@ public function updateGoogleSignalsSettings($googleSignalsSettings, $updateMask,
return $this->startCall('UpdateGoogleSignalsSettings', GoogleSignalsSettings::class, $optionalArgs, $request)->wait();
}
+ /**
+ * Updates a Key Event.
+ *
+ * Sample code:
+ * ```
+ * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient();
+ * try {
+ * $keyEvent = new KeyEvent();
+ * $updateMask = new FieldMask();
+ * $response = $analyticsAdminServiceClient->updateKeyEvent($keyEvent, $updateMask);
+ * } finally {
+ * $analyticsAdminServiceClient->close();
+ * }
+ * ```
+ *
+ * @param KeyEvent $keyEvent Required. The Key Event to update.
+ * The `name` field is used to identify the settings to be updated.
+ * @param FieldMask $updateMask 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 array $optionalArgs {
+ * Optional.
+ *
+ * @type RetrySettings|array $retrySettings
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
+ * }
+ *
+ * @return \Google\Analytics\Admin\V1alpha\KeyEvent
+ *
+ * @throws ApiException if the remote call fails
+ *
+ * @experimental
+ */
+ public function updateKeyEvent($keyEvent, $updateMask, array $optionalArgs = [])
+ {
+ $request = new UpdateKeyEventRequest();
+ $requestParamHeaders = [];
+ $request->setKeyEvent($keyEvent);
+ $request->setUpdateMask($updateMask);
+ $requestParamHeaders['key_event.name'] = $keyEvent->getName();
+ $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
+ $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
+ return $this->startCall('UpdateKeyEvent', KeyEvent::class, $optionalArgs, $request)->wait();
+ }
+
/**
* Updates a measurement protocol secret.
*
diff --git a/AnalyticsAdmin/src/V1alpha/GetDataSharingSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/GetDataSharingSettingsRequest.php
index 9e63e6003737..7574e58142e7 100644
--- a/AnalyticsAdmin/src/V1alpha/GetDataSharingSettingsRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/GetDataSharingSettingsRequest.php
@@ -18,7 +18,7 @@ class GetDataSharingSettingsRequest extends \Google\Protobuf\Internal\Message
/**
* Required. The name of the settings to lookup.
* Format: accounts/{account}/dataSharingSettings
- * Example: "accounts/1000/dataSharingSettings"
+ * Example: `accounts/1000/dataSharingSettings`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -27,7 +27,8 @@ class GetDataSharingSettingsRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $name Required. The name of the settings to lookup.
* Format: accounts/{account}/dataSharingSettings
- * Example: "accounts/1000/dataSharingSettings"
+ *
+ * Example: `accounts/1000/dataSharingSettings`
* Please see {@see AnalyticsAdminServiceClient::dataSharingSettingsName()} for help formatting this field.
*
* @return \Google\Analytics\Admin\V1alpha\GetDataSharingSettingsRequest
@@ -49,7 +50,7 @@ public static function build(string $name): self
* @type string $name
* Required. The name of the settings to lookup.
* Format: accounts/{account}/dataSharingSettings
- * Example: "accounts/1000/dataSharingSettings"
+ * Example: `accounts/1000/dataSharingSettings`
* }
*/
public function __construct($data = NULL) {
@@ -60,7 +61,7 @@ public function __construct($data = NULL) {
/**
* Required. The name of the settings to lookup.
* Format: accounts/{account}/dataSharingSettings
- * Example: "accounts/1000/dataSharingSettings"
+ * Example: `accounts/1000/dataSharingSettings`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -73,7 +74,7 @@ public function getName()
/**
* Required. The name of the settings to lookup.
* Format: accounts/{account}/dataSharingSettings
- * Example: "accounts/1000/dataSharingSettings"
+ * Example: `accounts/1000/dataSharingSettings`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/AnalyticsAdmin/src/V1alpha/GetEventEditRuleRequest.php b/AnalyticsAdmin/src/V1alpha/GetEventEditRuleRequest.php
new file mode 100644
index 000000000000..f85fd2b2d6c1
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/GetEventEditRuleRequest.php
@@ -0,0 +1,86 @@
+google.analytics.admin.v1alpha.GetEventEditRuleRequest
+ */
+class GetEventEditRuleRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The name of the EventEditRule to get.
+ * Example format: properties/123/dataStreams/456/eventEditRules/789
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * @param string $name Required. The name of the EventEditRule to get.
+ * Example format: properties/123/dataStreams/456/eventEditRules/789
+ * Please see {@see AnalyticsAdminServiceClient::eventEditRuleName()} for help formatting this field.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\GetEventEditRuleRequest
+ *
+ * @experimental
+ */
+ public static function build(string $name): self
+ {
+ return (new self())
+ ->setName($name);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The name of the EventEditRule to get.
+ * Example format: properties/123/dataStreams/456/eventEditRules/789
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The name of the EventEditRule to get.
+ * Example format: properties/123/dataStreams/456/eventEditRules/789
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The name of the EventEditRule to get.
+ * Example format: properties/123/dataStreams/456/eventEditRules/789
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/GetGlobalSiteTagRequest.php b/AnalyticsAdmin/src/V1alpha/GetGlobalSiteTagRequest.php
index a6a67694ec13..fd076c73fbab 100644
--- a/AnalyticsAdmin/src/V1alpha/GetGlobalSiteTagRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/GetGlobalSiteTagRequest.php
@@ -19,7 +19,7 @@ class GetGlobalSiteTagRequest extends \Google\Protobuf\Internal\Message
* 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`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -29,7 +29,8 @@ class GetGlobalSiteTagRequest extends \Google\Protobuf\Internal\Message
* @param string $name 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`
* Please see {@see AnalyticsAdminServiceClient::globalSiteTagName()} for help formatting this field.
*
* @return \Google\Analytics\Admin\V1alpha\GetGlobalSiteTagRequest
@@ -52,7 +53,7 @@ public static function build(string $name): self
* 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`
* }
*/
public function __construct($data = NULL) {
@@ -64,7 +65,7 @@ public function __construct($data = NULL) {
* 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`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -78,7 +79,7 @@ public function getName()
* 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`
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/AnalyticsAdmin/src/V1alpha/GetKeyEventRequest.php b/AnalyticsAdmin/src/V1alpha/GetKeyEventRequest.php
new file mode 100644
index 000000000000..ec3fbf7ab81b
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/GetKeyEventRequest.php
@@ -0,0 +1,91 @@
+google.analytics.admin.v1alpha.GetKeyEventRequest
+ */
+class GetKeyEventRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The resource name of the Key Event to retrieve.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $name = '';
+
+ /**
+ * @param string $name Required. The resource name of the Key Event to retrieve.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ * Please see {@see AnalyticsAdminServiceClient::keyEventName()} for help formatting this field.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\GetKeyEventRequest
+ *
+ * @experimental
+ */
+ public static function build(string $name): self
+ {
+ return (new self())
+ ->setName($name);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Required. The resource name of the Key Event to retrieve.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The resource name of the Key Event to retrieve.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Required. The resource name of the Key Event to retrieve.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * Example: "properties/123/keyEvents/456"
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/KeyEvent.php b/AnalyticsAdmin/src/V1alpha/KeyEvent.php
new file mode 100644
index 000000000000..50bf116516a5
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/KeyEvent.php
@@ -0,0 +1,323 @@
+google.analytics.admin.v1alpha.KeyEvent
+ */
+class KeyEvent extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. Resource name of this key event.
+ * Format: properties/{property}/keyEvents/{key_event}
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $name = '';
+ /**
+ * Immutable. The event name for this key event.
+ * Examples: 'click', 'purchase'
+ *
+ * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ */
+ private $event_name = '';
+ /**
+ * Output only. Time when this key event was created in the property.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $create_time = null;
+ /**
+ * Output only. If set to true, this event can be deleted.
+ *
+ * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $deletable = false;
+ /**
+ * 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.
+ *
+ * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $custom = false;
+ /**
+ * Required. The method by which Key Events will be counted across multiple
+ * events within a session.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $counting_method = 0;
+ /**
+ * Optional. Defines a default value/currency for a key event.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $default_value = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $name
+ * Output only. Resource name of this key event.
+ * Format: properties/{property}/keyEvents/{key_event}
+ * @type string $event_name
+ * Immutable. The event name for this key event.
+ * Examples: 'click', 'purchase'
+ * @type \Google\Protobuf\Timestamp $create_time
+ * Output only. Time when this key event was created in the property.
+ * @type bool $deletable
+ * Output only. If set to true, this event can be deleted.
+ * @type bool $custom
+ * 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.
+ * @type int $counting_method
+ * Required. The method by which Key Events will be counted across multiple
+ * events within a session.
+ * @type \Google\Analytics\Admin\V1alpha\KeyEvent\DefaultValue $default_value
+ * Optional. Defines a default value/currency for a key event.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Output only. Resource name of this key event.
+ * Format: properties/{property}/keyEvents/{key_event}
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * Output only. Resource name of this key event.
+ * Format: properties/{property}/keyEvents/{key_event}
+ *
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Immutable. The event name for this key event.
+ * Examples: 'click', 'purchase'
+ *
+ * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ * @return string
+ */
+ public function getEventName()
+ {
+ return $this->event_name;
+ }
+
+ /**
+ * Immutable. The event name for this key event.
+ * Examples: 'click', 'purchase'
+ *
+ * Generated from protobuf field string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE];
+ * @param string $var
+ * @return $this
+ */
+ public function setEventName($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->event_name = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. Time when this key event was created in the property.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return \Google\Protobuf\Timestamp|null
+ */
+ public function getCreateTime()
+ {
+ return $this->create_time;
+ }
+
+ public function hasCreateTime()
+ {
+ return isset($this->create_time);
+ }
+
+ public function clearCreateTime()
+ {
+ unset($this->create_time);
+ }
+
+ /**
+ * Output only. Time when this key event was created in the property.
+ *
+ * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param \Google\Protobuf\Timestamp $var
+ * @return $this
+ */
+ public function setCreateTime($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
+ $this->create_time = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. If set to true, this event can be deleted.
+ *
+ * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return bool
+ */
+ public function getDeletable()
+ {
+ return $this->deletable;
+ }
+
+ /**
+ * Output only. If set to true, this event can be deleted.
+ *
+ * Generated from protobuf field bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param bool $var
+ * @return $this
+ */
+ public function setDeletable($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->deletable = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return bool
+ */
+ public function getCustom()
+ {
+ return $this->custom;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param bool $var
+ * @return $this
+ */
+ public function setCustom($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->custom = $var;
+
+ return $this;
+ }
+
+ /**
+ * Required. The method by which Key Events will be counted across multiple
+ * events within a session.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED];
+ * @return int
+ */
+ public function getCountingMethod()
+ {
+ return $this->counting_method;
+ }
+
+ /**
+ * Required. The method by which Key Events will be counted across multiple
+ * events within a session.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.CountingMethod counting_method = 6 [(.google.api.field_behavior) = REQUIRED];
+ * @param int $var
+ * @return $this
+ */
+ public function setCountingMethod($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\KeyEvent\CountingMethod::class);
+ $this->counting_method = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. Defines a default value/currency for a key event.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Analytics\Admin\V1alpha\KeyEvent\DefaultValue|null
+ */
+ public function getDefaultValue()
+ {
+ return $this->default_value;
+ }
+
+ public function hasDefaultValue()
+ {
+ return isset($this->default_value);
+ }
+
+ public function clearDefaultValue()
+ {
+ unset($this->default_value);
+ }
+
+ /**
+ * Optional. Defines a default value/currency for a key event.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent.DefaultValue default_value = 7 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Analytics\Admin\V1alpha\KeyEvent\DefaultValue $var
+ * @return $this
+ */
+ public function setDefaultValue($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\KeyEvent\DefaultValue::class);
+ $this->default_value = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/KeyEvent/CountingMethod.php b/AnalyticsAdmin/src/V1alpha/KeyEvent/CountingMethod.php
new file mode 100644
index 000000000000..2dcf7fa2ee5d
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/KeyEvent/CountingMethod.php
@@ -0,0 +1,66 @@
+google.analytics.admin.v1alpha.KeyEvent.CountingMethod
+ */
+class CountingMethod
+{
+ /**
+ * Counting method not specified.
+ *
+ * Generated from protobuf enum COUNTING_METHOD_UNSPECIFIED = 0;
+ */
+ const COUNTING_METHOD_UNSPECIFIED = 0;
+ /**
+ * Each Event instance is considered a Key Event.
+ *
+ * Generated from protobuf enum ONCE_PER_EVENT = 1;
+ */
+ const ONCE_PER_EVENT = 1;
+ /**
+ * An Event instance is considered a Key Event at most once per session per
+ * user.
+ *
+ * Generated from protobuf enum ONCE_PER_SESSION = 2;
+ */
+ const ONCE_PER_SESSION = 2;
+
+ private static $valueToName = [
+ self::COUNTING_METHOD_UNSPECIFIED => 'COUNTING_METHOD_UNSPECIFIED',
+ self::ONCE_PER_EVENT => 'ONCE_PER_EVENT',
+ self::ONCE_PER_SESSION => 'ONCE_PER_SESSION',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(CountingMethod::class, \Google\Analytics\Admin\V1alpha\KeyEvent_CountingMethod::class);
+
diff --git a/AnalyticsAdmin/src/V1alpha/KeyEvent/DefaultValue.php b/AnalyticsAdmin/src/V1alpha/KeyEvent/DefaultValue.php
new file mode 100644
index 000000000000..a7369776b97b
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/KeyEvent/DefaultValue.php
@@ -0,0 +1,124 @@
+google.analytics.admin.v1alpha.KeyEvent.DefaultValue
+ */
+class DefaultValue extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * 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.
+ *
+ * Generated from protobuf field double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $numeric_value = 0.0;
+ /**
+ * 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.
+ *
+ * Generated from protobuf field string currency_code = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $currency_code = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type float $numeric_value
+ * 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.
+ * @type string $currency_code
+ * 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.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return float
+ */
+ public function getNumericValue()
+ {
+ return $this->numeric_value;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field double numeric_value = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param float $var
+ * @return $this
+ */
+ public function setNumericValue($var)
+ {
+ GPBUtil::checkDouble($var);
+ $this->numeric_value = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field string currency_code = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return string
+ */
+ public function getCurrencyCode()
+ {
+ return $this->currency_code;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field string currency_code = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param string $var
+ * @return $this
+ */
+ public function setCurrencyCode($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->currency_code = $var;
+
+ return $this;
+ }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(DefaultValue::class, \Google\Analytics\Admin\V1alpha\KeyEvent_DefaultValue::class);
+
diff --git a/AnalyticsAdmin/src/V1alpha/ListEventEditRulesRequest.php b/AnalyticsAdmin/src/V1alpha/ListEventEditRulesRequest.php
new file mode 100644
index 000000000000..27655c82c43e
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ListEventEditRulesRequest.php
@@ -0,0 +1,169 @@
+google.analytics.admin.v1alpha.ListEventEditRulesRequest
+ */
+class ListEventEditRulesRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/123/dataStreams/456
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * 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).
+ *
+ * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $page_size = 0;
+ /**
+ * 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.
+ *
+ * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $page_token = '';
+
+ /**
+ * @param string $parent Required. Example format: properties/123/dataStreams/456
+ * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\ListEventEditRulesRequest
+ *
+ * @experimental
+ */
+ public static function build(string $parent): self
+ {
+ return (new self())
+ ->setParent($parent);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. Example format: properties/123/dataStreams/456
+ * @type int $page_size
+ * 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).
+ * @type string $page_token
+ * 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.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/123/dataStreams/456
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. Example format: properties/123/dataStreams/456
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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).
+ *
+ * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * @return int
+ */
+ public function getPageSize()
+ {
+ return $this->page_size;
+ }
+
+ /**
+ * 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).
+ *
+ * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * @param int $var
+ * @return $this
+ */
+ public function setPageSize($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->page_size = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @return string
+ */
+ public function getPageToken()
+ {
+ return $this->page_token;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @param string $var
+ * @return $this
+ */
+ public function setPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ListEventEditRulesResponse.php b/AnalyticsAdmin/src/V1alpha/ListEventEditRulesResponse.php
new file mode 100644
index 000000000000..48813b9c0b40
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ListEventEditRulesResponse.php
@@ -0,0 +1,109 @@
+google.analytics.admin.v1alpha.ListEventEditRulesResponse
+ */
+class ListEventEditRulesResponse extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * List of EventEditRules. These will be ordered stably, but in an arbitrary
+ * order.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventEditRule event_edit_rules = 1;
+ */
+ private $event_edit_rules;
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ */
+ private $next_page_token = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type array<\Google\Analytics\Admin\V1alpha\EventEditRule>|\Google\Protobuf\Internal\RepeatedField $event_edit_rules
+ * List of EventEditRules. These will be ordered stably, but in an arbitrary
+ * order.
+ * @type string $next_page_token
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * List of EventEditRules. These will be ordered stably, but in an arbitrary
+ * order.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventEditRule event_edit_rules = 1;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getEventEditRules()
+ {
+ return $this->event_edit_rules;
+ }
+
+ /**
+ * List of EventEditRules. These will be ordered stably, but in an arbitrary
+ * order.
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.EventEditRule event_edit_rules = 1;
+ * @param array<\Google\Analytics\Admin\V1alpha\EventEditRule>|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setEventEditRules($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\EventEditRule::class);
+ $this->event_edit_rules = $arr;
+
+ return $this;
+ }
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @return string
+ */
+ public function getNextPageToken()
+ {
+ return $this->next_page_token;
+ }
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @param string $var
+ * @return $this
+ */
+ public function setNextPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->next_page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ListFirebaseLinksRequest.php b/AnalyticsAdmin/src/V1alpha/ListFirebaseLinksRequest.php
index d68f54c02465..7d34de879872 100644
--- a/AnalyticsAdmin/src/V1alpha/ListFirebaseLinksRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/ListFirebaseLinksRequest.php
@@ -17,7 +17,7 @@ class ListFirebaseLinksRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. Format: properties/{property_id}
- * Example: properties/1234
+ * Example: `properties/1234`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -43,7 +43,8 @@ class ListFirebaseLinksRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. Format: properties/{property_id}
- * Example: properties/1234
+ *
+ * Example: `properties/1234`
* Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field.
*
* @return \Google\Analytics\Admin\V1alpha\ListFirebaseLinksRequest
@@ -64,7 +65,7 @@ public static function build(string $parent): self
*
* @type string $parent
* Required. Format: properties/{property_id}
- * Example: properties/1234
+ * Example: `properties/1234`
* @type int $page_size
* The maximum number of resources to return. The service may return
* fewer than this value, even if there are additional pages.
@@ -84,7 +85,7 @@ public function __construct($data = NULL) {
/**
* Required. Format: properties/{property_id}
- * Example: properties/1234
+ * Example: `properties/1234`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -96,7 +97,7 @@ public function getParent()
/**
* Required. Format: properties/{property_id}
- * Example: properties/1234
+ * Example: `properties/1234`
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/AnalyticsAdmin/src/V1alpha/ListKeyEventsRequest.php b/AnalyticsAdmin/src/V1alpha/ListKeyEventsRequest.php
new file mode 100644
index 000000000000..a8bfea3dbea4
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ListKeyEventsRequest.php
@@ -0,0 +1,174 @@
+google.analytics.admin.v1alpha.ListKeyEventsRequest
+ */
+class ListKeyEventsRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The resource name of the parent property.
+ * Example: 'properties/123'
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * 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)
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ */
+ private $page_size = 0;
+ /**
+ * 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.
+ *
+ * Generated from protobuf field string page_token = 3;
+ */
+ private $page_token = '';
+
+ /**
+ * @param string $parent Required. The resource name of the parent property.
+ * Example: 'properties/123'
+ * Please see {@see AnalyticsAdminServiceClient::propertyName()} for help formatting this field.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\ListKeyEventsRequest
+ *
+ * @experimental
+ */
+ public static function build(string $parent): self
+ {
+ return (new self())
+ ->setParent($parent);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. The resource name of the parent property.
+ * Example: 'properties/123'
+ * @type int $page_size
+ * 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)
+ * @type string $page_token
+ * 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.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The resource name of the parent property.
+ * Example: 'properties/123'
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. The resource name of the parent property.
+ * Example: 'properties/123'
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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)
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ * @return int
+ */
+ public function getPageSize()
+ {
+ return $this->page_size;
+ }
+
+ /**
+ * 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)
+ *
+ * Generated from protobuf field int32 page_size = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setPageSize($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->page_size = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field string page_token = 3;
+ * @return string
+ */
+ public function getPageToken()
+ {
+ return $this->page_token;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field string page_token = 3;
+ * @param string $var
+ * @return $this
+ */
+ public function setPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ListKeyEventsResponse.php b/AnalyticsAdmin/src/V1alpha/ListKeyEventsResponse.php
new file mode 100644
index 000000000000..2a2c2da41395
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ListKeyEventsResponse.php
@@ -0,0 +1,105 @@
+google.analytics.admin.v1alpha.ListKeyEventsResponse
+ */
+class ListKeyEventsResponse extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The requested Key Events
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.KeyEvent key_events = 1;
+ */
+ private $key_events;
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ */
+ private $next_page_token = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type array<\Google\Analytics\Admin\V1alpha\KeyEvent>|\Google\Protobuf\Internal\RepeatedField $key_events
+ * The requested Key Events
+ * @type string $next_page_token
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The requested Key Events
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.KeyEvent key_events = 1;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getKeyEvents()
+ {
+ return $this->key_events;
+ }
+
+ /**
+ * The requested Key Events
+ *
+ * Generated from protobuf field repeated .google.analytics.admin.v1alpha.KeyEvent key_events = 1;
+ * @param array<\Google\Analytics\Admin\V1alpha\KeyEvent>|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setKeyEvents($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\KeyEvent::class);
+ $this->key_events = $arr;
+
+ return $this;
+ }
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @return string
+ */
+ public function getNextPageToken()
+ {
+ return $this->next_page_token;
+ }
+
+ /**
+ * A token, which can be sent as `page_token` to retrieve the next page.
+ * If this field is omitted, there are no subsequent pages.
+ *
+ * Generated from protobuf field string next_page_token = 2;
+ * @param string $var
+ * @return $this
+ */
+ public function setNextPageToken($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->next_page_token = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ProvisionSubpropertyRequest.php b/AnalyticsAdmin/src/V1alpha/ProvisionSubpropertyRequest.php
new file mode 100644
index 000000000000..123ffc61f074
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ProvisionSubpropertyRequest.php
@@ -0,0 +1,121 @@
+google.analytics.admin.v1alpha.ProvisionSubpropertyRequest
+ */
+class ProvisionSubpropertyRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The subproperty to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $subproperty = null;
+ /**
+ * Optional. The subproperty event filter to create on an ordinary property.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $subproperty_event_filter = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\Property $subproperty
+ * Required. The subproperty to create.
+ * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter
+ * Optional. The subproperty event filter to create on an ordinary property.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The subproperty to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\Property|null
+ */
+ public function getSubproperty()
+ {
+ return $this->subproperty;
+ }
+
+ public function hasSubproperty()
+ {
+ return isset($this->subproperty);
+ }
+
+ public function clearSubproperty()
+ {
+ unset($this->subproperty);
+ }
+
+ /**
+ * Required. The subproperty to create.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\Property $var
+ * @return $this
+ */
+ public function setSubproperty($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class);
+ $this->subproperty = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. The subproperty event filter to create on an ordinary property.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null
+ */
+ public function getSubpropertyEventFilter()
+ {
+ return $this->subproperty_event_filter;
+ }
+
+ public function hasSubpropertyEventFilter()
+ {
+ return isset($this->subproperty_event_filter);
+ }
+
+ public function clearSubpropertyEventFilter()
+ {
+ unset($this->subproperty_event_filter);
+ }
+
+ /**
+ * Optional. The subproperty event filter to create on an ordinary property.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var
+ * @return $this
+ */
+ public function setSubpropertyEventFilter($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class);
+ $this->subproperty_event_filter = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ProvisionSubpropertyResponse.php b/AnalyticsAdmin/src/V1alpha/ProvisionSubpropertyResponse.php
new file mode 100644
index 000000000000..943044dface9
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ProvisionSubpropertyResponse.php
@@ -0,0 +1,121 @@
+google.analytics.admin.v1alpha.ProvisionSubpropertyResponse
+ */
+class ProvisionSubpropertyResponse extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * The created subproperty.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 1;
+ */
+ private $subproperty = null;
+ /**
+ * The created subproperty event filter.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2;
+ */
+ private $subproperty_event_filter = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\Property $subproperty
+ * The created subproperty.
+ * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter
+ * The created subproperty event filter.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The created subproperty.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 1;
+ * @return \Google\Analytics\Admin\V1alpha\Property|null
+ */
+ public function getSubproperty()
+ {
+ return $this->subproperty;
+ }
+
+ public function hasSubproperty()
+ {
+ return isset($this->subproperty);
+ }
+
+ public function clearSubproperty()
+ {
+ unset($this->subproperty);
+ }
+
+ /**
+ * The created subproperty.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.Property subproperty = 1;
+ * @param \Google\Analytics\Admin\V1alpha\Property $var
+ * @return $this
+ */
+ public function setSubproperty($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class);
+ $this->subproperty = $var;
+
+ return $this;
+ }
+
+ /**
+ * The created subproperty event filter.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2;
+ * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter|null
+ */
+ public function getSubpropertyEventFilter()
+ {
+ return $this->subproperty_event_filter;
+ }
+
+ public function hasSubpropertyEventFilter()
+ {
+ return isset($this->subproperty_event_filter);
+ }
+
+ public function clearSubpropertyEventFilter()
+ {
+ unset($this->subproperty_event_filter);
+ }
+
+ /**
+ * The created subproperty event filter.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2;
+ * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $var
+ * @return $this
+ */
+ public function setSubpropertyEventFilter($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class);
+ $this->subproperty_event_filter = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/ReorderEventEditRulesRequest.php b/AnalyticsAdmin/src/V1alpha/ReorderEventEditRulesRequest.php
new file mode 100644
index 000000000000..f0d37d212f89
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/ReorderEventEditRulesRequest.php
@@ -0,0 +1,109 @@
+google.analytics.admin.v1alpha.ReorderEventEditRulesRequest
+ */
+class ReorderEventEditRulesRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. Example format: properties/123/dataStreams/456
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ */
+ private $parent = '';
+ /**
+ * 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.
+ *
+ * Generated from protobuf field repeated string event_edit_rules = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $event_edit_rules;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $parent
+ * Required. Example format: properties/123/dataStreams/456
+ * @type array|\Google\Protobuf\Internal\RepeatedField $event_edit_rules
+ * 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.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. Example format: properties/123/dataStreams/456
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getParent()
+ {
+ return $this->parent;
+ }
+
+ /**
+ * Required. Example format: properties/123/dataStreams/456
+ *
+ * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setParent($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->parent = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field repeated string event_edit_rules = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getEventEditRules()
+ {
+ return $this->event_edit_rules;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field repeated string event_edit_rules = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setEventEditRules($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
+ $this->event_edit_rules = $arr;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php b/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php
index aa745c63df2a..71d8b8185a98 100644
--- a/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php
+++ b/AnalyticsAdmin/src/V1alpha/SearchChangeHistoryEventsRequest.php
@@ -17,7 +17,8 @@ class SearchChangeHistoryEventsRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The account resource for which to return change history
- * resources. Format: accounts/{account} Example: "accounts/100"
+ * resources. Format: accounts/{account}
+ * Example: `accounts/100`
*
* Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -26,7 +27,7 @@ class SearchChangeHistoryEventsRequest extends \Google\Protobuf\Internal\Message
* 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`
*
* Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
*/
@@ -92,12 +93,13 @@ class SearchChangeHistoryEventsRequest extends \Google\Protobuf\Internal\Message
*
* @type string $account
* Required. The account resource for which to return change history
- * resources. Format: accounts/{account} Example: "accounts/100"
+ * resources. Format: accounts/{account}
+ * Example: `accounts/100`
* @type string $property
* 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`
* @type array|\Google\Protobuf\Internal\RepeatedField $resource_type
* Optional. If set, only return changes if they are for a resource that
* matches at least one of these types.
@@ -131,7 +133,8 @@ public function __construct($data = NULL) {
/**
* Required. The account resource for which to return change history
- * resources. Format: accounts/{account} Example: "accounts/100"
+ * resources. Format: accounts/{account}
+ * Example: `accounts/100`
*
* Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -143,7 +146,8 @@ public function getAccount()
/**
* Required. The account resource for which to return change history
- * resources. Format: accounts/{account} Example: "accounts/100"
+ * resources. Format: accounts/{account}
+ * Example: `accounts/100`
*
* Generated from protobuf field string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
@@ -161,7 +165,7 @@ public function setAccount($var)
* 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`
*
* Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
* @return string
@@ -175,7 +179,7 @@ public function getProperty()
* 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`
*
* Generated from protobuf field string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
* @param string $var
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateBigQueryLinkRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateBigQueryLinkRequest.php
new file mode 100644
index 000000000000..784764222def
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/UpdateBigQueryLinkRequest.php
@@ -0,0 +1,156 @@
+google.analytics.admin.v1alpha.UpdateBigQueryLinkRequest
+ */
+class UpdateBigQueryLinkRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 1 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $bigquery_link = null;
+ /**
+ * 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.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $update_mask = null;
+
+ /**
+ * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $bigqueryLink Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ * @param \Google\Protobuf\FieldMask $updateMask 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.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\UpdateBigQueryLinkRequest
+ *
+ * @experimental
+ */
+ public static function build(\Google\Analytics\Admin\V1alpha\BigQueryLink $bigqueryLink, \Google\Protobuf\FieldMask $updateMask): self
+ {
+ return (new self())
+ ->setBigqueryLink($bigqueryLink)
+ ->setUpdateMask($updateMask);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\BigQueryLink $bigquery_link
+ * Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ * @type \Google\Protobuf\FieldMask $update_mask
+ * 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.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\BigQueryLink|null
+ */
+ public function getBigqueryLink()
+ {
+ return $this->bigquery_link;
+ }
+
+ public function hasBigqueryLink()
+ {
+ return isset($this->bigquery_link);
+ }
+
+ public function clearBigqueryLink()
+ {
+ unset($this->bigquery_link);
+ }
+
+ /**
+ * Required. The settings to update.
+ * The `name` field is used to identify the settings to be updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\BigQueryLink $var
+ * @return $this
+ */
+ public function setBigqueryLink($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\BigQueryLink::class);
+ $this->bigquery_link = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Protobuf\FieldMask|null
+ */
+ public function getUpdateMask()
+ {
+ return $this->update_mask;
+ }
+
+ public function hasUpdateMask()
+ {
+ return isset($this->update_mask);
+ }
+
+ public function clearUpdateMask()
+ {
+ unset($this->update_mask);
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Protobuf\FieldMask $var
+ * @return $this
+ */
+ public function setUpdateMask($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
+ $this->update_mask = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateEventEditRuleRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateEventEditRuleRequest.php
new file mode 100644
index 000000000000..b5eb0eba669b
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/UpdateEventEditRuleRequest.php
@@ -0,0 +1,161 @@
+google.analytics.admin.v1alpha.UpdateEventEditRuleRequest
+ */
+class UpdateEventEditRuleRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The EventEditRule to update.
+ * The resource's `name` field is used to identify the EventEditRule to be
+ * updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 1 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $event_edit_rule = null;
+ /**
+ * 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.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $update_mask = null;
+
+ /**
+ * @param \Google\Analytics\Admin\V1alpha\EventEditRule $eventEditRule Required. The EventEditRule to update.
+ * The resource's `name` field is used to identify the EventEditRule to be
+ * updated.
+ * @param \Google\Protobuf\FieldMask $updateMask 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.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\UpdateEventEditRuleRequest
+ *
+ * @experimental
+ */
+ public static function build(\Google\Analytics\Admin\V1alpha\EventEditRule $eventEditRule, \Google\Protobuf\FieldMask $updateMask): self
+ {
+ return (new self())
+ ->setEventEditRule($eventEditRule)
+ ->setUpdateMask($updateMask);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\EventEditRule $event_edit_rule
+ * Required. The EventEditRule to update.
+ * The resource's `name` field is used to identify the EventEditRule to be
+ * updated.
+ * @type \Google\Protobuf\FieldMask $update_mask
+ * 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.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The EventEditRule to update.
+ * The resource's `name` field is used to identify the EventEditRule to be
+ * updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\EventEditRule|null
+ */
+ public function getEventEditRule()
+ {
+ return $this->event_edit_rule;
+ }
+
+ public function hasEventEditRule()
+ {
+ return isset($this->event_edit_rule);
+ }
+
+ public function clearEventEditRule()
+ {
+ unset($this->event_edit_rule);
+ }
+
+ /**
+ * Required. The EventEditRule to update.
+ * The resource's `name` field is used to identify the EventEditRule to be
+ * updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.EventEditRule event_edit_rule = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\EventEditRule $var
+ * @return $this
+ */
+ public function setEventEditRule($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\EventEditRule::class);
+ $this->event_edit_rule = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Protobuf\FieldMask|null
+ */
+ public function getUpdateMask()
+ {
+ return $this->update_mask;
+ }
+
+ public function hasUpdateMask()
+ {
+ return isset($this->update_mask);
+ }
+
+ public function clearUpdateMask()
+ {
+ unset($this->update_mask);
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Protobuf\FieldMask $var
+ * @return $this
+ */
+ public function setUpdateMask($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
+ $this->update_mask = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/UpdateKeyEventRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateKeyEventRequest.php
new file mode 100644
index 000000000000..5f32240b89e4
--- /dev/null
+++ b/AnalyticsAdmin/src/V1alpha/UpdateKeyEventRequest.php
@@ -0,0 +1,156 @@
+google.analytics.admin.v1alpha.UpdateKeyEventRequest
+ */
+class UpdateKeyEventRequest extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. The Key Event to update.
+ * The `name` field is used to identify the settings to be updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $key_event = null;
+ /**
+ * 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.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private $update_mask = null;
+
+ /**
+ * @param \Google\Analytics\Admin\V1alpha\KeyEvent $keyEvent Required. The Key Event to update.
+ * The `name` field is used to identify the settings to be updated.
+ * @param \Google\Protobuf\FieldMask $updateMask 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.
+ *
+ * @return \Google\Analytics\Admin\V1alpha\UpdateKeyEventRequest
+ *
+ * @experimental
+ */
+ public static function build(\Google\Analytics\Admin\V1alpha\KeyEvent $keyEvent, \Google\Protobuf\FieldMask $updateMask): self
+ {
+ return (new self())
+ ->setKeyEvent($keyEvent)
+ ->setUpdateMask($updateMask);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type \Google\Analytics\Admin\V1alpha\KeyEvent $key_event
+ * Required. The Key Event to update.
+ * The `name` field is used to identify the settings to be updated.
+ * @type \Google\Protobuf\FieldMask $update_mask
+ * 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.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Required. The Key Event to update.
+ * The `name` field is used to identify the settings to be updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Analytics\Admin\V1alpha\KeyEvent|null
+ */
+ public function getKeyEvent()
+ {
+ return $this->key_event;
+ }
+
+ public function hasKeyEvent()
+ {
+ return isset($this->key_event);
+ }
+
+ public function clearKeyEvent()
+ {
+ unset($this->key_event);
+ }
+
+ /**
+ * Required. The Key Event to update.
+ * The `name` field is used to identify the settings to be updated.
+ *
+ * Generated from protobuf field .google.analytics.admin.v1alpha.KeyEvent key_event = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Analytics\Admin\V1alpha\KeyEvent $var
+ * @return $this
+ */
+ public function setKeyEvent($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\KeyEvent::class);
+ $this->key_event = $var;
+
+ return $this;
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return \Google\Protobuf\FieldMask|null
+ */
+ public function getUpdateMask()
+ {
+ return $this->update_mask;
+ }
+
+ public function hasUpdateMask()
+ {
+ return isset($this->update_mask);
+ }
+
+ public function clearUpdateMask()
+ {
+ unset($this->update_mask);
+ }
+
+ /**
+ * 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.
+ *
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @param \Google\Protobuf\FieldMask $var
+ * @return $this
+ */
+ public function setUpdateMask($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
+ $this->update_mask = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/AnalyticsAdmin/src/V1alpha/gapic_metadata.json b/AnalyticsAdmin/src/V1alpha/gapic_metadata.json
index 47d62b14b02e..2d0ee0a353b0 100644
--- a/AnalyticsAdmin/src/V1alpha/gapic_metadata.json
+++ b/AnalyticsAdmin/src/V1alpha/gapic_metadata.json
@@ -75,6 +75,11 @@
"createAudience"
]
},
+ "CreateBigQueryLink": {
+ "methods": [
+ "createBigQueryLink"
+ ]
+ },
"CreateCalculatedMetric": {
"methods": [
"createCalculatedMetric"
@@ -125,6 +130,11 @@
"createEventCreateRule"
]
},
+ "CreateEventEditRule": {
+ "methods": [
+ "createEventEditRule"
+ ]
+ },
"CreateExpandedDataSet": {
"methods": [
"createExpandedDataSet"
@@ -140,6 +150,11 @@
"createGoogleAdsLink"
]
},
+ "CreateKeyEvent": {
+ "methods": [
+ "createKeyEvent"
+ ]
+ },
"CreateMeasurementProtocolSecret": {
"methods": [
"createMeasurementProtocolSecret"
@@ -170,11 +185,6 @@
"createSearchAds360Link"
]
},
- "CreateSubproperty": {
- "methods": [
- "createSubproperty"
- ]
- },
"CreateSubpropertyEventFilter": {
"methods": [
"createSubpropertyEventFilter"
@@ -195,6 +205,11 @@
"deleteAdSenseLink"
]
},
+ "DeleteBigQueryLink": {
+ "methods": [
+ "deleteBigQueryLink"
+ ]
+ },
"DeleteCalculatedMetric": {
"methods": [
"deleteCalculatedMetric"
@@ -235,6 +250,11 @@
"deleteEventCreateRule"
]
},
+ "DeleteEventEditRule": {
+ "methods": [
+ "deleteEventEditRule"
+ ]
+ },
"DeleteExpandedDataSet": {
"methods": [
"deleteExpandedDataSet"
@@ -250,6 +270,11 @@
"deleteGoogleAdsLink"
]
},
+ "DeleteKeyEvent": {
+ "methods": [
+ "deleteKeyEvent"
+ ]
+ },
"DeleteMeasurementProtocolSecret": {
"methods": [
"deleteMeasurementProtocolSecret"
@@ -385,6 +410,11 @@
"getEventCreateRule"
]
},
+ "GetEventEditRule": {
+ "methods": [
+ "getEventEditRule"
+ ]
+ },
"GetExpandedDataSet": {
"methods": [
"getExpandedDataSet"
@@ -400,6 +430,11 @@
"getGoogleSignalsSettings"
]
},
+ "GetKeyEvent": {
+ "methods": [
+ "getKeyEvent"
+ ]
+ },
"GetMeasurementProtocolSecret": {
"methods": [
"getMeasurementProtocolSecret"
@@ -510,6 +545,11 @@
"listEventCreateRules"
]
},
+ "ListEventEditRules": {
+ "methods": [
+ "listEventEditRules"
+ ]
+ },
"ListExpandedDataSets": {
"methods": [
"listExpandedDataSets"
@@ -525,6 +565,11 @@
"listGoogleAdsLinks"
]
},
+ "ListKeyEvents": {
+ "methods": [
+ "listKeyEvents"
+ ]
+ },
"ListMeasurementProtocolSecrets": {
"methods": [
"listMeasurementProtocolSecrets"
@@ -560,6 +605,16 @@
"provisionAccountTicket"
]
},
+ "ProvisionSubproperty": {
+ "methods": [
+ "provisionSubproperty"
+ ]
+ },
+ "ReorderEventEditRules": {
+ "methods": [
+ "reorderEventEditRules"
+ ]
+ },
"RunAccessReport": {
"methods": [
"runAccessReport"
@@ -595,6 +650,11 @@
"updateAudience"
]
},
+ "UpdateBigQueryLink": {
+ "methods": [
+ "updateBigQueryLink"
+ ]
+ },
"UpdateCalculatedMetric": {
"methods": [
"updateCalculatedMetric"
@@ -650,6 +710,11 @@
"updateEventCreateRule"
]
},
+ "UpdateEventEditRule": {
+ "methods": [
+ "updateEventEditRule"
+ ]
+ },
"UpdateExpandedDataSet": {
"methods": [
"updateExpandedDataSet"
@@ -665,6 +730,11 @@
"updateGoogleSignalsSettings"
]
},
+ "UpdateKeyEvent": {
+ "methods": [
+ "updateKeyEvent"
+ ]
+ },
"UpdateMeasurementProtocolSecret": {
"methods": [
"updateMeasurementProtocolSecret"
diff --git a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json
index d6a6cddd092d..b328e35311d9 100644
--- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json
+++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json
@@ -104,6 +104,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "CreateBigQueryLink": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"CreateCalculatedMetric": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -154,6 +159,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "CreateEventEditRule": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"CreateExpandedDataSet": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -169,6 +179,11 @@
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
+ "CreateKeyEvent": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"CreateMeasurementProtocolSecret": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -199,11 +214,6 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
- "CreateSubproperty": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
"CreateSubpropertyEventFilter": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -224,6 +234,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "DeleteBigQueryLink": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"DeleteCalculatedMetric": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -264,6 +279,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "DeleteEventEditRule": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"DeleteExpandedDataSet": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -279,6 +299,11 @@
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
+ "DeleteKeyEvent": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"DeleteMeasurementProtocolSecret": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -414,6 +439,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "GetEventEditRule": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"GetExpandedDataSet": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -429,6 +459,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "GetKeyEvent": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"GetMeasurementProtocolSecret": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -539,6 +574,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "ListEventEditRules": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"ListExpandedDataSets": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -554,6 +594,11 @@
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
+ "ListKeyEvents": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"ListMeasurementProtocolSecrets": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -589,6 +634,16 @@
"retry_codes_name": "no_retry_1_codes",
"retry_params_name": "no_retry_1_params"
},
+ "ProvisionSubproperty": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
+ "ReorderEventEditRules": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"RunAccessReport": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -624,6 +679,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "UpdateBigQueryLink": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"UpdateCalculatedMetric": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -679,6 +739,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "UpdateEventEditRule": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"UpdateExpandedDataSet": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
@@ -694,6 +759,11 @@
"retry_codes_name": "retry_policy_1_codes",
"retry_params_name": "retry_policy_1_params"
},
+ "UpdateKeyEvent": {
+ "timeout_millis": 60000,
+ "retry_codes_name": "retry_policy_1_codes",
+ "retry_params_name": "retry_policy_1_params"
+ },
"UpdateMeasurementProtocolSecret": {
"timeout_millis": 60000,
"retry_codes_name": "retry_policy_1_codes",
diff --git a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php
index 79743c274eaa..38157874e306 100644
--- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php
+++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php
@@ -179,6 +179,18 @@
],
],
],
+ 'CreateBigQueryLink' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\BigQueryLink',
+ 'headerParams' => [
+ [
+ 'keyName' => 'parent',
+ 'fieldAccessors' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'CreateCalculatedMetric' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\CalculatedMetric',
@@ -291,6 +303,18 @@
],
],
],
+ 'CreateEventEditRule' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\EventEditRule',
+ 'headerParams' => [
+ [
+ 'keyName' => 'parent',
+ 'fieldAccessors' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'CreateExpandedDataSet' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\ExpandedDataSet',
@@ -327,6 +351,18 @@
],
],
],
+ 'CreateKeyEvent' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\KeyEvent',
+ 'headerParams' => [
+ [
+ 'keyName' => 'parent',
+ 'fieldAccessors' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'CreateMeasurementProtocolSecret' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret',
@@ -383,10 +419,6 @@
],
],
],
- 'CreateSubproperty' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse',
- ],
'CreateSubpropertyEventFilter' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\SubpropertyEventFilter',
@@ -435,6 +467,18 @@
],
],
],
+ 'DeleteBigQueryLink' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Protobuf\GPBEmpty',
+ 'headerParams' => [
+ [
+ 'keyName' => 'name',
+ 'fieldAccessors' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'DeleteCalculatedMetric' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Protobuf\GPBEmpty',
@@ -523,6 +567,18 @@
],
],
],
+ 'DeleteEventEditRule' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Protobuf\GPBEmpty',
+ 'headerParams' => [
+ [
+ 'keyName' => 'name',
+ 'fieldAccessors' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'DeleteExpandedDataSet' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Protobuf\GPBEmpty',
@@ -559,6 +615,18 @@
],
],
],
+ 'DeleteKeyEvent' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Protobuf\GPBEmpty',
+ 'headerParams' => [
+ [
+ 'keyName' => 'name',
+ 'fieldAccessors' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'DeleteMeasurementProtocolSecret' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Protobuf\GPBEmpty',
@@ -867,6 +935,18 @@
],
],
],
+ 'GetEventEditRule' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\EventEditRule',
+ 'headerParams' => [
+ [
+ 'keyName' => 'name',
+ 'fieldAccessors' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'GetExpandedDataSet' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\ExpandedDataSet',
@@ -903,6 +983,18 @@
],
],
],
+ 'GetKeyEvent' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\KeyEvent',
+ 'headerParams' => [
+ [
+ 'keyName' => 'name',
+ 'fieldAccessors' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'GetMeasurementProtocolSecret' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret',
@@ -1263,6 +1355,26 @@
],
],
],
+ 'ListEventEditRules' => [
+ 'pageStreaming' => [
+ 'requestPageTokenGetMethod' => 'getPageToken',
+ 'requestPageTokenSetMethod' => 'setPageToken',
+ 'requestPageSizeGetMethod' => 'getPageSize',
+ 'requestPageSizeSetMethod' => 'setPageSize',
+ 'responsePageTokenGetMethod' => 'getNextPageToken',
+ 'resourcesGetMethod' => 'getEventEditRules',
+ ],
+ 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\ListEventEditRulesResponse',
+ 'headerParams' => [
+ [
+ 'keyName' => 'parent',
+ 'fieldAccessors' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'ListExpandedDataSets' => [
'pageStreaming' => [
'requestPageTokenGetMethod' => 'getPageToken',
@@ -1323,6 +1435,26 @@
],
],
],
+ 'ListKeyEvents' => [
+ 'pageStreaming' => [
+ 'requestPageTokenGetMethod' => 'getPageToken',
+ 'requestPageTokenSetMethod' => 'setPageToken',
+ 'requestPageSizeGetMethod' => 'getPageSize',
+ 'requestPageSizeSetMethod' => 'setPageSize',
+ 'responsePageTokenGetMethod' => 'getNextPageToken',
+ 'resourcesGetMethod' => 'getKeyEvents',
+ ],
+ 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\ListKeyEventsResponse',
+ 'headerParams' => [
+ [
+ 'keyName' => 'parent',
+ 'fieldAccessors' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'ListMeasurementProtocolSecrets' => [
'pageStreaming' => [
'requestPageTokenGetMethod' => 'getPageToken',
@@ -1439,6 +1571,22 @@
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse',
],
+ 'ProvisionSubproperty' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\ProvisionSubpropertyResponse',
+ ],
+ 'ReorderEventEditRules' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Protobuf\GPBEmpty',
+ 'headerParams' => [
+ [
+ 'keyName' => 'parent',
+ 'fieldAccessors' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'RunAccessReport' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\RunAccessReportResponse',
@@ -1527,6 +1675,19 @@
],
],
],
+ 'UpdateBigQueryLink' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\BigQueryLink',
+ 'headerParams' => [
+ [
+ 'keyName' => 'bigquery_link.name',
+ 'fieldAccessors' => [
+ 'getBigqueryLink',
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'UpdateCalculatedMetric' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\CalculatedMetric',
@@ -1670,6 +1831,19 @@
],
],
],
+ 'UpdateEventEditRule' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\EventEditRule',
+ 'headerParams' => [
+ [
+ 'keyName' => 'event_edit_rule.name',
+ 'fieldAccessors' => [
+ 'getEventEditRule',
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'UpdateExpandedDataSet' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\ExpandedDataSet',
@@ -1709,6 +1883,19 @@
],
],
],
+ 'UpdateKeyEvent' => [
+ 'callType' => \Google\ApiCore\Call::UNARY_CALL,
+ 'responseType' => 'Google\Analytics\Admin\V1alpha\KeyEvent',
+ 'headerParams' => [
+ [
+ 'keyName' => 'key_event.name',
+ 'fieldAccessors' => [
+ 'getKeyEvent',
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'UpdateMeasurementProtocolSecret' => [
'callType' => \Google\ApiCore\Call::UNARY_CALL,
'responseType' => 'Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret',
@@ -1795,12 +1982,15 @@
'displayVideo360AdvertiserLinkProposal' => 'properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}',
'enhancedMeasurementSettings' => 'properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings',
'eventCreateRule' => 'properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}',
+ 'eventEditRule' => 'properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}',
'expandedDataSet' => 'properties/{property}/expandedDataSets/{expanded_data_set}',
'firebaseLink' => 'properties/{property}/firebaseLinks/{firebase_link}',
'globalSiteTag' => 'properties/{property}/dataStreams/{data_stream}/globalSiteTag',
'googleAdsLink' => 'properties/{property}/googleAdsLinks/{google_ads_link}',
'googleSignalsSettings' => 'properties/{property}/googleSignalsSettings',
+ 'keyEvent' => 'properties/{property}/keyEvents/{key_event}',
'measurementProtocolSecret' => 'properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}',
+ 'organization' => 'organizations/{organization}',
'property' => 'properties/{property}',
'propertyAccessBinding' => 'properties/{property}/accessBindings/{access_binding}',
'rollupPropertySourceLink' => 'properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}',
diff --git a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php
index 457a88c619ac..59d0280987b1 100644
--- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php
+++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_rest_client_config.php
@@ -212,6 +212,18 @@
],
],
],
+ 'CreateBigQueryLink' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*}/bigQueryLinks',
+ 'body' => 'bigquery_link',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'CreateCalculatedMetric' => [
'method' => 'post',
'uriTemplate' => '/v1alpha/{parent=properties/*}/calculatedMetrics',
@@ -328,6 +340,18 @@
],
],
],
+ 'CreateEventEditRule' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules',
+ 'body' => 'event_edit_rule',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'CreateExpandedDataSet' => [
'method' => 'post',
'uriTemplate' => '/v1alpha/{parent=properties/*}/expandedDataSets',
@@ -364,6 +388,18 @@
],
],
],
+ 'CreateKeyEvent' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*}/keyEvents',
+ 'body' => 'key_event',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'CreateMeasurementProtocolSecret' => [
'method' => 'post',
'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets',
@@ -422,11 +458,6 @@
],
],
],
- 'CreateSubproperty' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1alpha/properties:createSubproperty',
- 'body' => '*',
- ],
'CreateSubpropertyEventFilter' => [
'method' => 'post',
'uriTemplate' => '/v1alpha/{parent=properties/*}/subpropertyEventFilters',
@@ -478,6 +509,17 @@
],
],
],
+ 'DeleteBigQueryLink' => [
+ 'method' => 'delete',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/bigQueryLinks/*}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'DeleteCalculatedMetric' => [
'method' => 'delete',
'uriTemplate' => '/v1alpha/{name=properties/*/calculatedMetrics/*}',
@@ -560,6 +602,17 @@
],
],
],
+ 'DeleteEventEditRule' => [
+ 'method' => 'delete',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'DeleteExpandedDataSet' => [
'method' => 'delete',
'uriTemplate' => '/v1alpha/{name=properties/*/expandedDataSets/*}',
@@ -593,6 +646,17 @@
],
],
],
+ 'DeleteKeyEvent' => [
+ 'method' => 'delete',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/keyEvents/*}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'DeleteMeasurementProtocolSecret' => [
'method' => 'delete',
'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}',
@@ -883,6 +947,17 @@
],
],
],
+ 'GetEventEditRule' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/eventEditRules/*}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'GetExpandedDataSet' => [
'method' => 'get',
'uriTemplate' => '/v1alpha/{name=properties/*/expandedDataSets/*}',
@@ -916,6 +991,17 @@
],
],
],
+ 'GetKeyEvent' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1alpha/{name=properties/*/keyEvents/*}',
+ 'placeholders' => [
+ 'name' => [
+ 'getters' => [
+ 'getName',
+ ],
+ ],
+ ],
+ ],
'GetMeasurementProtocolSecret' => [
'method' => 'get',
'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}',
@@ -1144,6 +1230,17 @@
],
],
],
+ 'ListEventEditRules' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'ListExpandedDataSets' => [
'method' => 'get',
'uriTemplate' => '/v1alpha/{parent=properties/*}/expandedDataSets',
@@ -1177,6 +1274,17 @@
],
],
],
+ 'ListKeyEvents' => [
+ 'method' => 'get',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*}/keyEvents',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'ListMeasurementProtocolSecrets' => [
'method' => 'get',
'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets',
@@ -1244,6 +1352,23 @@
'uriTemplate' => '/v1alpha/accounts:provisionAccountTicket',
'body' => '*',
],
+ 'ProvisionSubproperty' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/properties:provisionSubproperty',
+ 'body' => '*',
+ ],
+ 'ReorderEventEditRules' => [
+ 'method' => 'post',
+ 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/eventEditRules:reorder',
+ 'body' => '*',
+ 'placeholders' => [
+ 'parent' => [
+ 'getters' => [
+ 'getParent',
+ ],
+ ],
+ ],
+ ],
'RunAccessReport' => [
'method' => 'post',
'uriTemplate' => '/v1alpha/{entity=properties/*}:runAccessReport',
@@ -1348,6 +1473,22 @@
'update_mask',
],
],
+ 'UpdateBigQueryLink' => [
+ 'method' => 'patch',
+ 'uriTemplate' => '/v1alpha/{bigquery_link.name=properties/*/bigQueryLinks/*}',
+ 'body' => 'bigquery_link',
+ 'placeholders' => [
+ 'bigquery_link.name' => [
+ 'getters' => [
+ 'getBigqueryLink',
+ 'getName',
+ ],
+ ],
+ ],
+ 'queryParams' => [
+ 'update_mask',
+ ],
+ ],
'UpdateCalculatedMetric' => [
'method' => 'patch',
'uriTemplate' => '/v1alpha/{calculated_metric.name=properties/*/calculatedMetrics/*}',
@@ -1524,6 +1665,22 @@
'update_mask',
],
],
+ 'UpdateEventEditRule' => [
+ 'method' => 'patch',
+ 'uriTemplate' => '/v1alpha/{event_edit_rule.name=properties/*/dataStreams/*/eventEditRules/*}',
+ 'body' => 'event_edit_rule',
+ 'placeholders' => [
+ 'event_edit_rule.name' => [
+ 'getters' => [
+ 'getEventEditRule',
+ 'getName',
+ ],
+ ],
+ ],
+ 'queryParams' => [
+ 'update_mask',
+ ],
+ ],
'UpdateExpandedDataSet' => [
'method' => 'patch',
'uriTemplate' => '/v1alpha/{expanded_data_set.name=properties/*/expandedDataSets/*}',
@@ -1572,6 +1729,22 @@
'update_mask',
],
],
+ 'UpdateKeyEvent' => [
+ 'method' => 'patch',
+ 'uriTemplate' => '/v1alpha/{key_event.name=properties/*/keyEvents/*}',
+ 'body' => 'key_event',
+ 'placeholders' => [
+ 'key_event.name' => [
+ 'getters' => [
+ 'getKeyEvent',
+ 'getName',
+ ],
+ ],
+ ],
+ 'queryParams' => [
+ 'update_mask',
+ ],
+ ],
'UpdateMeasurementProtocolSecret' => [
'method' => 'patch',
'uriTemplate' => '/v1alpha/{measurement_protocol_secret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}',
diff --git a/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php b/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php
index 3ffc5c45f745..cd18d16ecd48 100644
--- a/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php
+++ b/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php
@@ -47,7 +47,6 @@
use Google\Analytics\Admin\V1alpha\ConversionEvent;
use Google\Analytics\Admin\V1alpha\CreateConnectedSiteTagResponse;
use Google\Analytics\Admin\V1alpha\CreateRollupPropertyResponse;
-use Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse;
use Google\Analytics\Admin\V1alpha\CustomDimension;
use Google\Analytics\Admin\V1alpha\CustomDimension\DimensionScope;
use Google\Analytics\Admin\V1alpha\CustomMetric;
@@ -62,6 +61,7 @@
use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal;
use Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings;
use Google\Analytics\Admin\V1alpha\EventCreateRule;
+use Google\Analytics\Admin\V1alpha\EventEditRule;
use Google\Analytics\Admin\V1alpha\ExpandedDataSet;
use Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutResponse;
use Google\Analytics\Admin\V1alpha\FetchConnectedGa4PropertyResponse;
@@ -69,6 +69,8 @@
use Google\Analytics\Admin\V1alpha\GlobalSiteTag;
use Google\Analytics\Admin\V1alpha\GoogleAdsLink;
use Google\Analytics\Admin\V1alpha\GoogleSignalsSettings;
+use Google\Analytics\Admin\V1alpha\KeyEvent;
+use Google\Analytics\Admin\V1alpha\KeyEvent\CountingMethod;
use Google\Analytics\Admin\V1alpha\ListAccessBindingsResponse;
use Google\Analytics\Admin\V1alpha\ListAccountSummariesResponse;
use Google\Analytics\Admin\V1alpha\ListAccountsResponse;
@@ -85,9 +87,11 @@
use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinkProposalsResponse;
use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse;
use Google\Analytics\Admin\V1alpha\ListEventCreateRulesResponse;
+use Google\Analytics\Admin\V1alpha\ListEventEditRulesResponse;
use Google\Analytics\Admin\V1alpha\ListExpandedDataSetsResponse;
use Google\Analytics\Admin\V1alpha\ListFirebaseLinksResponse;
use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksResponse;
+use Google\Analytics\Admin\V1alpha\ListKeyEventsResponse;
use Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsResponse;
use Google\Analytics\Admin\V1alpha\ListPropertiesResponse;
use Google\Analytics\Admin\V1alpha\ListRollupPropertySourceLinksResponse;
@@ -98,6 +102,7 @@
use Google\Analytics\Admin\V1alpha\PostbackWindow;
use Google\Analytics\Admin\V1alpha\Property;
use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse;
+use Google\Analytics\Admin\V1alpha\ProvisionSubpropertyResponse;
use Google\Analytics\Admin\V1alpha\RollupPropertySourceLink;
use Google\Analytics\Admin\V1alpha\RunAccessReportResponse;
use Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema;
@@ -970,6 +975,86 @@ public function createAudienceExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function createBigQueryLinkTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $project = 'project-309310695';
+ $dailyExportEnabled = true;
+ $streamingExportEnabled = false;
+ $freshDailyExportEnabled = false;
+ $includeAdvertisingId = false;
+ $datasetLocation = 'datasetLocation1011262364';
+ $expectedResponse = new BigQueryLink();
+ $expectedResponse->setName($name);
+ $expectedResponse->setProject($project);
+ $expectedResponse->setDailyExportEnabled($dailyExportEnabled);
+ $expectedResponse->setStreamingExportEnabled($streamingExportEnabled);
+ $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled);
+ $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId);
+ $expectedResponse->setDatasetLocation($datasetLocation);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ $bigqueryLink = new BigQueryLink();
+ $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843';
+ $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation);
+ $response = $gapicClient->createBigQueryLink($formattedParent, $bigqueryLink);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateBigQueryLink', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $actualValue = $actualRequestObject->getBigqueryLink();
+ $this->assertProtobufEquals($bigqueryLink, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function createBigQueryLinkExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ $bigqueryLink = new BigQueryLink();
+ $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843';
+ $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation);
+ try {
+ $gapicClient->createBigQueryLink($formattedParent, $bigqueryLink);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function createCalculatedMetricTest()
{
@@ -1073,11 +1158,13 @@ public function createChannelGroupTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$systemDefined = false;
+ $primary = true;
$expectedResponse = new ChannelGroup();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setSystemDefined($systemDefined);
+ $expectedResponse->setPrimary($primary);
$transport->addResponse($expectedResponse);
// Mock request
$formattedParent = $gapicClient->propertyName('[PROPERTY]');
@@ -1728,6 +1815,86 @@ public function createEventCreateRuleExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function createEventEditRuleTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $displayName = 'displayName1615086568';
+ $processingOrder = 334545118;
+ $expectedResponse = new EventEditRule();
+ $expectedResponse->setName($name);
+ $expectedResponse->setDisplayName($displayName);
+ $expectedResponse->setProcessingOrder($processingOrder);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $eventEditRule = new EventEditRule();
+ $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781';
+ $eventEditRule->setDisplayName($eventEditRuleDisplayName);
+ $eventEditRuleEventConditions = [];
+ $eventEditRule->setEventConditions($eventEditRuleEventConditions);
+ $eventEditRuleParameterMutations = [];
+ $eventEditRule->setParameterMutations($eventEditRuleParameterMutations);
+ $response = $gapicClient->createEventEditRule($formattedParent, $eventEditRule);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventEditRule', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $actualValue = $actualRequestObject->getEventEditRule();
+ $this->assertProtobufEquals($eventEditRule, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function createEventEditRuleExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $eventEditRule = new EventEditRule();
+ $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781';
+ $eventEditRule->setDisplayName($eventEditRuleDisplayName);
+ $eventEditRuleEventConditions = [];
+ $eventEditRule->setEventConditions($eventEditRuleEventConditions);
+ $eventEditRuleParameterMutations = [];
+ $eventEditRule->setParameterMutations($eventEditRuleParameterMutations);
+ try {
+ $gapicClient->createEventEditRule($formattedParent, $eventEditRule);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function createExpandedDataSetTest()
{
@@ -1936,6 +2103,80 @@ public function createGoogleAdsLinkExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function createKeyEventTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $eventName = 'eventName984174864';
+ $deletable = true;
+ $custom = false;
+ $expectedResponse = new KeyEvent();
+ $expectedResponse->setName($name);
+ $expectedResponse->setEventName($eventName);
+ $expectedResponse->setDeletable($deletable);
+ $expectedResponse->setCustom($custom);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $keyEvent = new KeyEvent();
+ $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED;
+ $keyEvent->setCountingMethod($keyEventCountingMethod);
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ $response = $gapicClient->createKeyEvent($keyEvent, $formattedParent);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateKeyEvent', $actualFuncCall);
+ $actualValue = $actualRequestObject->getKeyEvent();
+ $this->assertProtobufEquals($keyEvent, $actualValue);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function createKeyEventExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $keyEvent = new KeyEvent();
+ $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED;
+ $keyEvent->setCountingMethod($keyEventCountingMethod);
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ try {
+ $gapicClient->createKeyEvent($keyEvent, $formattedParent);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function createMeasurementProtocolSecretTest()
{
@@ -2356,76 +2597,6 @@ public function createSearchAds360LinkExceptionTest()
$this->assertTrue($transport->isExhausted());
}
- /** @test */
- public function createSubpropertyTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new CreateSubpropertyResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->propertyName('[PROPERTY]');
- $subproperty = new Property();
- $subpropertyDisplayName = 'subpropertyDisplayName-1859570920';
- $subproperty->setDisplayName($subpropertyDisplayName);
- $subpropertyTimeZone = 'subpropertyTimeZone-1143367858';
- $subproperty->setTimeZone($subpropertyTimeZone);
- $response = $gapicClient->createSubproperty($formattedParent, $subproperty);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubproperty', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getSubproperty();
- $this->assertProtobufEquals($subproperty, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createSubpropertyExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->propertyName('[PROPERTY]');
- $subproperty = new Property();
- $subpropertyDisplayName = 'subpropertyDisplayName-1859570920';
- $subproperty->setDisplayName($subpropertyDisplayName);
- $subpropertyTimeZone = 'subpropertyTimeZone-1143367858';
- $subproperty->setTimeZone($subpropertyTimeZone);
- try {
- $gapicClient->createSubproperty($formattedParent, $subproperty);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
/** @test */
public function createSubpropertyEventFilterTest()
{
@@ -2668,7 +2839,7 @@ public function deleteAdSenseLinkExceptionTest()
}
/** @test */
- public function deleteCalculatedMetricTest()
+ public function deleteBigQueryLinkTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -2679,20 +2850,20 @@ public function deleteCalculatedMetricTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]');
- $gapicClient->deleteCalculatedMetric($formattedName);
+ $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]');
+ $gapicClient->deleteBigQueryLink($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteCalculatedMetric', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteBigQueryLink', $actualFuncCall);
$actualValue = $actualRequestObject->getName();
$this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
}
/** @test */
- public function deleteCalculatedMetricExceptionTest()
+ public function deleteBigQueryLinkExceptionTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -2710,9 +2881,9 @@ public function deleteCalculatedMetricExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]');
+ $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]');
try {
- $gapicClient->deleteCalculatedMetric($formattedName);
+ $gapicClient->deleteBigQueryLink($formattedName);
// If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -2725,7 +2896,64 @@ public function deleteCalculatedMetricExceptionTest()
}
/** @test */
- public function deleteChannelGroupTest()
+ public function deleteCalculatedMetricTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new GPBEmpty();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]');
+ $gapicClient->deleteCalculatedMetric($formattedName);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteCalculatedMetric', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function deleteCalculatedMetricExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->calculatedMetricName('[PROPERTY]', '[CALCULATED_METRIC]');
+ try {
+ $gapicClient->deleteCalculatedMetric($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function deleteChannelGroupTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -3117,6 +3345,63 @@ public function deleteEventCreateRuleExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function deleteEventEditRuleTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new GPBEmpty();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]');
+ $gapicClient->deleteEventEditRule($formattedName);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventEditRule', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function deleteEventEditRuleExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]');
+ try {
+ $gapicClient->deleteEventEditRule($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function deleteExpandedDataSetTest()
{
@@ -3288,6 +3573,63 @@ public function deleteGoogleAdsLinkExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function deleteKeyEventTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new GPBEmpty();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]');
+ $gapicClient->deleteKeyEvent($formattedName);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteKeyEvent', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function deleteKeyEventExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]');
+ try {
+ $gapicClient->deleteKeyEvent($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function deleteMeasurementProtocolSecretTest()
{
@@ -3838,11 +4180,13 @@ public function getAccountTest()
$displayName = 'displayName1615086568';
$regionCode = 'regionCode-1566082984';
$deleted = false;
+ $gmpOrganization = 'gmpOrganization-1643573496';
$expectedResponse = new Account();
$expectedResponse->setName($name2);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setRegionCode($regionCode);
$expectedResponse->setDeleted($deleted);
+ $expectedResponse->setGmpOrganization($gmpOrganization);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->accountName('[ACCOUNT]');
@@ -4096,6 +4440,7 @@ public function getBigQueryLinkTest()
$streamingExportEnabled = false;
$freshDailyExportEnabled = false;
$includeAdvertisingId = false;
+ $datasetLocation = 'datasetLocation1011262364';
$expectedResponse = new BigQueryLink();
$expectedResponse->setName($name2);
$expectedResponse->setProject($project);
@@ -4103,6 +4448,7 @@ public function getBigQueryLinkTest()
$expectedResponse->setStreamingExportEnabled($streamingExportEnabled);
$expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled);
$expectedResponse->setIncludeAdvertisingId($includeAdvertisingId);
+ $expectedResponse->setDatasetLocation($datasetLocation);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]');
@@ -4234,11 +4580,13 @@ public function getChannelGroupTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$systemDefined = false;
+ $primary = true;
$expectedResponse = new ChannelGroup();
$expectedResponse->setName($name2);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setSystemDefined($systemDefined);
+ $expectedResponse->setPrimary($primary);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]');
@@ -5019,6 +5367,70 @@ public function getEventCreateRuleExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function getEventEditRuleTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name2 = 'name2-1052831874';
+ $displayName = 'displayName1615086568';
+ $processingOrder = 334545118;
+ $expectedResponse = new EventEditRule();
+ $expectedResponse->setName($name2);
+ $expectedResponse->setDisplayName($displayName);
+ $expectedResponse->setProcessingOrder($processingOrder);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]');
+ $response = $gapicClient->getEventEditRule($formattedName);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventEditRule', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function getEventEditRuleExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]');
+ try {
+ $gapicClient->getEventEditRule($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function getExpandedDataSetTest()
{
@@ -5206,7 +5618,7 @@ public function getGoogleSignalsSettingsExceptionTest()
}
/** @test */
- public function getMeasurementProtocolSecretTest()
+ public function getKeyEventTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -5215,29 +5627,31 @@ public function getMeasurementProtocolSecretTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name2 = 'name2-1052831874';
- $displayName = 'displayName1615086568';
- $secretValue = 'secretValue1322942242';
- $expectedResponse = new MeasurementProtocolSecret();
+ $eventName = 'eventName984174864';
+ $deletable = true;
+ $custom = false;
+ $expectedResponse = new KeyEvent();
$expectedResponse->setName($name2);
- $expectedResponse->setDisplayName($displayName);
- $expectedResponse->setSecretValue($secretValue);
+ $expectedResponse->setEventName($eventName);
+ $expectedResponse->setDeletable($deletable);
+ $expectedResponse->setCustom($custom);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]');
- $response = $gapicClient->getMeasurementProtocolSecret($formattedName);
+ $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]');
+ $response = $gapicClient->getKeyEvent($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetKeyEvent', $actualFuncCall);
$actualValue = $actualRequestObject->getName();
$this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
}
/** @test */
- public function getMeasurementProtocolSecretExceptionTest()
+ public function getKeyEventExceptionTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -5255,9 +5669,9 @@ public function getMeasurementProtocolSecretExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]');
+ $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]');
try {
- $gapicClient->getMeasurementProtocolSecret($formattedName);
+ $gapicClient->getKeyEvent($formattedName);
// If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -5270,7 +5684,7 @@ public function getMeasurementProtocolSecretExceptionTest()
}
/** @test */
- public function getPropertyTest()
+ public function getMeasurementProtocolSecretTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -5279,35 +5693,29 @@ public function getPropertyTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name2 = 'name2-1052831874';
- $parent = 'parent-995424086';
$displayName = 'displayName1615086568';
- $timeZone = 'timeZone36848094';
- $currencyCode = 'currencyCode1108728155';
- $account = 'account-1177318867';
- $expectedResponse = new Property();
+ $secretValue = 'secretValue1322942242';
+ $expectedResponse = new MeasurementProtocolSecret();
$expectedResponse->setName($name2);
- $expectedResponse->setParent($parent);
$expectedResponse->setDisplayName($displayName);
- $expectedResponse->setTimeZone($timeZone);
- $expectedResponse->setCurrencyCode($currencyCode);
- $expectedResponse->setAccount($account);
+ $expectedResponse->setSecretValue($secretValue);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $gapicClient->propertyName('[PROPERTY]');
- $response = $gapicClient->getProperty($formattedName);
+ $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]');
+ $response = $gapicClient->getMeasurementProtocolSecret($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall);
$actualValue = $actualRequestObject->getName();
$this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
}
/** @test */
- public function getPropertyExceptionTest()
+ public function getMeasurementProtocolSecretExceptionTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -5325,9 +5733,9 @@ public function getPropertyExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $gapicClient->propertyName('[PROPERTY]');
+ $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]');
try {
- $gapicClient->getProperty($formattedName);
+ $gapicClient->getMeasurementProtocolSecret($formattedName);
// If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -5340,7 +5748,77 @@ public function getPropertyExceptionTest()
}
/** @test */
- public function getRollupPropertySourceLinkTest()
+ public function getPropertyTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name2 = 'name2-1052831874';
+ $parent = 'parent-995424086';
+ $displayName = 'displayName1615086568';
+ $timeZone = 'timeZone36848094';
+ $currencyCode = 'currencyCode1108728155';
+ $account = 'account-1177318867';
+ $expectedResponse = new Property();
+ $expectedResponse->setName($name2);
+ $expectedResponse->setParent($parent);
+ $expectedResponse->setDisplayName($displayName);
+ $expectedResponse->setTimeZone($timeZone);
+ $expectedResponse->setCurrencyCode($currencyCode);
+ $expectedResponse->setAccount($account);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->propertyName('[PROPERTY]');
+ $response = $gapicClient->getProperty($formattedName);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function getPropertyExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->propertyName('[PROPERTY]');
+ try {
+ $gapicClient->getProperty($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function getRollupPropertySourceLinkTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -6649,6 +7127,74 @@ public function listEventCreateRulesExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function listEventEditRulesTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $nextPageToken = '';
+ $eventEditRulesElement = new EventEditRule();
+ $eventEditRules = [
+ $eventEditRulesElement,
+ ];
+ $expectedResponse = new ListEventEditRulesResponse();
+ $expectedResponse->setNextPageToken($nextPageToken);
+ $expectedResponse->setEventEditRules($eventEditRules);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $response = $gapicClient->listEventEditRules($formattedParent);
+ $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
+ $resources = iterator_to_array($response->iterateAllElements());
+ $this->assertSame(1, count($resources));
+ $this->assertEquals($expectedResponse->getEventEditRules()[0], $resources[0]);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventEditRules', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function listEventEditRulesExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ try {
+ $gapicClient->listEventEditRules($formattedParent);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function listExpandedDataSetsTest()
{
@@ -6853,6 +7399,74 @@ public function listGoogleAdsLinksExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function listKeyEventsTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $nextPageToken = '';
+ $keyEventsElement = new KeyEvent();
+ $keyEvents = [
+ $keyEventsElement,
+ ];
+ $expectedResponse = new ListKeyEventsResponse();
+ $expectedResponse->setNextPageToken($nextPageToken);
+ $expectedResponse->setKeyEvents($keyEvents);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ $response = $gapicClient->listKeyEvents($formattedParent);
+ $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
+ $resources = iterator_to_array($response->iterateAllElements());
+ $this->assertSame(1, count($resources));
+ $this->assertEquals($expectedResponse->getKeyEvents()[0], $resources[0]);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListKeyEvents', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function listKeyEventsExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ try {
+ $gapicClient->listKeyEvents($formattedParent);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function listMeasurementProtocolSecretsTest()
{
@@ -7315,6 +7929,133 @@ public function provisionAccountTicketExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function provisionSubpropertyTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new ProvisionSubpropertyResponse();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $subproperty = new Property();
+ $subpropertyDisplayName = 'subpropertyDisplayName-1859570920';
+ $subproperty->setDisplayName($subpropertyDisplayName);
+ $subpropertyTimeZone = 'subpropertyTimeZone-1143367858';
+ $subproperty->setTimeZone($subpropertyTimeZone);
+ $response = $gapicClient->provisionSubproperty($subproperty);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionSubproperty', $actualFuncCall);
+ $actualValue = $actualRequestObject->getSubproperty();
+ $this->assertProtobufEquals($subproperty, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function provisionSubpropertyExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $subproperty = new Property();
+ $subpropertyDisplayName = 'subpropertyDisplayName-1859570920';
+ $subproperty->setDisplayName($subpropertyDisplayName);
+ $subpropertyTimeZone = 'subpropertyTimeZone-1143367858';
+ $subproperty->setTimeZone($subpropertyTimeZone);
+ try {
+ $gapicClient->provisionSubproperty($subproperty);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function reorderEventEditRulesTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new GPBEmpty();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $eventEditRules = [];
+ $gapicClient->reorderEventEditRules($formattedParent, $eventEditRules);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ReorderEventEditRules', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $actualValue = $actualRequestObject->getEventEditRules();
+ $this->assertProtobufEquals($eventEditRules, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function reorderEventEditRulesExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $eventEditRules = [];
+ try {
+ $gapicClient->reorderEventEditRules($formattedParent, $eventEditRules);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function runAccessReportTest()
{
@@ -7570,11 +8311,13 @@ public function updateAccountTest()
$displayName = 'displayName1615086568';
$regionCode = 'regionCode-1566082984';
$deleted = false;
+ $gmpOrganization = 'gmpOrganization-1643573496';
$expectedResponse = new Account();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setRegionCode($regionCode);
$expectedResponse->setDeleted($deleted);
+ $expectedResponse->setGmpOrganization($gmpOrganization);
$transport->addResponse($expectedResponse);
// Mock request
$account = new Account();
@@ -7799,6 +8542,86 @@ public function updateAudienceExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function updateBigQueryLinkTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $project = 'project-309310695';
+ $dailyExportEnabled = true;
+ $streamingExportEnabled = false;
+ $freshDailyExportEnabled = false;
+ $includeAdvertisingId = false;
+ $datasetLocation = 'datasetLocation1011262364';
+ $expectedResponse = new BigQueryLink();
+ $expectedResponse->setName($name);
+ $expectedResponse->setProject($project);
+ $expectedResponse->setDailyExportEnabled($dailyExportEnabled);
+ $expectedResponse->setStreamingExportEnabled($streamingExportEnabled);
+ $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled);
+ $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId);
+ $expectedResponse->setDatasetLocation($datasetLocation);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $bigqueryLink = new BigQueryLink();
+ $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843';
+ $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation);
+ $updateMask = new FieldMask();
+ $response = $gapicClient->updateBigQueryLink($bigqueryLink, $updateMask);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateBigQueryLink', $actualFuncCall);
+ $actualValue = $actualRequestObject->getBigqueryLink();
+ $this->assertProtobufEquals($bigqueryLink, $actualValue);
+ $actualValue = $actualRequestObject->getUpdateMask();
+ $this->assertProtobufEquals($updateMask, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function updateBigQueryLinkExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $bigqueryLink = new BigQueryLink();
+ $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843';
+ $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation);
+ $updateMask = new FieldMask();
+ try {
+ $gapicClient->updateBigQueryLink($bigqueryLink, $updateMask);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function updateCalculatedMetricTest()
{
@@ -7898,11 +8721,13 @@ public function updateChannelGroupTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$systemDefined = false;
+ $primary = true;
$expectedResponse = new ChannelGroup();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setSystemDefined($systemDefined);
+ $expectedResponse->setPrimary($primary);
$transport->addResponse($expectedResponse);
// Mock request
$channelGroup = new ChannelGroup();
@@ -8591,6 +9416,86 @@ public function updateEventCreateRuleExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function updateEventEditRuleTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $displayName = 'displayName1615086568';
+ $processingOrder = 334545118;
+ $expectedResponse = new EventEditRule();
+ $expectedResponse->setName($name);
+ $expectedResponse->setDisplayName($displayName);
+ $expectedResponse->setProcessingOrder($processingOrder);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $eventEditRule = new EventEditRule();
+ $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781';
+ $eventEditRule->setDisplayName($eventEditRuleDisplayName);
+ $eventEditRuleEventConditions = [];
+ $eventEditRule->setEventConditions($eventEditRuleEventConditions);
+ $eventEditRuleParameterMutations = [];
+ $eventEditRule->setParameterMutations($eventEditRuleParameterMutations);
+ $updateMask = new FieldMask();
+ $response = $gapicClient->updateEventEditRule($eventEditRule, $updateMask);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventEditRule', $actualFuncCall);
+ $actualValue = $actualRequestObject->getEventEditRule();
+ $this->assertProtobufEquals($eventEditRule, $actualValue);
+ $actualValue = $actualRequestObject->getUpdateMask();
+ $this->assertProtobufEquals($updateMask, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function updateEventEditRuleExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $eventEditRule = new EventEditRule();
+ $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781';
+ $eventEditRule->setDisplayName($eventEditRuleDisplayName);
+ $eventEditRuleEventConditions = [];
+ $eventEditRule->setEventConditions($eventEditRuleEventConditions);
+ $eventEditRuleParameterMutations = [];
+ $eventEditRule->setParameterMutations($eventEditRuleParameterMutations);
+ $updateMask = new FieldMask();
+ try {
+ $gapicClient->updateEventEditRule($eventEditRule, $updateMask);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function updateExpandedDataSetTest()
{
@@ -8793,6 +9698,80 @@ public function updateGoogleSignalsSettingsExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function updateKeyEventTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $eventName = 'eventName984174864';
+ $deletable = true;
+ $custom = false;
+ $expectedResponse = new KeyEvent();
+ $expectedResponse->setName($name);
+ $expectedResponse->setEventName($eventName);
+ $expectedResponse->setDeletable($deletable);
+ $expectedResponse->setCustom($custom);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $keyEvent = new KeyEvent();
+ $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED;
+ $keyEvent->setCountingMethod($keyEventCountingMethod);
+ $updateMask = new FieldMask();
+ $response = $gapicClient->updateKeyEvent($keyEvent, $updateMask);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateKeyEvent', $actualFuncCall);
+ $actualValue = $actualRequestObject->getKeyEvent();
+ $this->assertProtobufEquals($keyEvent, $actualValue);
+ $actualValue = $actualRequestObject->getUpdateMask();
+ $this->assertProtobufEquals($updateMask, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function updateKeyEventExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $keyEvent = new KeyEvent();
+ $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED;
+ $keyEvent->setCountingMethod($keyEventCountingMethod);
+ $updateMask = new FieldMask();
+ try {
+ $gapicClient->updateKeyEvent($keyEvent, $updateMask);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function updateMeasurementProtocolSecretTest()
{
diff --git a/AnalyticsAdmin/tests/Unit/V1alpha/Client/AnalyticsAdminServiceClientTest.php b/AnalyticsAdmin/tests/Unit/V1alpha/Client/AnalyticsAdminServiceClientTest.php
index 3bc605662b67..a9fd25499f65 100644
--- a/AnalyticsAdmin/tests/Unit/V1alpha/Client/AnalyticsAdminServiceClientTest.php
+++ b/AnalyticsAdmin/tests/Unit/V1alpha/Client/AnalyticsAdminServiceClientTest.php
@@ -58,6 +58,7 @@
use Google\Analytics\Admin\V1alpha\CreateAccessBindingRequest;
use Google\Analytics\Admin\V1alpha\CreateAdSenseLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateAudienceRequest;
+use Google\Analytics\Admin\V1alpha\CreateBigQueryLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateCalculatedMetricRequest;
use Google\Analytics\Admin\V1alpha\CreateChannelGroupRequest;
use Google\Analytics\Admin\V1alpha\CreateConnectedSiteTagRequest;
@@ -69,9 +70,11 @@
use Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkProposalRequest;
use Google\Analytics\Admin\V1alpha\CreateDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\CreateEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\CreateExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\CreateFirebaseLinkRequest;
use Google\Analytics\Admin\V1alpha\CreateGoogleAdsLinkRequest;
+use Google\Analytics\Admin\V1alpha\CreateKeyEventRequest;
use Google\Analytics\Admin\V1alpha\CreateMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\CreatePropertyRequest;
use Google\Analytics\Admin\V1alpha\CreateRollupPropertyRequest;
@@ -80,8 +83,6 @@
use Google\Analytics\Admin\V1alpha\CreateSKAdNetworkConversionValueSchemaRequest;
use Google\Analytics\Admin\V1alpha\CreateSearchAds360LinkRequest;
use Google\Analytics\Admin\V1alpha\CreateSubpropertyEventFilterRequest;
-use Google\Analytics\Admin\V1alpha\CreateSubpropertyRequest;
-use Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse;
use Google\Analytics\Admin\V1alpha\CustomDimension;
use Google\Analytics\Admin\V1alpha\CustomDimension\DimensionScope;
use Google\Analytics\Admin\V1alpha\CustomMetric;
@@ -95,6 +96,7 @@
use Google\Analytics\Admin\V1alpha\DeleteAccessBindingRequest;
use Google\Analytics\Admin\V1alpha\DeleteAccountRequest;
use Google\Analytics\Admin\V1alpha\DeleteAdSenseLinkRequest;
+use Google\Analytics\Admin\V1alpha\DeleteBigQueryLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteCalculatedMetricRequest;
use Google\Analytics\Admin\V1alpha\DeleteChannelGroupRequest;
use Google\Analytics\Admin\V1alpha\DeleteConnectedSiteTagRequest;
@@ -103,9 +105,11 @@
use Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkProposalRequest;
use Google\Analytics\Admin\V1alpha\DeleteDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\DeleteEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\DeleteExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\DeleteFirebaseLinkRequest;
use Google\Analytics\Admin\V1alpha\DeleteGoogleAdsLinkRequest;
+use Google\Analytics\Admin\V1alpha\DeleteKeyEventRequest;
use Google\Analytics\Admin\V1alpha\DeleteMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\DeletePropertyRequest;
use Google\Analytics\Admin\V1alpha\DeleteRollupPropertySourceLinkRequest;
@@ -116,6 +120,7 @@
use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal;
use Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings;
use Google\Analytics\Admin\V1alpha\EventCreateRule;
+use Google\Analytics\Admin\V1alpha\EventEditRule;
use Google\Analytics\Admin\V1alpha\ExpandedDataSet;
use Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutRequest;
use Google\Analytics\Admin\V1alpha\FetchAutomatedGa4ConfigurationOptOutResponse;
@@ -141,9 +146,11 @@
use Google\Analytics\Admin\V1alpha\GetDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\GetEnhancedMeasurementSettingsRequest;
use Google\Analytics\Admin\V1alpha\GetEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\GetEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\GetExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\GetGlobalSiteTagRequest;
use Google\Analytics\Admin\V1alpha\GetGoogleSignalsSettingsRequest;
+use Google\Analytics\Admin\V1alpha\GetKeyEventRequest;
use Google\Analytics\Admin\V1alpha\GetMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\GetPropertyRequest;
use Google\Analytics\Admin\V1alpha\GetRollupPropertySourceLinkRequest;
@@ -153,6 +160,8 @@
use Google\Analytics\Admin\V1alpha\GlobalSiteTag;
use Google\Analytics\Admin\V1alpha\GoogleAdsLink;
use Google\Analytics\Admin\V1alpha\GoogleSignalsSettings;
+use Google\Analytics\Admin\V1alpha\KeyEvent;
+use Google\Analytics\Admin\V1alpha\KeyEvent\CountingMethod;
use Google\Analytics\Admin\V1alpha\ListAccessBindingsRequest;
use Google\Analytics\Admin\V1alpha\ListAccessBindingsResponse;
use Google\Analytics\Admin\V1alpha\ListAccountSummariesRequest;
@@ -185,12 +194,16 @@
use Google\Analytics\Admin\V1alpha\ListDisplayVideo360AdvertiserLinksResponse;
use Google\Analytics\Admin\V1alpha\ListEventCreateRulesRequest;
use Google\Analytics\Admin\V1alpha\ListEventCreateRulesResponse;
+use Google\Analytics\Admin\V1alpha\ListEventEditRulesRequest;
+use Google\Analytics\Admin\V1alpha\ListEventEditRulesResponse;
use Google\Analytics\Admin\V1alpha\ListExpandedDataSetsRequest;
use Google\Analytics\Admin\V1alpha\ListExpandedDataSetsResponse;
use Google\Analytics\Admin\V1alpha\ListFirebaseLinksRequest;
use Google\Analytics\Admin\V1alpha\ListFirebaseLinksResponse;
use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksRequest;
use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksResponse;
+use Google\Analytics\Admin\V1alpha\ListKeyEventsRequest;
+use Google\Analytics\Admin\V1alpha\ListKeyEventsResponse;
use Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsRequest;
use Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsResponse;
use Google\Analytics\Admin\V1alpha\ListPropertiesRequest;
@@ -208,6 +221,9 @@
use Google\Analytics\Admin\V1alpha\Property;
use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketRequest;
use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse;
+use Google\Analytics\Admin\V1alpha\ProvisionSubpropertyRequest;
+use Google\Analytics\Admin\V1alpha\ProvisionSubpropertyResponse;
+use Google\Analytics\Admin\V1alpha\ReorderEventEditRulesRequest;
use Google\Analytics\Admin\V1alpha\RollupPropertySourceLink;
use Google\Analytics\Admin\V1alpha\RunAccessReportRequest;
use Google\Analytics\Admin\V1alpha\RunAccessReportResponse;
@@ -222,6 +238,7 @@
use Google\Analytics\Admin\V1alpha\UpdateAccountRequest;
use Google\Analytics\Admin\V1alpha\UpdateAttributionSettingsRequest;
use Google\Analytics\Admin\V1alpha\UpdateAudienceRequest;
+use Google\Analytics\Admin\V1alpha\UpdateBigQueryLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateCalculatedMetricRequest;
use Google\Analytics\Admin\V1alpha\UpdateChannelGroupRequest;
use Google\Analytics\Admin\V1alpha\UpdateConversionEventRequest;
@@ -233,9 +250,11 @@
use Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateEnhancedMeasurementSettingsRequest;
use Google\Analytics\Admin\V1alpha\UpdateEventCreateRuleRequest;
+use Google\Analytics\Admin\V1alpha\UpdateEventEditRuleRequest;
use Google\Analytics\Admin\V1alpha\UpdateExpandedDataSetRequest;
use Google\Analytics\Admin\V1alpha\UpdateGoogleAdsLinkRequest;
use Google\Analytics\Admin\V1alpha\UpdateGoogleSignalsSettingsRequest;
+use Google\Analytics\Admin\V1alpha\UpdateKeyEventRequest;
use Google\Analytics\Admin\V1alpha\UpdateMeasurementProtocolSecretRequest;
use Google\Analytics\Admin\V1alpha\UpdatePropertyRequest;
use Google\Analytics\Admin\V1alpha\UpdateSKAdNetworkConversionValueSchemaRequest;
@@ -1174,6 +1193,92 @@ public function createAudienceExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function createBigQueryLinkTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $project = 'project-309310695';
+ $dailyExportEnabled = true;
+ $streamingExportEnabled = false;
+ $freshDailyExportEnabled = false;
+ $includeAdvertisingId = false;
+ $datasetLocation = 'datasetLocation1011262364';
+ $expectedResponse = new BigQueryLink();
+ $expectedResponse->setName($name);
+ $expectedResponse->setProject($project);
+ $expectedResponse->setDailyExportEnabled($dailyExportEnabled);
+ $expectedResponse->setStreamingExportEnabled($streamingExportEnabled);
+ $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled);
+ $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId);
+ $expectedResponse->setDatasetLocation($datasetLocation);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ $bigqueryLink = new BigQueryLink();
+ $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843';
+ $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation);
+ $request = (new CreateBigQueryLinkRequest())
+ ->setParent($formattedParent)
+ ->setBigqueryLink($bigqueryLink);
+ $response = $gapicClient->createBigQueryLink($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateBigQueryLink', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $actualValue = $actualRequestObject->getBigqueryLink();
+ $this->assertProtobufEquals($bigqueryLink, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function createBigQueryLinkExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ $bigqueryLink = new BigQueryLink();
+ $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843';
+ $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation);
+ $request = (new CreateBigQueryLinkRequest())
+ ->setParent($formattedParent)
+ ->setBigqueryLink($bigqueryLink);
+ try {
+ $gapicClient->createBigQueryLink($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function createCalculatedMetricTest()
{
@@ -1285,11 +1390,13 @@ public function createChannelGroupTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$systemDefined = false;
+ $primary = true;
$expectedResponse = new ChannelGroup();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setSystemDefined($systemDefined);
+ $expectedResponse->setPrimary($primary);
$transport->addResponse($expectedResponse);
// Mock request
$formattedParent = $gapicClient->propertyName('[PROPERTY]');
@@ -1992,6 +2099,92 @@ public function createEventCreateRuleExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function createEventEditRuleTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $displayName = 'displayName1615086568';
+ $processingOrder = 334545118;
+ $expectedResponse = new EventEditRule();
+ $expectedResponse->setName($name);
+ $expectedResponse->setDisplayName($displayName);
+ $expectedResponse->setProcessingOrder($processingOrder);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $eventEditRule = new EventEditRule();
+ $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781';
+ $eventEditRule->setDisplayName($eventEditRuleDisplayName);
+ $eventEditRuleEventConditions = [];
+ $eventEditRule->setEventConditions($eventEditRuleEventConditions);
+ $eventEditRuleParameterMutations = [];
+ $eventEditRule->setParameterMutations($eventEditRuleParameterMutations);
+ $request = (new CreateEventEditRuleRequest())
+ ->setParent($formattedParent)
+ ->setEventEditRule($eventEditRule);
+ $response = $gapicClient->createEventEditRule($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventEditRule', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $actualValue = $actualRequestObject->getEventEditRule();
+ $this->assertProtobufEquals($eventEditRule, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function createEventEditRuleExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $eventEditRule = new EventEditRule();
+ $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781';
+ $eventEditRule->setDisplayName($eventEditRuleDisplayName);
+ $eventEditRuleEventConditions = [];
+ $eventEditRule->setEventConditions($eventEditRuleEventConditions);
+ $eventEditRuleParameterMutations = [];
+ $eventEditRule->setParameterMutations($eventEditRuleParameterMutations);
+ $request = (new CreateEventEditRuleRequest())
+ ->setParent($formattedParent)
+ ->setEventEditRule($eventEditRule);
+ try {
+ $gapicClient->createEventEditRule($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function createExpandedDataSetTest()
{
@@ -2218,6 +2411,86 @@ public function createGoogleAdsLinkExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function createKeyEventTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $eventName = 'eventName984174864';
+ $deletable = true;
+ $custom = false;
+ $expectedResponse = new KeyEvent();
+ $expectedResponse->setName($name);
+ $expectedResponse->setEventName($eventName);
+ $expectedResponse->setDeletable($deletable);
+ $expectedResponse->setCustom($custom);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $keyEvent = new KeyEvent();
+ $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED;
+ $keyEvent->setCountingMethod($keyEventCountingMethod);
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ $request = (new CreateKeyEventRequest())
+ ->setKeyEvent($keyEvent)
+ ->setParent($formattedParent);
+ $response = $gapicClient->createKeyEvent($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateKeyEvent', $actualFuncCall);
+ $actualValue = $actualRequestObject->getKeyEvent();
+ $this->assertProtobufEquals($keyEvent, $actualValue);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function createKeyEventExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $keyEvent = new KeyEvent();
+ $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED;
+ $keyEvent->setCountingMethod($keyEventCountingMethod);
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ $request = (new CreateKeyEventRequest())
+ ->setKeyEvent($keyEvent)
+ ->setParent($formattedParent);
+ try {
+ $gapicClient->createKeyEvent($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function createMeasurementProtocolSecretTest()
{
@@ -2670,82 +2943,6 @@ public function createSearchAds360LinkExceptionTest()
$this->assertTrue($transport->isExhausted());
}
- /** @test */
- public function createSubpropertyTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new CreateSubpropertyResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->propertyName('[PROPERTY]');
- $subproperty = new Property();
- $subpropertyDisplayName = 'subpropertyDisplayName-1859570920';
- $subproperty->setDisplayName($subpropertyDisplayName);
- $subpropertyTimeZone = 'subpropertyTimeZone-1143367858';
- $subproperty->setTimeZone($subpropertyTimeZone);
- $request = (new CreateSubpropertyRequest())
- ->setParent($formattedParent)
- ->setSubproperty($subproperty);
- $response = $gapicClient->createSubproperty($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubproperty', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getSubproperty();
- $this->assertProtobufEquals($subproperty, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createSubpropertyExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->propertyName('[PROPERTY]');
- $subproperty = new Property();
- $subpropertyDisplayName = 'subpropertyDisplayName-1859570920';
- $subproperty->setDisplayName($subpropertyDisplayName);
- $subpropertyTimeZone = 'subpropertyTimeZone-1143367858';
- $subproperty->setTimeZone($subpropertyTimeZone);
- $request = (new CreateSubpropertyRequest())
- ->setParent($formattedParent)
- ->setSubproperty($subproperty);
- try {
- $gapicClient->createSubproperty($request);
- // If the $gapicClient method call did not throw, fail the test
- $this->fail('Expected an ApiException, but no exception was thrown.');
- } catch (ApiException $ex) {
- $this->assertEquals($status->code, $ex->getCode());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
/** @test */
public function createSubpropertyEventFilterTest()
{
@@ -3006,7 +3203,68 @@ public function deleteAdSenseLinkExceptionTest()
}
/** @test */
- public function deleteCalculatedMetricTest()
+ public function deleteBigQueryLinkTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new GPBEmpty();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]');
+ $request = (new DeleteBigQueryLinkRequest())
+ ->setName($formattedName);
+ $gapicClient->deleteBigQueryLink($request);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteBigQueryLink', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function deleteBigQueryLinkExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]');
+ $request = (new DeleteBigQueryLinkRequest())
+ ->setName($formattedName);
+ try {
+ $gapicClient->deleteBigQueryLink($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function deleteCalculatedMetricTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -3485,6 +3743,67 @@ public function deleteEventCreateRuleExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function deleteEventEditRuleTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new GPBEmpty();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]');
+ $request = (new DeleteEventEditRuleRequest())
+ ->setName($formattedName);
+ $gapicClient->deleteEventEditRule($request);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventEditRule', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function deleteEventEditRuleExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]');
+ $request = (new DeleteEventEditRuleRequest())
+ ->setName($formattedName);
+ try {
+ $gapicClient->deleteEventEditRule($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function deleteExpandedDataSetTest()
{
@@ -3668,6 +3987,67 @@ public function deleteGoogleAdsLinkExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function deleteKeyEventTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new GPBEmpty();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]');
+ $request = (new DeleteKeyEventRequest())
+ ->setName($formattedName);
+ $gapicClient->deleteKeyEvent($request);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteKeyEvent', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function deleteKeyEventExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]');
+ $request = (new DeleteKeyEventRequest())
+ ->setName($formattedName);
+ try {
+ $gapicClient->deleteKeyEvent($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function deleteMeasurementProtocolSecretTest()
{
@@ -4254,11 +4634,13 @@ public function getAccountTest()
$displayName = 'displayName1615086568';
$regionCode = 'regionCode-1566082984';
$deleted = false;
+ $gmpOrganization = 'gmpOrganization-1643573496';
$expectedResponse = new Account();
$expectedResponse->setName($name2);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setRegionCode($regionCode);
$expectedResponse->setDeleted($deleted);
+ $expectedResponse->setGmpOrganization($gmpOrganization);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->accountName('[ACCOUNT]');
@@ -4528,6 +4910,7 @@ public function getBigQueryLinkTest()
$streamingExportEnabled = false;
$freshDailyExportEnabled = false;
$includeAdvertisingId = false;
+ $datasetLocation = 'datasetLocation1011262364';
$expectedResponse = new BigQueryLink();
$expectedResponse->setName($name2);
$expectedResponse->setProject($project);
@@ -4535,6 +4918,7 @@ public function getBigQueryLinkTest()
$expectedResponse->setStreamingExportEnabled($streamingExportEnabled);
$expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled);
$expectedResponse->setIncludeAdvertisingId($includeAdvertisingId);
+ $expectedResponse->setDatasetLocation($datasetLocation);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->bigQueryLinkName('[PROPERTY]', '[BIGQUERY_LINK]');
@@ -4674,11 +5058,13 @@ public function getChannelGroupTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$systemDefined = false;
+ $primary = true;
$expectedResponse = new ChannelGroup();
$expectedResponse->setName($name2);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setSystemDefined($systemDefined);
+ $expectedResponse->setPrimary($primary);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->channelGroupName('[PROPERTY]', '[CHANNEL_GROUP]');
@@ -5507,6 +5893,74 @@ public function getEventCreateRuleExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function getEventEditRuleTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name2 = 'name2-1052831874';
+ $displayName = 'displayName1615086568';
+ $processingOrder = 334545118;
+ $expectedResponse = new EventEditRule();
+ $expectedResponse->setName($name2);
+ $expectedResponse->setDisplayName($displayName);
+ $expectedResponse->setProcessingOrder($processingOrder);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]');
+ $request = (new GetEventEditRuleRequest())
+ ->setName($formattedName);
+ $response = $gapicClient->getEventEditRule($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventEditRule', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function getEventEditRuleExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->eventEditRuleName('[PROPERTY]', '[DATA_STREAM]', '[EVENT_EDIT_RULE]');
+ $request = (new GetEventEditRuleRequest())
+ ->setName($formattedName);
+ try {
+ $gapicClient->getEventEditRule($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function getExpandedDataSetTest()
{
@@ -5706,7 +6160,7 @@ public function getGoogleSignalsSettingsExceptionTest()
}
/** @test */
- public function getMeasurementProtocolSecretTest()
+ public function getKeyEventTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -5715,31 +6169,33 @@ public function getMeasurementProtocolSecretTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name2 = 'name2-1052831874';
- $displayName = 'displayName1615086568';
- $secretValue = 'secretValue1322942242';
- $expectedResponse = new MeasurementProtocolSecret();
+ $eventName = 'eventName984174864';
+ $deletable = true;
+ $custom = false;
+ $expectedResponse = new KeyEvent();
$expectedResponse->setName($name2);
- $expectedResponse->setDisplayName($displayName);
- $expectedResponse->setSecretValue($secretValue);
+ $expectedResponse->setEventName($eventName);
+ $expectedResponse->setDeletable($deletable);
+ $expectedResponse->setCustom($custom);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]');
- $request = (new GetMeasurementProtocolSecretRequest())
+ $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]');
+ $request = (new GetKeyEventRequest())
->setName($formattedName);
- $response = $gapicClient->getMeasurementProtocolSecret($request);
+ $response = $gapicClient->getKeyEvent($request);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetKeyEvent', $actualFuncCall);
$actualValue = $actualRequestObject->getName();
$this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
}
/** @test */
- public function getMeasurementProtocolSecretExceptionTest()
+ public function getKeyEventExceptionTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -5757,11 +6213,11 @@ public function getMeasurementProtocolSecretExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]');
- $request = (new GetMeasurementProtocolSecretRequest())
+ $formattedName = $gapicClient->keyEventName('[PROPERTY]', '[KEY_EVENT]');
+ $request = (new GetKeyEventRequest())
->setName($formattedName);
try {
- $gapicClient->getMeasurementProtocolSecret($request);
+ $gapicClient->getKeyEvent($request);
// If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
@@ -5774,7 +6230,7 @@ public function getMeasurementProtocolSecretExceptionTest()
}
/** @test */
- public function getPropertyTest()
+ public function getMeasurementProtocolSecretTest()
{
$transport = $this->createTransport();
$gapicClient = $this->createClient([
@@ -5783,30 +6239,98 @@ public function getPropertyTest()
$this->assertTrue($transport->isExhausted());
// Mock response
$name2 = 'name2-1052831874';
- $parent = 'parent-995424086';
$displayName = 'displayName1615086568';
- $timeZone = 'timeZone36848094';
- $currencyCode = 'currencyCode1108728155';
- $account = 'account-1177318867';
- $expectedResponse = new Property();
+ $secretValue = 'secretValue1322942242';
+ $expectedResponse = new MeasurementProtocolSecret();
$expectedResponse->setName($name2);
- $expectedResponse->setParent($parent);
$expectedResponse->setDisplayName($displayName);
- $expectedResponse->setTimeZone($timeZone);
- $expectedResponse->setCurrencyCode($currencyCode);
- $expectedResponse->setAccount($account);
+ $expectedResponse->setSecretValue($secretValue);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $gapicClient->propertyName('[PROPERTY]');
- $request = (new GetPropertyRequest())
+ $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]');
+ $request = (new GetMeasurementProtocolSecretRequest())
->setName($formattedName);
- $response = $gapicClient->getProperty($request);
+ $response = $gapicClient->getMeasurementProtocolSecret($request);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
$actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty', $actualFuncCall);
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret', $actualFuncCall);
+ $actualValue = $actualRequestObject->getName();
+ $this->assertProtobufEquals($formattedName, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function getMeasurementProtocolSecretExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedName = $gapicClient->measurementProtocolSecretName('[PROPERTY]', '[DATA_STREAM]', '[MEASUREMENT_PROTOCOL_SECRET]');
+ $request = (new GetMeasurementProtocolSecretRequest())
+ ->setName($formattedName);
+ try {
+ $gapicClient->getMeasurementProtocolSecret($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function getPropertyTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name2 = 'name2-1052831874';
+ $parent = 'parent-995424086';
+ $displayName = 'displayName1615086568';
+ $timeZone = 'timeZone36848094';
+ $currencyCode = 'currencyCode1108728155';
+ $account = 'account-1177318867';
+ $expectedResponse = new Property();
+ $expectedResponse->setName($name2);
+ $expectedResponse->setParent($parent);
+ $expectedResponse->setDisplayName($displayName);
+ $expectedResponse->setTimeZone($timeZone);
+ $expectedResponse->setCurrencyCode($currencyCode);
+ $expectedResponse->setAccount($account);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedName = $gapicClient->propertyName('[PROPERTY]');
+ $request = (new GetPropertyRequest())
+ ->setName($formattedName);
+ $response = $gapicClient->getProperty($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty', $actualFuncCall);
$actualValue = $actualRequestObject->getName();
$this->assertProtobufEquals($formattedName, $actualValue);
$this->assertTrue($transport->isExhausted());
@@ -7231,6 +7755,78 @@ public function listEventCreateRulesExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function listEventEditRulesTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $nextPageToken = '';
+ $eventEditRulesElement = new EventEditRule();
+ $eventEditRules = [
+ $eventEditRulesElement,
+ ];
+ $expectedResponse = new ListEventEditRulesResponse();
+ $expectedResponse->setNextPageToken($nextPageToken);
+ $expectedResponse->setEventEditRules($eventEditRules);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $request = (new ListEventEditRulesRequest())
+ ->setParent($formattedParent);
+ $response = $gapicClient->listEventEditRules($request);
+ $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
+ $resources = iterator_to_array($response->iterateAllElements());
+ $this->assertSame(1, count($resources));
+ $this->assertEquals($expectedResponse->getEventEditRules()[0], $resources[0]);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventEditRules', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function listEventEditRulesExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $request = (new ListEventEditRulesRequest())
+ ->setParent($formattedParent);
+ try {
+ $gapicClient->listEventEditRules($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function listExpandedDataSetsTest()
{
@@ -7447,6 +8043,78 @@ public function listGoogleAdsLinksExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function listKeyEventsTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $nextPageToken = '';
+ $keyEventsElement = new KeyEvent();
+ $keyEvents = [
+ $keyEventsElement,
+ ];
+ $expectedResponse = new ListKeyEventsResponse();
+ $expectedResponse->setNextPageToken($nextPageToken);
+ $expectedResponse->setKeyEvents($keyEvents);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ $request = (new ListKeyEventsRequest())
+ ->setParent($formattedParent);
+ $response = $gapicClient->listKeyEvents($request);
+ $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
+ $resources = iterator_to_array($response->iterateAllElements());
+ $this->assertSame(1, count($resources));
+ $this->assertEquals($expectedResponse->getKeyEvents()[0], $resources[0]);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListKeyEvents', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function listKeyEventsExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->propertyName('[PROPERTY]');
+ $request = (new ListKeyEventsRequest())
+ ->setParent($formattedParent);
+ try {
+ $gapicClient->listKeyEvents($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function listMeasurementProtocolSecretsTest()
{
@@ -7935,6 +8603,143 @@ public function provisionAccountTicketExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function provisionSubpropertyTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new ProvisionSubpropertyResponse();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $subproperty = new Property();
+ $subpropertyDisplayName = 'subpropertyDisplayName-1859570920';
+ $subproperty->setDisplayName($subpropertyDisplayName);
+ $subpropertyTimeZone = 'subpropertyTimeZone-1143367858';
+ $subproperty->setTimeZone($subpropertyTimeZone);
+ $request = (new ProvisionSubpropertyRequest())
+ ->setSubproperty($subproperty);
+ $response = $gapicClient->provisionSubproperty($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionSubproperty', $actualFuncCall);
+ $actualValue = $actualRequestObject->getSubproperty();
+ $this->assertProtobufEquals($subproperty, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function provisionSubpropertyExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $subproperty = new Property();
+ $subpropertyDisplayName = 'subpropertyDisplayName-1859570920';
+ $subproperty->setDisplayName($subpropertyDisplayName);
+ $subpropertyTimeZone = 'subpropertyTimeZone-1143367858';
+ $subproperty->setTimeZone($subpropertyTimeZone);
+ $request = (new ProvisionSubpropertyRequest())
+ ->setSubproperty($subproperty);
+ try {
+ $gapicClient->provisionSubproperty($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function reorderEventEditRulesTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $expectedResponse = new GPBEmpty();
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $eventEditRules = [];
+ $request = (new ReorderEventEditRulesRequest())
+ ->setParent($formattedParent)
+ ->setEventEditRules($eventEditRules);
+ $gapicClient->reorderEventEditRules($request);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ReorderEventEditRules', $actualFuncCall);
+ $actualValue = $actualRequestObject->getParent();
+ $this->assertProtobufEquals($formattedParent, $actualValue);
+ $actualValue = $actualRequestObject->getEventEditRules();
+ $this->assertProtobufEquals($eventEditRules, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function reorderEventEditRulesExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]');
+ $eventEditRules = [];
+ $request = (new ReorderEventEditRulesRequest())
+ ->setParent($formattedParent)
+ ->setEventEditRules($eventEditRules);
+ try {
+ $gapicClient->reorderEventEditRules($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function runAccessReportTest()
{
@@ -8204,11 +9009,13 @@ public function updateAccountTest()
$displayName = 'displayName1615086568';
$regionCode = 'regionCode-1566082984';
$deleted = false;
+ $gmpOrganization = 'gmpOrganization-1643573496';
$expectedResponse = new Account();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setRegionCode($regionCode);
$expectedResponse->setDeleted($deleted);
+ $expectedResponse->setGmpOrganization($gmpOrganization);
$transport->addResponse($expectedResponse);
// Mock request
$account = new Account();
@@ -8451,6 +9258,92 @@ public function updateAudienceExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function updateBigQueryLinkTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $project = 'project-309310695';
+ $dailyExportEnabled = true;
+ $streamingExportEnabled = false;
+ $freshDailyExportEnabled = false;
+ $includeAdvertisingId = false;
+ $datasetLocation = 'datasetLocation1011262364';
+ $expectedResponse = new BigQueryLink();
+ $expectedResponse->setName($name);
+ $expectedResponse->setProject($project);
+ $expectedResponse->setDailyExportEnabled($dailyExportEnabled);
+ $expectedResponse->setStreamingExportEnabled($streamingExportEnabled);
+ $expectedResponse->setFreshDailyExportEnabled($freshDailyExportEnabled);
+ $expectedResponse->setIncludeAdvertisingId($includeAdvertisingId);
+ $expectedResponse->setDatasetLocation($datasetLocation);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $bigqueryLink = new BigQueryLink();
+ $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843';
+ $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation);
+ $updateMask = new FieldMask();
+ $request = (new UpdateBigQueryLinkRequest())
+ ->setBigqueryLink($bigqueryLink)
+ ->setUpdateMask($updateMask);
+ $response = $gapicClient->updateBigQueryLink($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateBigQueryLink', $actualFuncCall);
+ $actualValue = $actualRequestObject->getBigqueryLink();
+ $this->assertProtobufEquals($bigqueryLink, $actualValue);
+ $actualValue = $actualRequestObject->getUpdateMask();
+ $this->assertProtobufEquals($updateMask, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function updateBigQueryLinkExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $bigqueryLink = new BigQueryLink();
+ $bigqueryLinkDatasetLocation = 'bigqueryLinkDatasetLocation714488843';
+ $bigqueryLink->setDatasetLocation($bigqueryLinkDatasetLocation);
+ $updateMask = new FieldMask();
+ $request = (new UpdateBigQueryLinkRequest())
+ ->setBigqueryLink($bigqueryLink)
+ ->setUpdateMask($updateMask);
+ try {
+ $gapicClient->updateBigQueryLink($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function updateCalculatedMetricTest()
{
@@ -8556,11 +9449,13 @@ public function updateChannelGroupTest()
$displayName = 'displayName1615086568';
$description = 'description-1724546052';
$systemDefined = false;
+ $primary = true;
$expectedResponse = new ChannelGroup();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setDescription($description);
$expectedResponse->setSystemDefined($systemDefined);
+ $expectedResponse->setPrimary($primary);
$transport->addResponse($expectedResponse);
// Mock request
$channelGroup = new ChannelGroup();
@@ -9301,6 +10196,92 @@ public function updateEventCreateRuleExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function updateEventEditRuleTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $displayName = 'displayName1615086568';
+ $processingOrder = 334545118;
+ $expectedResponse = new EventEditRule();
+ $expectedResponse->setName($name);
+ $expectedResponse->setDisplayName($displayName);
+ $expectedResponse->setProcessingOrder($processingOrder);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $eventEditRule = new EventEditRule();
+ $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781';
+ $eventEditRule->setDisplayName($eventEditRuleDisplayName);
+ $eventEditRuleEventConditions = [];
+ $eventEditRule->setEventConditions($eventEditRuleEventConditions);
+ $eventEditRuleParameterMutations = [];
+ $eventEditRule->setParameterMutations($eventEditRuleParameterMutations);
+ $updateMask = new FieldMask();
+ $request = (new UpdateEventEditRuleRequest())
+ ->setEventEditRule($eventEditRule)
+ ->setUpdateMask($updateMask);
+ $response = $gapicClient->updateEventEditRule($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventEditRule', $actualFuncCall);
+ $actualValue = $actualRequestObject->getEventEditRule();
+ $this->assertProtobufEquals($eventEditRule, $actualValue);
+ $actualValue = $actualRequestObject->getUpdateMask();
+ $this->assertProtobufEquals($updateMask, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function updateEventEditRuleExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $eventEditRule = new EventEditRule();
+ $eventEditRuleDisplayName = 'eventEditRuleDisplayName160444781';
+ $eventEditRule->setDisplayName($eventEditRuleDisplayName);
+ $eventEditRuleEventConditions = [];
+ $eventEditRule->setEventConditions($eventEditRuleEventConditions);
+ $eventEditRuleParameterMutations = [];
+ $eventEditRule->setParameterMutations($eventEditRuleParameterMutations);
+ $updateMask = new FieldMask();
+ $request = (new UpdateEventEditRuleRequest())
+ ->setEventEditRule($eventEditRule)
+ ->setUpdateMask($updateMask);
+ try {
+ $gapicClient->updateEventEditRule($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function updateExpandedDataSetTest()
{
@@ -9519,6 +10500,86 @@ public function updateGoogleSignalsSettingsExceptionTest()
$this->assertTrue($transport->isExhausted());
}
+ /** @test */
+ public function updateKeyEventTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ // Mock response
+ $name = 'name3373707';
+ $eventName = 'eventName984174864';
+ $deletable = true;
+ $custom = false;
+ $expectedResponse = new KeyEvent();
+ $expectedResponse->setName($name);
+ $expectedResponse->setEventName($eventName);
+ $expectedResponse->setDeletable($deletable);
+ $expectedResponse->setCustom($custom);
+ $transport->addResponse($expectedResponse);
+ // Mock request
+ $keyEvent = new KeyEvent();
+ $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED;
+ $keyEvent->setCountingMethod($keyEventCountingMethod);
+ $updateMask = new FieldMask();
+ $request = (new UpdateKeyEventRequest())
+ ->setKeyEvent($keyEvent)
+ ->setUpdateMask($updateMask);
+ $response = $gapicClient->updateKeyEvent($request);
+ $this->assertEquals($expectedResponse, $response);
+ $actualRequests = $transport->popReceivedCalls();
+ $this->assertSame(1, count($actualRequests));
+ $actualFuncCall = $actualRequests[0]->getFuncCall();
+ $actualRequestObject = $actualRequests[0]->getRequestObject();
+ $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateKeyEvent', $actualFuncCall);
+ $actualValue = $actualRequestObject->getKeyEvent();
+ $this->assertProtobufEquals($keyEvent, $actualValue);
+ $actualValue = $actualRequestObject->getUpdateMask();
+ $this->assertProtobufEquals($updateMask, $actualValue);
+ $this->assertTrue($transport->isExhausted());
+ }
+
+ /** @test */
+ public function updateKeyEventExceptionTest()
+ {
+ $transport = $this->createTransport();
+ $gapicClient = $this->createClient([
+ 'transport' => $transport,
+ ]);
+ $this->assertTrue($transport->isExhausted());
+ $status = new stdClass();
+ $status->code = Code::DATA_LOSS;
+ $status->details = 'internal error';
+ $expectedExceptionMessage = json_encode([
+ 'message' => 'internal error',
+ 'code' => Code::DATA_LOSS,
+ 'status' => 'DATA_LOSS',
+ 'details' => [],
+ ], JSON_PRETTY_PRINT);
+ $transport->addResponse(null, $status);
+ // Mock request
+ $keyEvent = new KeyEvent();
+ $keyEventCountingMethod = CountingMethod::COUNTING_METHOD_UNSPECIFIED;
+ $keyEvent->setCountingMethod($keyEventCountingMethod);
+ $updateMask = new FieldMask();
+ $request = (new UpdateKeyEventRequest())
+ ->setKeyEvent($keyEvent)
+ ->setUpdateMask($updateMask);
+ try {
+ $gapicClient->updateKeyEvent($request);
+ // If the $gapicClient method call did not throw, fail the test
+ $this->fail('Expected an ApiException, but no exception was thrown.');
+ } catch (ApiException $ex) {
+ $this->assertEquals($status->code, $ex->getCode());
+ $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
+ }
+ // Call popReceivedCalls to ensure the stub is exhausted
+ $transport->popReceivedCalls();
+ $this->assertTrue($transport->isExhausted());
+ }
+
/** @test */
public function updateMeasurementProtocolSecretTest()
{