google-apis-analyticsadmin_v1alpha 0.29.0 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8997904c942768285965989f7b6b4f1a9713fa9b06b2278f13d7b04de89719ac
4
- data.tar.gz: fc3b5d5c8c38d2132ef6089519c06890a47d67ecca1663257ec98cfcadca7bec
3
+ metadata.gz: 4d1e135a8f62f5634076cbfda434b1a4a8cabf5a934eca2b5f0958c800375ab3
4
+ data.tar.gz: 6b75c899052d46a087c831217589fa33cbb520e7c2f88094fd146a05a0b9ce74
5
5
  SHA512:
6
- metadata.gz: 0faf70224d76cca9a2534af5dff4238fc6ece38aacb60e854cb0d53f65df78044987e20736dbd3dbed068e7996d1c023f9c05aa5bab8485022a66183aae185c0
7
- data.tar.gz: 599a72810b717aff0a3a347226541090aec5409e25c169f1905f2fbeefe4cecdfa55fd4f445c96b2fdb0c68b72d4107d0491272c77587401cc44b297921e9c7d
6
+ metadata.gz: 88c6e8e417fc652caaa056fe909f8f1fdbc46b4fde78f79a6a2778730682be5cfc6a5d589a02686752138c9cf6ed26fc51c4f67a1b0e8b2a2d6ad6b024a01ed6
7
+ data.tar.gz: a6957aa1bd9b983e3113827c352d49598a79434a574af4bc257e7f4a3b0c301c0d7440510c3cf559fe06cb3d008452977bfc191aa0a0534f3c256c5e55467fe9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-analyticsadmin_v1alpha
2
2
 
3
+ ### v0.30.0 (2022-06-07)
4
+
5
+ * Regenerated from discovery document revision 20220604
6
+ * Regenerated using generator version 0.5.0
7
+
3
8
  ### v0.29.0 (2022-06-02)
4
9
 
5
10
  * Unspecified changes
@@ -209,6 +209,51 @@ module Google
209
209
  end
210
210
  end
211
211
 
212
+ # The attribution settings used for a given property. This is a singleton
213
+ # resource.
214
+ class GoogleAnalyticsAdminV1alphaAttributionSettings
215
+ include Google::Apis::Core::Hashable
216
+
217
+ # Required. The lookback window configuration for acquisition conversion events.
218
+ # The default window size is 30 days.
219
+ # Corresponds to the JSON property `acquisitionConversionEventLookbackWindow`
220
+ # @return [String]
221
+ attr_accessor :acquisition_conversion_event_lookback_window
222
+
223
+ # Output only. Resource name of this attribution settings resource. Format:
224
+ # properties/`property_id`/attributionSettings Example: "properties/1000/
225
+ # attributionSettings"
226
+ # Corresponds to the JSON property `name`
227
+ # @return [String]
228
+ attr_accessor :name
229
+
230
+ # Required. The lookback window for all other, non-acquisition conversion events.
231
+ # The default window size is 90 days.
232
+ # Corresponds to the JSON property `otherConversionEventLookbackWindow`
233
+ # @return [String]
234
+ attr_accessor :other_conversion_event_lookback_window
235
+
236
+ # Required. The reporting attribution model used to calculate conversion credit
237
+ # in this property's reports. Changing the attribution model will apply to both
238
+ # historical and future data. These changes will be reflected in reports with
239
+ # conversion and revenue data. User and session data will be unaffected.
240
+ # Corresponds to the JSON property `reportingAttributionModel`
241
+ # @return [String]
242
+ attr_accessor :reporting_attribution_model
243
+
244
+ def initialize(**args)
245
+ update!(**args)
246
+ end
247
+
248
+ # Update properties of this object
249
+ def update!(**args)
250
+ @acquisition_conversion_event_lookback_window = args[:acquisition_conversion_event_lookback_window] if args.key?(:acquisition_conversion_event_lookback_window)
251
+ @name = args[:name] if args.key?(:name)
252
+ @other_conversion_event_lookback_window = args[:other_conversion_event_lookback_window] if args.key?(:other_conversion_event_lookback_window)
253
+ @reporting_attribution_model = args[:reporting_attribution_model] if args.key?(:reporting_attribution_model)
254
+ end
255
+ end
256
+
212
257
  # Read-only resource used to summarize a principal's effective roles.
213
258
  class GoogleAnalyticsAdminV1alphaAuditUserLink
214
259
  include Google::Apis::Core::Hashable
@@ -494,6 +539,12 @@ module Google
494
539
  # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount]
495
540
  attr_accessor :account
496
541
 
542
+ # The attribution settings used for a given property. This is a singleton
543
+ # resource.
544
+ # Corresponds to the JSON property `attributionSettings`
545
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings]
546
+ attr_accessor :attribution_settings
547
+
497
548
  # A conversion event in a Google Analytics property.
498
549
  # Corresponds to the JSON property `conversionEvent`
499
550
  # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent]
@@ -564,6 +615,7 @@ module Google
564
615
  # Update properties of this object
565
616
  def update!(**args)
566
617
  @account = args[:account] if args.key?(:account)
618
+ @attribution_settings = args[:attribution_settings] if args.key?(:attribution_settings)
567
619
  @conversion_event = args[:conversion_event] if args.key?(:conversion_event)
