google-apis-analyticsadmin_v1alpha 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/analyticsadmin_v1alpha/classes.rb +44 -6
- data/lib/google/apis/analyticsadmin_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/analyticsadmin_v1alpha/representations.rb +25 -0
- data/lib/google/apis/analyticsadmin_v1alpha/service.rb +35 -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: 2bcbf276bbbb98e5259e87065bd0a299e007088d9158fdfb339503f1a11b4e13
|
4
|
+
data.tar.gz: 369b8bb9dc4f0954715e3941dad8fce3e38f34bbb18f26f2f446332ea5d04011
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9257b7c64a02a3b28bd989544f60bbf939220330e27842deff37540831f354179ce6b6d1a7bb40c1431ab9c56f54eb5756be7aa238787a49b42ba12a05dc0716
|
7
|
+
data.tar.gz: 4faaa69db909ffb1328c462e3b0bcf5448ef797196727acd78550b18673835efa7e8ca8c811f269df6b00083d06c61fa345ffd509334d6b0af156ba5fcbe8262
|
data/CHANGELOG.md
CHANGED
@@ -114,6 +114,43 @@ module Google
|
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|
117
|
+
# Request message for AcknowledgeUserDataCollection RPC.
|
118
|
+
class GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest
|
119
|
+
include Google::Apis::Core::Hashable
|
120
|
+
|
121
|
+
# Required. An acknowledgement that the caller of this method understands the
|
122
|
+
# terms of user data collection. This field must contain the exact value: "I
|
123
|
+
# acknowledge that I have the necessary privacy disclosures and rights from my
|
124
|
+
# end users for the collection and processing of their data, including the
|
125
|
+
# association of such data with the visitation information Google Analytics
|
126
|
+
# collects from my site and/or app property."
|
127
|
+
# Corresponds to the JSON property `acknowledgement`
|
128
|
+
# @return [String]
|
129
|
+
attr_accessor :acknowledgement
|
130
|
+
|
131
|
+
def initialize(**args)
|
132
|
+
update!(**args)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Update properties of this object
|
136
|
+
def update!(**args)
|
137
|
+
@acknowledgement = args[:acknowledgement] if args.key?(:acknowledgement)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
# Response message for AcknowledgeUserDataCollection RPC.
|
142
|
+
class GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse
|
143
|
+
include Google::Apis::Core::Hashable
|
144
|
+
|
145
|
+
def initialize(**args)
|
146
|
+
update!(**args)
|
147
|
+
end
|
148
|
+
|
149
|
+
# Update properties of this object
|
150
|
+
def update!(**args)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
117
154
|
# A resource message representing a Google Analytics Android app stream.
|
118
155
|
class GoogleAnalyticsAdminV1alphaAndroidAppDataStream
|
119
156
|
include Google::Apis::Core::Hashable
|
@@ -231,7 +268,7 @@ module Google
|
|
231
268
|
include Google::Apis::Core::Hashable
|
232
269
|
|
233
270
|
# Roles directly assigned to this user for this entity. Format: predefinedRoles/
|
234
|
-
#
|
271
|
+
# viewer Excludes roles that are inherited from an account (if this is for a
|
235
272
|
# property), group, or organization admin role.
|
236
273
|
# Corresponds to the JSON property `directRoles`
|
237
274
|
# @return [Array<String>]
|
@@ -239,7 +276,7 @@ module Google
|
|
239
276
|
|
240
277
|
# Union of all permissions a user has at this account or property (includes
|
241
278
|
# direct permissions, group-inherited permissions, etc.). Format:
|
242
|
-
# predefinedRoles/
|
279
|
+
# predefinedRoles/viewer
|
243
280
|
# Corresponds to the JSON property `effectiveRoles`
|
244
281
|
# @return [Array<String>]
|
245
282
|
attr_accessor :effective_roles
|
@@ -2194,10 +2231,11 @@ module Google
|
|
2194
2231
|
include Google::Apis::Core::Hashable
|
2195
2232
|
|
2196
2233
|
# Roles directly assigned to this user for this account or property. Valid
|
2197
|
-
# values: predefinedRoles/
|
2198
|
-
# predefinedRoles/admin
|
2199
|
-
#
|
2200
|
-
# an empty list of
|
2234
|
+
# values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor
|
2235
|
+
# predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-
|
2236
|
+
# data Excludes roles that are inherited from a higher-level entity, group, or
|
2237
|
+
# organization admin role. A UserLink that is updated to have an empty list of
|
2238
|
+
# direct_roles will be deleted.
|
2201
2239
|
# Corresponds to the JSON property `directRoles`
|
2202
2240
|
# @return [Array<String>]
|
2203
2241
|
attr_accessor :direct_roles
|
@@ -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.17.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 = "20211005"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,18 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
37
49
|
class GoogleAnalyticsAdminV1alphaAndroidAppDataStream
|
38
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
51
|
|
@@ -417,6 +429,19 @@ module Google
|
|
417
429
|
end
|
418
430
|
end
|
419
431
|
|
432
|
+
class GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest
|
433
|
+
# @private
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
435
|
+
property :acknowledgement, as: 'acknowledgement'
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
class GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse
|
440
|
+
# @private
|
441
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
442
|
+
end
|
443
|
+
end
|
444
|
+
|
420
445
|
class GoogleAnalyticsAdminV1alphaAndroidAppDataStream
|
421
446
|
# @private
|
422
447
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -689,6 +689,41 @@ module Google
|
|
689
689
|
execute_or_queue_command(command, &block)
|
690
690
|
end
|
691
691
|
|
692
|
+
# Acknowledges the terms of user data collection for the specified property.
|
693
|
+
# This acknowledgement must be completed (either in the Google Analytics UI or
|
694
|
+
# via this API) before MeasurementProtocolSecret resources may be created.
|
695
|
+
# @param [String] property
|
696
|
+
# Required. The property for which to acknowledge user data collection.
|
697
|
+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest] google_analytics_admin_v1alpha_acknowledge_user_data_collection_request_object
|
698
|
+
# @param [String] fields
|
699
|
+
# Selector specifying which fields to include in a partial response.
|
700
|
+
# @param [String] quota_user
|
701
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
702
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
703
|
+
# @param [Google::Apis::RequestOptions] options
|
704
|
+
# Request-specific options
|
705
|
+
#
|
706
|
+
# @yield [result, err] Result & error if block supplied
|
707
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse] parsed result object
|
708
|
+
# @yieldparam err [StandardError] error object if request failed
|
709
|
+
#
|
710
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse]
|
711
|
+
#
|
712
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
713
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
714
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
715
|
+
def acknowledge_property_user_data_collection(property, google_analytics_admin_v1alpha_acknowledge_user_data_collection_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
716
|
+
command = make_simple_command(:post, 'v1alpha/{+property}:acknowledgeUserDataCollection', options)
|
717
|
+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest::Representation
|
718
|
+
command.request_object = google_analytics_admin_v1alpha_acknowledge_user_data_collection_request_object
|
719
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse::Representation
|
720
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse
|
721
|
+
command.params['property'] = property unless property.nil?
|
722
|
+
command.query['fields'] = fields unless fields.nil?
|
723
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
724
|
+
execute_or_queue_command(command, &block)
|
725
|
+
end
|
726
|
+
|
692
727
|
# Creates an "GA4" property with the specified location and attributes.
|
693
728
|
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] google_analytics_admin_v1alpha_property_object
|
694
729
|
# @param [String] fields
|
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.17.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-10-11 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.17.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: []
|