Skip to content

Commit 84054ed

Browse files
feat: Automated regeneration of analyticsadmin v1alpha client (#13479)
Auto-created at 2023-02-05 10:05:34 +0000 using the toys pull request generator.
1 parent 55a1ddb commit 84054ed

File tree

6 files changed

+216
-3
lines changed

6 files changed

+216
-3
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8032,6 +8032,10 @@
80328032
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter/caseSensitive": case_sensitive
80338033
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter/matchType": match_type
80348034
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter/value": value
8035+
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest": google_analytics_admin_v1alpha_fetch_automated_ga4_configuration_opt_out_request
8036+
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest/property": property
8037+
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse": google_analytics_admin_v1alpha_fetch_automated_ga4_configuration_opt_out_response
8038+
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse/optOut": opt_out
80358039
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFirebaseLink": google_analytics_admin_v1alpha_firebase_link
80368040
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFirebaseLink/createTime": create_time
80378041
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaFirebaseLink/maximumUserAccess": maximum_user_access
@@ -8227,6 +8231,10 @@
82278231
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse/changeHistoryEvents": change_history_events
82288232
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse/changeHistoryEvents/change_history_event": change_history_event
82298233
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse/nextPageToken": next_page_token
8234+
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest": google_analytics_admin_v1alpha_set_automated_ga4_configuration_opt_out_request
8235+
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest/optOut": opt_out
8236+
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest/property": property
8237+
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse": google_analytics_admin_v1alpha_set_automated_ga4_configuration_opt_out_response
82308238
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest": google_analytics_admin_v1alpha_update_user_link_request
82318239
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest/userLink": user_link
82328240
"/analyticsadmin:v1alpha/GoogleAnalyticsAdminV1alphaUserLink": google_analytics_admin_v1alpha_user_link
@@ -8427,6 +8435,7 @@
84278435
"/analyticsadmin:v1alpha/analyticsadmin.properties.displayVideo360AdvertiserLinks.patch": patch_property_display_video360_advertiser_link
84288436
"/analyticsadmin:v1alpha/analyticsadmin.properties.displayVideo360AdvertiserLinks.patch/name": name
84298437
"/analyticsadmin:v1alpha/analyticsadmin.properties.displayVideo360AdvertiserLinks.patch/updateMask": update_mask
8438+
"/analyticsadmin:v1alpha/analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut": fetch_property_automated_ga4_configuration_opt_out
84308439
"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.create": create_property_firebase_link
84318440
"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.create/parent": parent
84328441
"/analyticsadmin:v1alpha/analyticsadmin.properties.firebaseLinks.delete": delete_property_firebase_link
@@ -8506,6 +8515,7 @@
85068515
"/analyticsadmin:v1alpha/analyticsadmin.properties.searchAds360Links.patch": patch_property_search_ads360_link
85078516
"/analyticsadmin:v1alpha/analyticsadmin.properties.searchAds360Links.patch/name": name
85088517
"/analyticsadmin:v1alpha/analyticsadmin.properties.searchAds360Links.patch/updateMask": update_mask
8518+
"/analyticsadmin:v1alpha/analyticsadmin.properties.setAutomatedGa4ConfigurationOptOut": set_property_automated_ga4_configuration_opt_out
85098519
"/analyticsadmin:v1alpha/analyticsadmin.properties.updateAttributionSettings": update_property_attribution_settings
85108520
"/analyticsadmin:v1alpha/analyticsadmin.properties.updateAttributionSettings/name": name
85118521
"/analyticsadmin:v1alpha/analyticsadmin.properties.updateAttributionSettings/updateMask": update_mask

generated/google-apis-analyticsadmin_v1alpha/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-analyticsadmin_v1alpha
22

3+
### v0.45.0 (2023-02-05)
4+
5+
* Regenerated from discovery document revision 20230131
6+
* Regenerated using generator version 0.11.1
7+
38
### v0.44.0 (2022-12-07)
49

510
* Regenerated from discovery document revision 20221205

generated/google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/classes.rb

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2692,6 +2692,48 @@ def update!(**args)
26922692
end
26932693
end
26942694

2695+
# Request for fetching the opt out status for the automated GA4 setup process.
2696+
class GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest
2697+
include Google::Apis::Core::Hashable
2698+
2699+
# Required. The UA property to get the opt out status. Note this request uses
2700+
# the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. Format:
2701+
# properties/`internalWebPropertyId` Example: properties/1234
2702+
# Corresponds to the JSON property `property`
2703+
# @return [String]
2704+
attr_accessor :property
2705+
2706+
def initialize(**args)
2707+
update!(**args)
2708+
end
2709+
2710+
# Update properties of this object
2711+
def update!(**args)
2712+
@property = args[:property] if args.key?(:property)
2713+
end
2714+
end
2715+
2716+
# Response message for fetching the opt out status for the automated GA4 setup
2717+
# process.
2718+
class GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse
2719+
include Google::Apis::Core::Hashable
2720+
2721+
# The opt out status for the UA property.
2722+
# Corresponds to the JSON property `optOut`
2723+
# @return [Boolean]
2724+
attr_accessor :opt_out
2725+
alias_method :opt_out?, :opt_out
2726+
2727+
def initialize(**args)
2728+
update!(**args)
2729+
end
2730+
2731+
# Update properties of this object
2732+
def update!(**args)
2733+
@opt_out = args[:opt_out] if args.key?(:opt_out)
2734+
end
2735+
end
2736+
26952737
# A link between a GA4 property and a Firebase project.
26962738
class GoogleAnalyticsAdminV1alphaFirebaseLink
26972739
include Google::Apis::Core::Hashable
@@ -3870,6 +3912,48 @@ def update!(**args)
38703912
end
38713913
end
38723914

3915+
# Request for setting the opt out status for the automated GA4 setup process.
3916+
class GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest
3917+
include Google::Apis::Core::Hashable
3918+
3919+
# The status to set.
3920+
# Corresponds to the JSON property `optOut`
3921+
# @return [Boolean]
3922+
attr_accessor :opt_out
3923+
alias_method :opt_out?, :opt_out
3924+
3925+
# Required. The UA property to set the opt out status. Note this request uses
3926+
# the internal property ID, not the tracking ID of the form UA-XXXXXX-YY. Format:
3927+
# properties/`internalWebPropertyId` Example: properties/1234
3928+
# Corresponds to the JSON property `property`
3929+
# @return [String]
3930+
attr_accessor :property
3931+
3932+
def initialize(**args)
3933+
update!(**args)
3934+
end
3935+
3936+
# Update properties of this object
3937+
def update!(**args)
3938+
@opt_out = args[:opt_out] if args.key?(:opt_out)
3939+
@property = args[:property] if args.key?(:property)
3940+
end
3941+
end
3942+
3943+
# Response message for setting the opt out status for the automated GA4 setup
3944+
# process.
3945+
class GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse
3946+
include Google::Apis::Core::Hashable
3947+
3948+
def initialize(**args)
3949+
update!(**args)
3950+
end
3951+
3952+
# Update properties of this object
3953+
def update!(**args)
3954+
end
3955+
end
3956+
38733957
# Request message for UpdateUserLink RPC.
38743958
class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest
38753959
include Google::Apis::Core::Hashable

generated/google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AnalyticsadminV1alpha
1818
# Version of the google-apis-analyticsadmin_v1alpha gem
19-
GEM_VERSION = "0.44.0"
19+
GEM_VERSION = "0.45.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.11.0"
22+
GENERATOR_VERSION = "0.11.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20221205"
25+
REVISION = "20230131"
2626
end
2727
end
2828
end

generated/google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/representations.rb

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
490490
include Google::Apis::Core::JsonObjectSupport
491491
end
492492

493+
class GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest
494+
class Representation < Google::Apis::Core::JsonRepresentation; end
495+
496+
include Google::Apis::Core::JsonObjectSupport
497+
end
498+
499+
class GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse
500+
class Representation < Google::Apis::Core::JsonRepresentation; end
501+
502+
include Google::Apis::Core::JsonObjectSupport
503+
end
504+
493505
class GoogleAnalyticsAdminV1alphaFirebaseLink
494506
class Representation < Google::Apis::Core::JsonRepresentation; end
495507

@@ -682,6 +694,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
682694
include Google::Apis::Core::JsonObjectSupport
683695
end
684696

697+
class GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest
698+
class Representation < Google::Apis::Core::JsonRepresentation; end
699+
700+
include Google::Apis::Core::JsonObjectSupport
701+
end
702+
703+
class GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse
704+
class Representation < Google::Apis::Core::JsonRepresentation; end
705+
706+
include Google::Apis::Core::JsonObjectSupport
707+
end
708+
685709
class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest
686710
class Representation < Google::Apis::Core::JsonRepresentation; end
687711

@@ -1486,6 +1510,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
14861510
end
14871511
end
14881512

1513+
class GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest
1514+
# @private
1515+
class Representation < Google::Apis::Core::JsonRepresentation
1516+
property :property, as: 'property'
1517+
end
1518+
end
1519+
1520+
class GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse
1521+
# @private
1522+
class Representation < Google::Apis::Core::JsonRepresentation
1523+
property :opt_out, as: 'optOut'
1524+
end
1525+
end
1526+
14891527
class GoogleAnalyticsAdminV1alphaFirebaseLink
14901528
# @private
14911529
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1813,6 +1851,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
18131851
end
18141852
end
18151853

1854+
class GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest
1855+
# @private
1856+
class Representation < Google::Apis::Core::JsonRepresentation
1857+
property :opt_out, as: 'optOut'
1858+
property :property, as: 'property'
1859+
end
1860+
end
1861+
1862+
class GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse
1863+
# @private
1864+
class Representation < Google::Apis::Core::JsonRepresentation
1865+
end
1866+
end
1867+
18161868
class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest
18171869
# @private
18181870
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/service.rb

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,37 @@ def delete_property(name, fields: nil, quota_user: nil, options: nil, &block)
791791
execute_or_queue_command(command, &block)
792792
end
793793

794+
# Fetches the opt out status for the automated GA4 setup process for a UA
795+
# property. Note: this has no effect on GA4 property.
796+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest] google_analytics_admin_v1alpha_fetch_automated_ga4_configuration_opt_out_request_object
797+
# @param [String] fields
798+
# Selector specifying which fields to include in a partial response.
799+
# @param [String] quota_user
800+
# Available to use for quota purposes for server-side applications. Can be any
801+
# arbitrary string assigned to a user, but should not exceed 40 characters.
802+
# @param [Google::Apis::RequestOptions] options
803+
# Request-specific options
804+
#
805+
# @yield [result, err] Result & error if block supplied
806+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse] parsed result object
807+
# @yieldparam err [StandardError] error object if request failed
808+
#
809+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse]
810+
#
811+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
812+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
813+
# @raise [Google::Apis::AuthorizationError] Authorization is required
814+
def fetch_property_automated_ga4_configuration_opt_out(google_analytics_admin_v1alpha_fetch_automated_ga4_configuration_opt_out_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
815+
command = make_simple_command(:post, 'v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut', options)
816+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest::Representation
817+
command.request_object = google_analytics_admin_v1alpha_fetch_automated_ga4_configuration_opt_out_request_object
818+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse::Representation
819+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutResponse
820+
command.query['fields'] = fields unless fields.nil?
821+
command.query['quotaUser'] = quota_user unless quota_user.nil?
822+
execute_or_queue_command(command, &block)
823+
end
824+
794825
# Lookup for a single "GA4" Property.
795826
# @param [String] name
796827
# Required. The name of the property to lookup. Format: properties/`property_id`
@@ -1055,6 +1086,37 @@ def run_property_access_report(entity, google_analytics_admin_v1alpha_run_access
10551086
execute_or_queue_command(command, &block)
10561087
end
10571088

1089+
# Sets the opt out status for the automated GA4 setup process for a UA property.
1090+
# Note: this has no effect on GA4 property.
1091+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest] google_analytics_admin_v1alpha_set_automated_ga4_configuration_opt_out_request_object
1092+
# @param [String] fields
1093+
# Selector specifying which fields to include in a partial response.
1094+
# @param [String] quota_user
1095+
# Available to use for quota purposes for server-side applications. Can be any
1096+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1097+
# @param [Google::Apis::RequestOptions] options
1098+
# Request-specific options
1099+
#
1100+
# @yield [result, err] Result & error if block supplied
1101+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse] parsed result object
1102+
# @yieldparam err [StandardError] error object if request failed
1103+
#
1104+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse]
1105+
#
1106+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1107+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1108+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1109+
def set_property_automated_ga4_configuration_opt_out(google_analytics_admin_v1alpha_set_automated_ga4_configuration_opt_out_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1110+
command = make_simple_command(:post, 'v1alpha/properties:setAutomatedGa4ConfigurationOptOut', options)
1111+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutRequest::Representation
1112+
command.request_object = google_analytics_admin_v1alpha_set_automated_ga4_configuration_opt_out_request_object
1113+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse::Representation
1114+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaSetAutomatedGa4ConfigurationOptOutResponse
1115+
command.query['fields'] = fields unless fields.nil?
1116+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1117+
execute_or_queue_command(command, &block)
1118+
end
1119+
10581120
# Updates attribution settings on a property.
10591121
# @param [String] name
10601122
# Output only. Resource name of this attribution settings resource. Format:

0 commit comments

Comments
 (0)