568
620
  @custom_dimension = args[:custom_dimension] if args.key?(:custom_dimension)
569
621
  @custom_metric = args[:custom_metric] if args.key?(:custom_metric)
@@ -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.29.0"
19
+ GEM_VERSION = "0.30.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220319"
25
+ REVISION = "20220604"
26
26
  end
27
27
  end
28
28
  end
@@ -70,6 +70,12 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class GoogleAnalyticsAdminV1alphaAttributionSettings
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
73
79
  class GoogleAnalyticsAdminV1alphaAuditUserLink
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
@@ -456,6 +462,16 @@ module Google
456
462
  end
457
463
  end
458
464
 
465
+ class GoogleAnalyticsAdminV1alphaAttributionSettings
466
+ # @private
467
+ class Representation < Google::Apis::Core::JsonRepresentation
468
+ property :acquisition_conversion_event_lookback_window, as: 'acquisitionConversionEventLookbackWindow'
469
+ property :name, as: 'name'
470
+ property :other_conversion_event_lookback_window, as: 'otherConversionEventLookbackWindow'
471
+ property :reporting_attribution_model, as: 'reportingAttributionModel'
472
+ end
473
+ end
474
+
459
475
  class GoogleAnalyticsAdminV1alphaAuditUserLink
460
476
  # @private
461
477
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -555,6 +571,8 @@ module Google
555
571
  class Representation < Google::Apis::Core::JsonRepresentation
556
572
  property :account, as: 'account', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation
557
573
 
574
+ property :attribution_settings, as: 'attributionSettings', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings::Representation
575
+
558
576
  property :conversion_event, as: 'conversionEvent', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent::Representation
559
577
 
560
578
  property :custom_dimension, as: 'customDimension', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension::Representation
@@ -822,6 +822,37 @@ module Google
822
822
  execute_or_queue_command(command, &block)
823
823
  end
824
824
 
825
+ # Lookup for a AttributionSettings singleton.
826
+ # @param [String] name
827
+ # Required. The name of the attribution settings to retrieve. Format: properties/
828
+ # `property`/attributionSettings
829
+ # @param [String] fields
830
+ # Selector specifying which fields to include in a partial response.
831
+ # @param [String] quota_user
832
+ # Available to use for quota purposes for server-side applications. Can be any
833
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
834
+ # @param [Google::Apis::RequestOptions] options
835
+ # Request-specific options
836
+ #
837
+ # @yield [result, err] Result & error if block supplied
838
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings] parsed result object
839
+ # @yieldparam err [StandardError] error object if request failed
840
+ #
841
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings]
842
+ #
843
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
844
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
845
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
846
+ def get_property_attribution_settings(name, fields: nil, quota_user: nil, options: nil, &block)
847
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
848
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings::Representation
849
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings
850
+ command.params['name'] = name unless name.nil?
851
+ command.query['fields'] = fields unless fields.nil?
852
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
853
+ execute_or_queue_command(command, &block)
854
+ end
855
+
825
856
  # Returns the singleton data retention settings for this property.
826
857
  # @param [String] name
827
858
  # Required. The name of the settings to lookup. Format: properties/`property`/
@@ -980,6 +1011,46 @@ module Google
980
1011
  execute_or_queue_command(command, &block)
981
1012
  end
982
1013
 
1014
+ # Updates attribution settings on a property.
1015
+ # @param [String] name
1016
+ # Output only. Resource name of this attribution settings resource. Format:
1017
+ # properties/`property_id`/attributionSettings Example: "properties/1000/
1018
+ # attributionSettings"
1019
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings] google_analytics_admin_v1alpha_attribution_settings_object
1020
+ # @param [String] update_mask
1021
+ # Required. The list of fields to be updated. Field names must be in snake case (
1022
+ # e.g., "field_to_update"). Omitted fields will not be updated. To replace the
1023
+ # entire entity, use one path with the string "*" to match all fields.
1024
+ # @param [String] fields
1025
+ # Selector specifying which fields to include in a partial response.
1026
+ # @param [String] quota_user
1027
+ # Available to use for quota purposes for server-side applications. Can be any
1028
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1029
+ # @param [Google::Apis::RequestOptions] options
1030
+ # Request-specific options
1031
+ #
1032
+ # @yield [result, err] Result & error if block supplied
1033
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings] parsed result object
1034
+ # @yieldparam err [StandardError] error object if request failed
1035
+ #
1036
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings]
1037
+ #
1038
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1039
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1040
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1041
+ def update_property_attribution_settings(name, google_analytics_admin_v1alpha_attribution_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1042
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1043
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings::Representation
1044
+ command.request_object = google_analytics_admin_v1alpha_attribution_settings_object
1045
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings::Representation
1046
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings
1047
+ command.params['name'] = name unless name.nil?
1048
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1049
+ command.query['fields'] = fields unless fields.nil?
1050
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1051
+ execute_or_queue_command(command, &block)
1052
+ end
1053
+
983
1054
  # Updates the singleton data retention settings for this property.
984
1055
  # @param [String] name
985
1056
  # Output only. Resource name for this DataRetentionSetting resource. Format:
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.29.0
4
+ version: 0.30.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: 2022-06-06 00:00:00.000000000 Z
11
+ date: 2022-06-13 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/main/generated/google-apis-analyticsadmin_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.29.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.30.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticsadmin_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []