From 5aefad63af7f3e83e68c999a8ccddbded3f0feb0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 27 Oct 2023 00:22:04 +0530 Subject: [PATCH] fix!: delete `BatchDeleteUserLinks`, `DeleteUserLink`, `BatchUpdateUserLinks`, `UpdateUserLink`, `BatchCreateUserLinks`, `CreateUserLink`, `AuditUserLinks`, `ListUserLinks`, `BatchGetUserLinks`, `GetUserLink` from the Admin API v1 alph... (#6733) * fix!: delete `BatchDeleteUserLinks`, `DeleteUserLink`, `BatchUpdateUserLinks`, `UpdateUserLink`, `BatchCreateUserLinks`, `CreateUserLink`, `AuditUserLinks`, `ListUserLinks`, `BatchGetUserLinks`, `GetUserLink` from the Admin API v1 alpha as per the announcement in https://bit.ly/46yBIDt feat: add `UpdateDataRedactionSettings`, `CreateRollupProperty`, `GetRollupPropertySourceLink`, `ListRollupPropertySourceLinks`, `CreateRollupPropertySourceLink`, `DeleteRollupPropertySourceLink`, `CreateSubproperty`, `CreateSubpropertyEventFilter`, `CreateSubpropertyEventFilter`, `ListSubpropertyEventFilters`, `UpdateSubpropertyEventFilter`, `DeleteSubpropertyEventFilter` methods to the Admin API v1 alpha feat: add `include_all_users`, `expand_groups` fields to `RunAccessReportRequest` feat: add `DataRedactionSettings`, `RollupPropertySourceLink`, `SubpropertyEventFilterCondition`, `SubpropertyEventFilterExpression`, `SubpropertyEventFilterExpressionList`, `SubpropertyEventFilterClause`, `SubpropertyEventFilter` types feat: add the `DATA_REDACTION_SETTINGS` option to the `ChangeHistoryResourceType` enum feat: add the `data_redaction_settings` field to the `ChangeHistoryResource.resource` oneof field PiperOrigin-RevId: 574877732 Source-Link: https://github.com/googleapis/googleapis/commit/a3006dd1ff2e3c7f4ff7e7538af8adf2ea9e815b Source-Link: https://github.com/googleapis/googleapis-gen/commit/4eb740a4cf21c13d13737b3488fa4c752e13b79d Copy-Tag: eyJwIjoiQW5hbHl0aWNzQWRtaW4vLk93bEJvdC55YW1sIiwiaCI6IjRlYjc0MGE0Y2YyMWMxM2QxMzczN2IzNDg4ZmE0Yzc1MmUxM2I3OWQifQ== --- .../metadata/V1Alpha/AnalyticsAdmin.php | 147 +-- AnalyticsAdmin/metadata/V1Alpha/Resources.php | Bin 19234 -> 19590 bytes .../V1Alpha/SubpropertyEventFilter.php | Bin 0 -> 2654 bytes .../create_rollup_property.php | 85 ++ .../create_rollup_property_source_link.php | 75 ++ .../create_subproperty.php | 92 ++ .../create_subproperty_event_filter.php | 89 ++ .../delete_account.php | 2 +- .../delete_property.php | 2 +- .../delete_rollup_property_source_link.php | 71 ++ .../delete_subproperty_event_filter.php | 70 ++ .../get_data_redaction_settings.php | 72 ++ .../get_rollup_property_source_link.php | 74 ++ .../list_rollup_property_source_links.php | 74 ++ ...sk_ad_network_conversion_value_schemas.php | 7 +- .../update_data_redaction_settings.php | 61 ++ .../ChangeHistoryResource.php | 33 + .../src/V1alpha/ChangeHistoryResourceType.php | 7 + .../V1alpha/CreateRollupPropertyRequest.php | 115 +++ .../V1alpha/CreateRollupPropertyResponse.php | 111 ++ .../CreateRollupPropertySourceLinkRequest.php | 115 +++ .../CreateSubpropertyEventFilterRequest.php | 115 +++ .../src/V1alpha/CreateSubpropertyRequest.php | 163 +++ .../src/V1alpha/CreateSubpropertyResponse.php | 121 +++ .../src/V1alpha/DataRedactionSettings.php | 210 ++++ .../DeleteRollupPropertySourceLinkRequest.php | 75 ++ .../DeleteSubpropertyEventFilterRequest.php | 79 ++ .../AnalyticsAdminServiceGapicClient.php | 943 +++++++++-------- .../GetDataRedactionSettingsRequest.php | 79 ++ .../GetRollupPropertySourceLinkRequest.php | 79 ++ .../GetSubpropertyEventFilterRequest.php | 79 ++ .../ListRollupPropertySourceLinksRequest.php | 167 +++ .../ListRollupPropertySourceLinksResponse.php | 105 ++ ...AdNetworkConversionValueSchemasRequest.php | 28 +- .../ListSubpropertyEventFiltersRequest.php | 171 +++ .../ListSubpropertyEventFiltersResponse.php | 105 ++ AnalyticsAdmin/src/V1alpha/Property.php | 12 +- .../src/V1alpha/RollupPropertySourceLink.php | 121 +++ .../src/V1alpha/RunAccessReportRequest.php | 96 ++ .../src/V1alpha/SubpropertyEventFilter.php | 161 +++ .../V1alpha/SubpropertyEventFilterClause.php | 118 +++ .../FilterClauseType.php | 69 ++ .../SubpropertyEventFilterCondition.php | 142 +++ .../StringFilter.php | 142 +++ .../StringFilter/MatchType.php | 92 ++ .../SubpropertyEventFilterExpression.php | 153 +++ .../SubpropertyEventFilterExpressionList.php | 67 ++ .../UpdateDataRedactionSettingsRequest.php | 137 +++ .../UpdateSubpropertyEventFilterRequest.php | 133 +++ .../src/V1alpha/gapic_metadata.json | 88 +- ...analytics_admin_service_client_config.json | 92 +- ...lytics_admin_service_descriptor_config.php | 22 +- ...ytics_admin_service_rest_client_config.php | 232 ++--- .../AnalyticsAdminServiceClientTest.php | 973 +++++++++--------- 54 files changed, 5350 insertions(+), 1321 deletions(-) create mode 100644 AnalyticsAdmin/metadata/V1Alpha/SubpropertyEventFilter.php create mode 100644 AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property.php create mode 100644 AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php create mode 100644 AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty.php create mode 100644 AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php create mode 100644 AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php create mode 100644 AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php create mode 100644 AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php create mode 100644 AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php create mode 100644 AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php create mode 100644 AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php create mode 100644 AnalyticsAdmin/src/V1alpha/CreateRollupPropertyRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/CreateRollupPropertyResponse.php create mode 100644 AnalyticsAdmin/src/V1alpha/CreateRollupPropertySourceLinkRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/CreateSubpropertyEventFilterRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/CreateSubpropertyRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/CreateSubpropertyResponse.php create mode 100644 AnalyticsAdmin/src/V1alpha/DataRedactionSettings.php create mode 100644 AnalyticsAdmin/src/V1alpha/DeleteRollupPropertySourceLinkRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/DeleteSubpropertyEventFilterRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/GetDataRedactionSettingsRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/GetRollupPropertySourceLinkRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/GetSubpropertyEventFilterRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksResponse.php create mode 100644 AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersResponse.php create mode 100644 AnalyticsAdmin/src/V1alpha/RollupPropertySourceLink.php create mode 100644 AnalyticsAdmin/src/V1alpha/SubpropertyEventFilter.php create mode 100644 AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause.php create mode 100644 AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php create mode 100644 AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition.php create mode 100644 AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter.php create mode 100644 AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php create mode 100644 AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpression.php create mode 100644 AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpressionList.php create mode 100644 AnalyticsAdmin/src/V1alpha/UpdateDataRedactionSettingsRequest.php create mode 100644 AnalyticsAdmin/src/V1alpha/UpdateSubpropertyEventFilterRequest.php diff --git a/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php b/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php index a006efccb400..07477e991b81 100644 --- a/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php +++ b/AnalyticsAdmin/metadata/V1Alpha/AnalyticsAdmin.php @@ -20,6 +20,7 @@ public static function initOnce() { \GPBMetadata\Google\Analytics\Admin\V1Alpha\EventCreateAndEdit::initOnce(); \GPBMetadata\Google\Analytics\Admin\V1Alpha\ExpandedDataSet::initOnce(); \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); \GPBMetadata\Google\Api\Annotations::initOnce(); \GPBMetadata\Google\Api\Client::initOnce(); \GPBMetadata\Google\Api\FieldBehavior::initOnce(); @@ -29,8 +30,8 @@ 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.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"¤ +ت +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 @@ -44,7 +45,9 @@ public static function initOnce() { time_zone ( @ order_bys ( 2-.google.analytics.admin.v1alpha.AccessOrderBy -return_entity_quota ("¿ +return_entity_quota ( +include_all_users (BàA + expand_groups (BàA"¿ RunAccessReportResponseP dimension_headers ( 25.google.analytics.admin.v1alpha.AccessDimensionHeaderJ metric_headers ( 22.google.analytics.admin.v1alpha.AccessMetricHeader7 @@ -93,60 +96,7 @@ public static function initOnce() { property ( 2(.google.analytics.admin.v1alpha.PropertyBàA"U DeletePropertyRequest< name ( B.àAúA( -&analyticsadmin.googleapis.com/Property"R -GetUserLinkRequest< -name ( B.àAúA( -&analyticsadmin.googleapis.com/UserLink"™ -BatchGetUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLink= -names ( B.àAúA( -&analyticsadmin.googleapis.com/UserLink"Y -BatchGetUserLinksResponse< - -user_links ( 2(.google.analytics.admin.v1alpha.UserLink"} -ListUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLink - page_size ( - -page_token ( "n -ListUserLinksResponse< - -user_links ( 2(.google.analytics.admin.v1alpha.UserLink -next_page_token ( "~ -AuditUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLink - page_size ( - -page_token ( "t -AuditUserLinksResponseA - -user_links ( 2-.google.analytics.admin.v1alpha.AuditUserLink -next_page_token ( "· -CreateUserLinkRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLink -notify_new_user (BàA@ - user_link ( 2(.google.analytics.admin.v1alpha.UserLinkBàA"Ê -BatchCreateUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLink -notify_new_users (BàAL -requests ( 25.google.analytics.admin.v1alpha.CreateUserLinkRequestBàA"\\ -BatchCreateUserLinksResponse< - -user_links ( 2(.google.analytics.admin.v1alpha.UserLink"Y -UpdateUserLinkRequest@ - user_link ( 2(.google.analytics.admin.v1alpha.UserLinkBàA"« -BatchUpdateUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLinkL -requests ( 25.google.analytics.admin.v1alpha.UpdateUserLinkRequestBàA"\\ -BatchUpdateUserLinksResponse< - -user_links ( 2(.google.analytics.admin.v1alpha.UserLink"U -DeleteUserLinkRequest< -name ( B.àAúA( -&analyticsadmin.googleapis.com/UserLink"« -BatchDeleteUserLinksRequest> -parent ( B.àAúA(&analyticsadmin.googleapis.com/UserLinkL -requests ( 25.google.analytics.admin.v1alpha.DeleteUserLinkRequestBàA"© +&analyticsadmin.googleapis.com/Property"© CreateFirebaseLinkRequestB parent ( B2àAúA,*analyticsadmin.googleapis.com/FirebaseLinkH firebase_link ( 2,.google.analytics.admin.v1alpha.FirebaseLinkBàA"] @@ -536,6 +486,12 @@ public static function initOnce() { 9analyticsadmin.googleapis.com/EnhancedMeasurementSettings"É (UpdateEnhancedMeasurementSettingsRequestg enhanced_measurement_settings ( 2;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"l +GetDataRedactionSettingsRequestI +name ( B;àAúA5 +3analyticsadmin.googleapis.com/DataRedactionSettings"· +"UpdateDataRedactionSettingsRequest[ +data_redaction_settings ( 25.google.analytics.admin.v1alpha.DataRedactionSettingsBàA4 update_mask ( 2.google.protobuf.FieldMaskBàA"„ CreateConnectedSiteTagRequest property ( Q @@ -590,7 +546,58 @@ public static function initOnce() { page_token ( "„ ListEventCreateRulesResponseK event_create_rules ( 2/.google.analytics.admin.v1alpha.EventCreateRule -next_page_token ( 2üè +next_page_token ( "… +CreateRollupPropertyRequestF +rollup_property ( 2(.google.analytics.admin.v1alpha.PropertyBàA +source_properties ( BàA"Á +CreateRollupPropertyResponseA +rollup_property ( 2(.google.analytics.admin.v1alpha.Property^ +rollup_property_source_links ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLink"r +"GetRollupPropertySourceLinkRequestL +name ( B>àAúA8 +6analyticsadmin.googleapis.com/RollupPropertySourceLink"§ +$ListRollupPropertySourceLinksRequestN +parent ( B>àAúA86analyticsadmin.googleapis.com/RollupPropertySourceLink + page_size (BàA + +page_token ( BàA"  +%ListRollupPropertySourceLinksResponse^ +rollup_property_source_links ( 28.google.analytics.admin.v1alpha.RollupPropertySourceLink +next_page_token ( "Û +%CreateRollupPropertySourceLinkRequestN +parent ( B>àAúA86analyticsadmin.googleapis.com/RollupPropertySourceLinkb +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 + subproperty ( 2(.google.analytics.admin.v1alpha.PropertyBàA] +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA"´ +CreateSubpropertyResponse= + subproperty ( 2(.google.analytics.admin.v1alpha.PropertyX +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilter"Ò +#CreateSubpropertyEventFilterRequestL +parent ( B<àAúA64analyticsadmin.googleapis.com/SubpropertyEventFilter] +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA"n + GetSubpropertyEventFilterRequestJ +name ( B<àAúA6 +4analyticsadmin.googleapis.com/SubpropertyEventFilter"£ +"ListSubpropertyEventFiltersRequestL +parent ( B<àAúA64analyticsadmin.googleapis.com/SubpropertyEventFilter + page_size (BàA + +page_token ( BàA"™ +#ListSubpropertyEventFiltersResponseY +subproperty_event_filters ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilter +next_page_token ( "º +#UpdateSubpropertyEventFilterRequest] +subproperty_event_filter ( 26.google.analytics.admin.v1alpha.SubpropertyEventFilterBàA4 + update_mask ( 2.google.protobuf.FieldMaskBàA"q +#DeleteSubpropertyEventFilterRequestJ +name ( B<àAúA6 +4analyticsadmin.googleapis.com/SubpropertyEventFilter2ñè AnalyticsAdminService“ GetAccount1.google.analytics.admin.v1alpha.GetAccountRequest\'.google.analytics.admin.v1alpha.Account")‚Óä“/v1alpha/{name=accounts/*}ÚAname” @@ -603,17 +610,7 @@ public static function initOnce() { ListProperties5.google.analytics.admin.v1alpha.ListPropertiesRequest6.google.analytics.admin.v1alpha.ListPropertiesResponse"‚Óä“/v1alpha/properties£ CreateProperty5.google.analytics.admin.v1alpha.CreatePropertyRequest(.google.analytics.admin.v1alpha.Property"0‚Óä“"/v1alpha/properties:propertyÚApropertyž DeleteProperty5.google.analytics.admin.v1alpha.DeletePropertyRequest(.google.analytics.admin.v1alpha.Property"+‚Óä“*/v1alpha/{name=properties/*}ÚAnameÁ -UpdateProperty5.google.analytics.admin.v1alpha.UpdatePropertyRequest(.google.analytics.admin.v1alpha.Property"N‚Óä“12%/v1alpha/{property.name=properties/*}:propertyÚAproperty,update_maskÎ - GetUserLink2.google.analytics.admin.v1alpha.GetUserLinkRequest(.google.analytics.admin.v1alpha.UserLink"a‚Óä“T&/v1alpha/{name=accounts/*/userLinks/*}Z*(/v1alpha/{name=properties/*/userLinks/*}ÚAnameö -BatchGetUserLinks8.google.analytics.admin.v1alpha.BatchGetUserLinksRequest9.google.analytics.admin.v1alpha.BatchGetUserLinksResponse"l‚Óä“f//v1alpha/{parent=accounts/*}/userLinks:batchGetZ31/v1alpha/{parent=properties/*}/userLinks:batchGetá - ListUserLinks4.google.analytics.admin.v1alpha.ListUserLinksRequest5.google.analytics.admin.v1alpha.ListUserLinksResponse"c‚Óä“T&/v1alpha/{parent=accounts/*}/userLinksZ*(/v1alpha/{parent=properties/*}/userLinksÚAparentí -AuditUserLinks5.google.analytics.admin.v1alpha.AuditUserLinksRequest6.google.analytics.admin.v1alpha.AuditUserLinksResponse"l‚Óä“f",/v1alpha/{parent=accounts/*}/userLinks:audit:*Z3"./v1alpha/{parent=properties/*}/userLinks:audit:*÷ -CreateUserLink5.google.analytics.admin.v1alpha.CreateUserLinkRequest(.google.analytics.admin.v1alpha.UserLink"ƒ‚Óä“j"&/v1alpha/{parent=accounts/*}/userLinks: user_linkZ5"(/v1alpha/{parent=properties/*}/userLinks: user_linkÚAparent,user_link‹ -BatchCreateUserLinks;.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest<.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse"x‚Óä“r"2/v1alpha/{parent=accounts/*}/userLinks:batchCreate:*Z9"4/v1alpha/{parent=properties/*}/userLinks:batchCreate:*„ -UpdateUserLink5.google.analytics.admin.v1alpha.UpdateUserLinkRequest(.google.analytics.admin.v1alpha.UserLink"‚Óä“~20/v1alpha/{user_link.name=accounts/*/userLinks/*}: user_linkZ?22/v1alpha/{user_link.name=properties/*/userLinks/*}: user_linkÚA user_link‹ -BatchUpdateUserLinks;.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest<.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse"x‚Óä“r"2/v1alpha/{parent=accounts/*}/userLinks:batchUpdate:*Z9"4/v1alpha/{parent=properties/*}/userLinks:batchUpdate:* -DeleteUserLink5.google.analytics.admin.v1alpha.DeleteUserLinkRequest.google.protobuf.Empty"a‚Óä“T*&/v1alpha/{name=accounts/*/userLinks/*}Z**(/v1alpha/{name=properties/*/userLinks/*}ÚAnameå -BatchDeleteUserLinks;.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.google.protobuf.Empty"x‚Óä“r"2/v1alpha/{parent=accounts/*}/userLinks:batchDelete:*Z9"4/v1alpha/{parent=properties/*}/userLinks:batchDelete:*Ù +UpdateProperty5.google.analytics.admin.v1alpha.UpdatePropertyRequest(.google.analytics.admin.v1alpha.Property"N‚Óä“12%/v1alpha/{property.name=properties/*}:propertyÚAproperty,update_maskÙ CreateFirebaseLink9.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest,.google.analytics.admin.v1alpha.FirebaseLink"Z‚Óä“=",/v1alpha/{parent=properties/*}/firebaseLinks: firebase_linkÚAparent,firebase_link¤ DeleteFirebaseLink9.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.google.protobuf.Empty";‚Óä“.*,/v1alpha/{name=properties/*/firebaseLinks/*}ÚAnameÇ ListFirebaseLinks8.google.analytics.admin.v1alpha.ListFirebaseLinksRequest9.google.analytics.admin.v1alpha.ListFirebaseLinksResponse"=‚Óä“.,/v1alpha/{parent=properties/*}/firebaseLinksÚAparentà @@ -720,7 +717,17 @@ public static function initOnce() { ListEventCreateRules;.google.analytics.admin.v1alpha.ListEventCreateRulesRequest<.google.analytics.admin.v1alpha.ListEventCreateRulesResponse"N‚Óä“?=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRulesÚAparentû CreateEventCreateRule<.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"s‚Óä“R"=/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules:event_create_ruleÚAparent,event_create_rule“ UpdateEventCreateRule<.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest/.google.analytics.admin.v1alpha.EventCreateRule"Š‚Óä“d2O/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}:event_create_ruleÚAevent_create_rule,update_mask» -DeleteEventCreateRule<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.google.protobuf.Empty"L‚Óä“?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}ÚAnameüÊAanalyticsadmin.googleapis.comÒAØhttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB{ +DeleteEventCreateRule<.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.google.protobuf.Empty"L‚Óä“?*=/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}ÚAnameº +UpdateDataRedactionSettingsB.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest5.google.analytics.admin.v1alpha.DataRedactionSettings"Ÿ‚Óä“s2X/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}:data_redaction_settingsÚA#data_redaction_settings,update_maskã +GetDataRedactionSettings?.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest5.google.analytics.admin.v1alpha.DataRedactionSettings"O‚Óä“B@/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}ÚAnameÆ +CreateRollupProperty;.google.analytics.admin.v1alpha.CreateRollupPropertyRequest<.google.analytics.admin.v1alpha.CreateRollupPropertyResponse"3‚Óä“-"(/v1alpha/properties:createRollupProperty:*ä +GetRollupPropertySourceLinkB.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest8.google.analytics.admin.v1alpha.RollupPropertySourceLink"G‚Óä“:8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}ÚAname÷ +ListRollupPropertySourceLinksD.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequestE.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse"I‚Óä“:8/v1alpha/{parent=properties/*}/rollupPropertySourceLinksÚAparent¦ +CreateRollupPropertySourceLinkE.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest8.google.analytics.admin.v1alpha.RollupPropertySourceLink"‚‚Óä“W"8/v1alpha/{parent=properties/*}/rollupPropertySourceLinks:rollup_property_source_linkÚA"parent,rollup_property_source_linkÈ +DeleteRollupPropertySourceLinkE.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.google.protobuf.Empty"G‚Óä“:*8/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}ÚAnameº +CreateSubproperty8.google.analytics.admin.v1alpha.CreateSubpropertyRequest9.google.analytics.admin.v1alpha.CreateSubpropertyResponse"0‚Óä“*"%/v1alpha/properties:createSubproperty:* +DeleteSubpropertyEventFilterC.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.google.protobuf.Empty"E‚Óä“8*6/v1alpha/{name=properties/*/subpropertyEventFilters/*}ÚAname— +CreateSubpropertyEventFilterC.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest6.google.analytics.admin.v1alpha.SubpropertyEventFilter"z‚Óä“R"6/v1alpha/{parent=properties/*}/subpropertyEventFilters:subproperty_event_filterÚAparent,subproperty_event_filterüÊAanalyticsadmin.googleapis.comÒAØhttps://www.googleapis.com/auth/analytics.edit,https://www.googleapis.com/auth/analytics.manage.users,https://www.googleapis.com/auth/analytics.manage.users.readonly,https://www.googleapis.com/auth/analytics.readonlyB{ "com.google.analytics.admin.v1alphaBAnalyticsAdminProtoPZ>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpbbproto3' , true); diff --git a/AnalyticsAdmin/metadata/V1Alpha/Resources.php b/AnalyticsAdmin/metadata/V1Alpha/Resources.php index 12b82c8badd9c063eb5dd98d3c614630e300ce42..60ba3adad9d3c8edbfa1726d9d3ed606f0166a37 100644 GIT binary patch delta 569 zcmZ29jj?Se;|4w!rWF%53$WO5Ztmdw$-^{3Xmhi)B_q>S{>}Sj^x0%0xWrQuOA_OY zQd1I>OEUBG;)_#DN;31(izOr{|C3eYbpgr-!6Y|7Qu-(>IF*S@6h(OQL|vIYc`otP z+{DZrB%@OE5|eULQzV!a7&SPAG`SQDOH+#~;|mgt5_3~aQj4%CWdBRiNk=5z|<15EKj9g}u z9R=m2uo#i*lbM$-QdH@jSdyBazq!Lvk(s5Nl}mE+0U6QFhg^Oz%1CpGyEuk8#s|5&I68-T`uoKP TyM}~#`nd-SNN(QgmdOGDWNOKV delta 329 zcmZph$+&15;|4w!rX#(Z1z2o2d9E;WafBA97Wri6Wlw%+Bw{JW#haR&n3)rwn37VI zT3jr_q`;`b>BRiNkyS{9izg+sC^fkxz9>H@wOE2#fmwsos)_NHV?CGJWC0;LE|^h5 z8k09#3yYRQO)l221~KDvfVR|5PB4+E$10@A#pDL)U-69V>8QAq3&e?xmW2jBNxx+0N$@WEZYRRgeMzH32%;(QekBI&BrA= uNm^|4ENOAJ&D=`QWG8bvF50}u$%L8Z9SfJ_Bx%vjoNhlDH_LfsumAuw_+tZ84oJ-GpPj~`Qc~ZncjwG^zVn@PX3o>+-q3@GXpgwW z$Aa`w_X3F_L7vY9vzddsLBCIYWV17mI>av^R69h?!!|N&_4X%nD`$aklQJ4GHgHH0 zyV$u9)aFIpJELy#{0VlvAujTuD=|IdiwldK6IWP$>IexKdIE6q8Q~tb3EFE_4v4@# zEO2Kp1nn3JXva{Xofl6G1-cDjJD78HJO(!v_HGCbuK>xP7jzwJBQCI{g*GX-s7nRK z4*fyKyMy}J;Y31Rwe1J4Ehux5+HmOFWa}}CFqQ45$D}?xC?VNWl1aHbbyvnE8Fy-g z+dlOK^IOuiTpkdS3a!3uJ&xTfINC>B5yx`*3dtQL{D4e)N6054@ZIf@w*nZY|2oqo z^k`?75~o)oLwrt|UoMZM8iQQ7^@zlIp1LcP;`3)T4&3PV(l})*$X3cs@q7fo-G!Z7 zm5cr$+FnSjtq@jQA+ENK4-kpH1N{?h3~tXjHV)%{_p=%9N#gVqKFymMXKajm*ZM z8CagQ)fvDU7WU8*7hYt!QhM<&*%S^Gd|RT240Ijl&#@DbP?Ct1ejiqB%!$Q`%cXqh zWL?R!s5WT%pEX!YG4u^sJ22YSeXIRV%d}3K$1Ss3->sXq+>E{i^X92hZRa%oE@Ug_ zUcGs2eO+(w=Q8>oSTdWn_;prahQ;b(vu#L=+?=xBJ!v$oBXiF@ZRO@A$(5FI)UF%p zw}r|w0CP#4xBOojxaQ0-zxQOla8(4Su*iIC;IqIBlaMXdZYJ#*vq8C#34RGHE)y0> zeT8ynOJCgaVp zxm0sjw#}`htt`lj@VF_j>_xkuynBSlIMbq?72UcPoBHg(xMV0!ex6wRFd-)IT zALDlozDzHH=njYuW9(60kW)+XnwaV_Yf5setDisplayName($rollupPropertyDisplayName) + ->setTimeZone($rollupPropertyTimeZone); + + // Call the API and handle any network failures. + try { + /** @var CreateRollupPropertyResponse $response */ + $response = $analyticsAdminServiceClient->createRollupProperty($rollupProperty); + 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 +{ + $rollupPropertyDisplayName = '[DISPLAY_NAME]'; + $rollupPropertyTimeZone = '[TIME_ZONE]'; + + create_rollup_property_sample($rollupPropertyDisplayName, $rollupPropertyTimeZone); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync] diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php new file mode 100644 index 000000000000..9a5113bb2fb9 --- /dev/null +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_rollup_property_source_link.php @@ -0,0 +1,75 @@ +createRollupPropertySourceLink( + $formattedParent, + $rollupPropertySourceLink + ); + 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]'); + + create_rollup_property_source_link_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync] diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty.php new file mode 100644 index 000000000000..874685d5197a --- /dev/null +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty.php @@ -0,0 +1,92 @@ +setDisplayName($subpropertyDisplayName) + ->setTimeZone($subpropertyTimeZone); + + // Call the API and handle any network failures. + try { + /** @var CreateSubpropertyResponse $response */ + $response = $analyticsAdminServiceClient->createSubproperty($formattedParent, $subproperty); + 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]'); + $subpropertyDisplayName = '[DISPLAY_NAME]'; + $subpropertyTimeZone = '[TIME_ZONE]'; + + create_subproperty_sample($formattedParent, $subpropertyDisplayName, $subpropertyTimeZone); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubproperty_sync] diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php new file mode 100644 index 000000000000..ab07b72becc8 --- /dev/null +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_subproperty_event_filter.php @@ -0,0 +1,89 @@ +setFilterClauseType($subpropertyEventFilterFilterClausesFilterClauseType) + ->setFilterExpression($subpropertyEventFilterFilterClausesFilterExpression); + $subpropertyEventFilterFilterClauses = [$subpropertyEventFilterClause,]; + $subpropertyEventFilter = (new SubpropertyEventFilter()) + ->setFilterClauses($subpropertyEventFilterFilterClauses); + + // Call the API and handle any network failures. + try { + /** @var SubpropertyEventFilter $response */ + $response = $analyticsAdminServiceClient->createSubpropertyEventFilter( + $formattedParent, + $subpropertyEventFilter + ); + 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]'); + $subpropertyEventFilterFilterClausesFilterClauseType = FilterClauseType::FILTER_CLAUSE_TYPE_UNSPECIFIED; + + create_subproperty_event_filter_sample( + $formattedParent, + $subpropertyEventFilterFilterClausesFilterClauseType + ); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync] diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php index 7c55383187b7..38af1ba45ef0 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_account.php @@ -34,7 +34,7 @@ * * If the accounts are not restored before the expiration time, the account * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * UserLinks) will be permanently purged. + * AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * * Returns an error if the target is not found. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php index 90483be6c5df..b81230264f7a 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_property.php @@ -34,7 +34,7 @@ * However, they can be restored using the Trash Can UI. * * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php new file mode 100644 index 000000000000..51e5aa8645b9 --- /dev/null +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_rollup_property_source_link.php @@ -0,0 +1,71 @@ +deleteRollupPropertySourceLink($formattedName); + 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::rollupPropertySourceLinkName( + '[PROPERTY]', + '[ROLLUP_PROPERTY_SOURCE_LINK]' + ); + + delete_rollup_property_source_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync] diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php new file mode 100644 index 000000000000..ea4384826819 --- /dev/null +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/delete_subproperty_event_filter.php @@ -0,0 +1,70 @@ +deleteSubpropertyEventFilter($formattedName); + 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::subpropertyEventFilterName( + '[PROPERTY]', + '[SUB_PROPERTY_EVENT_FILTER]' + ); + + delete_subproperty_event_filter_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync] diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php new file mode 100644 index 000000000000..b71ec0837c24 --- /dev/null +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_data_redaction_settings.php @@ -0,0 +1,72 @@ +getDataRedactionSettings($formattedName); + 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::dataRedactionSettingsName( + '[PROPERTY]', + '[DATA_STREAM]' + ); + + get_data_redaction_settings_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync] diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php new file mode 100644 index 000000000000..360dc594c1dc --- /dev/null +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/get_rollup_property_source_link.php @@ -0,0 +1,74 @@ +getRollupPropertySourceLink($formattedName); + 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::rollupPropertySourceLinkName( + '[PROPERTY]', + '[ROLLUP_PROPERTY_SOURCE_LINK]' + ); + + get_rollup_property_source_link_sample($formattedName); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync] diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php new file mode 100644 index 000000000000..2d5d349e4ba9 --- /dev/null +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_rollup_property_source_links.php @@ -0,0 +1,74 @@ +listRollupPropertySourceLinks($formattedParent); + + /** @var RollupPropertySourceLink $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_rollup_property_source_links_sample($formattedParent); +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync] diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php index 500eb067be9f..c8a408e95f44 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/list_sk_ad_network_conversion_value_schemas.php @@ -32,9 +32,10 @@ * Lists SKAdNetworkConversionValueSchema on a stream. * Properties can have at most one SKAdNetworkConversionValueSchema. * - * @param string $formattedParent Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * @param string $formattedParent The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * Please see {@see AnalyticsAdminServiceClient::dataStreamName()} for help formatting this field. */ function list_sk_ad_network_conversion_value_schemas_sample(string $formattedParent): void diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php new file mode 100644 index 000000000000..75558e68006a --- /dev/null +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_redaction_settings.php @@ -0,0 +1,61 @@ +updateDataRedactionSettings( + $dataRedactionSettings, + $updateMask + ); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync] diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php index 13f7d79310bc..782755107f06 100644 --- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php +++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryChange/ChangeHistoryResource.php @@ -64,6 +64,8 @@ class ChangeHistoryResource extends \Google\Protobuf\Internal\Message * A snapshot of a BigQuery link resource in change history. * @type \Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings $enhanced_measurement_settings * A snapshot of EnhancedMeasurementSettings resource in change history. + * @type \Google\Analytics\Admin\V1alpha\DataRedactionSettings $data_redaction_settings + * A snapshot of DataRedactionSettings resource in change history. * @type \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema $skadnetwork_conversion_value_schema * A snapshot of SKAdNetworkConversionValueSchema resource in change * history. @@ -673,6 +675,37 @@ public function setEnhancedMeasurementSettings($var) return $this; } + /** + * A snapshot of DataRedactionSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings|null + */ + public function getDataRedactionSettings() + { + return $this->readOneof(25); + } + + public function hasDataRedactionSettings() + { + return $this->hasOneof(25); + } + + /** + * A snapshot of DataRedactionSettings resource in change history. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * @param \Google\Analytics\Admin\V1alpha\DataRedactionSettings $var + * @return $this + */ + public function setDataRedactionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRedactionSettings::class); + $this->writeOneof(25, $var); + + return $this; + } + /** * A snapshot of SKAdNetworkConversionValueSchema resource in change * history. diff --git a/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php b/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php index cd049d355516..f42497a79ac6 100644 --- a/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php +++ b/AnalyticsAdmin/src/V1alpha/ChangeHistoryResourceType.php @@ -127,6 +127,12 @@ class ChangeHistoryResourceType * Generated from protobuf enum ENHANCED_MEASUREMENT_SETTINGS = 24; */ const ENHANCED_MEASUREMENT_SETTINGS = 24; + /** + * DataRedactionSettings resource + * + * Generated from protobuf enum DATA_REDACTION_SETTINGS = 25; + */ + const DATA_REDACTION_SETTINGS = 25; /** * SKAdNetworkConversionValueSchema resource * @@ -172,6 +178,7 @@ class ChangeHistoryResourceType self::EXPANDED_DATA_SET => 'EXPANDED_DATA_SET', self::CHANNEL_GROUP => 'CHANNEL_GROUP', self::ENHANCED_MEASUREMENT_SETTINGS => 'ENHANCED_MEASUREMENT_SETTINGS', + self::DATA_REDACTION_SETTINGS => 'DATA_REDACTION_SETTINGS', self::SKADNETWORK_CONVERSION_VALUE_SCHEMA => 'SKADNETWORK_CONVERSION_VALUE_SCHEMA', self::ADSENSE_LINK => 'ADSENSE_LINK', self::AUDIENCE => 'AUDIENCE', diff --git a/AnalyticsAdmin/src/V1alpha/CreateRollupPropertyRequest.php b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertyRequest.php new file mode 100644 index 000000000000..17783ac67db4 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertyRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateRollupPropertyRequest + */ +class CreateRollupPropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The roll-up property to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $rollup_property = null; + /** + * Optional. The resource names of properties that will be sources to the + * created roll-up property. + * + * Generated from protobuf field repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $source_properties; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Property $rollup_property + * Required. The roll-up property to create. + * @type array|\Google\Protobuf\Internal\RepeatedField $source_properties + * Optional. The resource names of properties that will be sources to the + * created roll-up property. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The roll-up property to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\Property|null + */ + public function getRollupProperty() + { + return $this->rollup_property; + } + + public function hasRollupProperty() + { + return isset($this->rollup_property); + } + + public function clearRollupProperty() + { + unset($this->rollup_property); + } + + /** + * Required. The roll-up property to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\Property $var + * @return $this + */ + public function setRollupProperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); + $this->rollup_property = $var; + + return $this; + } + + /** + * Optional. The resource names of properties that will be sources to the + * created roll-up property. + * + * Generated from protobuf field repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSourceProperties() + { + return $this->source_properties; + } + + /** + * Optional. The resource names of properties that will be sources to the + * created roll-up property. + * + * Generated from protobuf field repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSourceProperties($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->source_properties = $arr; + + return $this; + } + +} + diff --git a/AnalyticsAdmin/src/V1alpha/CreateRollupPropertyResponse.php b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertyResponse.php new file mode 100644 index 000000000000..212a26c0f23b --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertyResponse.php @@ -0,0 +1,111 @@ +google.analytics.admin.v1alpha.CreateRollupPropertyResponse + */ +class CreateRollupPropertyResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The created roll-up property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + private $rollup_property = null; + /** + * The created roll-up property source links. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + */ + private $rollup_property_source_links; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\Property $rollup_property + * The created roll-up property. + * @type array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $rollup_property_source_links + * The created roll-up property source links. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * The created roll-up property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1; + * @return \Google\Analytics\Admin\V1alpha\Property|null + */ + public function getRollupProperty() + { + return $this->rollup_property; + } + + public function hasRollupProperty() + { + return isset($this->rollup_property); + } + + public function clearRollupProperty() + { + unset($this->rollup_property); + } + + /** + * The created roll-up property. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.Property rollup_property = 1; + * @param \Google\Analytics\Admin\V1alpha\Property $var + * @return $this + */ + public function setRollupProperty($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\Property::class); + $this->rollup_property = $var; + + return $this; + } + + /** + * The created roll-up property source links. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRollupPropertySourceLinks() + { + return $this->rollup_property_source_links; + } + + /** + * The created roll-up property source links. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * @param array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRollupPropertySourceLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink::class); + $this->rollup_property_source_links = $arr; + + return $this; + } + +} + diff --git a/AnalyticsAdmin/src/V1alpha/CreateRollupPropertySourceLinkRequest.php b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertySourceLinkRequest.php new file mode 100644 index 000000000000..c4d22b591867 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/CreateRollupPropertySourceLinkRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + */ +class CreateRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: properties/{property_id} + * Example: properties/1234 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $parent = ''; + /** + * Required. The roll-up property source link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $rollup_property_source_link = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: properties/{property_id} + * Example: properties/1234 + * @type \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink $rollup_property_source_link + * Required. The roll-up property source link to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: properties/{property_id} + * Example: 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. Format: properties/{property_id} + * Example: 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 roll-up property source link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink|null + */ + public function getRollupPropertySourceLink() + { + return $this->rollup_property_source_link; + } + + public function hasRollupPropertySourceLink() + { + return isset($this->rollup_property_source_link); + } + + public function clearRollupPropertySourceLink() + { + unset($this->rollup_property_source_link); + } + + /** + * Required. The roll-up property source link to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink $var + * @return $this + */ + public function setRollupPropertySourceLink($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink::class); + $this->rollup_property_source_link = $var; + + return $this; + } + +} + diff --git a/AnalyticsAdmin/src/V1alpha/CreateSubpropertyEventFilterRequest.php b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyEventFilterRequest.php new file mode 100644 index 000000000000..a3d0123ba349 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyEventFilterRequest.php @@ -0,0 +1,115 @@ +google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + */ +class CreateSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ordinary property for which to create a subproperty event + * filter. Format: properties/property_id Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $parent = ''; + /** + * Required. The subproperty event filter to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $subproperty_event_filter = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The ordinary property for which to create a subproperty event + * filter. Format: properties/property_id Example: properties/123 + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter + * Required. The subproperty event filter to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ordinary property for which to create a subproperty event + * filter. Format: properties/property_id 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 ordinary property for which to create a subproperty event + * filter. Format: properties/property_id 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; + } + + /** + * Required. The subproperty event filter to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. The subproperty event filter to create. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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/CreateSubpropertyRequest.php b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyRequest.php new file mode 100644 index 000000000000..0fb9d995d9f3 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyRequest.php @@ -0,0 +1,163 @@ +google.analytics.admin.v1alpha.CreateSubpropertyRequest + */ +class CreateSubpropertyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ordinary property for which to create a subproperty. + * Format: properties/property_id + * Example: properties/123 + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $parent = ''; + /** + * 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 string $parent + * Required. The ordinary property for which to create a subproperty. + * Format: properties/property_id + * Example: properties/123 + * @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 ordinary property for which to create a subproperty. + * Format: properties/property_id + * 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 ordinary property for which to create a subproperty. + * Format: properties/property_id + * 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; + } + + /** + * 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/CreateSubpropertyResponse.php b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyResponse.php new file mode 100644 index 000000000000..ed86acbd052e --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/CreateSubpropertyResponse.php @@ -0,0 +1,121 @@ +google.analytics.admin.v1alpha.CreateSubpropertyResponse + */ +class CreateSubpropertyResponse 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/DataRedactionSettings.php b/AnalyticsAdmin/src/V1alpha/DataRedactionSettings.php new file mode 100644 index 000000000000..0084954a51d2 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/DataRedactionSettings.php @@ -0,0 +1,210 @@ +google.analytics.admin.v1alpha.DataRedactionSettings + */ +class DataRedactionSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of this Data Redaction Settings resource. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $name = ''; + /** + * If enabled, any event parameter or user property values that look like an + * email will be redacted. + * + * Generated from protobuf field bool email_redaction_enabled = 2; + */ + private $email_redaction_enabled = false; + /** + * Query Parameter redaction removes the key and value portions of a + * query parameter if it is in the configured set of query parameters. + * If enabled, URL query replacement logic will be run for the Stream. Any + * query parameters defined in query_parameter_keys will be redacted. + * + * Generated from protobuf field bool query_parameter_redaction_enabled = 3; + */ + private $query_parameter_redaction_enabled = false; + /** + * The query parameter keys to apply redaction logic to if present in the URL. + * Query parameter matching is case-insensitive. + * Must contain at least one element if query_parameter_replacement_enabled + * is true. Keys cannot contain commas. + * + * Generated from protobuf field repeated string query_parameter_keys = 4; + */ + private $query_parameter_keys; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of this Data Redaction Settings resource. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * @type bool $email_redaction_enabled + * If enabled, any event parameter or user property values that look like an + * email will be redacted. + * @type bool $query_parameter_redaction_enabled + * Query Parameter redaction removes the key and value portions of a + * query parameter if it is in the configured set of query parameters. + * If enabled, URL query replacement logic will be run for the Stream. Any + * query parameters defined in query_parameter_keys will be redacted. + * @type array|\Google\Protobuf\Internal\RepeatedField $query_parameter_keys + * The query parameter keys to apply redaction logic to if present in the URL. + * Query parameter matching is case-insensitive. + * Must contain at least one element if query_parameter_replacement_enabled + * is true. Keys cannot contain commas. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of this Data Redaction Settings resource. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of this Data Redaction Settings resource. + * Format: + * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * 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; + } + + /** + * If enabled, any event parameter or user property values that look like an + * email will be redacted. + * + * Generated from protobuf field bool email_redaction_enabled = 2; + * @return bool + */ + public function getEmailRedactionEnabled() + { + return $this->email_redaction_enabled; + } + + /** + * If enabled, any event parameter or user property values that look like an + * email will be redacted. + * + * Generated from protobuf field bool email_redaction_enabled = 2; + * @param bool $var + * @return $this + */ + public function setEmailRedactionEnabled($var) + { + GPBUtil::checkBool($var); + $this->email_redaction_enabled = $var; + + return $this; + } + + /** + * Query Parameter redaction removes the key and value portions of a + * query parameter if it is in the configured set of query parameters. + * If enabled, URL query replacement logic will be run for the Stream. Any + * query parameters defined in query_parameter_keys will be redacted. + * + * Generated from protobuf field bool query_parameter_redaction_enabled = 3; + * @return bool + */ + public function getQueryParameterRedactionEnabled() + { + return $this->query_parameter_redaction_enabled; + } + + /** + * Query Parameter redaction removes the key and value portions of a + * query parameter if it is in the configured set of query parameters. + * If enabled, URL query replacement logic will be run for the Stream. Any + * query parameters defined in query_parameter_keys will be redacted. + * + * Generated from protobuf field bool query_parameter_redaction_enabled = 3; + * @param bool $var + * @return $this + */ + public function setQueryParameterRedactionEnabled($var) + { + GPBUtil::checkBool($var); + $this->query_parameter_redaction_enabled = $var; + + return $this; + } + + /** + * The query parameter keys to apply redaction logic to if present in the URL. + * Query parameter matching is case-insensitive. + * Must contain at least one element if query_parameter_replacement_enabled + * is true. Keys cannot contain commas. + * + * Generated from protobuf field repeated string query_parameter_keys = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getQueryParameterKeys() + { + return $this->query_parameter_keys; + } + + /** + * The query parameter keys to apply redaction logic to if present in the URL. + * Query parameter matching is case-insensitive. + * Must contain at least one element if query_parameter_replacement_enabled + * is true. Keys cannot contain commas. + * + * Generated from protobuf field repeated string query_parameter_keys = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setQueryParameterKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->query_parameter_keys = $arr; + + return $this; + } + +} + diff --git a/AnalyticsAdmin/src/V1alpha/DeleteRollupPropertySourceLinkRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteRollupPropertySourceLinkRequest.php new file mode 100644 index 000000000000..becf6dee491b --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/DeleteRollupPropertySourceLinkRequest.php @@ -0,0 +1,75 @@ +google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + */ +class DeleteRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/5678 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/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. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/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/DeleteSubpropertyEventFilterRequest.php b/AnalyticsAdmin/src/V1alpha/DeleteSubpropertyEventFilterRequest.php new file mode 100644 index 000000000000..8c4e61fe0113 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/DeleteSubpropertyEventFilterRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + */ +class DeleteSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/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. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/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/Gapic/AnalyticsAdminServiceGapicClient.php b/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php index ec4a21169cbe..2665858ce176 100644 --- a/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php +++ b/AnalyticsAdmin/src/V1alpha/Gapic/AnalyticsAdminServiceGapicClient.php @@ -43,22 +43,13 @@ use Google\Analytics\Admin\V1alpha\ArchiveCustomMetricRequest; use Google\Analytics\Admin\V1alpha\AttributionSettings; use Google\Analytics\Admin\V1alpha\Audience; -use Google\Analytics\Admin\V1alpha\AuditUserLinksRequest; -use Google\Analytics\Admin\V1alpha\AuditUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchCreateAccessBindingsRequest; use Google\Analytics\Admin\V1alpha\BatchCreateAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchCreateUserLinksRequest; -use Google\Analytics\Admin\V1alpha\BatchCreateUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchDeleteAccessBindingsRequest; -use Google\Analytics\Admin\V1alpha\BatchDeleteUserLinksRequest; use Google\Analytics\Admin\V1alpha\BatchGetAccessBindingsRequest; use Google\Analytics\Admin\V1alpha\BatchGetAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchGetUserLinksRequest; -use Google\Analytics\Admin\V1alpha\BatchGetUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchUpdateAccessBindingsRequest; use Google\Analytics\Admin\V1alpha\BatchUpdateAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksRequest; -use Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksResponse; use Google\Analytics\Admin\V1alpha\BigQueryLink; use Google\Analytics\Admin\V1alpha\CancelDisplayVideo360AdvertiserLinkProposalRequest; use Google\Analytics\Admin\V1alpha\ChannelGroup; @@ -82,11 +73,17 @@ use Google\Analytics\Admin\V1alpha\CreateGoogleAdsLinkRequest; use Google\Analytics\Admin\V1alpha\CreateMeasurementProtocolSecretRequest; use Google\Analytics\Admin\V1alpha\CreatePropertyRequest; +use Google\Analytics\Admin\V1alpha\CreateRollupPropertyRequest; +use Google\Analytics\Admin\V1alpha\CreateRollupPropertyResponse; +use Google\Analytics\Admin\V1alpha\CreateRollupPropertySourceLinkRequest; use Google\Analytics\Admin\V1alpha\CreateSKAdNetworkConversionValueSchemaRequest; use Google\Analytics\Admin\V1alpha\CreateSearchAds360LinkRequest; -use Google\Analytics\Admin\V1alpha\CreateUserLinkRequest; +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; use Google\Analytics\Admin\V1alpha\DataRetentionSettings; use Google\Analytics\Admin\V1alpha\DataSharingSettings; use Google\Analytics\Admin\V1alpha\DataStream; @@ -105,9 +102,10 @@ use Google\Analytics\Admin\V1alpha\DeleteGoogleAdsLinkRequest; use Google\Analytics\Admin\V1alpha\DeleteMeasurementProtocolSecretRequest; use Google\Analytics\Admin\V1alpha\DeletePropertyRequest; +use Google\Analytics\Admin\V1alpha\DeleteRollupPropertySourceLinkRequest; use Google\Analytics\Admin\V1alpha\DeleteSKAdNetworkConversionValueSchemaRequest; use Google\Analytics\Admin\V1alpha\DeleteSearchAds360LinkRequest; -use Google\Analytics\Admin\V1alpha\DeleteUserLinkRequest; +use Google\Analytics\Admin\V1alpha\DeleteSubpropertyEventFilterRequest; use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLink; use Google\Analytics\Admin\V1alpha\DisplayVideo360AdvertiserLinkProposal; use Google\Analytics\Admin\V1alpha\EnhancedMeasurementSettings; @@ -128,6 +126,7 @@ use Google\Analytics\Admin\V1alpha\GetConversionEventRequest; use Google\Analytics\Admin\V1alpha\GetCustomDimensionRequest; use Google\Analytics\Admin\V1alpha\GetCustomMetricRequest; +use Google\Analytics\Admin\V1alpha\GetDataRedactionSettingsRequest; use Google\Analytics\Admin\V1alpha\GetDataRetentionSettingsRequest; use Google\Analytics\Admin\V1alpha\GetDataSharingSettingsRequest; use Google\Analytics\Admin\V1alpha\GetDataStreamRequest; @@ -140,9 +139,9 @@ use Google\Analytics\Admin\V1alpha\GetGoogleSignalsSettingsRequest; use Google\Analytics\Admin\V1alpha\GetMeasurementProtocolSecretRequest; use Google\Analytics\Admin\V1alpha\GetPropertyRequest; +use Google\Analytics\Admin\V1alpha\GetRollupPropertySourceLinkRequest; use Google\Analytics\Admin\V1alpha\GetSKAdNetworkConversionValueSchemaRequest; use Google\Analytics\Admin\V1alpha\GetSearchAds360LinkRequest; -use Google\Analytics\Admin\V1alpha\GetUserLinkRequest; use Google\Analytics\Admin\V1alpha\GlobalSiteTag; use Google\Analytics\Admin\V1alpha\GoogleAdsLink; use Google\Analytics\Admin\V1alpha\GoogleSignalsSettings; @@ -186,16 +185,17 @@ use Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsResponse; use Google\Analytics\Admin\V1alpha\ListPropertiesRequest; use Google\Analytics\Admin\V1alpha\ListPropertiesResponse; +use Google\Analytics\Admin\V1alpha\ListRollupPropertySourceLinksRequest; +use Google\Analytics\Admin\V1alpha\ListRollupPropertySourceLinksResponse; use Google\Analytics\Admin\V1alpha\ListSKAdNetworkConversionValueSchemasRequest; use Google\Analytics\Admin\V1alpha\ListSKAdNetworkConversionValueSchemasResponse; use Google\Analytics\Admin\V1alpha\ListSearchAds360LinksRequest; use Google\Analytics\Admin\V1alpha\ListSearchAds360LinksResponse; -use Google\Analytics\Admin\V1alpha\ListUserLinksRequest; -use Google\Analytics\Admin\V1alpha\ListUserLinksResponse; use Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret; use Google\Analytics\Admin\V1alpha\Property; use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketRequest; use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse; +use Google\Analytics\Admin\V1alpha\RollupPropertySourceLink; use Google\Analytics\Admin\V1alpha\RunAccessReportRequest; use Google\Analytics\Admin\V1alpha\RunAccessReportResponse; use Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema; @@ -204,6 +204,7 @@ use Google\Analytics\Admin\V1alpha\SearchChangeHistoryEventsResponse; use Google\Analytics\Admin\V1alpha\SetAutomatedGa4ConfigurationOptOutRequest; use Google\Analytics\Admin\V1alpha\SetAutomatedGa4ConfigurationOptOutResponse; +use Google\Analytics\Admin\V1alpha\SubpropertyEventFilter; use Google\Analytics\Admin\V1alpha\UpdateAccessBindingRequest; use Google\Analytics\Admin\V1alpha\UpdateAccountRequest; use Google\Analytics\Admin\V1alpha\UpdateAttributionSettingsRequest; @@ -212,6 +213,7 @@ use Google\Analytics\Admin\V1alpha\UpdateConversionEventRequest; use Google\Analytics\Admin\V1alpha\UpdateCustomDimensionRequest; use Google\Analytics\Admin\V1alpha\UpdateCustomMetricRequest; +use Google\Analytics\Admin\V1alpha\UpdateDataRedactionSettingsRequest; use Google\Analytics\Admin\V1alpha\UpdateDataRetentionSettingsRequest; use Google\Analytics\Admin\V1alpha\UpdateDataStreamRequest; use Google\Analytics\Admin\V1alpha\UpdateDisplayVideo360AdvertiserLinkRequest; @@ -224,8 +226,6 @@ use Google\Analytics\Admin\V1alpha\UpdatePropertyRequest; use Google\Analytics\Admin\V1alpha\UpdateSKAdNetworkConversionValueSchemaRequest; use Google\Analytics\Admin\V1alpha\UpdateSearchAds360LinkRequest; -use Google\Analytics\Admin\V1alpha\UpdateUserLinkRequest; -use Google\Analytics\Admin\V1alpha\UserLink; use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; @@ -293,8 +293,6 @@ class AnalyticsAdminServiceGapicClient private static $accountAccessBindingNameTemplate; - private static $accountUserLinkNameTemplate; - private static $adSenseLinkNameTemplate; private static $attributionSettingsNameTemplate; @@ -311,6 +309,8 @@ class AnalyticsAdminServiceGapicClient private static $customMetricNameTemplate; + private static $dataRedactionSettingsNameTemplate; + private static $dataRetentionSettingsNameTemplate; private static $dataSharingSettingsNameTemplate; @@ -341,13 +341,13 @@ class AnalyticsAdminServiceGapicClient private static $propertyAccessBindingNameTemplate; - private static $propertyUserLinkNameTemplate; + private static $rollupPropertySourceLinkNameTemplate; private static $sKAdNetworkConversionValueSchemaNameTemplate; private static $searchAds360LinkNameTemplate; - private static $userLinkNameTemplate; + private static $subpropertyEventFilterNameTemplate; private static $pathTemplateMap; @@ -397,15 +397,6 @@ private static function getAccountAccessBindingNameTemplate() return self::$accountAccessBindingNameTemplate; } - private static function getAccountUserLinkNameTemplate() - { - if (self::$accountUserLinkNameTemplate == null) { - self::$accountUserLinkNameTemplate = new PathTemplate('accounts/{account}/userLinks/{user_link}'); - } - - return self::$accountUserLinkNameTemplate; - } - private static function getAdSenseLinkNameTemplate() { if (self::$adSenseLinkNameTemplate == null) { @@ -478,6 +469,15 @@ private static function getCustomMetricNameTemplate() return self::$customMetricNameTemplate; } + private static function getDataRedactionSettingsNameTemplate() + { + if (self::$dataRedactionSettingsNameTemplate == null) { + self::$dataRedactionSettingsNameTemplate = new PathTemplate('properties/{property}/dataStreams/{data_stream}/dataRedactionSettings'); + } + + return self::$dataRedactionSettingsNameTemplate; + } + private static function getDataRetentionSettingsNameTemplate() { if (self::$dataRetentionSettingsNameTemplate == null) { @@ -613,13 +613,13 @@ private static function getPropertyAccessBindingNameTemplate() return self::$propertyAccessBindingNameTemplate; } - private static function getPropertyUserLinkNameTemplate() + private static function getRollupPropertySourceLinkNameTemplate() { - if (self::$propertyUserLinkNameTemplate == null) { - self::$propertyUserLinkNameTemplate = new PathTemplate('properties/{property}/userLinks/{user_link}'); + if (self::$rollupPropertySourceLinkNameTemplate == null) { + self::$rollupPropertySourceLinkNameTemplate = new PathTemplate('properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}'); } - return self::$propertyUserLinkNameTemplate; + return self::$rollupPropertySourceLinkNameTemplate; } private static function getSKAdNetworkConversionValueSchemaNameTemplate() @@ -640,13 +640,13 @@ private static function getSearchAds360LinkNameTemplate() return self::$searchAds360LinkNameTemplate; } - private static function getUserLinkNameTemplate() + private static function getSubpropertyEventFilterNameTemplate() { - if (self::$userLinkNameTemplate == null) { - self::$userLinkNameTemplate = new PathTemplate('accounts/{account}/userLinks/{user_link}'); + if (self::$subpropertyEventFilterNameTemplate == null) { + self::$subpropertyEventFilterNameTemplate = new PathTemplate('properties/{property}/subpropertyEventFilters/{sub_property_event_filter}'); } - return self::$userLinkNameTemplate; + return self::$subpropertyEventFilterNameTemplate; } private static function getPathTemplateMap() @@ -656,7 +656,6 @@ private static function getPathTemplateMap() 'accessBinding' => self::getAccessBindingNameTemplate(), 'account' => self::getAccountNameTemplate(), 'accountAccessBinding' => self::getAccountAccessBindingNameTemplate(), - 'accountUserLink' => self::getAccountUserLinkNameTemplate(), 'adSenseLink' => self::getAdSenseLinkNameTemplate(), 'attributionSettings' => self::getAttributionSettingsNameTemplate(), 'audience' => self::getAudienceNameTemplate(), @@ -665,6 +664,7 @@ private static function getPathTemplateMap() 'conversionEvent' => self::getConversionEventNameTemplate(), 'customDimension' => self::getCustomDimensionNameTemplate(), 'customMetric' => self::getCustomMetricNameTemplate(), + 'dataRedactionSettings' => self::getDataRedactionSettingsNameTemplate(), 'dataRetentionSettings' => self::getDataRetentionSettingsNameTemplate(), 'dataSharingSettings' => self::getDataSharingSettingsNameTemplate(), 'dataStream' => self::getDataStreamNameTemplate(), @@ -680,10 +680,10 @@ private static function getPathTemplateMap() 'measurementProtocolSecret' => self::getMeasurementProtocolSecretNameTemplate(), 'property' => self::getPropertyNameTemplate(), 'propertyAccessBinding' => self::getPropertyAccessBindingNameTemplate(), - 'propertyUserLink' => self::getPropertyUserLinkNameTemplate(), + 'rollupPropertySourceLink' => self::getRollupPropertySourceLinkNameTemplate(), 'sKAdNetworkConversionValueSchema' => self::getSKAdNetworkConversionValueSchemaNameTemplate(), 'searchAds360Link' => self::getSearchAds360LinkNameTemplate(), - 'userLink' => self::getUserLinkNameTemplate(), + 'subpropertyEventFilter' => self::getSubpropertyEventFilterNameTemplate(), ]; } @@ -745,25 +745,6 @@ public static function accountAccessBindingName($account, $accessBinding) ]); } - /** - * Formats a string containing the fully-qualified path to represent a - * account_user_link resource. - * - * @param string $account - * @param string $userLink - * - * @return string The formatted account_user_link resource. - * - * @experimental - */ - public static function accountUserLinkName($account, $userLink) - { - return self::getAccountUserLinkNameTemplate()->render([ - 'account' => $account, - 'user_link' => $userLink, - ]); - } - /** * Formats a string containing the fully-qualified path to represent a * ad_sense_link resource. @@ -914,6 +895,25 @@ public static function customMetricName($property, $customMetric) ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * data_redaction_settings resource. + * + * @param string $property + * @param string $dataStream + * + * @return string The formatted data_redaction_settings resource. + * + * @experimental + */ + public static function dataRedactionSettingsName($property, $dataStream) + { + return self::getDataRedactionSettingsNameTemplate()->render([ + 'property' => $property, + 'data_stream' => $dataStream, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * data_retention_settings resource. @@ -1197,20 +1197,20 @@ public static function propertyAccessBindingName($property, $accessBinding) /** * Formats a string containing the fully-qualified path to represent a - * property_user_link resource. + * rollup_property_source_link resource. * * @param string $property - * @param string $userLink + * @param string $rollupPropertySourceLink * - * @return string The formatted property_user_link resource. + * @return string The formatted rollup_property_source_link resource. * * @experimental */ - public static function propertyUserLinkName($property, $userLink) + public static function rollupPropertySourceLinkName($property, $rollupPropertySourceLink) { - return self::getPropertyUserLinkNameTemplate()->render([ + return self::getRollupPropertySourceLinkNameTemplate()->render([ 'property' => $property, - 'user_link' => $userLink, + 'rollup_property_source_link' => $rollupPropertySourceLink, ]); } @@ -1255,21 +1255,21 @@ public static function searchAds360LinkName($property, $searchAds360Link) } /** - * Formats a string containing the fully-qualified path to represent a user_link - * resource. + * Formats a string containing the fully-qualified path to represent a + * subproperty_event_filter resource. * - * @param string $account - * @param string $userLink + * @param string $property + * @param string $subPropertyEventFilter * - * @return string The formatted user_link resource. + * @return string The formatted subproperty_event_filter resource. * * @experimental */ - public static function userLinkName($account, $userLink) + public static function subpropertyEventFilterName($property, $subPropertyEventFilter) { - return self::getUserLinkNameTemplate()->render([ - 'account' => $account, - 'user_link' => $userLink, + return self::getSubpropertyEventFilterNameTemplate()->render([ + 'property' => $property, + 'sub_property_event_filter' => $subPropertyEventFilter, ]); } @@ -1280,7 +1280,6 @@ public static function userLinkName($account, $userLink) * - accessBinding: accounts/{account}/accessBindings/{access_binding} * - account: accounts/{account} * - accountAccessBinding: accounts/{account}/accessBindings/{access_binding} - * - accountUserLink: accounts/{account}/userLinks/{user_link} * - adSenseLink: properties/{property}/adSenseLinks/{adsense_link} * - attributionSettings: properties/{property}/attributionSettings * - audience: properties/{property}/audiences/{audience} @@ -1289,6 +1288,7 @@ public static function userLinkName($account, $userLink) * - conversionEvent: properties/{property}/conversionEvents/{conversion_event} * - customDimension: properties/{property}/customDimensions/{custom_dimension} * - customMetric: properties/{property}/customMetrics/{custom_metric} + * - dataRedactionSettings: properties/{property}/dataStreams/{data_stream}/dataRedactionSettings * - dataRetentionSettings: properties/{property}/dataRetentionSettings * - dataSharingSettings: accounts/{account}/dataSharingSettings * - dataStream: properties/{property}/dataStreams/{data_stream} @@ -1304,10 +1304,10 @@ public static function userLinkName($account, $userLink) * - measurementProtocolSecret: properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret} * - property: properties/{property} * - propertyAccessBinding: properties/{property}/accessBindings/{access_binding} - * - propertyUserLink: properties/{property}/userLinks/{user_link} + * - rollupPropertySourceLink: properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link} * - sKAdNetworkConversionValueSchema: properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} * - searchAds360Link: properties/{property}/searchAds360Links/{search_ads_360_link} - * - userLink: accounts/{account}/userLinks/{user_link} + * - subpropertyEventFilter: properties/{property}/subpropertyEventFilters/{sub_property_event_filter} * * The optional $template argument can be supplied to specify a particular pattern, * and must match one of the templates listed above. If no $template argument is @@ -1626,84 +1626,6 @@ public function archiveCustomMetric($name, array $optionalArgs = []) return $this->startCall('ArchiveCustomMetric', GPBEmpty::class, $optionalArgs, $request)->wait(); } - /** - * Lists all user links on an account or property, including implicit ones - * that come from effective permissions granted by groups or organization - * admin roles. - * - * If a returned user link does not have direct permissions, they cannot - * be removed from the account or property directly with the DeleteUserLink - * command. They have to be removed from the group/etc that gives them - * permissions, which is currently only usable/discoverable in the GA or GMP - * UIs. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->auditUserLinks($formattedParent); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->auditUserLinks($formattedParent); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. Example format: accounts/1234 - * @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 auditUserLinks($parent, array $optionalArgs = []) - { - $request = new AuditUserLinksRequest(); - $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('AuditUserLinks', $optionalArgs, AuditUserLinksResponse::class, $request); - } - /** * Creates information about multiple access bindings to an account or * property. @@ -1757,65 +1679,6 @@ public function batchCreateAccessBindings($parent, $requests, array $optionalArg return $this->startCall('BatchCreateAccessBindings', BatchCreateAccessBindingsResponse::class, $optionalArgs, $request)->wait(); } - /** - * Creates information about multiple users' links to an account or property. - * - * This method is transactional. If any UserLink cannot be created, none of - * the UserLinks will be created. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $response = $analyticsAdminServiceClient->batchCreateUserLinks($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that all user links in the request are - * for. This field is required. The parent field in the CreateUserLinkRequest - * messages must either be empty or match this field. - * Example format: accounts/1234 - * @param CreateUserLinkRequest[] $requests Required. The requests specifying the user links to create. - * A maximum of 1000 user links can be created in a batch. - * @param array $optionalArgs { - * Optional. - * - * @type bool $notifyNewUsers - * Optional. If set, then email the new users notifying them that they've been - * granted permissions to the resource. Regardless of whether this is set or - * not, notify_new_user field inside each individual request is ignored. - * @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\BatchCreateUserLinksResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchCreateUserLinks($parent, $requests, array $optionalArgs = []) - { - $request = new BatchCreateUserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['notifyNewUsers'])) { - $request->setNotifyNewUsers($optionalArgs['notifyNewUsers']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchCreateUserLinks', BatchCreateUserLinksResponse::class, $optionalArgs, $request)->wait(); - } - /** * Deletes information about multiple users' links to an account or property. * @@ -1863,52 +1726,6 @@ public function batchDeleteAccessBindings($parent, $requests, array $optionalArg return $this->startCall('BatchDeleteAccessBindings', GPBEmpty::class, $optionalArgs, $request)->wait(); } - /** - * Deletes information about multiple users' links to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $analyticsAdminServiceClient->batchDeleteUserLinks($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that all user links in the request are - * for. The parent of all values for user link names to delete must match this - * field. - * Example format: accounts/1234 - * @param DeleteUserLinkRequest[] $requests Required. The requests specifying the user links to update. - * A maximum of 1000 user links can be updated in a batch. - * @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 batchDeleteUserLinks($parent, $requests, array $optionalArgs = []) - { - $request = new BatchDeleteUserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchDeleteUserLinks', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - /** * Gets information about multiple access bindings to an account or property. * @@ -1963,57 +1780,6 @@ public function batchGetAccessBindings($parent, $names, array $optionalArgs = [] return $this->startCall('BatchGetAccessBindings', BatchGetAccessBindingsResponse::class, $optionalArgs, $request)->wait(); } - /** - * Gets information about multiple users' links to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $formattedNames = [ - * $analyticsAdminServiceClient->userLinkName('[ACCOUNT]', '[USER_LINK]'), - * ]; - * $response = $analyticsAdminServiceClient->batchGetUserLinks($formattedParent, $formattedNames); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that all user links in the request are - * for. The parent of all provided values for the 'names' field must match - * this field. - * Example format: accounts/1234 - * @param string[] $names Required. The names of the user links to retrieve. - * A maximum of 1000 user links can be retrieved in a batch. - * Format: accounts/{accountId}/userLinks/{userLinkId} - * @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\BatchGetUserLinksResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchGetUserLinks($parent, $names, array $optionalArgs = []) - { - $request = new BatchGetUserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setNames($names); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchGetUserLinks', BatchGetUserLinksResponse::class, $optionalArgs, $request)->wait(); - } - /** * Updates information about multiple access bindings to an account or * property. @@ -2065,54 +1831,6 @@ public function batchUpdateAccessBindings($parent, $requests, array $optionalArg return $this->startCall('BatchUpdateAccessBindings', BatchUpdateAccessBindingsResponse::class, $optionalArgs, $request)->wait(); } - /** - * Updates information about multiple users' links to an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $requests = []; - * $response = $analyticsAdminServiceClient->batchUpdateUserLinks($formattedParent, $requests); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param string $parent Required. The account or property that all user links in the request are - * for. The parent field in the UpdateUserLinkRequest messages must either be - * empty or match this field. - * Example format: accounts/1234 - * @param UpdateUserLinkRequest[] $requests Required. The requests specifying the user links to update. - * A maximum of 1000 user links can be updated in a batch. - * @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\BatchUpdateUserLinksResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchUpdateUserLinks($parent, $requests, array $optionalArgs = []) - { - $request = new BatchUpdateUserLinksRequest(); - $requestParamHeaders = []; - $request->setParent($parent); - $request->setRequests($requests); - $requestParamHeaders['parent'] = $parent; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchUpdateUserLinks', BatchUpdateUserLinksResponse::class, $optionalArgs, $request)->wait(); - } - /** * Cancels a DisplayVideo360AdvertiserLinkProposal. * Cancelling can mean either: @@ -2919,6 +2637,97 @@ public function createProperty($property, array $optionalArgs = []) return $this->startCall('CreateProperty', Property::class, $optionalArgs, $request)->wait(); } + /** + * Create a roll-up property and all roll-up property source links. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $rollupProperty = new Property(); + * $response = $analyticsAdminServiceClient->createRollupProperty($rollupProperty); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param Property $rollupProperty Required. The roll-up property to create. + * @param array $optionalArgs { + * Optional. + * + * @type string[] $sourceProperties + * Optional. The resource names of properties that will be sources to the + * created roll-up 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\CreateRollupPropertyResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createRollupProperty($rollupProperty, array $optionalArgs = []) + { + $request = new CreateRollupPropertyRequest(); + $request->setRollupProperty($rollupProperty); + if (isset($optionalArgs['sourceProperties'])) { + $request->setSourceProperties($optionalArgs['sourceProperties']); + } + + return $this->startCall('CreateRollupProperty', CreateRollupPropertyResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Creates a roll-up property source link. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $rollupPropertySourceLink = new RollupPropertySourceLink(); + * $response = $analyticsAdminServiceClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. Format: properties/{property_id} + * Example: properties/1234 + * @param RollupPropertySourceLink $rollupPropertySourceLink Required. The roll-up property source link 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\RollupPropertySourceLink + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createRollupPropertySourceLink($parent, $rollupPropertySourceLink, array $optionalArgs = []) + { + $request = new CreateRollupPropertySourceLinkRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setRollupPropertySourceLink($rollupPropertySourceLink); + $requestParamHeaders['parent'] = $parent; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CreateRollupPropertySourceLink', RollupPropertySourceLink::class, $optionalArgs, $request)->wait(); + } + /** * Creates a SKAdNetworkConversionValueSchema. * @@ -3009,58 +2818,97 @@ public function createSearchAds360Link($parent, $searchAds360Link, array $option } /** - * Creates a user link on an account or property. - * - * If the user with the specified email already has permissions on the - * account or property, then the user's existing permissions will be unioned - * with the permissions specified in the new UserLink. + * Create a subproperty and a subproperty event filter that applies to the + * created subproperty. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); - * $userLink = new UserLink(); - * $response = $analyticsAdminServiceClient->createUserLink($formattedParent, $userLink); + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $subproperty = new Property(); + * $response = $analyticsAdminServiceClient->createSubproperty($formattedParent, $subproperty); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param string $parent Required. Example format: accounts/1234 - * @param UserLink $userLink Required. The user link to create. + * @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 bool $notifyNewUser - * Optional. If set, then email the new user notifying them that they've been - * granted permissions to the resource. + * @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\UserLink + * @return \Google\Analytics\Admin\V1alpha\CreateSubpropertyResponse * * @throws ApiException if the remote call fails * * @experimental */ - public function createUserLink($parent, $userLink, array $optionalArgs = []) + public function createSubproperty($parent, $subproperty, array $optionalArgs = []) { - $request = new CreateUserLinkRequest(); - $requestParamHeaders = []; + $request = new CreateSubpropertyRequest(); $request->setParent($parent); - $request->setUserLink($userLink); - $requestParamHeaders['parent'] = $parent; - if (isset($optionalArgs['notifyNewUser'])) { - $request->setNotifyNewUser($optionalArgs['notifyNewUser']); + $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. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $subpropertyEventFilter = new SubpropertyEventFilter(); + * $response = $analyticsAdminServiceClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $parent Required. The ordinary property for which to create a subproperty event + * filter. Format: properties/property_id Example: properties/123 + * @param SubpropertyEventFilter $subpropertyEventFilter Required. The subproperty event filter 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\SubpropertyEventFilter + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function createSubpropertyEventFilter($parent, $subpropertyEventFilter, array $optionalArgs = []) + { + $request = new CreateSubpropertyEventFilterRequest(); + $requestParamHeaders = []; + $request->setParent($parent); + $request->setSubpropertyEventFilter($subpropertyEventFilter); + $requestParamHeaders['parent'] = $parent; $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateUserLink', UserLink::class, $optionalArgs, $request)->wait(); + return $this->startCall('CreateSubpropertyEventFilter', SubpropertyEventFilter::class, $optionalArgs, $request)->wait(); } /** @@ -3112,7 +2960,7 @@ public function deleteAccessBinding($name, array $optionalArgs = []) * * If the accounts are not restored before the expiration time, the account * and all child resources (eg: Properties, GoogleAdsLinks, Streams, - * UserLinks) will be permanently purged. + * AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * * Returns an error if the target is not found. @@ -3653,7 +3501,7 @@ public function deleteMeasurementProtocolSecret($name, array $optionalArgs = []) * However, they can be restored using the Trash Can UI. * * If the properties are not restored before the expiration time, the Property - * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) + * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * @@ -3699,6 +3547,49 @@ public function deleteProperty($name, array $optionalArgs = []) return $this->startCall('DeleteProperty', Property::class, $optionalArgs, $request)->wait(); } + /** + * Deletes a roll-up property source link. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + * $analyticsAdminServiceClient->deleteRollupPropertySourceLink($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/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 deleteRollupPropertySourceLink($name, array $optionalArgs = []) + { + $request = new DeleteRollupPropertySourceLinkRequest(); + $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('DeleteRollupPropertySourceLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + } + /** * Deletes target SKAdNetworkConversionValueSchema. * @@ -3781,20 +3672,23 @@ public function deleteSearchAds360Link($name, array $optionalArgs = []) } /** - * Deletes a user link on an account or property. + * Deletes a subproperty event filter. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedName = $analyticsAdminServiceClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); - * $analyticsAdminServiceClient->deleteUserLink($formattedName); + * $formattedName = $analyticsAdminServiceClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); + * $analyticsAdminServiceClient->deleteSubpropertyEventFilter($formattedName); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param string $name Required. Example format: accounts/1234/userLinks/5678 + * @param string $name Required. Resource name of the subproperty event filter to delete. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 * @param array $optionalArgs { * Optional. * @@ -3808,15 +3702,15 @@ public function deleteSearchAds360Link($name, array $optionalArgs = []) * * @experimental */ - public function deleteUserLink($name, array $optionalArgs = []) + public function deleteSubpropertyEventFilter($name, array $optionalArgs = []) { - $request = new DeleteUserLinkRequest(); + $request = new DeleteSubpropertyEventFilterRequest(); $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('DeleteUserLink', GPBEmpty::class, $optionalArgs, $request)->wait(); + return $this->startCall('DeleteSubpropertyEventFilter', GPBEmpty::class, $optionalArgs, $request)->wait(); } /** @@ -4331,6 +4225,50 @@ public function getCustomMetric($name, array $optionalArgs = []) return $this->startCall('GetCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); } + /** + * Lookup for a single DataRedactionSettings. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $formattedName = $analyticsAdminServiceClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); + * $response = $analyticsAdminServiceClient->getDataRedactionSettings($formattedName); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param string $name Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * @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\DataRedactionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getDataRedactionSettings($name, array $optionalArgs = []) + { + $request = new GetDataRedactionSettingsRequest(); + $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('GetDataRedactionSettings', DataRedactionSettings::class, $optionalArgs, $request)->wait(); + } + /** * Returns the singleton data retention settings for this property. * @@ -4849,22 +4787,25 @@ public function getProperty($name, array $optionalArgs = []) } /** - * Looks up a single SKAdNetworkConversionValueSchema. + * Lookup for a single roll-up property source Link. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedName = $analyticsAdminServiceClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - * $response = $analyticsAdminServiceClient->getSKAdNetworkConversionValueSchema($formattedName); + * $formattedName = $analyticsAdminServiceClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + * $response = $analyticsAdminServiceClient->getRollupPropertySourceLink($formattedName); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param string $name Required. The resource name of SKAdNetwork conversion value schema to look - * up. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * @param string $name Required. The name of the roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 * @param array $optionalArgs { * Optional. * @@ -4874,39 +4815,40 @@ public function getProperty($name, array $optionalArgs = []) * {@see RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema + * @return \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink * * @throws ApiException if the remote call fails * * @experimental */ - public function getSKAdNetworkConversionValueSchema($name, array $optionalArgs = []) + public function getRollupPropertySourceLink($name, array $optionalArgs = []) { - $request = new GetSKAdNetworkConversionValueSchemaRequest(); + $request = new GetRollupPropertySourceLinkRequest(); $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('GetSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); + return $this->startCall('GetRollupPropertySourceLink', RollupPropertySourceLink::class, $optionalArgs, $request)->wait(); } /** - * Look up a single SearchAds360Link + * Looks up a single SKAdNetworkConversionValueSchema. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedName = $analyticsAdminServiceClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - * $response = $analyticsAdminServiceClient->getSearchAds360Link($formattedName); + * $formattedName = $analyticsAdminServiceClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + * $response = $analyticsAdminServiceClient->getSKAdNetworkConversionValueSchema($formattedName); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param string $name Required. The name of the SearchAds360Link to get. - * Example format: properties/1234/SearchAds360Link/5678 + * @param string $name Required. The resource name of SKAdNetwork conversion value schema to look + * up. Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} * @param array $optionalArgs { * Optional. * @@ -4916,38 +4858,39 @@ public function getSKAdNetworkConversionValueSchema($name, array $optionalArgs = * {@see RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link + * @return \Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema * * @throws ApiException if the remote call fails * * @experimental */ - public function getSearchAds360Link($name, array $optionalArgs = []) + public function getSKAdNetworkConversionValueSchema($name, array $optionalArgs = []) { - $request = new GetSearchAds360LinkRequest(); + $request = new GetSKAdNetworkConversionValueSchemaRequest(); $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('GetSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); + return $this->startCall('GetSKAdNetworkConversionValueSchema', SKAdNetworkConversionValueSchema::class, $optionalArgs, $request)->wait(); } /** - * Gets information about a user's link to an account or property. + * Look up a single SearchAds360Link * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedName = $analyticsAdminServiceClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); - * $response = $analyticsAdminServiceClient->getUserLink($formattedName); + * $formattedName = $analyticsAdminServiceClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + * $response = $analyticsAdminServiceClient->getSearchAds360Link($formattedName); * } finally { * $analyticsAdminServiceClient->close(); * } * ``` * - * @param string $name Required. Example format: accounts/1234/userLinks/5678 + * @param string $name Required. The name of the SearchAds360Link to get. + * Example format: properties/1234/SearchAds360Link/5678 * @param array $optionalArgs { * Optional. * @@ -4957,21 +4900,21 @@ public function getSearchAds360Link($name, array $optionalArgs = []) * {@see RetrySettings} for example usage. * } * - * @return \Google\Analytics\Admin\V1alpha\UserLink + * @return \Google\Analytics\Admin\V1alpha\SearchAds360Link * * @throws ApiException if the remote call fails * * @experimental */ - public function getUserLink($name, array $optionalArgs = []) + public function getSearchAds360Link($name, array $optionalArgs = []) { - $request = new GetUserLinkRequest(); + $request = new GetSearchAds360LinkRequest(); $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('GetUserLink', UserLink::class, $optionalArgs, $request)->wait(); + return $this->startCall('GetSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); } /** @@ -6389,16 +6332,17 @@ public function listProperties($filter, array $optionalArgs = []) } /** - * Lists SKAdNetworkConversionValueSchema on a stream. - * Properties can have at most one SKAdNetworkConversionValueSchema. + * Lists roll-up property source Links on a property. + * Only roll-up properties can have source links, so this method will throw an + * error if used on other types of properties. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listRollupPropertySourceLinks($formattedParent); * foreach ($pagedResponse->iteratePages() as $page) { * foreach ($page as $element) { * // doSomethingWith($element); @@ -6406,7 +6350,7 @@ public function listProperties($filter, array $optionalArgs = []) * } * // Alternatively: * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listRollupPropertySourceLinks($formattedParent); * foreach ($pagedResponse->iterateAllElements() as $element) { * // doSomethingWith($element); * } @@ -6415,9 +6359,8 @@ public function listProperties($filter, array $optionalArgs = []) * } * ``` * - * @param string $parent Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * @param string $parent Required. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: properties/1234 * @param array $optionalArgs { * Optional. * @@ -6442,9 +6385,9 @@ public function listProperties($filter, array $optionalArgs = []) * * @experimental */ - public function listSKAdNetworkConversionValueSchemas($parent, array $optionalArgs = []) + public function listRollupPropertySourceLinks($parent, array $optionalArgs = []) { - $request = new ListSKAdNetworkConversionValueSchemasRequest(); + $request = new ListRollupPropertySourceLinksRequest(); $requestParamHeaders = []; $request->setParent($parent); $requestParamHeaders['parent'] = $parent; @@ -6458,19 +6401,20 @@ public function listSKAdNetworkConversionValueSchemas($parent, array $optionalAr $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListSKAdNetworkConversionValueSchemas', $optionalArgs, ListSKAdNetworkConversionValueSchemasResponse::class, $request); + return $this->getPagedListResponse('ListRollupPropertySourceLinks', $optionalArgs, ListRollupPropertySourceLinksResponse::class, $request); } /** - * Lists all SearchAds360Links on a property. + * Lists SKAdNetworkConversionValueSchema on a stream. + * Properties can have at most one SKAdNetworkConversionValueSchema. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); + * $formattedParent = $analyticsAdminServiceClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); * foreach ($pagedResponse->iteratePages() as $page) { * foreach ($page as $element) { * // doSomethingWith($element); @@ -6478,7 +6422,7 @@ public function listSKAdNetworkConversionValueSchemas($parent, array $optionalAr * } * // Alternatively: * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listSKAdNetworkConversionValueSchemas($formattedParent); * foreach ($pagedResponse->iterateAllElements() as $element) { * // doSomethingWith($element); * } @@ -6487,7 +6431,10 @@ public function listSKAdNetworkConversionValueSchemas($parent, array $optionalAr * } * ``` * - * @param string $parent Required. Example format: properties/1234 + * @param string $parent Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * @param array $optionalArgs { * Optional. * @@ -6512,9 +6459,9 @@ public function listSKAdNetworkConversionValueSchemas($parent, array $optionalAr * * @experimental */ - public function listSearchAds360Links($parent, array $optionalArgs = []) + public function listSKAdNetworkConversionValueSchemas($parent, array $optionalArgs = []) { - $request = new ListSearchAds360LinksRequest(); + $request = new ListSKAdNetworkConversionValueSchemasRequest(); $requestParamHeaders = []; $request->setParent($parent); $requestParamHeaders['parent'] = $parent; @@ -6528,19 +6475,19 @@ public function listSearchAds360Links($parent, array $optionalArgs = []) $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListSearchAds360Links', $optionalArgs, ListSearchAds360LinksResponse::class, $request); + return $this->getPagedListResponse('ListSKAdNetworkConversionValueSchemas', $optionalArgs, ListSKAdNetworkConversionValueSchemasResponse::class, $request); } /** - * Lists all user links on an account or property. + * Lists all SearchAds360Links on a property. * * Sample code: * ``` * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); * try { - * $formattedParent = $analyticsAdminServiceClient->accountName('[ACCOUNT]'); + * $formattedParent = $analyticsAdminServiceClient->propertyName('[PROPERTY]'); * // Iterate over pages of elements - * $pagedResponse = $analyticsAdminServiceClient->listUserLinks($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); * foreach ($pagedResponse->iteratePages() as $page) { * foreach ($page as $element) { * // doSomethingWith($element); @@ -6548,7 +6495,7 @@ public function listSearchAds360Links($parent, array $optionalArgs = []) * } * // Alternatively: * // Iterate through all elements - * $pagedResponse = $analyticsAdminServiceClient->listUserLinks($formattedParent); + * $pagedResponse = $analyticsAdminServiceClient->listSearchAds360Links($formattedParent); * foreach ($pagedResponse->iterateAllElements() as $element) { * // doSomethingWith($element); * } @@ -6557,7 +6504,7 @@ public function listSearchAds360Links($parent, array $optionalArgs = []) * } * ``` * - * @param string $parent Required. Example format: accounts/1234 + * @param string $parent Required. Example format: properties/1234 * @param array $optionalArgs { * Optional. * @@ -6582,9 +6529,9 @@ public function listSearchAds360Links($parent, array $optionalArgs = []) * * @experimental */ - public function listUserLinks($parent, array $optionalArgs = []) + public function listSearchAds360Links($parent, array $optionalArgs = []) { - $request = new ListUserLinksRequest(); + $request = new ListSearchAds360LinksRequest(); $requestParamHeaders = []; $request->setParent($parent); $requestParamHeaders['parent'] = $parent; @@ -6598,7 +6545,7 @@ public function listUserLinks($parent, array $optionalArgs = []) $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListUserLinks', $optionalArgs, ListUserLinksResponse::class, $request); + return $this->getPagedListResponse('ListSearchAds360Links', $optionalArgs, ListSearchAds360LinksResponse::class, $request); } /** @@ -6742,6 +6689,17 @@ public function provisionAccountTicket(array $optionalArgs = []) * Toggles whether to return the current state of this Analytics Property's * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level * requests, this field must be false. + * @type bool $includeAllUsers + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * @type bool $expandGroups + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. * @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 @@ -6803,6 +6761,14 @@ public function runAccessReport(array $optionalArgs = []) $request->setReturnEntityQuota($optionalArgs['returnEntityQuota']); } + if (isset($optionalArgs['includeAllUsers'])) { + $request->setIncludeAllUsers($optionalArgs['includeAllUsers']); + } + + if (isset($optionalArgs['expandGroups'])) { + $request->setExpandGroups($optionalArgs['expandGroups']); + } + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); return $this->startCall('RunAccessReport', RunAccessReportResponse::class, $optionalArgs, $request)->wait(); @@ -7348,6 +7314,54 @@ public function updateCustomMetric($updateMask, array $optionalArgs = []) return $this->startCall('UpdateCustomMetric', CustomMetric::class, $optionalArgs, $request)->wait(); } + /** + * Updates a DataRedactionSettings on a property. + * + * Sample code: + * ``` + * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); + * try { + * $dataRedactionSettings = new DataRedactionSettings(); + * $updateMask = new FieldMask(); + * $response = $analyticsAdminServiceClient->updateDataRedactionSettings($dataRedactionSettings, $updateMask); + * } finally { + * $analyticsAdminServiceClient->close(); + * } + * ``` + * + * @param DataRedactionSettings $dataRedactionSettings 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\DataRedactionSettings + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function updateDataRedactionSettings($dataRedactionSettings, $updateMask, array $optionalArgs = []) + { + $request = new UpdateDataRedactionSettingsRequest(); + $requestParamHeaders = []; + $request->setDataRedactionSettings($dataRedactionSettings); + $request->setUpdateMask($updateMask); + $requestParamHeaders['data_redaction_settings.name'] = $dataRedactionSettings->getName(); + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('UpdateDataRedactionSettings', DataRedactionSettings::class, $optionalArgs, $request)->wait(); + } + /** * Updates the singleton data retention settings for this property. * @@ -7923,45 +7937,4 @@ public function updateSearchAds360Link($updateMask, array $optionalArgs = []) $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); return $this->startCall('UpdateSearchAds360Link', SearchAds360Link::class, $optionalArgs, $request)->wait(); } - - /** - * Updates a user link on an account or property. - * - * Sample code: - * ``` - * $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - * try { - * $userLink = new UserLink(); - * $response = $analyticsAdminServiceClient->updateUserLink($userLink); - * } finally { - * $analyticsAdminServiceClient->close(); - * } - * ``` - * - * @param UserLink $userLink Required. The user link to update. - * @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\UserLink - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateUserLink($userLink, array $optionalArgs = []) - { - $request = new UpdateUserLinkRequest(); - $requestParamHeaders = []; - $request->setUserLink($userLink); - $requestParamHeaders['user_link.name'] = $userLink->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateUserLink', UserLink::class, $optionalArgs, $request)->wait(); - } } diff --git a/AnalyticsAdmin/src/V1alpha/GetDataRedactionSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/GetDataRedactionSettingsRequest.php new file mode 100644 index 000000000000..f47a6eeb5fcc --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/GetDataRedactionSettingsRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + */ +class GetDataRedactionSettingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * 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 settings to lookup. + * Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + * Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + * + * 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/GetRollupPropertySourceLinkRequest.php b/AnalyticsAdmin/src/V1alpha/GetRollupPropertySourceLinkRequest.php new file mode 100644 index 000000000000..783602b1894e --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/GetRollupPropertySourceLinkRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + */ +class GetRollupPropertySourceLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 + * + * 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 roll-up property source link to lookup. + * Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/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/GetSubpropertyEventFilterRequest.php b/AnalyticsAdmin/src/V1alpha/GetSubpropertyEventFilterRequest.php new file mode 100644 index 000000000000..11dfba38e5e7 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/GetSubpropertyEventFilterRequest.php @@ -0,0 +1,79 @@ +google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + */ +class GetSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the subproperty event filter to lookup. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Resource name of the subproperty event filter to lookup. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/456 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the subproperty event filter to lookup. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/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. Resource name of the subproperty event filter to lookup. + * Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter + * Example: properties/123/subpropertyEventFilters/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/ListRollupPropertySourceLinksRequest.php b/AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksRequest.php new file mode 100644 index 000000000000..1d7119ccf2dd --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksRequest.php @@ -0,0 +1,167 @@ +google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + */ +class ListRollupPropertySourceLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: properties/1234 + * + * 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. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * 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 + * `ListRollupPropertySourceLinks` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRollupPropertySourceLinks` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: properties/1234 + * @type int $page_size + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @type string $page_token + * Optional. A page token, received from a previous + * `ListRollupPropertySourceLinks` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRollupPropertySourceLinks` must match the call that provided the page + * token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: 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. The name of the roll-up property to list roll-up property source + * links under. Format: properties/{property_id} Example: 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; + } + + /** + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * 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. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * + * 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 + * `ListRollupPropertySourceLinks` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRollupPropertySourceLinks` must match the call that provided the page + * token. + * + * 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 + * `ListRollupPropertySourceLinks` call. Provide this to retrieve the + * subsequent page. When paginating, all other parameters provided to + * `ListRollupPropertySourceLinks` must match the call that provided the page + * token. + * + * 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/ListRollupPropertySourceLinksResponse.php b/AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksResponse.php new file mode 100644 index 000000000000..1b5b71138337 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/ListRollupPropertySourceLinksResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + */ +class ListRollupPropertySourceLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of RollupPropertySourceLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + */ + private $rollup_property_source_links; + /** + * 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\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $rollup_property_source_links + * List of RollupPropertySourceLinks. + * @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 RollupPropertySourceLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRollupPropertySourceLinks() + { + return $this->rollup_property_source_links; + } + + /** + * List of RollupPropertySourceLinks. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * @param array<\Google\Analytics\Admin\V1alpha\RollupPropertySourceLink>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRollupPropertySourceLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\RollupPropertySourceLink::class); + $this->rollup_property_source_links = $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/ListSKAdNetworkConversionValueSchemasRequest.php b/AnalyticsAdmin/src/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php index 20f3bd0d794f..671ffbb3d2d0 100644 --- a/AnalyticsAdmin/src/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php +++ b/AnalyticsAdmin/src/V1alpha/ListSKAdNetworkConversionValueSchemasRequest.php @@ -16,9 +16,10 @@ class ListSKAdNetworkConversionValueSchemasRequest extends \Google\Protobuf\Internal\Message { /** - * Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ @@ -50,9 +51,10 @@ class ListSKAdNetworkConversionValueSchemasRequest extends \Google\Protobuf\Inte * Optional. Data for populating the Message object. * * @type string $parent - * Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * @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. @@ -72,9 +74,10 @@ public function __construct($data = NULL) { } /** - * Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string @@ -85,9 +88,10 @@ public function getParent() } /** - * Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * Required. The DataStream resource to list schemas for. + * Format: + * properties/{property_id}/dataStreams/{dataStream} + * Example: properties/1234/dataStreams/5678 * * 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/ListSubpropertyEventFiltersRequest.php b/AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersRequest.php new file mode 100644 index 000000000000..2b0e1585142a --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersRequest.php @@ -0,0 +1,171 @@ +google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + */ +class ListSubpropertyEventFiltersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the ordinary property. + * Format: properties/property_id + * Example: properties/123 + * + * 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. The service may return + * fewer than this value, even if there are additional pages. If unspecified, + * at most 50 resources will be returned. The maximum value is 200; (higher + * values will be coerced to the maximum) + * + * 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 + * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListSubpropertyEventFilters` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Resource name of the ordinary property. + * Format: properties/property_id + * Example: properties/123 + * @type int $page_size + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. If unspecified, + * at most 50 resources will be returned. The maximum value is 200; (higher + * values will be coerced to the maximum) + * @type string $page_token + * Optional. A page token, received from a previous + * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListSubpropertyEventFilters` must match the call that provided the page + * token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the ordinary property. + * Format: properties/property_id + * 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. Resource name of the ordinary property. + * Format: properties/property_id + * 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; + } + + /** + * Optional. The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. If unspecified, + * at most 50 resources will be returned. The maximum value is 200; (higher + * values will be coerced to the maximum) + * + * 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. The service may return + * fewer than this value, even if there are additional pages. If unspecified, + * at most 50 resources will be returned. The maximum value is 200; (higher + * values will be coerced to the maximum) + * + * 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 + * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListSubpropertyEventFilters` must match the call that provided the page + * token. + * + * 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 + * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `ListSubpropertyEventFilters` must match the call that provided the page + * token. + * + * 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/ListSubpropertyEventFiltersResponse.php b/AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersResponse.php new file mode 100644 index 000000000000..f58fd0c69952 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/ListSubpropertyEventFiltersResponse.php @@ -0,0 +1,105 @@ +google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + */ +class ListSubpropertyEventFiltersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of subproperty event filters. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + */ + private $subproperty_event_filters; + /** + * 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\SubpropertyEventFilter>|\Google\Protobuf\Internal\RepeatedField $subproperty_event_filters + * List of subproperty event filters. + * @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 subproperty event filters. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSubpropertyEventFilters() + { + return $this->subproperty_event_filters; + } + + /** + * List of subproperty event filters. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * @param array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilter>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSubpropertyEventFilters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter::class); + $this->subproperty_event_filters = $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/Property.php b/AnalyticsAdmin/src/V1alpha/Property.php index 879f0b78a0e6..b7765c18a0f5 100644 --- a/AnalyticsAdmin/src/V1alpha/Property.php +++ b/AnalyticsAdmin/src/V1alpha/Property.php @@ -26,8 +26,7 @@ class Property extends \Google\Protobuf\Internal\Message /** * Immutable. The property type for this Property resource. When creating a * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. + * "ORDINARY_PROPERTY" will be implied. * * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; */ @@ -131,8 +130,7 @@ class Property extends \Google\Protobuf\Internal\Message * @type int $property_type * Immutable. The property type for this Property resource. When creating a * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. + * "ORDINARY_PROPERTY" will be implied. * @type \Google\Protobuf\Timestamp $create_time * Output only. Time when the entity was originally created. * @type \Google\Protobuf\Timestamp $update_time @@ -214,8 +212,7 @@ public function setName($var) /** * Immutable. The property type for this Property resource. When creating a * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. + * "ORDINARY_PROPERTY" will be implied. * * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; * @return int @@ -228,8 +225,7 @@ public function getPropertyType() /** * Immutable. The property type for this Property resource. When creating a * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - * types cannot yet be created with the Google Analytics Admin API. + * "ORDINARY_PROPERTY" will be implied. * * Generated from protobuf field .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; * @param int $var diff --git a/AnalyticsAdmin/src/V1alpha/RollupPropertySourceLink.php b/AnalyticsAdmin/src/V1alpha/RollupPropertySourceLink.php new file mode 100644 index 000000000000..47654900a3d6 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/RollupPropertySourceLink.php @@ -0,0 +1,121 @@ +google.analytics.admin.v1alpha.RollupPropertySourceLink + */ +class RollupPropertySourceLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Resource name of this RollupPropertySourceLink. + * Format: + * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' + * Format: 'properties/123/rollupPropertySourceLinks/456' + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $name = ''; + /** + * Immutable. Resource name of the source property. + * Format: properties/{property_id} + * Example: "properties/789" + * + * Generated from protobuf field string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + private $source_property = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Resource name of this RollupPropertySourceLink. + * Format: + * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' + * Format: 'properties/123/rollupPropertySourceLinks/456' + * @type string $source_property + * Immutable. Resource name of the source property. + * Format: properties/{property_id} + * Example: "properties/789" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Resource name of this RollupPropertySourceLink. + * Format: + * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' + * Format: 'properties/123/rollupPropertySourceLinks/456' + * + * 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 RollupPropertySourceLink. + * Format: + * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' + * Format: 'properties/123/rollupPropertySourceLinks/456' + * + * 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. Resource name of the source property. + * Format: properties/{property_id} + * Example: "properties/789" + * + * Generated from protobuf field string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getSourceProperty() + { + return $this->source_property; + } + + /** + * Immutable. Resource name of the source property. + * Format: properties/{property_id} + * Example: "properties/789" + * + * Generated from protobuf field string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setSourceProperty($var) + { + GPBUtil::checkString($var, True); + $this->source_property = $var; + + return $this; + } + +} + diff --git a/AnalyticsAdmin/src/V1alpha/RunAccessReportRequest.php b/AnalyticsAdmin/src/V1alpha/RunAccessReportRequest.php index 81e46c695e4d..e86bc7ae3230 100644 --- a/AnalyticsAdmin/src/V1alpha/RunAccessReportRequest.php +++ b/AnalyticsAdmin/src/V1alpha/RunAccessReportRequest.php @@ -120,6 +120,25 @@ class RunAccessReportRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool return_entity_quota = 11; */ private $return_entity_quota = false; + /** + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * + * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $include_all_users = false; + /** + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * + * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $expand_groups = false; /** * Constructor. @@ -188,6 +207,17 @@ class RunAccessReportRequest extends \Google\Protobuf\Internal\Message * Toggles whether to return the current state of this Analytics Property's * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level * requests, this field must be false. + * @type bool $include_all_users + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * @type bool $expand_groups + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. * } */ public function __construct($data = NULL) { @@ -579,5 +609,71 @@ public function setReturnEntityQuota($var) return $this; } + /** + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * + * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIncludeAllUsers() + { + return $this->include_all_users; + } + + /** + * Optional. Determines whether to include users who have never made an API + * call in the response. If true, all users with access to the specified + * property or account are included in the response, regardless of whether + * they have made an API call or not. If false, only the users who have made + * an API call will be included. + * + * Generated from protobuf field bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIncludeAllUsers($var) + { + GPBUtil::checkBool($var); + $this->include_all_users = $var; + + return $this; + } + + /** + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * + * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getExpandGroups() + { + return $this->expand_groups; + } + + /** + * Optional. Decides whether to return the users within user groups. This + * field works only when include_all_users is set to true. If true, it will + * return all users with access to the specified property or account. + * If false, only the users with direct access will be returned. + * + * Generated from protobuf field bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setExpandGroups($var) + { + GPBUtil::checkBool($var); + $this->expand_groups = $var; + + return $this; + } + } diff --git a/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilter.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilter.php new file mode 100644 index 000000000000..d74fc43d4f2c --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilter.php @@ -0,0 +1,161 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilter + */ +class SubpropertyEventFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Format: + * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} + * Example: properties/1234/subpropertyEventFilters/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $name = ''; + /** + * Immutable. Resource name of the Subproperty that uses this filter. + * + * Generated from protobuf field optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + private $apply_to_property = null; + /** + * Required. Unordered list. Filter clauses that define the + * SubpropertyEventFilter. All clauses are AND'ed together to determine what + * data is sent to the subproperty. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $filter_clauses; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Format: + * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} + * Example: properties/1234/subpropertyEventFilters/5678 + * @type string $apply_to_property + * Immutable. Resource name of the Subproperty that uses this filter. + * @type array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause>|\Google\Protobuf\Internal\RepeatedField $filter_clauses + * Required. Unordered list. Filter clauses that define the + * SubpropertyEventFilter. All clauses are AND'ed together to determine what + * data is sent to the subproperty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Format: + * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} + * Example: properties/1234/subpropertyEventFilters/5678 + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Format: + * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} + * Example: properties/1234/subpropertyEventFilters/5678 + * + * 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. Resource name of the Subproperty that uses this filter. + * + * Generated from protobuf field optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getApplyToProperty() + { + return isset($this->apply_to_property) ? $this->apply_to_property : ''; + } + + public function hasApplyToProperty() + { + return isset($this->apply_to_property); + } + + public function clearApplyToProperty() + { + unset($this->apply_to_property); + } + + /** + * Immutable. Resource name of the Subproperty that uses this filter. + * + * Generated from protobuf field optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setApplyToProperty($var) + { + GPBUtil::checkString($var, True); + $this->apply_to_property = $var; + + return $this; + } + + /** + * Required. Unordered list. Filter clauses that define the + * SubpropertyEventFilter. All clauses are AND'ed together to determine what + * data is sent to the subproperty. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilterClauses() + { + return $this->filter_clauses; + } + + /** + * Required. Unordered list. Filter clauses that define the + * SubpropertyEventFilter. All clauses are AND'ed together to determine what + * data is sent to the subproperty. + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * @param array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilterClauses($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause::class); + $this->filter_clauses = $arr; + + return $this; + } + +} + diff --git a/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause.php new file mode 100644 index 000000000000..d6a41038a0bd --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause.php @@ -0,0 +1,118 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterClause + */ +class SubpropertyEventFilterClause extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The type for the filter clause. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $filter_clause_type = 0; + /** + * Required. The logical expression for what events are sent to the + * subproperty. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $filter_expression = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $filter_clause_type + * Required. The type for the filter clause. + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $filter_expression + * Required. The logical expression for what events are sent to the + * subproperty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * Required. The type for the filter clause. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getFilterClauseType() + { + return $this->filter_clause_type; + } + + /** + * Required. The type for the filter clause. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setFilterClauseType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause\FilterClauseType::class); + $this->filter_clause_type = $var; + + return $this; + } + + /** + * Required. The logical expression for what events are sent to the + * subproperty. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression|null + */ + public function getFilterExpression() + { + return $this->filter_expression; + } + + public function hasFilterExpression() + { + return isset($this->filter_expression); + } + + public function clearFilterExpression() + { + unset($this->filter_expression); + } + + /** + * Required. The logical expression for what events are sent to the + * subproperty. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $var + * @return $this + */ + public function setFilterExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression::class); + $this->filter_expression = $var; + + return $this; + } + +} + diff --git a/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php new file mode 100644 index 000000000000..51d997db1a75 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterClause/FilterClauseType.php @@ -0,0 +1,69 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + */ +class FilterClauseType +{ + /** + * Filter clause type unknown or not specified. + * + * Generated from protobuf enum FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + const FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; + /** + * Events will be included in the Sub property if the filter clause is met. + * + * Generated from protobuf enum INCLUDE = 1; + */ + const PBINCLUDE = 1; + /** + * Events will be excluded from the Sub property if the filter clause is + * met. + * + * Generated from protobuf enum EXCLUDE = 2; + */ + const EXCLUDE = 2; + + private static $valueToName = [ + self::FILTER_CLAUSE_TYPE_UNSPECIFIED => 'FILTER_CLAUSE_TYPE_UNSPECIFIED', + self::PBINCLUDE => 'INCLUDE', + self::EXCLUDE => 'EXCLUDE', + ]; + + 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)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FilterClauseType::class, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterClause_FilterClauseType::class); + diff --git a/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition.php new file mode 100644 index 000000000000..a71098593ff9 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition.php @@ -0,0 +1,142 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + */ +class SubpropertyEventFilterCondition extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The field that is being filtered. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $field_name = ''; + protected $one_filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $null_filter + * A filter for null values. + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter $string_filter + * A filter for a string-type dimension that matches a particular pattern. + * @type string $field_name + * Required. The field that is being filtered. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * A filter for null values. + * + * Generated from protobuf field bool null_filter = 2; + * @return bool + */ + public function getNullFilter() + { + return $this->readOneof(2); + } + + public function hasNullFilter() + { + return $this->hasOneof(2); + } + + /** + * A filter for null values. + * + * Generated from protobuf field bool null_filter = 2; + * @param bool $var + * @return $this + */ + public function setNullFilter($var) + { + GPBUtil::checkBool($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * A filter for a string-type dimension that matches a particular pattern. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter|null + */ + public function getStringFilter() + { + return $this->readOneof(3); + } + + public function hasStringFilter() + { + return $this->hasOneof(3); + } + + /** + * A filter for a string-type dimension that matches a particular pattern. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter $var + * @return $this + */ + public function setStringFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Required. The field that is being filtered. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * Required. The field that is being filtered. + * + * Generated from protobuf field string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + + /** + * @return string + */ + public function getOneFilter() + { + return $this->whichOneof("one_filter"); + } + +} + diff --git a/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter.php new file mode 100644 index 000000000000..c7e1c7bfe983 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter.php @@ -0,0 +1,142 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + */ +class StringFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $match_type = 0; + /** + * Required. The string value used for the matching. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $value = ''; + /** + * Optional. If true, the string value is case sensitive. If false, the + * match is case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $match_type + * Required. The match type for the string filter. + * @type string $value + * Required. The string value used for the matching. + * @type bool $case_sensitive + * Optional. If true, the string value is case sensitive. If false, the + * match is case-insensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMatchType() + { + return $this->match_type; + } + + /** + * Required. The match type for the string filter. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition\StringFilter\MatchType::class); + $this->match_type = $var; + + return $this; + } + + /** + * Required. The string value used for the matching. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. The string value used for the matching. + * + * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Optional. If true, the string value is case sensitive. If false, the + * match is case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * Optional. If true, the string value is case sensitive. If false, the + * match is case-insensitive. + * + * Generated from protobuf field bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(StringFilter::class, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition_StringFilter::class); + diff --git a/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php new file mode 100644 index 000000000000..797642e0b851 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterCondition/StringFilter/MatchType.php @@ -0,0 +1,92 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + */ +class MatchType +{ + /** + * Match type unknown or not specified. + * + * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; + */ + const MATCH_TYPE_UNSPECIFIED = 0; + /** + * Exact match of the string value. + * + * Generated from protobuf enum EXACT = 1; + */ + const EXACT = 1; + /** + * Begins with the string value. + * + * Generated from protobuf enum BEGINS_WITH = 2; + */ + const BEGINS_WITH = 2; + /** + * Ends with the string value. + * + * Generated from protobuf enum ENDS_WITH = 3; + */ + const ENDS_WITH = 3; + /** + * Contains the string value. + * + * Generated from protobuf enum CONTAINS = 4; + */ + const CONTAINS = 4; + /** + * Full regular expression matches with the string value. + * + * Generated from protobuf enum FULL_REGEXP = 5; + */ + const FULL_REGEXP = 5; + /** + * Partial regular expression matches with the string value. + * + * Generated from protobuf enum PARTIAL_REGEXP = 6; + */ + const PARTIAL_REGEXP = 6; + + private static $valueToName = [ + self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', + self::EXACT => 'EXACT', + self::BEGINS_WITH => 'BEGINS_WITH', + self::ENDS_WITH => 'ENDS_WITH', + self::CONTAINS => 'CONTAINS', + self::FULL_REGEXP => 'FULL_REGEXP', + self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', + ]; + + 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(MatchType::class, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition_StringFilter_MatchType::class); + diff --git a/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpression.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpression.php new file mode 100644 index 000000000000..ebc66bfd4234 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpression.php @@ -0,0 +1,153 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + */ +class SubpropertyEventFilterExpression extends \Google\Protobuf\Internal\Message +{ + protected $expr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList $or_group + * A list of expressions to OR’ed together. Must only contain + * not_expression or filter_condition expressions. + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $not_expression + * A filter expression to be NOT'ed (inverted, complemented). It can only + * include a filter. This cannot be set on the top level + * SubpropertyEventFilterExpression. + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition $filter_condition + * Creates a filter that matches a specific event. This cannot be set on the + * top level SubpropertyEventFilterExpression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * A list of expressions to OR’ed together. Must only contain + * not_expression or filter_condition expressions. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList|null + */ + public function getOrGroup() + { + return $this->readOneof(1); + } + + public function hasOrGroup() + { + return $this->hasOneof(1); + } + + /** + * A list of expressions to OR’ed together. Must only contain + * not_expression or filter_condition expressions. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList $var + * @return $this + */ + public function setOrGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpressionList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * A filter expression to be NOT'ed (inverted, complemented). It can only + * include a filter. This cannot be set on the top level + * SubpropertyEventFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression|null + */ + public function getNotExpression() + { + return $this->readOneof(2); + } + + public function hasNotExpression() + { + return $this->hasOneof(2); + } + + /** + * A filter expression to be NOT'ed (inverted, complemented). It can only + * include a filter. This cannot be set on the top level + * SubpropertyEventFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression $var + * @return $this + */ + public function setNotExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Creates a filter that matches a specific event. This cannot be set on the + * top level SubpropertyEventFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * @return \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition|null + */ + public function getFilterCondition() + { + return $this->readOneof(3); + } + + public function hasFilterCondition() + { + return $this->hasOneof(3); + } + + /** + * Creates a filter that matches a specific event. This cannot be set on the + * top level SubpropertyEventFilterExpression. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * @param \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition $var + * @return $this + */ + public function setFilterCondition($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterCondition::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getExpr() + { + return $this->whichOneof("expr"); + } + +} + diff --git a/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpressionList.php b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpressionList.php new file mode 100644 index 000000000000..1b0505f27ca9 --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/SubpropertyEventFilterExpressionList.php @@ -0,0 +1,67 @@ +google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + */ +class SubpropertyEventFilterExpressionList extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Unordered list. A list of Subproperty event filter expressions + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $filter_expressions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression>|\Google\Protobuf\Internal\RepeatedField $filter_expressions + * Required. Unordered list. A list of Subproperty event filter expressions + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\SubpropertyEventFilter::initOnce(); + parent::__construct($data); + } + + /** + * Required. Unordered list. A list of Subproperty event filter expressions + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFilterExpressions() + { + return $this->filter_expressions; + } + + /** + * Required. Unordered list. A list of Subproperty event filter expressions + * + * Generated from protobuf field repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * @param array<\Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFilterExpressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Admin\V1alpha\SubpropertyEventFilterExpression::class); + $this->filter_expressions = $arr; + + return $this; + } + +} + diff --git a/AnalyticsAdmin/src/V1alpha/UpdateDataRedactionSettingsRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateDataRedactionSettingsRequest.php new file mode 100644 index 000000000000..b9d686d2db4a --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/UpdateDataRedactionSettingsRequest.php @@ -0,0 +1,137 @@ +google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + */ +class UpdateDataRedactionSettingsRequest 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.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $data_redaction_settings = 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; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\DataRedactionSettings $data_redaction_settings + * 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.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Analytics\Admin\V1alpha\DataRedactionSettings|null + */ + public function getDataRedactionSettings() + { + return $this->data_redaction_settings; + } + + public function hasDataRedactionSettings() + { + return isset($this->data_redaction_settings); + } + + public function clearDataRedactionSettings() + { + unset($this->data_redaction_settings); + } + + /** + * 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.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Analytics\Admin\V1alpha\DataRedactionSettings $var + * @return $this + */ + public function setDataRedactionSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Admin\V1alpha\DataRedactionSettings::class); + $this->data_redaction_settings = $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/UpdateSubpropertyEventFilterRequest.php b/AnalyticsAdmin/src/V1alpha/UpdateSubpropertyEventFilterRequest.php new file mode 100644 index 000000000000..7ee58c4bdf1a --- /dev/null +++ b/AnalyticsAdmin/src/V1alpha/UpdateSubpropertyEventFilterRequest.php @@ -0,0 +1,133 @@ +google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + */ +class UpdateSubpropertyEventFilterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The subproperty event filter to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $subproperty_event_filter = null; + /** + * Required. The list of fields to update. Field names must be in snake case + * (for example, "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $update_mask = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Admin\V1alpha\SubpropertyEventFilter $subproperty_event_filter + * Required. The subproperty event filter to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. Field names must be in snake case + * (for example, "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Admin\V1Alpha\AnalyticsAdmin::initOnce(); + parent::__construct($data); + } + + /** + * Required. The subproperty event filter to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. The subproperty event filter to update. + * + * Generated from protobuf field .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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; + } + + /** + * Required. The list of fields to update. Field names must be in snake case + * (for example, "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * 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 update. Field names must be in snake case + * (for example, "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * + * 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 c3d294c473d0..9c36224be4b8 100644 --- a/AnalyticsAdmin/src/V1alpha/gapic_metadata.json +++ b/AnalyticsAdmin/src/V1alpha/gapic_metadata.json @@ -35,51 +35,26 @@ "archiveCustomMetric" ] }, - "AuditUserLinks": { - "methods": [ - "auditUserLinks" - ] - }, "BatchCreateAccessBindings": { "methods": [ "batchCreateAccessBindings" ] }, - "BatchCreateUserLinks": { - "methods": [ - "batchCreateUserLinks" - ] - }, "BatchDeleteAccessBindings": { "methods": [ "batchDeleteAccessBindings" ] }, - "BatchDeleteUserLinks": { - "methods": [ - "batchDeleteUserLinks" - ] - }, "BatchGetAccessBindings": { "methods": [ "batchGetAccessBindings" ] }, - "BatchGetUserLinks": { - "methods": [ - "batchGetUserLinks" - ] - }, "BatchUpdateAccessBindings": { "methods": [ "batchUpdateAccessBindings" ] }, - "BatchUpdateUserLinks": { - "methods": [ - "batchUpdateUserLinks" - ] - }, "CancelDisplayVideo360AdvertiserLinkProposal": { "methods": [ "cancelDisplayVideo360AdvertiserLinkProposal" @@ -170,6 +145,16 @@ "createProperty" ] }, + "CreateRollupProperty": { + "methods": [ + "createRollupProperty" + ] + }, + "CreateRollupPropertySourceLink": { + "methods": [ + "createRollupPropertySourceLink" + ] + }, "CreateSKAdNetworkConversionValueSchema": { "methods": [ "createSKAdNetworkConversionValueSchema" @@ -180,9 +165,14 @@ "createSearchAds360Link" ] }, - "CreateUserLink": { + "CreateSubproperty": { + "methods": [ + "createSubproperty" + ] + }, + "CreateSubpropertyEventFilter": { "methods": [ - "createUserLink" + "createSubpropertyEventFilter" ] }, "DeleteAccessBinding": { @@ -260,6 +250,11 @@ "deleteProperty" ] }, + "DeleteRollupPropertySourceLink": { + "methods": [ + "deleteRollupPropertySourceLink" + ] + }, "DeleteSKAdNetworkConversionValueSchema": { "methods": [ "deleteSKAdNetworkConversionValueSchema" @@ -270,9 +265,9 @@ "deleteSearchAds360Link" ] }, - "DeleteUserLink": { + "DeleteSubpropertyEventFilter": { "methods": [ - "deleteUserLink" + "deleteSubpropertyEventFilter" ] }, "FetchAutomatedGa4ConfigurationOptOut": { @@ -335,6 +330,11 @@ "getCustomMetric" ] }, + "GetDataRedactionSettings": { + "methods": [ + "getDataRedactionSettings" + ] + }, "GetDataRetentionSettings": { "methods": [ "getDataRetentionSettings" @@ -395,6 +395,11 @@ "getProperty" ] }, + "GetRollupPropertySourceLink": { + "methods": [ + "getRollupPropertySourceLink" + ] + }, "GetSKAdNetworkConversionValueSchema": { "methods": [ "getSKAdNetworkConversionValueSchema" @@ -405,11 +410,6 @@ "getSearchAds360Link" ] }, - "GetUserLink": { - "methods": [ - "getUserLink" - ] - }, "ListAccessBindings": { "methods": [ "listAccessBindings" @@ -510,6 +510,11 @@ "listProperties" ] }, + "ListRollupPropertySourceLinks": { + "methods": [ + "listRollupPropertySourceLinks" + ] + }, "ListSKAdNetworkConversionValueSchemas": { "methods": [ "listSKAdNetworkConversionValueSchemas" @@ -520,11 +525,6 @@ "listSearchAds360Links" ] }, - "ListUserLinks": { - "methods": [ - "listUserLinks" - ] - }, "ProvisionAccountTicket": { "methods": [ "provisionAccountTicket" @@ -585,6 +585,11 @@ "updateCustomMetric" ] }, + "UpdateDataRedactionSettings": { + "methods": [ + "updateDataRedactionSettings" + ] + }, "UpdateDataRetentionSettings": { "methods": [ "updateDataRetentionSettings" @@ -644,11 +649,6 @@ "methods": [ "updateSearchAds360Link" ] - }, - "UpdateUserLink": { - "methods": [ - "updateUserLink" - ] } } } 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 7f53fb8079a0..3355e5091af3 100644 --- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json +++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_client_config.json @@ -64,51 +64,26 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "AuditUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, "BatchCreateAccessBindings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "BatchCreateUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, "BatchDeleteAccessBindings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "BatchDeleteUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, "BatchGetAccessBindings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "BatchGetUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, "BatchUpdateAccessBindings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "BatchUpdateUserLinks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, "CancelDisplayVideo360AdvertiserLinkProposal": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -199,6 +174,16 @@ "retry_codes_name": "no_retry_1_codes", "retry_params_name": "no_retry_1_params" }, + "CreateRollupProperty": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "CreateRollupPropertySourceLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, "CreateSKAdNetworkConversionValueSchema": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -209,10 +194,15 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "CreateUserLink": { + "CreateSubproperty": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "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", + "retry_params_name": "retry_policy_1_params" }, "DeleteAccessBinding": { "timeout_millis": 60000, @@ -289,6 +279,11 @@ "retry_codes_name": "no_retry_1_codes", "retry_params_name": "no_retry_1_params" }, + "DeleteRollupPropertySourceLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, "DeleteSKAdNetworkConversionValueSchema": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -299,10 +294,10 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "DeleteUserLink": { + "DeleteSubpropertyEventFilter": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "FetchAutomatedGa4ConfigurationOptOut": { "timeout_millis": 60000, @@ -364,6 +359,11 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, + "GetDataRedactionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, "GetDataRetentionSettings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -424,20 +424,20 @@ "retry_codes_name": "no_retry_1_codes", "retry_params_name": "no_retry_1_params" }, - "GetSKAdNetworkConversionValueSchema": { + "GetRollupPropertySourceLink": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "GetSearchAds360Link": { + "GetSKAdNetworkConversionValueSchema": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "GetUserLink": { + "GetSearchAds360Link": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "ListAccessBindings": { "timeout_millis": 60000, @@ -539,20 +539,20 @@ "retry_codes_name": "no_retry_1_codes", "retry_params_name": "no_retry_1_params" }, - "ListSKAdNetworkConversionValueSchemas": { + "ListRollupPropertySourceLinks": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "ListSearchAds360Links": { + "ListSKAdNetworkConversionValueSchemas": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, - "ListUserLinks": { + "ListSearchAds360Links": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" }, "ProvisionAccountTicket": { "timeout_millis": 60000, @@ -614,6 +614,11 @@ "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" }, + "UpdateDataRedactionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, "UpdateDataRetentionSettings": { "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", @@ -673,11 +678,6 @@ "timeout_millis": 60000, "retry_codes_name": "retry_policy_1_codes", "retry_params_name": "retry_policy_1_params" - }, - "UpdateUserLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" } } } 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 69de8acb8558..5d77d02ca3fc 100644 --- a/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php +++ b/AnalyticsAdmin/src/V1alpha/resources/analytics_admin_service_descriptor_config.php @@ -3,16 +3,6 @@ return [ 'interfaces' => [ 'google.analytics.admin.v1alpha.AnalyticsAdminService' => [ - 'AuditUserLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getUserLinks', - ], - ], 'ListAccessBindings' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -203,34 +193,34 @@ 'resourcesGetMethod' => 'getProperties', ], ], - 'ListSKAdNetworkConversionValueSchemas' => [ + 'ListRollupPropertySourceLinks' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSkadnetworkConversionValueSchemas', + 'resourcesGetMethod' => 'getRollupPropertySourceLinks', ], ], - 'ListSearchAds360Links' => [ + 'ListSKAdNetworkConversionValueSchemas' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSearchAds360Links', + 'resourcesGetMethod' => 'getSkadnetworkConversionValueSchemas', ], ], - 'ListUserLinks' => [ + 'ListSearchAds360Links' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getUserLinks', + 'resourcesGetMethod' => 'getSearchAds360Links', ], ], 'SearchChangeHistoryEvents' => [ 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 2810e13ed775..14a5a77eb4e0 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 @@ -63,25 +63,6 @@ ], ], ], - 'AuditUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:audit', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:audit', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], 'BatchCreateAccessBindings' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchCreate', @@ -101,25 +82,6 @@ ], ], ], - 'BatchCreateUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchCreate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchCreate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], 'BatchDeleteAccessBindings' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchDelete', @@ -139,25 +101,6 @@ ], ], ], - 'BatchDeleteUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchDelete', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchDelete', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], 'BatchGetAccessBindings' => [ 'method' => 'get', 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchGet', @@ -175,23 +118,6 @@ ], ], ], - 'BatchGetUserLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchGet', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchGet', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], 'BatchUpdateAccessBindings' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate', @@ -211,25 +137,6 @@ ], ], ], - 'BatchUpdateUserLinks' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks:batchUpdate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks:batchUpdate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], 'CancelDisplayVideo360AdvertiserLinkProposal' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel', @@ -439,6 +346,23 @@ 'uriTemplate' => '/v1alpha/properties', 'body' => 'property', ], + 'CreateRollupProperty' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/properties:createRollupProperty', + 'body' => '*', + ], + 'CreateRollupPropertySourceLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/rollupPropertySourceLinks', + 'body' => 'rollup_property_source_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], 'CreateSKAdNetworkConversionValueSchema' => [ 'method' => 'post', 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', @@ -463,17 +387,15 @@ ], ], ], - 'CreateUserLink' => [ + 'CreateSubproperty' => [ 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks', - 'body' => 'user_link', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks', - 'body' => 'user_link', - ], - ], + 'uriTemplate' => '/v1alpha/properties:createSubproperty', + 'body' => '*', + ], + 'CreateSubpropertyEventFilter' => [ + 'method' => 'post', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/subpropertyEventFilters', + 'body' => 'subproperty_event_filter', 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -647,6 +569,17 @@ ], ], ], + 'DeleteRollupPropertySourceLink' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'DeleteSKAdNetworkConversionValueSchema' => [ 'method' => 'delete', 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', @@ -669,15 +602,9 @@ ], ], ], - 'DeleteUserLink' => [ + 'DeleteSubpropertyEventFilter' => [ 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=accounts/*/userLinks/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=properties/*/userLinks/*}', - ], - ], + 'uriTemplate' => '/v1alpha/{name=properties/*/subpropertyEventFilters/*}', 'placeholders' => [ 'name' => [ 'getters' => [ @@ -811,6 +738,17 @@ ], ], ], + 'GetDataRedactionSettings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'GetDataRetentionSettings' => [ 'method' => 'get', 'uriTemplate' => '/v1alpha/{name=properties/*/dataRetentionSettings}', @@ -943,9 +881,9 @@ ], ], ], - 'GetSKAdNetworkConversionValueSchema' => [ + 'GetRollupPropertySourceLink' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', + 'uriTemplate' => '/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}', 'placeholders' => [ 'name' => [ 'getters' => [ @@ -954,9 +892,9 @@ ], ], ], - 'GetSearchAds360Link' => [ + 'GetSKAdNetworkConversionValueSchema' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/searchAds360Links/*}', + 'uriTemplate' => '/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}', 'placeholders' => [ 'name' => [ 'getters' => [ @@ -965,15 +903,9 @@ ], ], ], - 'GetUserLink' => [ + 'GetSearchAds360Link' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=accounts/*/userLinks/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=properties/*/userLinks/*}', - ], - ], + 'uriTemplate' => '/v1alpha/{name=properties/*/searchAds360Links/*}', 'placeholders' => [ 'name' => [ 'getters' => [ @@ -1184,9 +1116,9 @@ 'filter', ], ], - 'ListSKAdNetworkConversionValueSchemas' => [ + 'ListRollupPropertySourceLinks' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', + 'uriTemplate' => '/v1alpha/{parent=properties/*}/rollupPropertySourceLinks', 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -1195,9 +1127,9 @@ ], ], ], - 'ListSearchAds360Links' => [ + 'ListSKAdNetworkConversionValueSchemas' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/searchAds360Links', + 'uriTemplate' => '/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema', 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -1206,15 +1138,9 @@ ], ], ], - 'ListUserLinks' => [ + 'ListSearchAds360Links' => [ 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=accounts/*}/userLinks', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=properties/*}/userLinks', - ], - ], + 'uriTemplate' => '/v1alpha/{parent=properties/*}/searchAds360Links', 'placeholders' => [ 'parent' => [ 'getters' => [ @@ -1396,6 +1322,22 @@ 'update_mask', ], ], + 'UpdateDataRedactionSettings' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}', + 'body' => 'data_redaction_settings', + 'placeholders' => [ + 'data_redaction_settings.name' => [ + 'getters' => [ + 'getDataRedactionSettings', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], 'UpdateDataRetentionSettings' => [ 'method' => 'patch', 'uriTemplate' => '/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}', @@ -1588,26 +1530,6 @@ 'update_mask', ], ], - 'UpdateUserLink' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{user_link.name=accounts/*/userLinks/*}', - 'body' => 'user_link', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{user_link.name=properties/*/userLinks/*}', - 'body' => 'user_link', - ], - ], - 'placeholders' => [ - 'user_link.name' => [ - 'getters' => [ - 'getUserLink', - 'getName', - ], - ], - ], - ], ], ], 'numericEnums' => true, diff --git a/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php b/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php index 91aafdb77c48..144b89202e2c 100644 --- a/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php +++ b/AnalyticsAdmin/tests/Unit/V1alpha/AnalyticsAdminServiceClientTest.php @@ -35,25 +35,23 @@ use Google\Analytics\Admin\V1alpha\AttributionSettings\OtherConversionEventLookbackWindow; use Google\Analytics\Admin\V1alpha\AttributionSettings\ReportingAttributionModel; use Google\Analytics\Admin\V1alpha\Audience; -use Google\Analytics\Admin\V1alpha\AuditUserLink; -use Google\Analytics\Admin\V1alpha\AuditUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchCreateAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchCreateUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchGetAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchGetUserLinksResponse; use Google\Analytics\Admin\V1alpha\BatchUpdateAccessBindingsResponse; -use Google\Analytics\Admin\V1alpha\BatchUpdateUserLinksResponse; use Google\Analytics\Admin\V1alpha\BigQueryLink; use Google\Analytics\Admin\V1alpha\ChangeHistoryEvent; use Google\Analytics\Admin\V1alpha\ChannelGroup; use Google\Analytics\Admin\V1alpha\ConnectedSiteTag; 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; use Google\Analytics\Admin\V1alpha\CustomMetric\MeasurementUnit; use Google\Analytics\Admin\V1alpha\CustomMetric\MetricScope; +use Google\Analytics\Admin\V1alpha\DataRedactionSettings; use Google\Analytics\Admin\V1alpha\DataRetentionSettings; use Google\Analytics\Admin\V1alpha\DataSharingSettings; use Google\Analytics\Admin\V1alpha\DataStream; @@ -89,19 +87,20 @@ use Google\Analytics\Admin\V1alpha\ListGoogleAdsLinksResponse; use Google\Analytics\Admin\V1alpha\ListMeasurementProtocolSecretsResponse; use Google\Analytics\Admin\V1alpha\ListPropertiesResponse; +use Google\Analytics\Admin\V1alpha\ListRollupPropertySourceLinksResponse; use Google\Analytics\Admin\V1alpha\ListSKAdNetworkConversionValueSchemasResponse; use Google\Analytics\Admin\V1alpha\ListSearchAds360LinksResponse; -use Google\Analytics\Admin\V1alpha\ListUserLinksResponse; use Google\Analytics\Admin\V1alpha\MeasurementProtocolSecret; use Google\Analytics\Admin\V1alpha\PostbackWindow; use Google\Analytics\Admin\V1alpha\Property; use Google\Analytics\Admin\V1alpha\ProvisionAccountTicketResponse; +use Google\Analytics\Admin\V1alpha\RollupPropertySourceLink; use Google\Analytics\Admin\V1alpha\RunAccessReportResponse; use Google\Analytics\Admin\V1alpha\SKAdNetworkConversionValueSchema; use Google\Analytics\Admin\V1alpha\SearchAds360Link; use Google\Analytics\Admin\V1alpha\SearchChangeHistoryEventsResponse; use Google\Analytics\Admin\V1alpha\SetAutomatedGa4ConfigurationOptOutResponse; -use Google\Analytics\Admin\V1alpha\UserLink; +use Google\Analytics\Admin\V1alpha\SubpropertyEventFilter; use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; @@ -430,74 +429,6 @@ public function archiveCustomMetricExceptionTest() $this->assertTrue($transport->isExhausted()); } - /** @test */ - public function auditUserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $userLinksElement = new AuditUserLink(); - $userLinks = [ - $userLinksElement, - ]; - $expectedResponse = new AuditUserLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setUserLinks($userLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->auditUserLinks($formattedParent); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getUserLinks()[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/AuditUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function auditUserLinksExceptionTest() - { - $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->accountName('[ACCOUNT]'); - try { - $gapicClient->auditUserLinks($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 batchCreateAccessBindingsTest() { @@ -560,68 +491,6 @@ public function batchCreateAccessBindingsExceptionTest() $this->assertTrue($transport->isExhausted()); } - /** @test */ - public function batchCreateUserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchCreateUserLinksResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $response = $gapicClient->batchCreateUserLinks($formattedParent, $requests); - $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/BatchCreateUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchCreateUserLinksExceptionTest() - { - $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->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchCreateUserLinks($formattedParent, $requests); - // 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 batchDeleteAccessBindingsTest() { @@ -683,67 +552,6 @@ public function batchDeleteAccessBindingsExceptionTest() $this->assertTrue($transport->isExhausted()); } - /** @test */ - public function batchDeleteUserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $gapicClient->batchDeleteUserLinks($formattedParent, $requests); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeleteUserLinksExceptionTest() - { - $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->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchDeleteUserLinks($formattedParent, $requests); - // 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 batchGetAccessBindingsTest() { @@ -810,72 +618,6 @@ public function batchGetAccessBindingsExceptionTest() $this->assertTrue($transport->isExhausted()); } - /** @test */ - public function batchGetUserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetUserLinksResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $formattedNames = [ - $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'), - ]; - $response = $gapicClient->batchGetUserLinks($formattedParent, $formattedNames); - $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/BatchGetUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetUserLinksExceptionTest() - { - $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->accountName('[ACCOUNT]'); - $formattedNames = [ - $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'), - ]; - try { - $gapicClient->batchGetUserLinks($formattedParent, $formattedNames); - // 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 batchUpdateAccessBindingsTest() { @@ -938,68 +680,6 @@ public function batchUpdateAccessBindingsExceptionTest() $this->assertTrue($transport->isExhausted()); } - /** @test */ - public function batchUpdateUserLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchUpdateUserLinksResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $requests = []; - $response = $gapicClient->batchUpdateUserLinks($formattedParent, $requests); - $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/BatchUpdateUserLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchUpdateUserLinksExceptionTest() - { - $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->accountName('[ACCOUNT]'); - $requests = []; - try { - $gapicClient->batchUpdateUserLinks($formattedParent, $requests); - // 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 cancelDisplayVideo360AdvertiserLinkProposalTest() { @@ -2312,6 +1992,138 @@ public function createPropertyExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function createRollupPropertyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CreateRollupPropertyResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $rollupProperty = new Property(); + $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; + $rollupProperty->setDisplayName($rollupPropertyDisplayName); + $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; + $rollupProperty->setTimeZone($rollupPropertyTimeZone); + $response = $gapicClient->createRollupProperty($rollupProperty); + $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/CreateRollupProperty', $actualFuncCall); + $actualValue = $actualRequestObject->getRollupProperty(); + $this->assertProtobufEquals($rollupProperty, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRollupPropertyExceptionTest() + { + $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 + $rollupProperty = new Property(); + $rollupPropertyDisplayName = 'rollupPropertyDisplayName1210744416'; + $rollupProperty->setDisplayName($rollupPropertyDisplayName); + $rollupPropertyTimeZone = 'rollupPropertyTimeZone1768247558'; + $rollupProperty->setTimeZone($rollupPropertyTimeZone); + try { + $gapicClient->createRollupProperty($rollupProperty); + // 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 createRollupPropertySourceLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $sourceProperty = 'sourceProperty2069271929'; + $expectedResponse = new RollupPropertySourceLink(); + $expectedResponse->setName($name); + $expectedResponse->setSourceProperty($sourceProperty); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $rollupPropertySourceLink = new RollupPropertySourceLink(); + $response = $gapicClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); + $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/CreateRollupPropertySourceLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRollupPropertySourceLink(); + $this->assertProtobufEquals($rollupPropertySourceLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createRollupPropertySourceLinkExceptionTest() + { + $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]'); + $rollupPropertySourceLink = new RollupPropertySourceLink(); + try { + $gapicClient->createRollupPropertySourceLink($formattedParent, $rollupPropertySourceLink); + // 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 createSKAdNetworkConversionValueSchemaTest() { @@ -2451,7 +2263,77 @@ public function createSearchAds360LinkExceptionTest() } /** @test */ - public function createUserLinkTest() + 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() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2460,30 +2342,32 @@ public function createUserLinkTest() $this->assertTrue($transport->isExhausted()); // Mock response $name = 'name3373707'; - $emailAddress = 'emailAddress-769510831'; - $expectedResponse = new UserLink(); + $applyToProperty = 'applyToProperty-1639692344'; + $expectedResponse = new SubpropertyEventFilter(); $expectedResponse->setName($name); - $expectedResponse->setEmailAddress($emailAddress); + $expectedResponse->setApplyToProperty($applyToProperty); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $userLink = new UserLink(); - $response = $gapicClient->createUserLink($formattedParent, $userLink); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $subpropertyEventFilter = new SubpropertyEventFilter(); + $subpropertyEventFilterFilterClauses = []; + $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); + $response = $gapicClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); $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/CreateUserLink', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getUserLink(); - $this->assertProtobufEquals($userLink, $actualValue); + $actualValue = $actualRequestObject->getSubpropertyEventFilter(); + $this->assertProtobufEquals($subpropertyEventFilter, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function createUserLinkExceptionTest() + public function createSubpropertyEventFilterExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -2501,10 +2385,12 @@ public function createUserLinkExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $userLink = new UserLink(); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $subpropertyEventFilter = new SubpropertyEventFilter(); + $subpropertyEventFilterFilterClauses = []; + $subpropertyEventFilter->setFilterClauses($subpropertyEventFilterFilterClauses); try { - $gapicClient->createUserLink($formattedParent, $userLink); + $gapicClient->createSubpropertyEventFilter($formattedParent, $subpropertyEventFilter); // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { @@ -3378,6 +3264,63 @@ public function deletePropertyExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function deleteRollupPropertySourceLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + $gapicClient->deleteRollupPropertySourceLink($formattedName); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteRollupPropertySourceLinkExceptionTest() + { + $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->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + try { + $gapicClient->deleteRollupPropertySourceLink($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 deleteSKAdNetworkConversionValueSchemaTest() { @@ -3493,7 +3436,7 @@ public function deleteSearchAds360LinkExceptionTest() } /** @test */ - public function deleteUserLinkTest() + public function deleteSubpropertyEventFilterTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3504,20 +3447,20 @@ public function deleteUserLinkTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); - $gapicClient->deleteUserLink($formattedName); + $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); + $gapicClient->deleteSubpropertyEventFilter($formattedName); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteUserLink', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function deleteUserLinkExceptionTest() + public function deleteSubpropertyEventFilterExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -3535,9 +3478,9 @@ public function deleteUserLinkExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); + $formattedName = $gapicClient->subpropertyEventFilterName('[PROPERTY]', '[SUB_PROPERTY_EVENT_FILTER]'); try { - $gapicClient->deleteUserLink($formattedName); + $gapicClient->deleteSubpropertyEventFilter($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) { @@ -4323,6 +4266,70 @@ public function getCustomMetricExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function getDataRedactionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $emailRedactionEnabled = true; + $queryParameterRedactionEnabled = true; + $expectedResponse = new DataRedactionSettings(); + $expectedResponse->setName($name2); + $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); + $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->getDataRedactionSettings($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/GetDataRedactionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataRedactionSettingsExceptionTest() + { + $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->dataRedactionSettingsName('[PROPERTY]', '[DATA_STREAM]'); + try { + $gapicClient->getDataRedactionSettings($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 getDataRetentionSettingsTest() { @@ -5112,7 +5119,7 @@ public function getPropertyExceptionTest() } /** @test */ - public function getSKAdNetworkConversionValueSchemaTest() + public function getRollupPropertySourceLinkTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5121,27 +5128,27 @@ public function getSKAdNetworkConversionValueSchemaTest() $this->assertTrue($transport->isExhausted()); // Mock response $name2 = 'name2-1052831874'; - $applyConversionValues = true; - $expectedResponse = new SKAdNetworkConversionValueSchema(); + $sourceProperty = 'sourceProperty2069271929'; + $expectedResponse = new RollupPropertySourceLink(); $expectedResponse->setName($name2); - $expectedResponse->setApplyConversionValues($applyConversionValues); + $expectedResponse->setSourceProperty($sourceProperty); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); - $response = $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); + $response = $gapicClient->getRollupPropertySourceLink($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/GetSKAdNetworkConversionValueSchema', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getSKAdNetworkConversionValueSchemaExceptionTest() + public function getRollupPropertySourceLinkExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5159,9 +5166,9 @@ public function getSKAdNetworkConversionValueSchemaExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + $formattedName = $gapicClient->rollupPropertySourceLinkName('[PROPERTY]', '[ROLLUP_PROPERTY_SOURCE_LINK]'); try { - $gapicClient->getSKAdNetworkConversionValueSchema($formattedName); + $gapicClient->getRollupPropertySourceLink($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) { @@ -5174,7 +5181,7 @@ public function getSKAdNetworkConversionValueSchemaExceptionTest() } /** @test */ - public function getSearchAds360LinkTest() + public function getSKAdNetworkConversionValueSchemaTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5183,29 +5190,27 @@ public function getSearchAds360LinkTest() $this->assertTrue($transport->isExhausted()); // Mock response $name2 = 'name2-1052831874'; - $advertiserId = 'advertiserId-127926097'; - $advertiserDisplayName = 'advertiserDisplayName-674771332'; - $expectedResponse = new SearchAds360Link(); + $applyConversionValues = true; + $expectedResponse = new SKAdNetworkConversionValueSchema(); $expectedResponse->setName($name2); - $expectedResponse->setAdvertiserId($advertiserId); - $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); + $expectedResponse->setApplyConversionValues($applyConversionValues); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); - $response = $gapicClient->getSearchAds360Link($formattedName); + $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); + $response = $gapicClient->getSKAdNetworkConversionValueSchema($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/GetSearchAds360Link', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getSearchAds360LinkExceptionTest() + public function getSKAdNetworkConversionValueSchemaExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5223,9 +5228,9 @@ public function getSearchAds360LinkExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + $formattedName = $gapicClient->sKAdNetworkConversionValueSchemaName('[PROPERTY]', '[DATA_STREAM]', '[SKADNETWORK_CONVERSION_VALUE_SCHEMA]'); try { - $gapicClient->getSearchAds360Link($formattedName); + $gapicClient->getSKAdNetworkConversionValueSchema($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) { @@ -5238,7 +5243,7 @@ public function getSearchAds360LinkExceptionTest() } /** @test */ - public function getUserLinkTest() + public function getSearchAds360LinkTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5247,27 +5252,29 @@ public function getUserLinkTest() $this->assertTrue($transport->isExhausted()); // Mock response $name2 = 'name2-1052831874'; - $emailAddress = 'emailAddress-769510831'; - $expectedResponse = new UserLink(); + $advertiserId = 'advertiserId-127926097'; + $advertiserDisplayName = 'advertiserDisplayName-674771332'; + $expectedResponse = new SearchAds360Link(); $expectedResponse->setName($name2); - $expectedResponse->setEmailAddress($emailAddress); + $expectedResponse->setAdvertiserId($advertiserId); + $expectedResponse->setAdvertiserDisplayName($advertiserDisplayName); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); - $response = $gapicClient->getUserLink($formattedName); + $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); + $response = $gapicClient->getSearchAds360Link($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/GetUserLink', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link', $actualFuncCall); $actualValue = $actualRequestObject->getName(); $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function getUserLinkExceptionTest() + public function getSearchAds360LinkExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -5285,9 +5292,9 @@ public function getUserLinkExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $gapicClient->userLinkName('[ACCOUNT]', '[USER_LINK]'); + $formattedName = $gapicClient->searchAds360LinkName('[PROPERTY]', '[SEARCH_ADS_360_LINK]'); try { - $gapicClient->getUserLink($formattedName); + $gapicClient->getSearchAds360Link($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) { @@ -6632,7 +6639,7 @@ public function listPropertiesExceptionTest() } /** @test */ - public function listSKAdNetworkConversionValueSchemasTest() + public function listRollupPropertySourceLinksTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6641,33 +6648,33 @@ public function listSKAdNetworkConversionValueSchemasTest() $this->assertTrue($transport->isExhausted()); // Mock response $nextPageToken = ''; - $skadnetworkConversionValueSchemasElement = new SKAdNetworkConversionValueSchema(); - $skadnetworkConversionValueSchemas = [ - $skadnetworkConversionValueSchemasElement, + $rollupPropertySourceLinksElement = new RollupPropertySourceLink(); + $rollupPropertySourceLinks = [ + $rollupPropertySourceLinksElement, ]; - $expectedResponse = new ListSKAdNetworkConversionValueSchemasResponse(); + $expectedResponse = new ListRollupPropertySourceLinksResponse(); $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSkadnetworkConversionValueSchemas($skadnetworkConversionValueSchemas); + $expectedResponse->setRollupPropertySourceLinks($rollupPropertySourceLinks); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); - $response = $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listRollupPropertySourceLinks($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSkadnetworkConversionValueSchemas()[0], $resources[0]); + $this->assertEquals($expectedResponse->getRollupPropertySourceLinks()[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/ListSKAdNetworkConversionValueSchemas', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listSKAdNetworkConversionValueSchemasExceptionTest() + public function listRollupPropertySourceLinksExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6685,9 +6692,9 @@ public function listSKAdNetworkConversionValueSchemasExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); try { - $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); + $gapicClient->listRollupPropertySourceLinks($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) { @@ -6700,7 +6707,7 @@ public function listSKAdNetworkConversionValueSchemasExceptionTest() } /** @test */ - public function listSearchAds360LinksTest() + public function listSKAdNetworkConversionValueSchemasTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6709,33 +6716,33 @@ public function listSearchAds360LinksTest() $this->assertTrue($transport->isExhausted()); // Mock response $nextPageToken = ''; - $searchAds360LinksElement = new SearchAds360Link(); - $searchAds360Links = [ - $searchAds360LinksElement, + $skadnetworkConversionValueSchemasElement = new SKAdNetworkConversionValueSchema(); + $skadnetworkConversionValueSchemas = [ + $skadnetworkConversionValueSchemasElement, ]; - $expectedResponse = new ListSearchAds360LinksResponse(); + $expectedResponse = new ListSKAdNetworkConversionValueSchemasResponse(); $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSearchAds360Links($searchAds360Links); + $expectedResponse->setSkadnetworkConversionValueSchemas($skadnetworkConversionValueSchemas); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); - $response = $gapicClient->listSearchAds360Links($formattedParent); + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); + $response = $gapicClient->listSKAdNetworkConversionValueSchemas($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSearchAds360Links()[0], $resources[0]); + $this->assertEquals($expectedResponse->getSkadnetworkConversionValueSchemas()[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/ListSearchAds360Links', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listSearchAds360LinksExceptionTest() + public function listSKAdNetworkConversionValueSchemasExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6753,9 +6760,9 @@ public function listSearchAds360LinksExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $formattedParent = $gapicClient->dataStreamName('[PROPERTY]', '[DATA_STREAM]'); try { - $gapicClient->listSearchAds360Links($formattedParent); + $gapicClient->listSKAdNetworkConversionValueSchemas($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) { @@ -6768,7 +6775,7 @@ public function listSearchAds360LinksExceptionTest() } /** @test */ - public function listUserLinksTest() + public function listSearchAds360LinksTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6777,33 +6784,33 @@ public function listUserLinksTest() $this->assertTrue($transport->isExhausted()); // Mock response $nextPageToken = ''; - $userLinksElement = new UserLink(); - $userLinks = [ - $userLinksElement, + $searchAds360LinksElement = new SearchAds360Link(); + $searchAds360Links = [ + $searchAds360LinksElement, ]; - $expectedResponse = new ListUserLinksResponse(); + $expectedResponse = new ListSearchAds360LinksResponse(); $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setUserLinks($userLinks); + $expectedResponse->setSearchAds360Links($searchAds360Links); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $response = $gapicClient->listUserLinks($formattedParent); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); + $response = $gapicClient->listSearchAds360Links($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getUserLinks()[0], $resources[0]); + $this->assertEquals($expectedResponse->getSearchAds360Links()[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/ListUserLinks', $actualFuncCall); + $this->assertSame('/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links', $actualFuncCall); $actualValue = $actualRequestObject->getParent(); $this->assertProtobufEquals($formattedParent, $actualValue); $this->assertTrue($transport->isExhausted()); } /** @test */ - public function listUserLinksExceptionTest() + public function listSearchAds360LinksExceptionTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -6821,9 +6828,9 @@ public function listUserLinksExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); + $formattedParent = $gapicClient->propertyName('[PROPERTY]'); try { - $gapicClient->listUserLinks($formattedParent); + $gapicClient->listSearchAds360Links($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) { @@ -7655,6 +7662,74 @@ public function updateCustomMetricExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function updateDataRedactionSettingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $emailRedactionEnabled = true; + $queryParameterRedactionEnabled = true; + $expectedResponse = new DataRedactionSettings(); + $expectedResponse->setName($name); + $expectedResponse->setEmailRedactionEnabled($emailRedactionEnabled); + $expectedResponse->setQueryParameterRedactionEnabled($queryParameterRedactionEnabled); + $transport->addResponse($expectedResponse); + // Mock request + $dataRedactionSettings = new DataRedactionSettings(); + $updateMask = new FieldMask(); + $response = $gapicClient->updateDataRedactionSettings($dataRedactionSettings, $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/UpdateDataRedactionSettings', $actualFuncCall); + $actualValue = $actualRequestObject->getDataRedactionSettings(); + $this->assertProtobufEquals($dataRedactionSettings, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDataRedactionSettingsExceptionTest() + { + $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 + $dataRedactionSettings = new DataRedactionSettings(); + $updateMask = new FieldMask(); + try { + $gapicClient->updateDataRedactionSettings($dataRedactionSettings, $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 updateDataRetentionSettingsTest() { @@ -8500,66 +8575,4 @@ public function updateSearchAds360LinkExceptionTest() $transport->popReceivedCalls(); $this->assertTrue($transport->isExhausted()); } - - /** @test */ - public function updateUserLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $emailAddress = 'emailAddress-769510831'; - $expectedResponse = new UserLink(); - $expectedResponse->setName($name); - $expectedResponse->setEmailAddress($emailAddress); - $transport->addResponse($expectedResponse); - // Mock request - $userLink = new UserLink(); - $response = $gapicClient->updateUserLink($userLink); - $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/UpdateUserLink', $actualFuncCall); - $actualValue = $actualRequestObject->getUserLink(); - $this->assertProtobufEquals($userLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateUserLinkExceptionTest() - { - $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 - $userLink = new UserLink(); - try { - $gapicClient->updateUserLink($userLink); - // 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()); - } }