google-apis-analyticsadmin_v1alpha 0.6.0 → 0.7.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 +6 -2
- data/lib/google/apis/analyticsadmin_v1alpha/classes.rb +105 -0
- data/lib/google/apis/analyticsadmin_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/analyticsadmin_v1alpha/representations.rb +49 -0
- data/lib/google/apis/analyticsadmin_v1alpha/service.rb +619 -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: 2373abb0211ed4250745b0563f7e1016db1fd4e5f0df583b5d6057b5116220f4
|
4
|
+
data.tar.gz: 5f6cf576e28779e1ad34384cad55222d61ed8fbd60ed32f6edf033e5d383719d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49ce89096ecf63acbb5a5a9c9b90542a1aa6d4ab80641c7841c829d45e625126ee400bfa1cb259045f25a1ac03c66bd8c7a95ce5e56adecf338d68286303ed14
|
7
|
+
data.tar.gz: 7bae079792ca9721939b2049525fba8fce793a91e372c4db70c6c815fa1c143fd4ee7680f4e04459a5dd0dc3f0fa1874e1a8c94f8f66ccef8c2fd56767d06a28
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Release history for google-apis-analyticsadmin_v1alpha
|
2
2
|
|
3
|
-
### v0.
|
3
|
+
### v0.7.0 (2021-05-19)
|
4
4
|
|
5
|
-
* Regenerated from discovery document revision
|
5
|
+
* Regenerated from discovery document revision 20210517
|
6
|
+
|
7
|
+
### v0.6.0 (2021-05-18)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210514
|
6
10
|
|
7
11
|
### v0.5.0 (2021-03-24)
|
8
12
|
|
@@ -496,11 +496,21 @@ module Google
|
|
496
496
|
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink]
|
497
497
|
attr_accessor :google_ads_link
|
498
498
|
|
499
|
+
# Settings values for Google Signals. This is a singleton resource.
|
500
|
+
# Corresponds to the JSON property `googleSignalsSettings`
|
501
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings]
|
502
|
+
attr_accessor :google_signals_settings
|
503
|
+
|
499
504
|
# A resource message representing a Google Analytics IOS app stream.
|
500
505
|
# Corresponds to the JSON property `iosAppDataStream`
|
501
506
|
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream]
|
502
507
|
attr_accessor :ios_app_data_stream
|
503
508
|
|
509
|
+
# A secret value used for sending hits to Measurement Protocol.
|
510
|
+
# Corresponds to the JSON property `measurementProtocolSecret`
|
511
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
|
512
|
+
attr_accessor :measurement_protocol_secret
|
513
|
+
|
504
514
|
# A resource message representing a Google Analytics GA4 property.
|
505
515
|
# Corresponds to the JSON property `property`
|
506
516
|
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty]
|
@@ -524,7 +534,9 @@ module Google
|
|
524
534
|
@custom_metric = args[:custom_metric] if args.key?(:custom_metric)
|
525
535
|
@firebase_link = args[:firebase_link] if args.key?(:firebase_link)
|
526
536
|
@google_ads_link = args[:google_ads_link] if args.key?(:google_ads_link)
|
537
|
+
@google_signals_settings = args[:google_signals_settings] if args.key?(:google_signals_settings)
|
527
538
|
@ios_app_data_stream = args[:ios_app_data_stream] if args.key?(:ios_app_data_stream)
|
539
|
+
@measurement_protocol_secret = args[:measurement_protocol_secret] if args.key?(:measurement_protocol_secret)
|
528
540
|
@property = args[:property] if args.key?(:property)
|
529
541
|
@web_data_stream = args[:web_data_stream] if args.key?(:web_data_stream)
|
530
542
|
end
|
@@ -1101,6 +1113,38 @@ module Google
|
|
1101
1113
|
end
|
1102
1114
|
end
|
1103
1115
|
|
1116
|
+
# Settings values for Google Signals. This is a singleton resource.
|
1117
|
+
class GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
|
1118
|
+
include Google::Apis::Core::Hashable
|
1119
|
+
|
1120
|
+
# Output only. Terms of Service acceptance.
|
1121
|
+
# Corresponds to the JSON property `consent`
|
1122
|
+
# @return [String]
|
1123
|
+
attr_accessor :consent
|
1124
|
+
|
1125
|
+
# Output only. Resource name of this setting. Format: properties/`property_id`/
|
1126
|
+
# googleSignalsSettings Example: "properties/1000/googleSignalsSettings"
|
1127
|
+
# Corresponds to the JSON property `name`
|
1128
|
+
# @return [String]
|
1129
|
+
attr_accessor :name
|
1130
|
+
|
1131
|
+
# Status of this setting.
|
1132
|
+
# Corresponds to the JSON property `state`
|
1133
|
+
# @return [String]
|
1134
|
+
attr_accessor :state
|
1135
|
+
|
1136
|
+
def initialize(**args)
|
1137
|
+
update!(**args)
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
# Update properties of this object
|
1141
|
+
def update!(**args)
|
1142
|
+
@consent = args[:consent] if args.key?(:consent)
|
1143
|
+
@name = args[:name] if args.key?(:name)
|
1144
|
+
@state = args[:state] if args.key?(:state)
|
1145
|
+
end
|
1146
|
+
end
|
1147
|
+
|
1104
1148
|
# A resource message representing a Google Analytics IOS app stream.
|
1105
1149
|
class GoogleAnalyticsAdminV1alphaIosAppDataStream
|
1106
1150
|
include Google::Apis::Core::Hashable
|
@@ -1390,6 +1434,32 @@ module Google
|
|
1390
1434
|
end
|
1391
1435
|
end
|
1392
1436
|
|
1437
|
+
# Response message for ListMeasurementProtocolSecret RPC
|
1438
|
+
class GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
|
1439
|
+
include Google::Apis::Core::Hashable
|
1440
|
+
|
1441
|
+
# A list of secrets for the parent stream specified in the request.
|
1442
|
+
# Corresponds to the JSON property `measurementProtocolSecrets`
|
1443
|
+
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret>]
|
1444
|
+
attr_accessor :measurement_protocol_secrets
|
1445
|
+
|
1446
|
+
# A token, which can be sent as `page_token` to retrieve the next page. If this
|
1447
|
+
# field is omitted, there are no subsequent pages.
|
1448
|
+
# Corresponds to the JSON property `nextPageToken`
|
1449
|
+
# @return [String]
|
1450
|
+
attr_accessor :next_page_token
|
1451
|
+
|
1452
|
+
def initialize(**args)
|
1453
|
+
update!(**args)
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
# Update properties of this object
|
1457
|
+
def update!(**args)
|
1458
|
+
@measurement_protocol_secrets = args[:measurement_protocol_secrets] if args.key?(:measurement_protocol_secrets)
|
1459
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1460
|
+
end
|
1461
|
+
end
|
1462
|
+
|
1393
1463
|
# Response message for ListProperties RPC.
|
1394
1464
|
class GoogleAnalyticsAdminV1alphaListPropertiesResponse
|
1395
1465
|
include Google::Apis::Core::Hashable
|
@@ -1468,6 +1538,41 @@ module Google
|
|
1468
1538
|
end
|
1469
1539
|
end
|
1470
1540
|
|
1541
|
+
# A secret value used for sending hits to Measurement Protocol.
|
1542
|
+
class GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
1543
|
+
include Google::Apis::Core::Hashable
|
1544
|
+
|
1545
|
+
# Required. Human-readable display name for this secret.
|
1546
|
+
# Corresponds to the JSON property `displayName`
|
1547
|
+
# @return [String]
|
1548
|
+
attr_accessor :display_name
|
1549
|
+
|
1550
|
+
# Output only. Resource name of this secret. This secret may be a child of any
|
1551
|
+
# type of stream. Format: properties/`property`/webDataStreams/`webDataStream`/
|
1552
|
+
# measurementProtocolSecrets/`measurementProtocolSecret`
|
1553
|
+
# Corresponds to the JSON property `name`
|
1554
|
+
# @return [String]
|
1555
|
+
attr_accessor :name
|
1556
|
+
|
1557
|
+
# Output only. The measurement protocol secret value. Pass this value to the
|
1558
|
+
# api_secret field of the Measurement Protocol API when sending hits to this
|
1559
|
+
# secret's parent property.
|
1560
|
+
# Corresponds to the JSON property `secretValue`
|
1561
|
+
# @return [String]
|
1562
|
+
attr_accessor :secret_value
|
1563
|
+
|
1564
|
+
def initialize(**args)
|
1565
|
+
update!(**args)
|
1566
|
+
end
|
1567
|
+
|
1568
|
+
# Update properties of this object
|
1569
|
+
def update!(**args)
|
1570
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1571
|
+
@name = args[:name] if args.key?(:name)
|
1572
|
+
@secret_value = args[:secret_value] if args.key?(:secret_value)
|
1573
|
+
end
|
1574
|
+
end
|
1575
|
+
|
1471
1576
|
# A resource message representing a Google Analytics GA4 property.
|
1472
1577
|
class GoogleAnalyticsAdminV1alphaProperty
|
1473
1578
|
include Google::Apis::Core::Hashable
|
@@ -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.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210517"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -184,6 +184,12 @@ module Google
|
|
184
184
|
include Google::Apis::Core::JsonObjectSupport
|
185
185
|
end
|
186
186
|
|
187
|
+
class GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
187
193
|
class GoogleAnalyticsAdminV1alphaIosAppDataStream
|
188
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
195
|
|
@@ -244,6 +250,12 @@ module Google
|
|
244
250
|
include Google::Apis::Core::JsonObjectSupport
|
245
251
|
end
|
246
252
|
|
253
|
+
class GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
247
259
|
class GoogleAnalyticsAdminV1alphaListPropertiesResponse
|
248
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
261
|
|
@@ -262,6 +274,12 @@ module Google
|
|
262
274
|
include Google::Apis::Core::JsonObjectSupport
|
263
275
|
end
|
264
276
|
|
277
|
+
class GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
265
283
|
class GoogleAnalyticsAdminV1alphaProperty
|
266
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
285
|
|
@@ -474,8 +492,12 @@ module Google
|
|
474
492
|
|
475
493
|
property :google_ads_link, as: 'googleAdsLink', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
|
476
494
|
|
495
|
+
property :google_signals_settings, as: 'googleSignalsSettings', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings::Representation
|
496
|
+
|
477
497
|
property :ios_app_data_stream, as: 'iosAppDataStream', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
|
478
498
|
|
499
|
+
property :measurement_protocol_secret, as: 'measurementProtocolSecret', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
500
|
+
|
479
501
|
property :property, as: 'property', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation
|
480
502
|
|
481
503
|
property :web_data_stream, as: 'webDataStream', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation
|
@@ -608,6 +630,15 @@ module Google
|
|
608
630
|
end
|
609
631
|
end
|
610
632
|
|
633
|
+
class GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
|
634
|
+
# @private
|
635
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
636
|
+
property :consent, as: 'consent'
|
637
|
+
property :name, as: 'name'
|
638
|
+
property :state, as: 'state'
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
611
642
|
class GoogleAnalyticsAdminV1alphaIosAppDataStream
|
612
643
|
# @private
|
613
644
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -701,6 +732,15 @@ module Google
|
|
701
732
|
end
|
702
733
|
end
|
703
734
|
|
735
|
+
class GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
|
736
|
+
# @private
|
737
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
738
|
+
collection :measurement_protocol_secrets, as: 'measurementProtocolSecrets', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
739
|
+
|
740
|
+
property :next_page_token, as: 'nextPageToken'
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
704
744
|
class GoogleAnalyticsAdminV1alphaListPropertiesResponse
|
705
745
|
# @private
|
706
746
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -728,6 +768,15 @@ module Google
|
|
728
768
|
end
|
729
769
|
end
|
730
770
|
|
771
|
+
class GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
772
|
+
# @private
|
773
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
774
|
+
property :display_name, as: 'displayName'
|
775
|
+
property :name, as: 'name'
|
776
|
+
property :secret_value, as: 'secretValue'
|
777
|
+
end
|
778
|
+
end
|
779
|
+
|
731
780
|
class GoogleAnalyticsAdminV1alphaProperty
|
732
781
|
# @private
|
733
782
|
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
|
+
# Lookup for Google Signals settings for a property.
|
791
|
+
# @param [String] name
|
792
|
+
# Required. The name of the google signals settings to retrieve. Format:
|
793
|
+
# properties/`property`/googleSignalsSettings
|
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::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings] parsed result object
|
804
|
+
# @yieldparam err [StandardError] error object if request failed
|
805
|
+
#
|
806
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings]
|
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_google_signals_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::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings::Representation
|
814
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
|
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
|
# Returns child Properties under the specified parent Account. Only "GA4"
|
791
822
|
# properties will be returned. Properties will be excluded if the caller does
|
792
823
|
# not have access. Soft-deleted (ie: "trashed") properties are excluded by
|
@@ -881,6 +912,45 @@ module Google
|
|
881
912
|
execute_or_queue_command(command, &block)
|
882
913
|
end
|
883
914
|
|
915
|
+
# Updates Google Signals settings for a property.
|
916
|
+
# @param [String] name
|
917
|
+
# Output only. Resource name of this setting. Format: properties/`property_id`/
|
918
|
+
# googleSignalsSettings Example: "properties/1000/googleSignalsSettings"
|
919
|
+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings] google_analytics_admin_v1alpha_google_signals_settings_object
|
920
|
+
# @param [String] update_mask
|
921
|
+
# Required. The list of fields to be updated. Field names must be in snake case (
|
922
|
+
# e.g., "field_to_update"). Omitted fields will not be updated. To replace the
|
923
|
+
# entire entity, use one path with the string "*" to match all fields.
|
924
|
+
# @param [String] fields
|
925
|
+
# Selector specifying which fields to include in a partial response.
|
926
|
+
# @param [String] quota_user
|
927
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
928
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
929
|
+
# @param [Google::Apis::RequestOptions] options
|
930
|
+
# Request-specific options
|
931
|
+
#
|
932
|
+
# @yield [result, err] Result & error if block supplied
|
933
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings] parsed result object
|
934
|
+
# @yieldparam err [StandardError] error object if request failed
|
935
|
+
#
|
936
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings]
|
937
|
+
#
|
938
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
939
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
940
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
941
|
+
def update_property_google_signals_settings(name, google_analytics_admin_v1alpha_google_signals_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
942
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
943
|
+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings::Representation
|
944
|
+
command.request_object = google_analytics_admin_v1alpha_google_signals_settings_object
|
945
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings::Representation
|
946
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
|
947
|
+
command.params['name'] = name unless name.nil?
|
948
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
949
|
+
command.query['fields'] = fields unless fields.nil?
|
950
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
951
|
+
execute_or_queue_command(command, &block)
|
952
|
+
end
|
953
|
+
|
884
954
|
# Deletes an android app stream on a property.
|
885
955
|
# @param [String] name
|
886
956
|
# Required. The name of the android app data stream to delete. Format:
|
@@ -1028,6 +1098,189 @@ module Google
|
|
1028
1098
|
execute_or_queue_command(command, &block)
|
1029
1099
|
end
|
1030
1100
|
|
1101
|
+
# Creates a measurement protocol secret.
|
1102
|
+
# @param [String] parent
|
1103
|
+
# Required. The parent resource where this secret will be created. Any type of
|
1104
|
+
# stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
|
1105
|
+
# Format: properties/`property`/webDataStreams/`webDataStream`
|
1106
|
+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
1107
|
+
# @param [String] fields
|
1108
|
+
# Selector specifying which fields to include in a partial response.
|
1109
|
+
# @param [String] quota_user
|
1110
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1111
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1112
|
+
# @param [Google::Apis::RequestOptions] options
|
1113
|
+
# Request-specific options
|
1114
|
+
#
|
1115
|
+
# @yield [result, err] Result & error if block supplied
|
1116
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
|
1117
|
+
# @yieldparam err [StandardError] error object if request failed
|
1118
|
+
#
|
1119
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
|
1120
|
+
#
|
1121
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1122
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1123
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1124
|
+
def create_property_android_app_data_stream_measurement_protocol_secret(parent, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1125
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
|
1126
|
+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
1127
|
+
command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
1128
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
1129
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
1130
|
+
command.params['parent'] = parent unless parent.nil?
|
1131
|
+
command.query['fields'] = fields unless fields.nil?
|
1132
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1133
|
+
execute_or_queue_command(command, &block)
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
# Deletes target MeasurementProtocolSecret.
|
1137
|
+
# @param [String] name
|
1138
|
+
# Required. The name of the MeasurementProtocolSecret to delete. Format:
|
1139
|
+
# properties/`property`/webDataStreams/`webDataStream`/
|
1140
|
+
# measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
|
1141
|
+
# stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
|
1142
|
+
# @param [String] fields
|
1143
|
+
# Selector specifying which fields to include in a partial response.
|
1144
|
+
# @param [String] quota_user
|
1145
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1146
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1147
|
+
# @param [Google::Apis::RequestOptions] options
|
1148
|
+
# Request-specific options
|
1149
|
+
#
|
1150
|
+
# @yield [result, err] Result & error if block supplied
|
1151
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
|
1152
|
+
# @yieldparam err [StandardError] error object if request failed
|
1153
|
+
#
|
1154
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
|
1155
|
+
#
|
1156
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1157
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1158
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1159
|
+
def delete_property_android_app_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
|
1160
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
1161
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
|
1162
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
|
1163
|
+
command.params['name'] = name unless name.nil?
|
1164
|
+
command.query['fields'] = fields unless fields.nil?
|
1165
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1166
|
+
execute_or_queue_command(command, &block)
|
1167
|
+
end
|
1168
|
+
|
1169
|
+
# Lookup for a single "GA4" MeasurementProtocolSecret.
|
1170
|
+
# @param [String] name
|
1171
|
+
# Required. The name of the measurement protocol secret to lookup. Format:
|
1172
|
+
# properties/`property`/webDataStreams/`webDataStream`/
|
1173
|
+
# measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
|
1174
|
+
# stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
|
1175
|
+
# @param [String] fields
|
1176
|
+
# Selector specifying which fields to include in a partial response.
|
1177
|
+
# @param [String] quota_user
|
1178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1180
|
+
# @param [Google::Apis::RequestOptions] options
|
1181
|
+
# Request-specific options
|
1182
|
+
#
|
1183
|
+
# @yield [result, err] Result & error if block supplied
|
1184
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
|
1185
|
+
# @yieldparam err [StandardError] error object if request failed
|
1186
|
+
#
|
1187
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
|
1188
|
+
#
|
1189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1192
|
+
def get_property_android_app_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
|
1193
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
1194
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
1195
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
1196
|
+
command.params['name'] = name unless name.nil?
|
1197
|
+
command.query['fields'] = fields unless fields.nil?
|
1198
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1199
|
+
execute_or_queue_command(command, &block)
|
1200
|
+
end
|
1201
|
+
|
1202
|
+
# Returns child MeasurementProtocolSecrets under the specified parent Property.
|
1203
|
+
# @param [String] parent
|
1204
|
+
# Required. The resource name of the parent stream. Any type of stream (
|
1205
|
+
# WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format:
|
1206
|
+
# properties/`property`/webDataStreams/`webDataStream`/
|
1207
|
+
# measurementProtocolSecrets
|
1208
|
+
# @param [Fixnum] page_size
|
1209
|
+
# The maximum number of resources to return. If unspecified, at most 10
|
1210
|
+
# resources will be returned. The maximum value is 10. Higher values will be
|
1211
|
+
# coerced to the maximum.
|
1212
|
+
# @param [String] page_token
|
1213
|
+
# A page token, received from a previous `ListMeasurementProtocolSecrets` call.
|
1214
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
1215
|
+
# parameters provided to `ListMeasurementProtocolSecrets` must match the call
|
1216
|
+
# that provided the page token.
|
1217
|
+
# @param [String] fields
|
1218
|
+
# Selector specifying which fields to include in a partial response.
|
1219
|
+
# @param [String] quota_user
|
1220
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1221
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1222
|
+
# @param [Google::Apis::RequestOptions] options
|
1223
|
+
# Request-specific options
|
1224
|
+
#
|
1225
|
+
# @yield [result, err] Result & error if block supplied
|
1226
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse] parsed result object
|
1227
|
+
# @yieldparam err [StandardError] error object if request failed
|
1228
|
+
#
|
1229
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse]
|
1230
|
+
#
|
1231
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1232
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1233
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1234
|
+
def list_property_android_app_data_stream_measurement_protocol_secrets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1235
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
|
1236
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::Representation
|
1237
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
|
1238
|
+
command.params['parent'] = parent unless parent.nil?
|
1239
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1240
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1241
|
+
command.query['fields'] = fields unless fields.nil?
|
1242
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1243
|
+
execute_or_queue_command(command, &block)
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
# Updates a measurement protocol secret.
|
1247
|
+
# @param [String] name
|
1248
|
+
# Output only. Resource name of this secret. This secret may be a child of any
|
1249
|
+
# type of stream. Format: properties/`property`/webDataStreams/`webDataStream`/
|
1250
|
+
# measurementProtocolSecrets/`measurementProtocolSecret`
|
1251
|
+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
1252
|
+
# @param [String] update_mask
|
1253
|
+
# The list of fields to be updated. Omitted fields will not be updated.
|
1254
|
+
# @param [String] fields
|
1255
|
+
# Selector specifying which fields to include in a partial response.
|
1256
|
+
# @param [String] quota_user
|
1257
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1258
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1259
|
+
# @param [Google::Apis::RequestOptions] options
|
1260
|
+
# Request-specific options
|
1261
|
+
#
|
1262
|
+
# @yield [result, err] Result & error if block supplied
|
1263
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
|
1264
|
+
# @yieldparam err [StandardError] error object if request failed
|
1265
|
+
#
|
1266
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
|
1267
|
+
#
|
1268
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1269
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1270
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1271
|
+
def patch_property_android_app_data_stream_measurement_protocol_secret(name, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1272
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
1273
|
+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
1274
|
+
command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
1275
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
1276
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
1277
|
+
command.params['name'] = name unless name.nil?
|
1278
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1279
|
+
command.query['fields'] = fields unless fields.nil?
|
1280
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1281
|
+
execute_or_queue_command(command, &block)
|
1282
|
+
end
|
1283
|
+
|
1031
1284
|
# Creates a conversion event with the specified attributes.
|
1032
1285
|
# @param [String] parent
|
1033
1286
|
# Required. The resource name of the parent property where this conversion event
|
@@ -1959,6 +2212,189 @@ module Google
|
|
1959
2212
|
execute_or_queue_command(command, &block)
|
1960
2213
|
end
|
1961
2214
|
|
2215
|
+
# Creates a measurement protocol secret.
|
2216
|
+
# @param [String] parent
|
2217
|
+
# Required. The parent resource where this secret will be created. Any type of
|
2218
|
+
# stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
|
2219
|
+
# Format: properties/`property`/webDataStreams/`webDataStream`
|
2220
|
+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
2221
|
+
# @param [String] fields
|
2222
|
+
# Selector specifying which fields to include in a partial response.
|
2223
|
+
# @param [String] quota_user
|
2224
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2225
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2226
|
+
# @param [Google::Apis::RequestOptions] options
|
2227
|
+
# Request-specific options
|
2228
|
+
#
|
2229
|
+
# @yield [result, err] Result & error if block supplied
|
2230
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
|
2231
|
+
# @yieldparam err [StandardError] error object if request failed
|
2232
|
+
#
|
2233
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
|
2234
|
+
#
|
2235
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2236
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2237
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2238
|
+
def create_property_ios_app_data_stream_measurement_protocol_secret(parent, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2239
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
|
2240
|
+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
2241
|
+
command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
2242
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
2243
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
2244
|
+
command.params['parent'] = parent unless parent.nil?
|
2245
|
+
command.query['fields'] = fields unless fields.nil?
|
2246
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2247
|
+
execute_or_queue_command(command, &block)
|
2248
|
+
end
|
2249
|
+
|
2250
|
+
# Deletes target MeasurementProtocolSecret.
|
2251
|
+
# @param [String] name
|
2252
|
+
# Required. The name of the MeasurementProtocolSecret to delete. Format:
|
2253
|
+
# properties/`property`/webDataStreams/`webDataStream`/
|
2254
|
+
# measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
|
2255
|
+
# stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
|
2256
|
+
# @param [String] fields
|
2257
|
+
# Selector specifying which fields to include in a partial response.
|
2258
|
+
# @param [String] quota_user
|
2259
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2260
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2261
|
+
# @param [Google::Apis::RequestOptions] options
|
2262
|
+
# Request-specific options
|
2263
|
+
#
|
2264
|
+
# @yield [result, err] Result & error if block supplied
|
2265
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
|
2266
|
+
# @yieldparam err [StandardError] error object if request failed
|
2267
|
+
#
|
2268
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
|
2269
|
+
#
|
2270
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2271
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2272
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2273
|
+
def delete_property_ios_app_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
|
2274
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
2275
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
|
2276
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
|
2277
|
+
command.params['name'] = name unless name.nil?
|
2278
|
+
command.query['fields'] = fields unless fields.nil?
|
2279
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2280
|
+
execute_or_queue_command(command, &block)
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
# Lookup for a single "GA4" MeasurementProtocolSecret.
|
2284
|
+
# @param [String] name
|
2285
|
+
# Required. The name of the measurement protocol secret to lookup. Format:
|
2286
|
+
# properties/`property`/webDataStreams/`webDataStream`/
|
2287
|
+
# measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
|
2288
|
+
# stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
|
2289
|
+
# @param [String] fields
|
2290
|
+
# Selector specifying which fields to include in a partial response.
|
2291
|
+
# @param [String] quota_user
|
2292
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2293
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2294
|
+
# @param [Google::Apis::RequestOptions] options
|
2295
|
+
# Request-specific options
|
2296
|
+
#
|
2297
|
+
# @yield [result, err] Result & error if block supplied
|
2298
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
|
2299
|
+
# @yieldparam err [StandardError] error object if request failed
|
2300
|
+
#
|
2301
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
|
2302
|
+
#
|
2303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2306
|
+
def get_property_ios_app_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
|
2307
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
2308
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
2309
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
2310
|
+
command.params['name'] = name unless name.nil?
|
2311
|
+
command.query['fields'] = fields unless fields.nil?
|
2312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2313
|
+
execute_or_queue_command(command, &block)
|
2314
|
+
end
|
2315
|
+
|
2316
|
+
# Returns child MeasurementProtocolSecrets under the specified parent Property.
|
2317
|
+
# @param [String] parent
|
2318
|
+
# Required. The resource name of the parent stream. Any type of stream (
|
2319
|
+
# WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format:
|
2320
|
+
# properties/`property`/webDataStreams/`webDataStream`/
|
2321
|
+
# measurementProtocolSecrets
|
2322
|
+
# @param [Fixnum] page_size
|
2323
|
+
# The maximum number of resources to return. If unspecified, at most 10
|
2324
|
+
# resources will be returned. The maximum value is 10. Higher values will be
|
2325
|
+
# coerced to the maximum.
|
2326
|
+
# @param [String] page_token
|
2327
|
+
# A page token, received from a previous `ListMeasurementProtocolSecrets` call.
|
2328
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
2329
|
+
# parameters provided to `ListMeasurementProtocolSecrets` must match the call
|
2330
|
+
# that provided the page token.
|
2331
|
+
# @param [String] fields
|
2332
|
+
# Selector specifying which fields to include in a partial response.
|
2333
|
+
# @param [String] quota_user
|
2334
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2335
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2336
|
+
# @param [Google::Apis::RequestOptions] options
|
2337
|
+
# Request-specific options
|
2338
|
+
#
|
2339
|
+
# @yield [result, err] Result & error if block supplied
|
2340
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse] parsed result object
|
2341
|
+
# @yieldparam err [StandardError] error object if request failed
|
2342
|
+
#
|
2343
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse]
|
2344
|
+
#
|
2345
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2346
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2347
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2348
|
+
def list_property_ios_app_data_stream_measurement_protocol_secrets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2349
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
|
2350
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::Representation
|
2351
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
|
2352
|
+
command.params['parent'] = parent unless parent.nil?
|
2353
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2354
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2355
|
+
command.query['fields'] = fields unless fields.nil?
|
2356
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2357
|
+
execute_or_queue_command(command, &block)
|
2358
|
+
end
|
2359
|
+
|
2360
|
+
# Updates a measurement protocol secret.
|
2361
|
+
# @param [String] name
|
2362
|
+
# Output only. Resource name of this secret. This secret may be a child of any
|
2363
|
+
# type of stream. Format: properties/`property`/webDataStreams/`webDataStream`/
|
2364
|
+
# measurementProtocolSecrets/`measurementProtocolSecret`
|
2365
|
+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
2366
|
+
# @param [String] update_mask
|
2367
|
+
# The list of fields to be updated. Omitted fields will not be updated.
|
2368
|
+
# @param [String] fields
|
2369
|
+
# Selector specifying which fields to include in a partial response.
|
2370
|
+
# @param [String] quota_user
|
2371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2373
|
+
# @param [Google::Apis::RequestOptions] options
|
2374
|
+
# Request-specific options
|
2375
|
+
#
|
2376
|
+
# @yield [result, err] Result & error if block supplied
|
2377
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
|
2378
|
+
# @yieldparam err [StandardError] error object if request failed
|
2379
|
+
#
|
2380
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
|
2381
|
+
#
|
2382
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2383
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2384
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2385
|
+
def patch_property_ios_app_data_stream_measurement_protocol_secret(name, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2386
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
2387
|
+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
2388
|
+
command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
2389
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
2390
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
2391
|
+
command.params['name'] = name unless name.nil?
|
2392
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2393
|
+
command.query['fields'] = fields unless fields.nil?
|
2394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2395
|
+
execute_or_queue_command(command, &block)
|
2396
|
+
end
|
2397
|
+
|
1962
2398
|
# Lists all user links on an account or property, including implicit ones that
|
1963
2399
|
# come from effective permissions granted by groups or organization admin roles.
|
1964
2400
|
# If a returned user link does not have direct permissions, they cannot be
|
@@ -2605,6 +3041,189 @@ module Google
|
|
2605
3041
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2606
3042
|
execute_or_queue_command(command, &block)
|
2607
3043
|
end
|
3044
|
+
|
3045
|
+
# Creates a measurement protocol secret.
|
3046
|
+
# @param [String] parent
|
3047
|
+
# Required. The parent resource where this secret will be created. Any type of
|
3048
|
+
# stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
|
3049
|
+
# Format: properties/`property`/webDataStreams/`webDataStream`
|
3050
|
+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
3051
|
+
# @param [String] fields
|
3052
|
+
# Selector specifying which fields to include in a partial response.
|
3053
|
+
# @param [String] quota_user
|
3054
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3055
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3056
|
+
# @param [Google::Apis::RequestOptions] options
|
3057
|
+
# Request-specific options
|
3058
|
+
#
|
3059
|
+
# @yield [result, err] Result & error if block supplied
|
3060
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
|
3061
|
+
# @yieldparam err [StandardError] error object if request failed
|
3062
|
+
#
|
3063
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
|
3064
|
+
#
|
3065
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3066
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3067
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3068
|
+
def create_property_web_data_stream_measurement_protocol_secret(parent, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3069
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
|
3070
|
+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
3071
|
+
command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
3072
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
3073
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
3074
|
+
command.params['parent'] = parent unless parent.nil?
|
3075
|
+
command.query['fields'] = fields unless fields.nil?
|
3076
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3077
|
+
execute_or_queue_command(command, &block)
|
3078
|
+
end
|
3079
|
+
|
3080
|
+
# Deletes target MeasurementProtocolSecret.
|
3081
|
+
# @param [String] name
|
3082
|
+
# Required. The name of the MeasurementProtocolSecret to delete. Format:
|
3083
|
+
# properties/`property`/webDataStreams/`webDataStream`/
|
3084
|
+
# measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
|
3085
|
+
# stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
|
3086
|
+
# @param [String] fields
|
3087
|
+
# Selector specifying which fields to include in a partial response.
|
3088
|
+
# @param [String] quota_user
|
3089
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3090
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3091
|
+
# @param [Google::Apis::RequestOptions] options
|
3092
|
+
# Request-specific options
|
3093
|
+
#
|
3094
|
+
# @yield [result, err] Result & error if block supplied
|
3095
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
|
3096
|
+
# @yieldparam err [StandardError] error object if request failed
|
3097
|
+
#
|
3098
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
|
3099
|
+
#
|
3100
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3101
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3102
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3103
|
+
def delete_property_web_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
|
3104
|
+
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
3105
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
|
3106
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
|
3107
|
+
command.params['name'] = name unless name.nil?
|
3108
|
+
command.query['fields'] = fields unless fields.nil?
|
3109
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3110
|
+
execute_or_queue_command(command, &block)
|
3111
|
+
end
|
3112
|
+
|
3113
|
+
# Lookup for a single "GA4" MeasurementProtocolSecret.
|
3114
|
+
# @param [String] name
|
3115
|
+
# Required. The name of the measurement protocol secret to lookup. Format:
|
3116
|
+
# properties/`property`/webDataStreams/`webDataStream`/
|
3117
|
+
# measurementProtocolSecrets/`measurementProtocolSecret` Note: Any type of
|
3118
|
+
# stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
|
3119
|
+
# @param [String] fields
|
3120
|
+
# Selector specifying which fields to include in a partial response.
|
3121
|
+
# @param [String] quota_user
|
3122
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3123
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3124
|
+
# @param [Google::Apis::RequestOptions] options
|
3125
|
+
# Request-specific options
|
3126
|
+
#
|
3127
|
+
# @yield [result, err] Result & error if block supplied
|
3128
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
|
3129
|
+
# @yieldparam err [StandardError] error object if request failed
|
3130
|
+
#
|
3131
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
|
3132
|
+
#
|
3133
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3134
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3135
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3136
|
+
def get_property_web_data_stream_measurement_protocol_secret(name, fields: nil, quota_user: nil, options: nil, &block)
|
3137
|
+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
|
3138
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
3139
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
3140
|
+
command.params['name'] = name unless name.nil?
|
3141
|
+
command.query['fields'] = fields unless fields.nil?
|
3142
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3143
|
+
execute_or_queue_command(command, &block)
|
3144
|
+
end
|
3145
|
+
|
3146
|
+
# Returns child MeasurementProtocolSecrets under the specified parent Property.
|
3147
|
+
# @param [String] parent
|
3148
|
+
# Required. The resource name of the parent stream. Any type of stream (
|
3149
|
+
# WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format:
|
3150
|
+
# properties/`property`/webDataStreams/`webDataStream`/
|
3151
|
+
# measurementProtocolSecrets
|
3152
|
+
# @param [Fixnum] page_size
|
3153
|
+
# The maximum number of resources to return. If unspecified, at most 10
|
3154
|
+
# resources will be returned. The maximum value is 10. Higher values will be
|
3155
|
+
# coerced to the maximum.
|
3156
|
+
# @param [String] page_token
|
3157
|
+
# A page token, received from a previous `ListMeasurementProtocolSecrets` call.
|
3158
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
3159
|
+
# parameters provided to `ListMeasurementProtocolSecrets` must match the call
|
3160
|
+
# that provided the page token.
|
3161
|
+
# @param [String] fields
|
3162
|
+
# Selector specifying which fields to include in a partial response.
|
3163
|
+
# @param [String] quota_user
|
3164
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3165
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3166
|
+
# @param [Google::Apis::RequestOptions] options
|
3167
|
+
# Request-specific options
|
3168
|
+
#
|
3169
|
+
# @yield [result, err] Result & error if block supplied
|
3170
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse] parsed result object
|
3171
|
+
# @yieldparam err [StandardError] error object if request failed
|
3172
|
+
#
|
3173
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse]
|
3174
|
+
#
|
3175
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3176
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3177
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3178
|
+
def list_property_web_data_stream_measurement_protocol_secrets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3179
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/measurementProtocolSecrets', options)
|
3180
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::Representation
|
3181
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
|
3182
|
+
command.params['parent'] = parent unless parent.nil?
|
3183
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3184
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3185
|
+
command.query['fields'] = fields unless fields.nil?
|
3186
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3187
|
+
execute_or_queue_command(command, &block)
|
3188
|
+
end
|
3189
|
+
|
3190
|
+
# Updates a measurement protocol secret.
|
3191
|
+
# @param [String] name
|
3192
|
+
# Output only. Resource name of this secret. This secret may be a child of any
|
3193
|
+
# type of stream. Format: properties/`property`/webDataStreams/`webDataStream`/
|
3194
|
+
# measurementProtocolSecrets/`measurementProtocolSecret`
|
3195
|
+
# @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
3196
|
+
# @param [String] update_mask
|
3197
|
+
# The list of fields to be updated. Omitted fields will not be updated.
|
3198
|
+
# @param [String] fields
|
3199
|
+
# Selector specifying which fields to include in a partial response.
|
3200
|
+
# @param [String] quota_user
|
3201
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3202
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3203
|
+
# @param [Google::Apis::RequestOptions] options
|
3204
|
+
# Request-specific options
|
3205
|
+
#
|
3206
|
+
# @yield [result, err] Result & error if block supplied
|
3207
|
+
# @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret] parsed result object
|
3208
|
+
# @yieldparam err [StandardError] error object if request failed
|
3209
|
+
#
|
3210
|
+
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
|
3211
|
+
#
|
3212
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3213
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3214
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3215
|
+
def patch_property_web_data_stream_measurement_protocol_secret(name, google_analytics_admin_v1alpha_measurement_protocol_secret_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3216
|
+
command = make_simple_command(:patch, 'v1alpha/{+name}', options)
|
3217
|
+
command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
3218
|
+
command.request_object = google_analytics_admin_v1alpha_measurement_protocol_secret_object
|
3219
|
+
command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::Representation
|
3220
|
+
command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
|
3221
|
+
command.params['name'] = name unless name.nil?
|
3222
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3223
|
+
command.query['fields'] = fields unless fields.nil?
|
3224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3225
|
+
execute_or_queue_command(command, &block)
|
3226
|
+
end
|
2608
3227
|
|
2609
3228
|
protected
|
2610
3229
|
|
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.7.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-05-
|
11
|
+
date: 2021-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-analyticsadmin_v1alpha/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.7.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-analyticsadmin_v1alpha
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|