google-apis-analyticsadmin_v1alpha 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/analyticsadmin_v1alpha/classes.rb +40 -0
- data/lib/google/apis/analyticsadmin_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/analyticsadmin_v1alpha/representations.rb +17 -0
- data/lib/google/apis/analyticsadmin_v1alpha/service.rb +70 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfd5b550b6c1d9774b3ec3abeac43f3dc8a8202ae945146dfbb14acc553321b6
|
4
|
+
data.tar.gz: 89e6f6309c544e39b66212b31daff400ac6ce8ca7b6c25aa0d43a199a2c2c8c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58131ca70d919e417fb2e36a8a48e4e289554dce79eea5b0d7a3a3c05311fa7f3464913f89e15f59c4fd5a12b94861658193e9215c459b8ede43712428d11cc7
|
7
|
+
data.tar.gz: 6eff46822fa560d412f36ae7042d2a1bb6b59f07f1be3850ef1f4277a3c3644c166b8f17d4329a19105f19922074912d415ea789fa45361c24e939c739a079c6
|
data/CHANGELOG.md
CHANGED
@@ -531,6 +531,11 @@ module Google
|
|
531
531
|
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric]
|
532
532
|
attr_accessor :custom_metric
|
533
533
|
|
534
|
+
# Settings values for data retention. This is a singleton resource.
|
535
|
+
# Corresponds to the JSON property `dataRetentionSettings`
|
536
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings]
|
537
|
+
attr_accessor :data_retention_settings
|
538
|
+
|
534
539
|
# A link between a GA4 property and a Display & Video 360 advertiser.
|
535
540
|
# Corresponds to the JSON property `displayVideo360AdvertiserLink`
|
536
541
|
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink]
|
@@ -590,6 +595,7 @@ module Google
|
|
590
595
|
@conversion_event = args[:conversion_event] if args.key?(:conversion_event)
|
591
596
|
@custom_dimension = args[:custom_dimension] if args.key?(:custom_dimension)
|
592
597
|
@custom_metric = args[:custom_metric] if args.key?(:custom_metric)
|
598
|
+
@data_retention_settings = args[:data_retention_settings] if args.key?(:data_retention_settings)
|
593
599
|
@display_video360_advertiser_link = args[:display_video360_advertiser_link] if args.key?(:display_video360_advertiser_link)
|
594
600
|
@display_video360_advertiser_link_proposal = args[:display_video360_advertiser_link_proposal] if args.key?(:display_video360_advertiser_link_proposal)
|
595
601
|
@firebase_link = args[:firebase_link] if args.key?(:firebase_link)
|
@@ -868,6 +874,40 @@ module Google
|
|
868
874
|
end
|
869
875
|
end
|
870
876
|
|
877
|
+
# Settings values for data retention. This is a singleton resource.
|
878
|
+
class GoogleAnalyticsAdminV1alphaDataRetentionSettings
|
879
|
+
include Google::Apis::Core::Hashable
|
880
|
+
|
881
|
+
# The length of time that event-level data is retained.
|
882
|
+
# Corresponds to the JSON property `eventDataRetention`
|
883
|
+
# @return [String]
|
884
|
+
attr_accessor :event_data_retention
|
885
|
+
|
886
|
+
# Output only. Resource name for this DataRetentionSetting resource. Format:
|
887
|
+
# properties/`property`/dataRetentionSettings
|
888
|
+
# Corresponds to the JSON property `name`
|
889
|
+
# @return [String]
|
890
|
+
attr_accessor :name
|
891
|
+
|
892
|
+
# If true, reset the retention period for the user identifier with every event
|
893
|
+
# from that user.
|
894
|
+
# Corresponds to the JSON property `resetUserDataOnNewActivity`
|
895
|
+
# @return [Boolean]
|
896
|
+
attr_accessor :reset_user_data_on_new_activity
|
897
|
+
alias_method :reset_user_data_on_new_activity?, :reset_user_data_on_new_activity
|
898
|
+
|
899
|
+
def initialize(**args)
|
900
|
+
update!(**args)
|
901
|
+
end
|
902
|
+
|
903
|
+
# Update properties of this object
|
904
|
+
def update!(**args)
|
905
|
+
@event_data_retention = args[:event_data_retention] if args.key?(:event_data_retention)
|
906
|
+
@name = args[:name] if args.key?(:name)
|
907
|
+
@reset_user_data_on_new_activity = args[:reset_user_data_on_new_activity] if args.key?(:reset_user_data_on_new_activity)
|
908
|
+
end
|
909
|
+
end
|
910
|
+
|
871
911
|
# A resource message representing data sharing settings of a Google Analytics
|
872
912
|
# account.
|
873
913
|
class GoogleAnalyticsAdminV1alphaDataSharingSettings
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AnalyticsadminV1alpha
|
18
18
|
# Version of the google-apis-analyticsadmin_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210822"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -166,6 +166,12 @@ module Google
|
|
166
166
|
include Google::Apis::Core::JsonObjectSupport
|
167
167
|
end
|
168
168
|
|
169
|
+
class GoogleAnalyticsAdminV1alphaDataRetentionSettings
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
169
175
|
class GoogleAnalyticsAdminV1alphaDataSharingSettings
|
170
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
177
|
|
@@ -556,6 +562,8 @@ module Google
|
|
556
562
|
|
557
563
|
property :custom_metric, as: 'customMetric', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric::Representation
|
558
564
|
|
565
|
+
property :data_retention_settings, as: 'dataRetentionSettings', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings::Representation
|
566
|
+
|
559
567
|
property :display_video360_advertiser_link, as: 'displayVideo360AdvertiserLink', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink::Representation
|
560
568
|
|
561
569
|
property :display_video360_advertiser_link_proposal, as: 'displayVideo360AdvertiserLinkProposal', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal::Representation
|
@@ -635,6 +643,15 @@ module Google
|
|
635
643
|
end
|
636
644
|
end
|
637
645
|
|
646
|
+
class GoogleAnalyticsAdminV1alphaDataRetentionSettings
|
647
|
+
# @private
|
648
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
649
|
+
property :event_data_retention, as: 'eventDataRetention'
|
650
|
+
property :name, as: 'name'
|
651
|
+
property :reset_user_data_on_new_activity, as: 'resetUserDataOnNewActivity'
|
652
|
+
end
|
653
|
+
end
|
654
|
+
|
638
655
|
class GoogleAnalyticsAdminV1alphaDataSharingSettings
|
639
656
|
# @private
|
640
657
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -787,6 +787,37 @@ module Google
|
|
787
787
|
execute_or_queue_command(command, &block)
|
788
788
|
end
|
789
789
|
|
790
|
+
# Returns the singleton data retention settings for this property.
|
791
|
+
# @param [String] name
|
792
|
+
# Required. The name of the settings to lookup. Format: properties/`property`/
|
793
|
+
# dataRetentionSettings Example: "properties/1000/dataRetentionSettings"
|
794
|
+
# @param [String] fields
|
795
|
+
# Selector specifying which fields to include in a partial response.
|
796
|
+
# @param [String] quota_user
|
797
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
798
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
799
|
+
# @param [Google::Apis::RequestOptions] options
|
800
|
+
# Request-specific options
|
801
|
+
#
|
802
|
+
# @yield [result, err] Result & error if block supplied
|
803
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings] parsed result object
|
804
|
+
# @yieldparam err [StandardError] error object if request failed
|
805
|
+
#
|
806
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings]
|
807
|
+
#
|
808
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
809
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
810
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
811
|
+
def get_property_data_retention_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
812
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
813
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings::Representation
|
814
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings
|
815
|
+
command.params['name'] = name unless name.nil?
|
816
|
+
command.query['fields'] = fields unless fields.nil?
|
817
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
818
|
+
execute_or_queue_command(command, &block)
|
819
|
+
end
|
820
|
+
|
790
821
|
# Lookup for Google Signals settings for a property.
|
791
822
|
# @param [String] name
|
792
823
|
# Required. The name of the google signals settings to retrieve. Format:
|
@@ -912,6 +943,45 @@ module Google
|
|
912
943
|
execute_or_queue_command(command, &block)
|
913
944
|
end
|
914
945
|
|
946
|
+
# Updates the singleton data retention settings for this property.
|
947
|
+
# @param [String] name
|
948
|
+
# Output only. Resource name for this DataRetentionSetting resource. Format:
|
949
|
+
# properties/`property`/dataRetentionSettings
|
950
|
+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings] google_analytics_admin_v1alpha_data_retention_settings_object
|
951
|
+
# @param [String] update_mask
|
952
|
+
# Required. The list of fields to be updated. Field names must be in snake case (
|
953
|
+
# e.g., "field_to_update"). Omitted fields will not be updated. To replace the
|
954
|
+
# entire entity, use one path with the string "*" to match all fields.
|
955
|
+
# @param [String] fields
|
956
|
+
# Selector specifying which fields to include in a partial response.
|
957
|
+
# @param [String] quota_user
|
958
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
959
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
960
|
+
# @param [Google::Apis::RequestOptions] options
|
961
|
+
# Request-specific options
|
962
|
+
#
|
963
|
+
# @yield [result, err] Result & error if block supplied
|
964
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings] parsed result object
|
965
|
+
# @yieldparam err [StandardError] error object if request failed
|
966
|
+
#
|
967
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings]
|
968
|
+
#
|
969
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
970
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
971
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
972
|
+
def update_property_data_retention_settings(name, google_analytics_admin_v1alpha_data_retention_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
973
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
974
|
+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings::Representation
|
975
|
+
command.request_object = google_analytics_admin_v1alpha_data_retention_settings_object
|
976
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings::Representation
|
977
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings
|
978
|
+
command.params['name'] = name unless name.nil?
|
979
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
980
|
+
command.query['fields'] = fields unless fields.nil?
|
981
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
982
|
+
execute_or_queue_command(command, &block)
|
983
|
+
end
|
984
|
+
|
915
985
|
# Updates Google Signals settings for a property.
|
916
986
|
# @param [String] name
|
917
987
|
# Output only. Resource name of this setting. Format: properties/`property_id`/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-analyticsadmin_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-analyticsadmin_v1alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.14.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-analyticsadmin_v1alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|